<commit_before>module Foxit
  class Client
    # Defines methods related to issues.
    module Issues

      def issues(project = nil, options = {})
        if project.nil?
          get("/issues", options)
        else
          get("/projects/#{project}/issues", options)
        end
      end

      def issue(project, id)
        get("/projects/#{project}/issues/#{id}")
      end

      def create_issue(project, options = {})
        post("/projects/#{project}/issues", options)
      end

      def edit_issue(project, id, options = {})
        put("/projects/#{project}/issues/#{id}", options)
      end

      def close_issue(project, id)
        edit_issue(project, id, { closed: 1 })
      end

      def reopen_issue(project, id)
        edit_issue(project, id, { closed: 0 })
      end

      def delete_issue(project, id)
        delete("/projects/#{project}/issues/#{id}")
      end
    end
  end
end<commit_msg>removed the delete methods as it is not allowd<commit_after>module Foxit
  class Client
    # Defines methods related to issues.
    module Issues

      def issues(project = nil, options = {})
        if project.nil?
          get("/issues", options)
        else
          get("/projects/#{project}/issues", options)
        end
      end

      def issue(project, id)
        get("/projects/#{project}/issues/#{id}")
      end

      def create_issue(project, options = {})
        post("/projects/#{project}/issues", options)
      end

      def edit_issue(project, id, options = {})
        put("/projects/#{project}/issues/#{id}", options)
      end

      def close_issue(project, id)
        edit_issue(project, id, { closed: 1 })
      end

      def reopen_issue(project, id)
        edit_issue(project, id, { closed: 0 })
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.12919463087248323, 'fraction_numerical': 0.0022371364653243847, 'mean_word_length': 2.1221640488656197, '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': '5418500', 'n_tokens_mistral': 521, 'n_tokens_neox': 509, 'n_words': 134}