<commit_before>require 'rubygems'
require 'sinatra'
require 'sinatra-helpers/haml/partials'
require 'haml'
require 'lib/models'

helpers do
  def commify(amount)
    amount.to_s.gsub(/(\d)(?=(\d{3})+$)/,'\1,')
  end<commit_msg>Improved commify()<commit_after>require 'rubygems'
require 'sinatra'
require 'sinatra-helpers/haml/partials'
require 'haml'
require 'lib/models'

helpers do
  def commify(amount)
    amount.to_s.reverse.gsub(/(\d\d\d)(?=\d)(?!\d*\.)/,'\1,').reverse
  end
{'fraction_non_alphanumeric': 0.1995841995841996, 'fraction_numerical': 0.006237006237006237, 'mean_word_length': 5.10126582278481, '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': '1096567', 'n_tokens_mistral': 195, 'n_tokens_neox': 195, 'n_words': 32}