<commit_before>.. highlight:: python

:mod:`pyg.utils` --- Utility functions
======================================

.. module:: pyg.utils
    :synopsis: Utility functions

.. moduleauthor:: <NAME> <<EMAIL>>
.. sectionauthor:: <NAME> <<EMAIL>>


This module defines some constants:

.. data:: USER_SITE

    Path to the user site directory for the current Python version or None.

.. data:: INSTALL_DIR

    Path to eggs installation directory. On Python 2.7 it is equivalent to::

        import site
        site.getsitepackages()[0]

    On Python 2.6 it is quite more complicated, and if the process fails, this constant will be set to::

        from distutils.sysconfig import get_python_lib
        INSTALL_DIR = get_python_lib()

.. data:: EASY_INSTALL

    Path to :file:`easy_install.pth` file. If it does not exist, will be created.

.. data:: PYG_LINKS

    A Pyg's :file:`.pth` file under :data:`USER_SITE`.

.. data:: BIN

    Path to the directory which contains scripts.<commit_msg>Fixed locations.rst<commit_after>.. highlight:: python

:mod:`pyg.utils` --- Utility functions
======================================

.. module:: pyg.utils
    :synopsis: Utility functions

.. moduleauthor:: <NAME> <<EMAIL>>
.. sectionauthor:: <NAME> <<EMAIL>>


{'fraction_non_alphanumeric': 0.17525773195876287, 'fraction_numerical': 0.003965107057890563, 'mean_word_length': 3.5232974910394264, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '762844', 'n_tokens_mistral': 385, 'n_tokens_neox': 360, 'n_words': 127}