<commit_before>module Coveralls
  module Configuration

    require 'yaml'

    def self.configuration
      config = {
        :environment => self.relevant_env, 
        :git => git
      }
      yml = self.yaml_config
      if yml
        config[:configuration] = yml
        config[:repo_token] = yml['repo_token'] || yml['repo_secret_token'] || 
          ENV['COVERALLS_REPO_TOKEN']
      end
      if ENV['TRAVIS']
        config[:service_job_id] = ENV['TRAVIS_JOB_ID']
        config[:service_name]   = (yml ? yml['service_name'] : nil) || 'travis-ci'
      end
      if ENV["COVERALLS_RUN_LOCALLY"]
        config[:service_job_id] = nil<commit_msg>don't require yml to set config[:repo_token] from ENV<commit_after>module Coveralls
  module Configuration

    require 'yaml'

    def self.configuration
      config = {
        :environment => self.relevant_env, 
        :git => git
      }
      yml = self.yaml_config
      if yml
        config[:configuration] = yml
        config[:repo_token] = yml['repo_token'] || yml['repo_secret_token']
      end
      if ENV['COVERALLS_REPO_TOKEN']
        config[:repo_token] = ENV['COVERALLS_REPO_TOKEN']
      end
      if ENV['TRAVIS']
        config[:service_job_id] = ENV['TRAVIS_JOB_ID']
        config[:service_name]   = (yml ? yml['service_name'] : nil) || 'travis-ci'
      end
      if ENV["COVERALLS_RUN_LOCALLY"]
        config[:service_job_id] = nil
{'fraction_non_alphanumeric': 0.11997177134791814, 'fraction_numerical': 0.0, 'mean_word_length': 2.589873417721519, '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': '7564211', 'n_tokens_mistral': 485, 'n_tokens_neox': 472, 'n_words': 86}