<commit_before># Convenience for script/console so that default site is already set as current site
if $0 == 'irb'
  Site.current = Site.find(1)
  puts 'Sites:'
  puts '  id    name                                                         host'
  puts '  ----- ------------------------------------------------------------ -----------------------------'
  puts Site.all.map { |s| "#{s.default? ? '*' : ' '} #{s.id.to_s.ljust 5} #{s.name.ljust(60)[0...60]} #{s.host}" }.join("\n")
  def use(id)
    Site.current = Site.find(id)
    puts "Set Site.current to <#{Site.current.name}>"
    true
  end
  puts 'Type "use ID" to change selected site...'
end<commit_msg>Make console site selection menu fit on 80-col screen.<commit_after># Convenience for script/console so that default site is already set as current site
if $0 == 'irb'
  Site.current = Site.find(1)
  puts 'Sites:'
  puts '  id    name                                     host'
  puts '  ----- ---------------------------------------- -----------------------------'
  puts Site.all.map { |s| "#{s.default? ? '*' : ' '} #{s.id.to_s.ljust 5} #{s.name.ljust(40)[0...40]} #{s.host}" }.join("\n")
  def use(id)
    Site.current = Site.find(id)
    puts "Set Site.current to <#{Site.current.name}>"
    true
  end
  puts 'Type "use ID" to change selected site...'
end
{'fraction_non_alphanumeric': 0.2714177407126611, 'fraction_numerical': 0.013646702047005308, 'mean_word_length': 1.5239005736137667, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6862581', 'n_tokens_mistral': 414, 'n_tokens_neox': 416, 'n_words': 117}