<commit_before>require 'rubygems'

require 'irb/completion'
require 'irb/ext/save-history'

IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb_history"
IRB.conf[:SAVE_HISTORY] = 2000
IRB.conf[:PROMPT_MODE] = :SIMPLE

begin
  require 'hirb'

  Hirb.enable
rescue LoadError
  warn "Unable to load: #{$!}"
end

if defined? ActiveRecord
  ActiveRecord::Base.logger = Logger.new(STDOUT)
end

unless respond_to? :y
  def y(o)
    puts o.to_yaml
  end
end
<commit_msg>Do not use hirb<commit_after>require 'rubygems'

require 'irb/completion'
require 'irb/ext/save-history'

IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb_history"
IRB.conf[:SAVE_HISTORY] = 2000
IRB.conf[:PROMPT_MODE] = :SIMPLE

if defined? ActiveRecord
  ActiveRecord::Base.logger = Logger.new(STDOUT)
end

{'fraction_non_alphanumeric': 0.14698162729658792, 'fraction_numerical': 0.010498687664041995, 'mean_word_length': 5.358333333333333, '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': '1572694', 'n_tokens_mistral': 324, 'n_tokens_neox': 307, 'n_words': 59}