<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
import re
import codecs
from setuptools import setup, find_packages


def read(*parts):
    here = os.path.abspath(os.path.dirname(__file__))
    # intentionally *not* adding an encoding option to open, See:
    #   https://github.com/pypa/virtualenv/issues/201#issuecomment-3145690
    with codecs.open(os.path.join(here, *parts), 'r') as fp:
        return fp.read()


def find_version(*file_paths):
    version_file = read(*file_paths)
    version_match = re.search(r"^VERSION = ['\"]([^'\"]*)['\"]",
                              version_file, re.M)
    if version_match:
        return version_match.group(1)
    raise RuntimeError("Unable to find version string.")


if __name__ == "__main__":
    setup(
        name='numsed',
        version=find_version("numsed", "numsed.py"),
        licence='MIT',
        url='https://github.com/gillesArcas/numsed',
        author='<NAME>',
        author_email='<EMAIL>',
        description='Computing with sed: a compiler from python to sed\n',
        packages=find_packages(),
        data_files=[('', ['LICENSE', 'README.md'])],
        py_package='test.suite.py',
        entry_points={
            'console_scripts': ['numsed = numsed.numsed:numsed_main']
        },
        zip_safe=True,
    )<commit_msg>Includes tests folder in dist.<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
import re
import glob
import codecs
from setuptools import setup, find_packages


def read(*parts):
    here = os.path.abspath(os.path.dirname(__file__))
    # intentionally *not* adding an encoding option to open, See:
    #   https://github.com/pypa/virtualenv/issues/201#issuecomment-3145690
    with codecs.open(os.path.join(here, *parts), 'r') as fp:
        return fp.read()


def find_version(*file_paths):
    version_file = read(*file_paths)
    version_match = re.search(r"^VERSION = ['\"]([^'\"]*)['\"]",
                              version_file, re.M)
    if version_match:
        return version_match.group(1)
    raise RuntimeError("Unable to find version string.")


if __name__ == "__main__":
    setup(
        name='numsed',
        version=find_version("numsed", "numsed.py"),
        licence='MIT',
        url='https://github.com/GillesArcas/numsed',
        author='<NAME>',
        author_email='<EMAIL>',
        description='Computing with sed: a compiler from python to sed\n',
        packages=find_packages(),
        entry_points={
            'console_scripts': ['numsed = numsed.numsed:numsed_main']
        },
        zip_safe=True,
        include_package_data=True,
        data_files=[
           ('Lib/site-packages/numsed', ['README.md', 'LICENSE'] + glob.glob('tests/*.*')),
        ]
    )
{'fraction_non_alphanumeric': 0.15256688358640635, 'fraction_numerical': 0.008676789587852495, 'mean_word_length': 2.7544097693351426, 'pattern_counts': {'":': 2, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, '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': '5718126', 'n_tokens_mistral': 892, 'n_tokens_neox': 870, 'n_words': 178}