<commit_before>require "active_support/concern"
require 'paperclip'
require 'state_machine'

module Outsourced
  ApplicationName = "OutsourcedWorker"

  class << self
    def enqueue(*args)
      Outsourced::Queue.enqueue(*args)
    end

    alias_method :outsource, :enqueue

    def url
      client_application.url
    end

    def create_client_application!(url)
      Outsourced::Oauth::ClientApplication.create!(:name => ApplicationName, :url => url)
    end

    def client_application
      Outsourced::Oauth::ClientApplication.find_by_name(ApplicationName).tap do |a|
        raise "You must create an application first! Run script/outsourcer init" unless a.present?
      end
    end
  end
end
require 'outsourced/application_controller_methods.rb'
require 'outsourced/engine.rb'<commit_msg>missed a require<commit_after>require "active_support/concern"
require 'paperclip'
require 'state_machine'
require 'thor'

module Outsourced
  ApplicationName = "OutsourcedWorker"

  class << self
    def enqueue(*args)
      Outsourced::Queue.enqueue(*args)
    end

    alias_method :outsource, :enqueue

    def url
      client_application.url
    end

    def create_client_application!(url)
      Outsourced::Oauth::ClientApplication.create!(:name => ApplicationName, :url => url)
    end

    def client_application
      Outsourced::Oauth::ClientApplication.find_by_name(ApplicationName).tap do |a|
        raise "You must create an application first! Run script/outsourcer init" unless a.present?
      end
    end
  end
end
require 'outsourced/application_controller_methods.rb'
require 'outsourced/engine.rb'
{'fraction_non_alphanumeric': 0.08765432098765433, 'fraction_numerical': 0.0, 'mean_word_length': 4.113564668769716, 'pattern_counts': {'":': 0, '<': 7, '<?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': '7103771', 'n_tokens_mistral': 500, 'n_tokens_neox': 472, 'n_words': 113}