<commit_before>module Octokit
  class Client
    module Commits

      def commits(repo, branch="master", options={})
        get("/api/v2/json/commits/list/#{Repository.new(repo)}/#{branch}", options)['commits']
      end
      alias :list_commits :commits

      def commit(repo, sha, options={})
        get("/api/v2/json/commits/show/#{Repository.new(repo)}/#{sha}", options)['commit']
      end

    end
  end
end
<commit_msg>Migrated Client::Commits to API v3<commit_after>module Octokit
  class Client
    module Commits

      def commits(repo, branch="master", options={})
        options = { :per_page => 35, :sha => branch }.merge options
        get("/repos/#{Repository.new(repo)}/commits", options, 3)
      end
      alias :list_commits :commits

      def commit(repo, sha, options={})
        get("/repos/#{Repository.new(repo)}/commits/#{sha}", options, 3)
      end

    end
  end
end

{'fraction_non_alphanumeric': 0.15597345132743362, 'fraction_numerical': 0.007743362831858407, 'mean_word_length': 3.004424778761062, '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': '750274', 'n_tokens_mistral': 301, 'n_tokens_neox': 286, 'n_words': 65}