<commit_before>import os
import sys
import shutil
import asyncio
import logging
import re
import traceback
from aiohttp import web

log = logging.getLogger(__name__)
VENV_NAME = 'env'

# This regex should match a PEP427 compliant wheel filename and extract its
# version into separate groups. Groups 1, 2, 3, and 4 should be the major,
# minor, patch, and tag respectively. The tag capture group is optional
WHEEL_VERSION_RE = re.compile('^[\w]+-([\d]+).([\d]+).([\d]+)([\w.]+)?-.*\.whl') # noqa
FIRST_PROVISIONED_VERSION = (3, 3, 0)


def _version_less(version_a, version_b):
    """ Takes two version as (major, minor, patch) tuples and returns a <= b.
    """
    if version_a[0] > version_b[0]:
        return False
    elif version_a[0] < version_b[0]:
        return True
    else:
        if version_a[1] > version_b[1]:
            return False
        elif version_a[1] < version_b[1]:
            return True<commit_msg>refactor(update-server): Make regex string raw. (#4670)<commit_after>import os
import sys
import shutil
import asyncio
import logging
import re
import traceback
from aiohttp import web

log = logging.getLogger(__name__)
VENV_NAME = 'env'

# This regex should match a PEP427 compliant wheel filename and extract its
# version into separate groups. Groups 1, 2, 3, and 4 should be the major,
# minor, patch, and tag respectively. The tag capture group is optional
WHEEL_VERSION_RE = re.compile(r'^[\w]+-([\d]+).([\d]+).([\d]+)([\w.]+)?-.*\.whl') # noqa
FIRST_PROVISIONED_VERSION = (3, 3, 0)


def _version_less(version_a, version_b):
    """ Takes two version as (major, minor, patch) tuples and returns a <= b.
    """
    if version_a[0] > version_b[0]:
        return False
    elif version_a[0] < version_b[0]:
        return True
    else:
        if version_a[1] > version_b[1]:
            return False
        elif version_a[1] < version_b[1]:
            return True
{'fraction_non_alphanumeric': 0.12401471361008934, 'fraction_numerical': 0.021019442984760904, 'mean_word_length': 3.36697247706422, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '119276', 'n_tokens_mistral': 651, 'n_tokens_neox': 617, 'n_words': 208}