<commit_before>class DoubleDict(dict):
    def __init__(self, *args, **kwargs):
        dict.__init__(self, *args, **kwargs)
        self._rev = {v: k for k, v in self.items()}

    def values(self):
        return self._rev.keys()

    def hasvalue(self, v):
        return v in self._rev

    def byvalue(self, v):
        return self._rev[v]

    def byvalue_get(self, v):
        return self._rev.get(v)

    def __setitem__(self, k, v):
        if v in self._rev and self._rev[v] != k:
            raise ValueAlreadyAssociated("Value %r already associated with another key %r" % (v, k))
        dict.__setitem__(self, k, v)
        self._rev[v] = k

    def __delitem__(self, k):
        v = dict.pop(self, k)
        del self._rev[v]
        return v

    def pop(self, k):<commit_msg>Avoid dict comprehensions to keep rope happy<commit_after>class DoubleDict(dict):
    def __init__(self, *args, **kwargs):
        dict.__init__(self, *args, **kwargs)
        self._rev = dict((v, k) for k, v in self.items())

    def values(self):
        return self._rev.keys()

    def hasvalue(self, v):
        return v in self._rev

    def byvalue(self, v):
        return self._rev[v]

    def byvalue_get(self, v):
        return self._rev.get(v)

    def __setitem__(self, k, v):
        if v in self._rev and self._rev[v] != k:
            raise ValueAlreadyAssociated("Value %r already associated with another key %r" % (v, k))
        dict.__setitem__(self, k, v)
        self._rev[v] = k

    def __delitem__(self, k):
        v = dict.pop(self, k)
        del self._rev[v]
        return v

    def pop(self, k):
{'fraction_non_alphanumeric': 0.13094502779493514, 'fraction_numerical': 0.0, 'mean_word_length': 2.272727272727273, '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': '5791166', 'n_tokens_mistral': 549, 'n_tokens_neox': 533, 'n_words': 161}