<commit_before>from .model import Model

class Record(Model, object):

    def __init__(self, request, domain, attributes):
        self.request = request
        self.domain  = domain

        super(Record, self).__init__(request, attributes)

    def update(self, attributes):
        success = False

        self.assign(attributes)

        response = self.request.put(
            'domains/{0}/records/{1}'.format(self.domain.name, self.id),
            {'record': attributes}
        )

        return response.was_successful()

    def delete(self):
        response = self.request.delete('domains/{0}/records/{1}'.format(self.domain.name, self.id))
        return response.was_successful()<commit_msg>Don't double assign `request` in `Record`<commit_after>from .model import Model

class Record(Model, object):

    def __init__(self, request, domain, attributes):
        self.domain  = domain

        super(Record, self).__init__(request, attributes)

    def update(self, attributes):
        success = False

        self.assign(attributes)

        response = self.request.put(
            'domains/{0}/records/{1}'.format(self.domain.name, self.id),
            {'record': attributes}
        )

        return response.was_successful()

    def delete(self):
        response = self.request.delete('domains/{0}/records/{1}'.format(self.domain.name, self.id))
        return response.was_successful()
{'fraction_non_alphanumeric': 0.12932862190812722, 'fraction_numerical': 0.005653710247349823, 'mean_word_length': 2.6875, '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': '7176141', 'n_tokens_mistral': 399, 'n_tokens_neox': 385, 'n_words': 82}