<commit_before>class Gitlab::Client
  # Defines methods related to notes.
  # @see https://github.com/gitlabhq/gitlabhq/blob/master/doc/api/notes.md
  module Notes
    # Gets a list of projects notes.
    #
    # @example
    #   Gitlab.notes(5)
    #
    # @param [Integer] project The ID of a project.
    # @return [Array<Gitlab::ObjectifiedHash>]
    def notes(project)
      get("/projects/#{project}/notes")
    end

    # Gets a list of notes for a issue.
    #
    # @example
    #   Gitlab.issue_notes(5, 10)
    #
    # @param [Integer] project The ID of a project.
    # @param [Integer] issue The ID of an issue.
    # @return [Array<Gitlab::ObjectifiedHash>]
    def issue_notes(project, issue)
      get("/projects/#{project}/issues/#{issue}/notes")
    end

    # Gets a list of notes for a snippet.
    #
    # @example<commit_msg>Added :page and :per_page query options to notes method<commit_after>class Gitlab::Client
  # Defines methods related to notes.
  # @see https://github.com/gitlabhq/gitlabhq/blob/master/doc/api/notes.md
  module Notes
    # Gets a list of projects notes.
    #
    # @example
    #   Gitlab.notes(5)
    #
    # @param [Integer] project The ID of a project.
    # @option options [Integer] :page The page number.
    # @option options [Integer] :per_page The number of results per page.
    # @return [Array<Gitlab::ObjectifiedHash>]
    def notes(project, options={})
      get("/projects/#{project}/notes", :query => options)
    end

    # Gets a list of notes for a issue.
    #
    # @example
    #   Gitlab.issue_notes(5, 10)
    #
    # @param [Integer] project The ID of a project.
    # @param [Integer] issue The ID of an issue.
    # @return [Array<Gitlab::ObjectifiedHash>]
    def issue_notes(project, issue)
      get("/projects/#{project}/issues/#{issue}/notes")
    end

    # Gets a list of notes for a snippet.
    #
    # @example
{'fraction_non_alphanumeric': 0.12552742616033755, 'fraction_numerical': 0.004219409282700422, 'mean_word_length': 2.705078125, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 8, 'https://': 2, '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': '7526989', 'n_tokens_mistral': 624, 'n_tokens_neox': 605, 'n_words': 179}