<commit_before>#!/bin/env python

""" util functions for polybar news module """

import os

def color_polybar(string, color_envron_var):
	"""
	Return string with color using polybar format, for printing on polybar only,
	second argument is environment variable from $HOME/themes/current_theme
	"""

	color_begin = '%{F' + os.environ[color_envron_var] +  '}'
	color_end = '%{F-}'
	return color_begin + string + color_end<commit_msg>fix docs<commit_after>#!/bin/env python

""" util functions for polybar """

import os

def color_polybar(string, color_envron_var):
	"""
	Return string with color using polybar format, for printing on polybar only,
	second argument is environment variable from $HOME/themes/current_theme
	"""

	color_begin = '%{F' + os.environ[color_envron_var] +  '}'
	color_end = '%{F-}'
	return color_begin + string + color_end
{'fraction_non_alphanumeric': 0.1180637544273908, 'fraction_numerical': 0.0, 'mean_word_length': 5.144927536231884, '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': '5425691', 'n_tokens_mistral': 277, 'n_tokens_neox': 271, 'n_words': 80}