<commit_before>"""Reference chat client for hangups."""

import appdirs
import asyncio
import configargparse
import contextlib
import logging
import os
import sys
import urwid
import readlike

import hangups
from hangups.ui.notify import Notifier
from hangups.ui.utils import get_conv_name
from hangups.ui.utils import add_color_to_scheme


LOG_FORMAT = '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
COL_SCHEMES = {<commit_msg>Abort if hangups-urwid is still installed<commit_after>"""Reference chat client for hangups."""

import appdirs
import asyncio
import configargparse
import contextlib
import logging
import os
import sys
import urwid
import readlike

import hangups
from hangups.ui.notify import Notifier
from hangups.ui.utils import get_conv_name
from hangups.ui.utils import add_color_to_scheme


# hangups used to require a fork of urwid called hangups-urwid which may still
# be installed and create a conflict with the 'urwid' package name. See #198.
if urwid.__version__ == '1.2.2-dev':
    sys.exit('error: hangups-urwid package is installed\n\n'
             'Please uninstall hangups-urwid and urwid, and reinstall '
             'hangups.')


LOG_FORMAT = '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
COL_SCHEMES = {
{'fraction_non_alphanumeric': 0.08452950558213716, 'fraction_numerical': 0.004784688995215311, 'mean_word_length': 4.653153153153153, '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': '4516215', 'n_tokens_mistral': 403, 'n_tokens_neox': 397, 'n_words': 133}