<commit_before>import re
import setuptools


def match(x):
    # ignore comments
    if re.search(r'(^\s*#)', x):
        return False
    return True


def replace(x):
    match_replace = re.search(r'egg=(.*)', x)
    if match_replace:
        return match_replace.group(1)
    return x


with open('requirements.txt') as f:
    required = [replace(x) for x in f.read().splitlines()
                if match(x)]

with open('VERSION') as f:
    version = f.read().strip()

setuptools.setup(
    name='sugarcoat',
    version=version,
    description='Sugarcoat',
    long_description='Easier to consume APIs.',
    author='<NAME>',
    author_email='<EMAIL>',
    url='https://github.com/badcure/sugarcoat/',
    packages=setuptools.find_packages() + ['sugarcoat.api.templates'],
    include_package_data=True,
    package_data={'sugarcoat': ['api/templates/*', 'api/static/*'], },
    zip_safe=False,
    install_requires=required,
)<commit_msg>FIxing setup.py with the new code.<commit_after>import re
import setuptools


def match(x):
    # ignore comments
    if re.search(r'(^\s*#)', x):
        return False
    return True


def replace(x):
    match_replace = re.search(r'egg=(.*)', x)
    if match_replace:
        return match_replace.group(1)
    return x


with open('requirements.txt') as f:
    required = [replace(x) for x in f.read().splitlines()
                if match(x)]

with open('VERSION') as f:
    version = f.read().strip()

setuptools.setup(
    name='sugarcoat',
    version=version,
    description='Sugarcoat',
    long_description='Easier to consume APIs.',
    author='<NAME>',
    author_email='<EMAIL>',
    url='https://github.com/badcure/sugarcoat/',
    packages=setuptools.find_packages() + ['sugarcoat.api.templates'],
    include_package_data=True,
    package_data={'sugarcoat': ['api/templates/*', 'api/static/*', 'api/static/js/*', 'api/static/css/*',
                                'api/static/fonts/*'], },
    zip_safe=False,
    install_requires=required,
)
{'fraction_non_alphanumeric': 0.16101694915254236, 'fraction_numerical': 0.0009970089730807576, 'mean_word_length': 3.18125, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1604928', 'n_tokens_mistral': 683, 'n_tokens_neox': 661, 'n_words': 134}