<commit_before>require 'easy_auto/config_manager_wrapper'

module EasyAuto
  class Github
    extend ConfigManagerWrapper

    def self.client
      Octokit::Client.new login: config_manager.github_email, oauth_token: config_manager.github_token
    end
  end

  module ClientWrapper
    def client
      Github.client
    end

    def username
      client.login.split('@').first
    end
  end
end<commit_msg>change client wrapper to use access_token instead of oauth_token for octokit 2.0<commit_after>require 'easy_auto/config_manager_wrapper'

module EasyAuto
  class Github
    extend ConfigManagerWrapper

    def self.client
      Octokit::Client.new login: config_manager.github_email, access_token: config_manager.github_token
    end
  end

  module ClientWrapper
    def client
      Github.client
    end

    def username
      client.login.split('@').first
    end
  end
end
{'fraction_non_alphanumeric': 0.05518018018018018, 'fraction_numerical': 0.0022522522522522522, 'mean_word_length': 3.3793103448275863, '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': '948203', 'n_tokens_mistral': 269, 'n_tokens_neox': 259, 'n_words': 68}