<commit_before># coding=utf-8
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

"""Helper functions involving Mercurial (hg).
"""

from __future__ import absolute_import, print_function, unicode_literals

import configparser
import os
import re
import sys
import subprocess

from . import subprocesses as sps


try:
    input = raw_input  # pylint: disable=invalid-name,raw_input-builtin,redefined-builtin
except NameError:
    pass


def destroyPyc(repoDir):  # pylint: disable=invalid-name,missing-docstring
    # This is roughly equivalent to ['hg', 'purge', '--all', '--include=**.pyc'])<commit_msg>Use input from the builtins library for cleaner code.<commit_after># coding=utf-8
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

"""Helper functions involving Mercurial (hg).
"""

from __future__ import absolute_import, print_function, unicode_literals

import configparser
import os
import re
import sys
import subprocess

from builtins import input  # pylint: disable=redefined-builtin

from . import subprocesses as sps


def destroyPyc(repoDir):  # pylint: disable=invalid-name,missing-docstring
    # This is roughly equivalent to ['hg', 'purge', '--all', '--include=**.pyc'])
{'fraction_non_alphanumeric': 0.10180843938379103, 'fraction_numerical': 0.006697923643670462, 'mean_word_length': 4.492647058823529, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6487643', 'n_tokens_mistral': 466, 'n_tokens_neox': 446, 'n_words': 171}