<commit_before>require 'bundler/setup'
require 'travis'
require 'core_ext/module/load_constants'

$stdout.sync = true

Sidekiq.configure_server do |config|
  config.redis = {
    :url       => Travis.config.redis.url,
    :namespace => Travis.config.sidekiq.namespace
  }
  config.options[:queues] = %w(campfire email flowdock github_commit_status hipchat irc pusher webhook)
  config.logger = nil unless Travis.config.log_level == :debug
end

GH::DefaultStack.options[:ssl] = Travis.config.ssl
Travis.config.update_periodically

Travis::Features.start
Travis::Exceptions::Reporter.start
Travis::Notification.setup
Travis::Mailer.setup


# Travis::Memory.new(:tasks).report_periodically if Travis.env == 'production'
# NewRelic.start if File.exists?('config/newrelic.yml')

<commit_msg>try debugging metriks log formatter<commit_after>require 'bundler/setup'
require 'travis'
require 'core_ext/module/load_constants'

$stdout.sync = true

Sidekiq.configure_server do |config|
  config.redis = {
    :url       => Travis.config.redis.url,
    :namespace => Travis.config.sidekiq.namespace
  }
  config.options[:queues] = %w(campfire email flowdock github_commit_status hipchat irc pusher webhook)
  config.logger = nil unless Travis.config.log_level == :debug
end

GH::DefaultStack.options[:ssl] = Travis.config.ssl
Travis.config.update_periodically

Travis::Features.start
Travis::Exceptions::Reporter.start
# Travis::Notification.setup
Travis::Mailer.setup


require 'metriks'
require 'metriks/reporter/logger'

logger = Logger.new($stdout)
logger.formatter = Logger::SimpleFormatter.new
Metriks::Reporter::Logger.new(logger: logger).start



# Travis::Memory.new(:tasks).report_periodically if Travis.env == 'production'
# NewRelic.start if File.exists?('config/newrelic.yml')


{'fraction_non_alphanumeric': 0.12471910112359551, 'fraction_numerical': 0.0, 'mean_word_length': 5.670411985018727, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1414544', 'n_tokens_mistral': 601, 'n_tokens_neox': 585, 'n_words': 104}