<commit_before>#!/usr/bin/python

"""Translates a string of whitespace-separated integers to CP437 characters"""

import sys
s = sys.stdin.read()
print ''.join(map(lambda x:chr(int(x)),s.split()))<commit_msg>translate.py works with hex values now<commit_after>#!/usr/bin/python

"""Translates a string of hex values to CP437 characters. Characters not in [0-9A-F] are ignored"""

import sys, re
s = sys.stdin.read()
s=re.sub(r"[^0-9A-F]","",s)
r=''
i=0
while i < len(s):
    r = chr(int(s[i:i+2],16))
    i+=2
print r
{'fraction_non_alphanumeric': 0.18762088974854932, 'fraction_numerical': 0.029013539651837523, 'mean_word_length': 4.820224719101123, 'pattern_counts': {'":': 0, '<': 4, '<?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': '2300716', 'n_tokens_mistral': 212, 'n_tokens_neox': 201, 'n_words': 53}