<commit_before>"""
A widget for Music Player Daemon (MPD) based on python-mpd2.

This widget exists since python-mpd library is no longer supported.
"""
from libqtile.widget import base
from libqtile.log_utils import logger

from socket import error as socket_error
from mpd import MPDClient, ConnectionError, CommandError
from collections import defaultdict
from cgi import escape<commit_msg>replace cgi.escape with html.escape in mpd2 widget<commit_after>"""
A widget for Music Player Daemon (MPD) based on python-mpd2.

This widget exists since python-mpd library is no longer supported.
"""
from libqtile.widget import base
from libqtile.log_utils import logger

from socket import error as socket_error
from mpd import MPDClient, ConnectionError, CommandError
from collections import defaultdict
from html import escape
{'fraction_non_alphanumeric': 0.04854368932038835, 'fraction_numerical': 0.0036407766990291263, 'mean_word_length': 5.7073170731707314, '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': '1855375', 'n_tokens_mistral': 219, 'n_tokens_neox': 218, 'n_words': 103}