<commit_before>from billy.importers.filters import phone_filter

def test_phone_filter():
    number = "555-606-0842"
    numbers = [
        "(555)-606-0842",
        "(555) 606-0842",
        "(555) 606 0842",
        "555.606.0842",
        "555 606.0842",
        "555 606 0842",
        "555-606-0842"
    ]
    for num in numbers:
        assert phone_filter(num) == number
<commit_msg>Adding in a country code checker<commit_after>from billy.importers.filters import phone_filter

def test_phone_filter():
    number = "555-606-0842"
    numbers = [
        "(555)-606-0842",
        "(555) 606-0842",
        "(555) 606 0842",
        "555.606.0842",
        "555 606.0842",
        "555 606 0842",
        "555-606-0842"
    ]
    for num in numbers:
        assert phone_filter(num) == number


def test_phone_filter_country():
    number = "1-555-606-0842"
    numbers = [
        "+1-(555)-606-0842",
        "+1 (555) 606-0842"
    ]
    for num in numbers:
        assert phone_filter(num) == number

{'fraction_non_alphanumeric': 0.14003944773175542, 'fraction_numerical': 0.1903353057199211, 'mean_word_length': 2.0757575757575757, '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': '5091838', 'n_tokens_mistral': 481, 'n_tokens_neox': 349, 'n_words': 79}