<commit_before>require 'resque/tasks'
task "resque:setup" => :environment do
  Dir[File.join(Rails.root, 'app', 'uploaders', '*.rb')].each { |file|
    classname = File.basename(file)[0..-4].camelize.constantize
    unless defined?(classname)
      require file 
    end
  }
  Dir[File.join(Rails.root, 'app', 'models', '*.rb')].each { |file| 
    classname = File.basename(file)[0..-4].camelize.constantize
    unless defined?(classname)
      require file 
    end
  }
  require File.join(Rails.root, 'app', 'controllers', 'application_controller.rb')
  require File.join(Rails.root, 'app', 'controllers', 'sockets_controller.rb')
  Rails.logger.info("event=resque_setup rails_env=#{Rails.env}")
end
<commit_msg>sorry<commit_after>require 'resque/tasks'
task "resque:setup" => :environment do
  Dir[File.join(Rails.root, 'app', 'uploaders', '*.rb')].each { |file|
    class_name = File.basename(file)[0..-4].camelize
    begin
      klass = Module.const_get(class_name)
      klass.is_a?(Class)
    rescue NameError
      require file
    end
  }
  Dir[File.join(Rails.root, 'app', 'models', '*.rb')].each { |file|
    class_name = File.basename(file)[0..-4].camelize
    begin
      klass = Module.const_get(class_name)
      klass.is_a?(Class)
    rescue NameError
      require file
    end
  }
  require File.join(Rails.root, 'app', 'controllers', 'application_controller.rb')
  require File.join(Rails.root, 'app', 'controllers', 'sockets_controller.rb')
  Rails.logger.info("event=resque_setup rails_env=#{Rails.env}")
end

{'fraction_non_alphanumeric': 0.16721097322011758, 'fraction_numerical': 0.005225342913128674, 'mean_word_length': 3.9740259740259742, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6848324', 'n_tokens_mistral': 549, 'n_tokens_neox': 555, 'n_words': 94}