<commit_before>require File.expand_path('../boot', __FILE__)

Bundler.require(:default, :assets, ENV['RACK_ENV'])
require 'redis'

REDIS = Redis.new(:host => "127.0.0.1", :port => 6379, :db => 0)

[
  './app/{presenters,models,helpers,controllers}/**/*.rb',
  './{lib,api}/**/*.rb'
].each{ |path| Dir.glob(path, &method(:require)) }
<commit_msg>fix array bug with diff version<commit_after>require File.expand_path('../boot', __FILE__)

Bundler.require(:default, :assets, ENV['RACK_ENV'])
require 'redis'

REDIS = Redis.new(:host => "127.0.0.1", :port => 6379, :db => 0)

[
  './app/presenters/**/*.rb',
  './app/models/**/*.rb',
  './app/helpers/**/*.rb',
  './app/controllers/**/*.rb',
  './{lib,api}/**/*.rb'
].each{ |path| Dir.glob(path).sort.each(&method(:require)) }

{'fraction_non_alphanumeric': 0.276843467011643, 'fraction_numerical': 0.028460543337645538, 'mean_word_length': 4.301369863013699, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '7518283', 'n_tokens_mistral': 319, 'n_tokens_neox': 313, 'n_words': 49}