<commit_before>module Githubber
  class Issues
    include HTTParty
    base_uri "https://api.github.com"

    def initialize(auth_token)
      @auth = {
          "Authorization" =>  "token #{auth_token}",
          "User-Agent"    =>  "HTTParty"
      }
    end

    def list_issues_for_repo(owner,repo,options={})
      self.class.get("/repos/#{owner}/#{repo}/issues", :headers => @auth, :body => options.to_json)
    end

    def comment_issue

    end
<commit_msg>completed and tested comment_issue function<commit_after>module Githubber
  class Issues
    include HTTParty
    base_uri "https://api.github.com"

    def initialize(auth_token)
      @auth = {
          "Authorization" =>  "token #{auth_token}",
          "User-Agent"    =>  "HTTParty"
      }
    end

    def list_issues_for_repo(owner,repo,options={})
      self.class.get("/repos/#{owner}/#{repo}/issues",
                     :headers => @auth,
                     :body => options.to_json)
    end

    def comment_issue(owner,repo,issue,options={})
      self.class.post("/repos/#{owner}/#{repo}/issues/#{issue}/comments",
                      :headers => @auth,
                      :body => options.to_json)
    end

{'fraction_non_alphanumeric': 0.14238134887593673, 'fraction_numerical': 0.0, 'mean_word_length': 2.266304347826087, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '2063569', 'n_tokens_mistral': 380, 'n_tokens_neox': 367, 'n_words': 65}