<commit_before># encoding: utf-8

module GithubCLI
  class Collaborator < API

    class << self

      def all(user, repo, params, format)
        output format do
          github_api.repos.collaborators.list user, repo, params
        end
      end

      def add(user, repo, collab, params, format)
        output format do
          github_api.repos.collaborators.add user, repo, collab, params
        end
      end

      def collaborator?(user, repo, collab, params, format)
        output format do
          github_api.repos.collaborators.collaborator? user, repo, collab, params
        end
      end

      def remove(user, repo, collab, params, format)
        output format do
          github_api.repos.collaborators.remove user, repo, collab, params
        end
      end
    end

  end # Collaborator
end # GithubCLI<commit_msg>Change collaborators api to take options.<commit_after># encoding: utf-8

module GithubCLI
  class Collaborator < API

    class << self

      def all(user, repo, params, options)
        output options[:format], options[:quiet] do
          github_api(options).repos.collaborators.list user, repo, params
        end
      end

      def add(user, repo, collab, params, options)
        output options[:format], options[:quiet] do
          github_api(options).repos.collaborators.add user, repo, collab, params
        end
      end

      def collaborator?(user, repo, collab, params, options)
        output options[:format], options[:quiet] do
          github_api(options).repos.collaborators.collaborator? user, repo, collab, params
        end
      end

      def remove(user, repo, collab, params, options)
        output options[:format], options[:quiet] do
          github_api(options).repos.collaborators.remove user, repo, collab, params
        end
      end
    end

  end # Collaborator
end # GithubCLI
{'fraction_non_alphanumeric': 0.08306538049303322, 'fraction_numerical': 0.0010718113612004287, 'mean_word_length': 2.463821892393321, 'pattern_counts': {'":': 0, '<': 9, '<?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': '1990964', 'n_tokens_mistral': 557, 'n_tokens_neox': 521, 'n_words': 162}