<commit_before>import re
import setuptools
import sys


REQUIREMENTS = [
    "kombu>=3.0.12,<4",
    "msgpack-python>=0.4.7,<0.5",
    "six>=1.10.0,<2",
    "statsd>=2.1,<2.2",
]

# Regex matching version pattern
# (3 numerical values separated by `.`, semver style, followed by an optional pre-release marker)
version_pattern = re.compile(r"\d+\.\d+\.\d+([.-][\w_-]+)?")


def get_version():
    with open("CHANGELOG.md", "r") as fn:
        while True:
            version = version_pattern.search(fn.readline())
            if version is not None:
                return "".join(version.group())


if __name__ == "__main__":
    if len(sys.argv) > 1 and sys.argv[1] == "requirements":
        for req in REQUIREMENTS:
            print(req)
        sys.exit(0)

    setuptools.setup(
        name="queue_util",
        version=get_version(),<commit_msg>Upgrade dependencies to latest stable versions<commit_after>import re
import setuptools
import sys


REQUIREMENTS = [
    "kombu>=4.5.0,<4.6",
    "six>=1.14.0,<2",
    "msgpack-python>=0.5.6,<0.6",
    "statsd>=3.3.0,<4",
]

# Regex matching version pattern
# (3 numerical values separated by `.`, semver style, followed by an optional pre-release marker)
version_pattern = re.compile(r"\d+\.\d+\.\d+([.-][\w_-]+)?")


def get_version():
    with open("CHANGELOG.md", "r") as fn:
        while True:
            version = version_pattern.search(fn.readline())
            if version is not None:
                return "".join(version.group())


if __name__ == "__main__":
    if len(sys.argv) > 1 and sys.argv[1] == "requirements":
        for req in REQUIREMENTS:
            print(req)
        sys.exit(0)

    setuptools.setup(
        name="queue_util",
        version=get_version(),
{'fraction_non_alphanumeric': 0.16552119129438717, 'fraction_numerical': 0.026345933562428408, 'mean_word_length': 2.632016632016632, 'pattern_counts': {'":': 4, '<': 11, '<?xml version=': 0, '>': 13, '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': '28895', 'n_tokens_mistral': 622, 'n_tokens_neox': 608, 'n_words': 136}