<commit_before>module GoogleIntegration::Classroom::Requesters::Courses

  def self.run(client)
    service = client.discovered_api('classroom', 'v1')
    google_api_call = client.execute(api_method: service.courses.list)
    google_api_call
  end
end
<commit_msg>only request courses that a google user teaches (#6599)<commit_after>module GoogleIntegration::Classroom::Requesters::Courses

  def self.run(client)
    service = client.discovered_api('classroom', 'v1')
    google_api_call = client.execute(api_method: service.courses.list, parameters: { teacherId: user.google_id })
    google_api_call
  end
end

{'fraction_non_alphanumeric': 0.10603588907014681, 'fraction_numerical': 0.009787928221859706, 'mean_word_length': 5.898876404494382, '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': '2374125', 'n_tokens_mistral': 199, 'n_tokens_neox': 192, 'n_words': 37}