<commit_before>import re


def get_cute_device_str(device_name):
    shorts = ["(GTX 980 Ti)",
              "(GTX \d\d\d\d Ti)",
              "(RTX \d\d\d\d Ti)",
              "(RTX \d\d\d\d)",
              "(P100-PCIE)",
              "(P100-SXM2)",
              "(V100-SXM2)",
              "(K20Xm)",
              "(K40c)",
              "(ThunderX2)",
              "(Xeon)(?:\(R\) CPU )(E5-[0-9]{4} v[0-9])",
              "(Core)(?:\(TM\) )(i5-[0-9]{4}[A-Z])",
              "(?:AMD) (Ryzen [0-9] [0-9]{4}[A-Z])",
              "(?:AMD) (Ryzen [0-9] [0-9]{4})",
              "(?:AMD) (EPYC [0-9]{4})",
              "i7-3820",
              "i7-3930K"]
    for short in shorts:
        m = re.search(short, device_name)
        if m:
            found = " ".join(m.groups())
            return found
    return device_name<commit_msg>xeon gold to cute device<commit_after>import re


def get_cute_device_str(device_name):
    shorts = ["(GTX 980 Ti)",
              "(GTX \d\d\d\d Ti)",
              "(RTX \d\d\d\d Ti)",
              "(RTX \d\d\d\d)",
              "(P100-PCIE)",
              "(P100-SXM2)",
              "(V100-SXM2)",
              "(K20Xm)",
              "(K40c)",
              "(ThunderX2)",
              "(Xeon)(?:\(R\) CPU )(E5-[0-9]{4} v[0-9])",
              "(Xeon)(?:\(R\) Gold )([0-9]{4}",  # 'Intel(R)_Xeon(R)_Gold_6148_CPU_@_2.40GHz'
              "(Core)(?:\(TM\) )(i5-[0-9]{4}[A-Z])",
              "(?:AMD) (Ryzen [0-9] [0-9]{4}[A-Z])",
              "(?:AMD) (Ryzen [0-9] [0-9]{4})",
              "(?:AMD) (EPYC [0-9]{4})",
              "i7-3820",
              "i7-3930K"]
    for short in shorts:
        m = re.search(short, device_name)
        if m:
            found = " ".join(m.groups())
            return found
    return device_name
{'fraction_non_alphanumeric': 0.23346303501945526, 'fraction_numerical': 0.06336853807670928, 'mean_word_length': 1.3225806451612903, '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': '2622956', 'n_tokens_mistral': 760, 'n_tokens_neox': 704, 'n_words': 119}