<commit_before># encoding: UTF-8

class ApplicationController < ActionController::Base
  before_filter :log_additional_data

  include AuthorizationHelper

  protect_from_forgery

  http_basic_authenticate_with(:name => CONFIG[:restricted_area][:username], :password => CONFIG[:restricted_area][:password]) if ['staging', 'sales'].include?(Rails.env)

  helper_method :current_user

  private

  def current_user
    session[:auth_token] = cookies[:auth_token] if cookies[:auth_token]
    @current_user ||= User.find_by_auth_token(session[:auth_token]) if session[:auth_token]<commit_msg>Retirando autentificação no staging<commit_after># encoding: UTF-8

class ApplicationController < ActionController::Base
  before_filter :log_additional_data

  include AuthorizationHelper

  protect_from_forgery

  http_basic_authenticate_with(:name => CONFIG[:restricted_area][:username], :password => CONFIG[:restricted_area][:password]) if ['sales'].include?(Rails.env)

  helper_method :current_user

  private

  def current_user
    session[:auth_token] = cookies[:auth_token] if cookies[:auth_token]
    @current_user ||= User.find_by_auth_token(session[:auth_token]) if session[:auth_token]
{'fraction_non_alphanumeric': 0.11036225779275484, 'fraction_numerical': 0.0016849199663016006, 'mean_word_length': 7.546762589928058, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6189407', 'n_tokens_mistral': 371, 'n_tokens_neox': 343, 'n_words': 63}