<commit_before>import sys
import platform
from setuptools import setup, Extension

cpython = platform.python_implementation() == 'CPython'
is_glibc = platform.libc_ver()[0] == 'glibc'
libc_ok = is_glibc and platform.libc_ver()[1] >= '2.9'
windows = sys.platform.startswith('win')
min_win_version = windows and sys.version_info >= (3, 5)
min_unix_version = not windows and sys.version_info >= (3, 3)

if cpython and ((min_unix_version and libc_ok) or min_win_version):
    _cbor2 = Extension(<commit_msg>Fix glibc version detect string<commit_after>import sys
import platform
from setuptools import setup, Extension

cpython = platform.python_implementation() == 'CPython'
is_glibc = platform.libc_ver()[0] == 'glibc'
if is_glibc:
    glibc_ver = platform.libc_ver()[1]
    libc_numeric = tuple(int(x) for x in glibc_ver.split('.') if x.isdigit())
    libc_ok = libc_numeric >= (2, 9)
else:
    libc_ok = False
windows = sys.platform.startswith('win')
min_win_version = windows and sys.version_info >= (3, 5)
min_unix_version = not windows and sys.version_info >= (3, 3)

if cpython and ((min_unix_version and libc_ok) or min_win_version):
    _cbor2 = Extension(
{'fraction_non_alphanumeric': 0.12048192771084337, 'fraction_numerical': 0.01549053356282272, 'mean_word_length': 5.461111111111111, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '5020258', 'n_tokens_mistral': 428, 'n_tokens_neox': 409, 'n_words': 107}