<commit_before>class _Job(object):
    def __init__(self, packages, job_type, requirement):
        self.packages = packages
        self.job_type = job_type
        self.requirement = requirement

    def __eq__(self, other):
        if len(self.packages) != len(other.packages):
            return False
        else:
            for left, right in zip(self.packages, other.packages):
                if left != right:
                    return False
            return self.job_type == other.job_type \
                    and self.requirement == other.requirement

class Request(object):
    """A Request instance encompasses the set of jobs to be solved by the
    dependency solver.
    """
    def __init__(self, pool):
        self._pool = pool
        self.jobs = []

    def _add_job(self, requirement, job_type):
        packages = self._pool.what_provides(requirement)

        self.jobs.append(_Job(packages, job_type, requirement))

    def install(self, requirement):
        self._add_job(requirement, "install")

    def update(self, requirement):
        self._add_job(requirement, "update")

    def remove(self, requirement):
        self._add_job(requirement, "remove")

    def upgrade(self):
        self._jobs.append(_Job([], "upgrade", None))<commit_msg>BUG: fix typo in Request.<commit_after>class _Job(object):
    def __init__(self, packages, job_type, requirement):
        self.packages = packages
        self.job_type = job_type
        self.requirement = requirement

    def __eq__(self, other):
        if len(self.packages) != len(other.packages):
            return False
        else:
            for left, right in zip(self.packages, other.packages):
                if left != right:
                    return False
            return self.job_type == other.job_type \
                    and self.requirement == other.requirement

class Request(object):
    """A Request instance encompasses the set of jobs to be solved by the
    dependency solver.
    """
    def __init__(self, pool):
        self._pool = pool
        self.jobs = []

    def _add_job(self, requirement, job_type):
        packages = self._pool.what_provides(requirement)

        self.jobs.append(_Job(packages, job_type, requirement))

    def install(self, requirement):
        self._add_job(requirement, "install")

    def update(self, requirement):
        self._add_job(requirement, "update")

    def remove(self, requirement):
        self._add_job(requirement, "remove")

    def upgrade(self):
        self.jobs.append(_Job([], "upgrade", None))
{'fraction_non_alphanumeric': 0.10501750291715285, 'fraction_numerical': 0.0, 'mean_word_length': 2.4021164021164023, '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': '727035', 'n_tokens_mistral': 725, 'n_tokens_neox': 690, 'n_words': 185}