<commit_before>$:.unshift *Dir["#{File.dirname(__FILE__)}/vendor/**/lib"]
%w( rack sinatra tinder twitter json net/http socket timeout ).each { |f| require f }

module GitHub
  def service(name, &block)
    post "/#{name}/" do
      data = JSON.parse(params[:data])
      payload = JSON.parse(params[:payload])
      yield data, payload
    end
  end
end
include GitHub

Dir['services/**/*.rb'].each { |service| load service }
<commit_msg>starting the server via an absolute path doesn't like load, changed to require<commit_after>$:.unshift *Dir["#{File.dirname(__FILE__)}/vendor/**/lib"]
%w( rack sinatra tinder twitter json net/http socket timeout ).each { |f| require f }

module GitHub
  def service(name, &block)
    post "/#{name}/" do
      data = JSON.parse(params[:data])
      payload = JSON.parse(params[:payload])
      yield data, payload
    end
  end
end
include GitHub

Dir['services/**/*.rb'].each { |service| require service }

{'fraction_non_alphanumeric': 0.1543340380549683, 'fraction_numerical': 0.0, 'mean_word_length': 3.8071065989847717, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4181920', 'n_tokens_mistral': 297, 'n_tokens_neox': 292, 'n_words': 90}