<commit_before>#!/usr/bin/env python
import os
import sys
import re

from setuptools import setup, find_packages


# version = re.compile(r'VERSION\s*=\s*\((.*?)\)')


# def get_package_version():
#     "returns package version without importing it"
#     base = os.path.abspath(os.path.dirname(__file__))
#     with open(os.path.join(base, "tcelery/__init__.py")) as initf:
#         for line in initf:
#             m = version.match(line.strip())
#             if not m:
#                 continue
#             return ".".join(m.groups()[0].split(", "))

def get_package_version():
    version_tuple = __import__('tcelery').VERSION
    version = ".".join([str(v) for v in version_tuple])
    return version

install_requires = ['celery', 'tornado']
dependency_links = []
<commit_msg>Fixed bugs for retrieving version number.<commit_after>#!/usr/bin/env python
import os
import sys
import re

from setuptools import setup, find_packages


# version = re.compile(r'VERSION\s*=\s*\((.*?)\)')


# def get_package_version():
#     "returns package version without importing it"
#     base = os.path.abspath(os.path.dirname(__file__))
#     with open(os.path.join(base, "tcelery/__init__.py")) as initf:
#         for line in initf:
#             m = version.match(line.strip())
#             if not m:
#                 continue
#             return ".".join(m.groups()[0].split(", "))

def get_package_version():
    "returns package version without importing it"
    base = os.path.abspath(os.path.dirname(__file__))
    with open(os.path.join(base, "tcelery/__init__.py")) as initf:
        for line in initf:
            version = re.match('__version__\s*=\s*[\'\"](.+)[\"\']', line).groups(1)[0]
            if not version or not version.strip():
                continue
            return version

install_requires = ['celery', 'tornado']
dependency_links = []

{'fraction_non_alphanumeric': 0.15479378682378148, 'fraction_numerical': 0.0021424745581146223, 'mean_word_length': 2.820040899795501, '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': '7668493', 'n_tokens_mistral': 610, 'n_tokens_neox': 593, 'n_words': 140}