<commit_before>import logging

log = logging.getLogger("isohunt")

class ResolveBtJunkie:
    """BtJunkie resolver."""

    def register(self, manager, parser):
        manager.register_resolver(instance=self, resolvable=self.resolvable, resolve=self.resolve)

    def resolvable(self, feed, entry):
        url = entry['url']
        if url.startswith('http://btjunkie.org'):
            return True
        else:
            return False
        
    def resolve(self, feed, entry):
        entry['url'] = entry['url'].replace('btjunkie.org', 'dl.btjunkie.org')
        entry['url'] = entry['url'] + "/download.torrent"
        return True
<commit_msg>Fixed logging name<commit_after>import logging

log = logging.getLogger("btjunkie")

class ResolveBtJunkie:
    """BtJunkie resolver."""

    def register(self, manager, parser):
        manager.register_resolver(instance=self, resolvable=self.resolvable, resolve=self.resolve)

    def resolvable(self, feed, entry):
        url = entry['url']
        if url.startswith('http://btjunkie.org'):
            return True
        else:
            return False
        
    def resolve(self, feed, entry):
        entry['url'] = entry['url'].replace('btjunkie.org', 'dl.btjunkie.org')
        entry['url'] = entry['url'] + "/download.torrent"
        return True

{'fraction_non_alphanumeric': 0.13569321533923304, 'fraction_numerical': 0.0, 'mean_word_length': 2.5430809399477807, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4710098', 'n_tokens_mistral': 436, 'n_tokens_neox': 404, 'n_words': 82}