<commit_before>from github2.core import BaseData, GithubCommand, Attribute, DateAttribute
from github2.repositories import Repository
from github2.users import User

class Team(BaseData):
    id = Attribute("The team id")
    name = Attribute("Name of the team")
    permission = Attribute("Permissions of the team")

    def __repr__(self):
        return "<Team: %s>" % self.name

class Teams(GithubCommand):
    domain = "teams"

    def show(self, team_id):
        return self.get_value(team_id, filter="team", datatype=Team)

    def members(self, team_id):
        """Return a list of all team members.
        """
        return self.get_values(team_id, "members", filter="users",
                               datatype=User)

    def repositories(self, team_id):
        """Return a list of all team members.
        """
        return self.get_values(team_id, "repositories", filter="repositories",
                               datatype=Repository)

    def add_repository(self, team_id, repository):
        if isinstance(repository, Repository):
            repository = repository.project
        return self.make_request(team_id, "repositories", method="POST",
                                 post_data={'name': repository},
                                 filter="repositories", datatype=Repository)

    def remove_repository(self, team_id, repository):
        if isinstance(repository, Repository):
            repository = repository.project
        return self.make_request(team_id, "repositories", method="DELETE",<commit_msg>Accept ints<commit_after>from github2.core import BaseData, GithubCommand, Attribute, DateAttribute
from github2.repositories import Repository
from github2.users import User

class Team(BaseData):
    id = Attribute("The team id")
    name = Attribute("Name of the team")
    permission = Attribute("Permissions of the team")

    def __repr__(self):
        return "<Team: %s>" % self.name

class Teams(GithubCommand):
    domain = "teams"

    def show(self, team_id):
        return self.get_value(str(team_id), filter="team", datatype=Team)

    def members(self, team_id):
        """Return a list of all team members.
        """
        return self.get_values(str(team_id), "members", filter="users",
                               datatype=User)

    def repositories(self, team_id):
        """Return a list of all team members.
        """
        return self.get_values(str(team_id), "repositories",
                               filter="repositories", datatype=Repository)

    def add_repository(self, team_id, repository):
        if isinstance(repository, Repository):
            repository = repository.project
        return self.make_request(str(team_id), "repositories", method="POST",
                                 post_data={'name': repository},
                                 filter="repositories", datatype=Repository)

    def remove_repository(self, team_id, repository):
        if isinstance(repository, Repository):
            repository = repository.project
        return self.make_request(str(team_id), "repositories", method="DELETE",
{'fraction_non_alphanumeric': 0.10425327790214263, 'fraction_numerical': 0.0019187719859290054, 'mean_word_length': 2.671361502347418, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2707674', 'n_tokens_mistral': 835, 'n_tokens_neox': 802, 'n_words': 216}