<commit_before>class Github
  def initialize
    @client = Octokit::Client.new(
      :client_id     => CONFIG['github']['key'],
      :client_secret => CONFIG['github']['secret'],
      :per_page      => 100)
  end

  attr_reader :client

  def commits project
    client.commits project.full_name
  end

  def repository_info project
    if project.github_id.present?
      client.get "/repositories/#{project.github_id}"
    else
      client.repo project.full_name
    end
  end

  def collaborators_info project
    client.get("/repos/#{project.full_name}/collaborators")
  end

  def repository_url project<commit_msg>loads collaborators from organization owners list<commit_after>class Github
  def initialize
    @client = Octokit::Client.new(
      :client_id     => CONFIG['github']['key'],
      :client_secret => CONFIG['github']['secret'],
      :per_page      => 100)
  end

  attr_reader :client

  def commits project
    client.commits project.full_name
  end

  def repository_info project
    if project.github_id.present?
      client.get "/repositories/#{project.github_id}"
    else
      client.repo project.full_name
    end
  end

  def collaborators_info project
    client.get("/repos/#{project.full_name}/collaborators") +
    (client.get("/orgs/#{project.full_name.split('/').first}/members") rescue [])
  end

  def repository_url project
{'fraction_non_alphanumeric': 0.11403508771929824, 'fraction_numerical': 0.0043859649122807015, 'mean_word_length': 3.3050314465408803, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '4501808', 'n_tokens_mistral': 425, 'n_tokens_neox': 400, 'n_words': 88}