<commit_before>from .bridge import WifiBridge

from .bridge import get_bridge
from .actions import fade_brightness
from .actions import fade_color
from .actions import set_color
from .actions import set_brightness
<commit_msg>Added helper function to pretty print a byte array<commit_after>from .bridge import WifiBridge

from .bridge import get_bridge
from .actions import fade_brightness
from .actions import fade_color
from .actions import set_color
from .actions import set_brightness
from .actions import set_on
from .actions import set_off

def pprint_bytearray(h):
    s = []
    for i in h:
        s.append(hex(i).replace('0x',''))
    return ' '.join(s)
    
{'fraction_non_alphanumeric': 0.06736526946107785, 'fraction_numerical': 0.0014970059880239522, 'mean_word_length': 4.483606557377049, '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': '2120867', 'n_tokens_mistral': 199, 'n_tokens_neox': 192, 'n_words': 74}