<commit_before>desc "Runs the tracker [LOG_LEVEL=[INFO]]"
task :track do
  require File.join(File.dirname(__FILE__), '..', 'fog_tracker')

  # Setup logging
  log = FogTracker.default_logger(STDOUT)
  log.level = ::Logger.const_get((ENV['LOG_LEVEL'] || 'INFO').to_sym)

  log.info "Loading account information..."
  accounts = FogTracker.read_accounts './config/accounts.yml'

  FogTracker::Tracker.new(accounts, {:logger => log}).start
  while true do ; sleep 60 end    # Loop forever

end<commit_msg>Allow lower-case LOG_LEVEL from 'rake track'<commit_after>desc "Runs the tracker [LOG_LEVEL=[INFO]]"
task :track do
  require File.join(File.dirname(__FILE__), '..', 'fog_tracker')

  # Setup logging
  log = FogTracker.default_logger(STDOUT)
  log.level = ::Logger.const_get((ENV['LOG_LEVEL'] || 'INFO').upcase.to_sym)

  log.info "Loading account information..."
  accounts = FogTracker.read_accounts './config/accounts.yml'

  FogTracker::Tracker.new(accounts, {:logger => log}).start
  while true do ; sleep 60 end    # Loop forever

end
{'fraction_non_alphanumeric': 0.14971209213051823, 'fraction_numerical': 0.003838771593090211, 'mean_word_length': 4.730769230769231, 'pattern_counts': {'":': 0, '<': 3, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '768856', 'n_tokens_mistral': 361, 'n_tokens_neox': 342, 'n_words': 78}