<commit_before># -*- coding: utf-8 -*-

"""Qt utilities."""

# -----------------------------------------------------------------------------
# Imports
# -----------------------------------------------------------------------------

import os
import sys
import contextlib

from ..ext.six import wraps
from ..utils._misc import _is_interactive
from ..utils.logging import info, warn


# -----------------------------------------------------------------------------
# PyQt import
# -----------------------------------------------------------------------------

_PYQT = False
try:
    from PyQt4 import QtCore, QtGui, QtWebKit  # noqa
    from PyQt4.QtGui import QMainWindow
    _PYQT = True
except ImportError:
    try:
        from PyQt5 import QtCore, QtGui, QtWebKit  # noqa
        from PyQt5.QtGui import QMainWindow
        _PYQT = True
    except ImportError:
        pass
<commit_msg>Import Qt.<commit_after># -*- coding: utf-8 -*-

"""Qt utilities."""

# -----------------------------------------------------------------------------
# Imports
# -----------------------------------------------------------------------------

import os
import sys
import contextlib

from ..ext.six import wraps
from ..utils._misc import _is_interactive
from ..utils.logging import info, warn


# -----------------------------------------------------------------------------
# PyQt import
# -----------------------------------------------------------------------------

_PYQT = False
try:
    from PyQt4 import QtCore, QtGui, QtWebKit  # noqa
    from PyQt4.QtGui import QMainWindow
    Qt = QtCore.Qt
    _PYQT = True
except ImportError:
    try:
        from PyQt5 import QtCore, QtGui, QtWebKit  # noqa
        from PyQt5.QtGui import QMainWindow
        _PYQT = True
    except ImportError:
        pass

{'fraction_non_alphanumeric': 0.4007803790412486, 'fraction_numerical': 0.005574136008918618, 'mean_word_length': 0.9075451647183846, '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': '451617', 'n_tokens_mistral': 416, 'n_tokens_neox': 401, 'n_words': 127}