<commit_before>import six
from collections import defaultdict


class Aliases(object):
    def __init__(self, aliases):
        self.aliases = aliases
        self.priorities = {k: i for i, k in enumerate(aliases)}

    def key_priority(self, key):
        return self.priorities.get(key, len(self.priorities))

    def get(self, key):
        return self.aliases.get(key)

    def replace(self, components):
        replacements = defaultdict(list)<commit_msg>[fix] default option for Aliases.get<commit_after>import six
from collections import defaultdict


class Aliases(object):
    def __init__(self, aliases):
        self.aliases = aliases
        self.priorities = {k: i for i, k in enumerate(aliases)}

    def key_priority(self, key):
        return self.priorities.get(key, len(self.priorities))

    def get(self, key, default=None):
        return self.aliases.get(key, default)

    def replace(self, components):
        replacements = defaultdict(list)
{'fraction_non_alphanumeric': 0.10330578512396695, 'fraction_numerical': 0.0, 'mean_word_length': 3.364864864864865, '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': '3824138', 'n_tokens_mistral': 304, 'n_tokens_neox': 285, 'n_words': 79}