<commit_before>require 'aws/s3'
require 'dynamoid'
require 'uuid'
Dir[File.dirname(__FILE__) + '/absorb/*.rb'].each {|file| require file }

module Absorb

  def self.settings
    {
      bucket_name:          ENV['BUCKET_NAME'],
      access_key_id:        ENV['ACCESS_KEY_ID'],
      secret_access_key:    ENV['SECRET_ACCESS_KEY'],
      dynamodb_upload:      ENV['DYNAMODB_UPLOAD']
    }
  end

  def self.files files
    Amazon.startup
    Absorb::Absorber.new.absorb files
  end
end<commit_msg>Cleanup.<commit_after>require 'aws/s3'
require 'dynamoid'
require 'uuid'
Dir[File.dirname(__FILE__) + '/absorb/*.rb'].each {|file| require file }

module Absorb

  def self.settings
    {
      bucket_name:          ENV['BUCKET_NAME'],
      access_key_id:        ENV['ACCESS_KEY_ID'],
      secret_access_key:    ENV['SECRET_ACCESS_KEY'],
      dynamodb_upload:      ENV['DYNAMODB_UPLOAD']
    }
  end

  def self.files files
    Amazon.startup
    Absorb::Absorber.new.absorb files
  end

end
{'fraction_non_alphanumeric': 0.11995967741935484, 'fraction_numerical': 0.0020161290322580645, 'mean_word_length': 3.053061224489796, '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': '5471269', 'n_tokens_mistral': 363, 'n_tokens_neox': 354, 'n_words': 63}