<commit_before>ENV["RAILS_ENV"] = "test"
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'
Find.find("#{Rails.root}/test") do |path|
  b=File.basename(path)
  Find.prune if FileTest.directory?(path) && ?.==b[0]
  require File.expand_path(path.chomp('.rb'),'/') if 'shared.rb'==b
end

class Object
  def should_include_this_file
    f=File.new("#{Rails.root}/out/test-should-include",'a')
    f.print "#{caller.first}\n"
    f.close
  end
end
<commit_msg>Change test-should-include log to an ActiveSupport::BufferedLogger.<commit_after>ENV["RAILS_ENV"] = "test"
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'
Find.find("#{Rails.root}/test") do |path|
  b=File.basename(path)
  Find.prune if FileTest.directory?(path) && ?.==b[0]
  require File.expand_path(path.chomp('.rb'),'/') if 'shared.rb'==b
end

1.times do # Introduce a local scope.
  f="#{Rails.root}/log/test-should-include-this-file.log"
  File.delete f
  SHOULD_INCLUDE_THIS_FILE_LOG=ActiveSupport::BufferedLogger.new f
end

class Object
  def should_include_this_file
    SHOULD_INCLUDE_THIS_FILE_LOG.add( Logger::DEBUG, caller.first)
  end
end

{'fraction_non_alphanumeric': 0.17354675652906487, 'fraction_numerical': 0.002527379949452401, 'mean_word_length': 5.061224489795919, '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': '4634160', 'n_tokens_mistral': 450, 'n_tokens_neox': 436, 'n_words': 76}