<commit_before>services = []

def collegehumor(self):
    id = self.match.group('collegehumor_id')
    if self.width:
        width = self.width
    else:
        try:
            width = int(self.data['meta']['og:video:width'])
        except:
            width = 640
    if self.height:
        height = self.height
    else:
        try:
            height = int(self.data['meta']['og:video:height'])
        except:
            height = 360<commit_msg>Optimise collegehumor.py<commit_after>services = []

def collegehumor(self):
    id = self.match.group('collegehumor_id')
    width = 640
    height = 360
    if self.width:
        width = self.width
    elif 'og:video:width' in self.data['meta']:
        width = int(self.data['meta']['og:video:width'])
    if self.height:
        height = self.height
    elif 'og:video:height' in self.data['meta']:
        height = int(self.data['meta']['og:video:height'])
{'fraction_non_alphanumeric': 0.14705882352941177, 'fraction_numerical': 0.013071895424836602, 'mean_word_length': 2.3911439114391144, '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': '4611272', 'n_tokens_mistral': 302, 'n_tokens_neox': 289, 'n_words': 56}