<commit_before>Refraction.configure do |req|

  case req.host
  when /travis\.heroku\.com\/builds/
    # passthrough with no change (old github webhook)
    Rails.logger.add(:info, "github webhook passthrough on old heroku address")
  when /travis\.heroku\.com/
    # old heroku address
    Rails.logger.add(:info, "redirect issued for old heroku address")
    req.permanent! :host => "travis-ci.org"
  when /([-\w]+\.)+travis-ci\.org/
    # we don't want to use www for now<commit_msg>numbers instead of symbols for the logger<commit_after>Refraction.configure do |req|

  case req.host
  when /travis\.heroku\.com\/builds/
    # passthrough with no change (old github webhook)
    Rails.logger.add(1, "github webhook passthrough on old heroku address")
  when /travis\.heroku\.com/
    # old heroku address
    Rails.logger.add(1, "redirect issued for old heroku address")
    req.permanent! :host => "travis-ci.org"
  when /([-\w]+\.)+travis-ci\.org/
    # we don't want to use www for now
{'fraction_non_alphanumeric': 0.13306451612903225, 'fraction_numerical': 0.0020161290322580645, 'mean_word_length': 3.189873417721519, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4110185', 'n_tokens_mistral': 356, 'n_tokens_neox': 346, 'n_words': 99}