<commit_before># -*- coding: utf-8 -*-
#!/usr/bin/python3

import matplotlib.pyplot as plt

# class Viewer(plt):
#     """
#     """
#     def __init__(self, xdata, ydata):
#         self.xdata= xdata;
#         self.ydata= ydata;<commit_msg>add: color tag wrapper<commit_after># -*- coding: utf-8 -*-
#!/usr/bin/python3

import matplotlib.pyplot as plt
from config import bcolors

def msg_execute(context, pre='', suf=''):
	print(bcolors.OKBLUE + pre + context + suf + bcolors.ENDC)
def msg_success(context, pre='', suf=''):
	print(bcolors.OKGREEN + pre + context + suf + bcolors.ENDC)
def msg_warning(context, pre='', suf=''):
	print(bcolors.WARNING + pre + context + suf + bcolors.ENDC)
def msg_fail(context, pre='', suf=''):
	print(bcolors.FAIL + pre + context + suf + bcolors.ENDC)
def msg_header(context, pre='', suf=''):
	print(bcolors.HEADER + pre + context + suf + bcolors.ENDC)
def msg_bold(context, pre='', suf=''):
	print(bcolors.BOLD + pre + context + suf + bcolors.ENDC)
def msg_underline(context, pre='', suf=''):
	print(bcolors.UNDERLINE + pre + context + suf + bcolors.ENDC)

def show_sleepCycle(device, pre='', suf=''):
	for i in device:
		if type(i) is list:
			for j in i:
				msg_execute("%s.sleepCycle = %d" % (type(j).__name__ + str(j.id), j.sleepCycle), pre=pre, suf=suf)
		else:
			msg_execute("%s.sleepCycle = %d" % (type(j).__name__ + str(i.id), i.sleepCycle), pre=pre, suf=suf)
{'fraction_non_alphanumeric': 0.18576512455516014, 'fraction_numerical': 0.0028469750889679717, 'mean_word_length': 4.226765799256506, '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': '601663', 'n_tokens_mistral': 556, 'n_tokens_neox': 527, 'n_words': 126}