<commit_before>import regex
import unicodedata

from .language_info import get_language_info
from .transliterate import transliterate

MARK_RE = regex.compile(r'[\p{Mn}\N{ARABIC TATWEEL}]', regex.V1)

DIGIT_RE = regex.compile('\d')
MULTI_DIGIT_RE = regex.compile('\d[\d.,]+')


def preprocess_text(text, language):<commit_msg>fix a deprecation warning by using raw strings<commit_after>import regex
import unicodedata

from .language_info import get_language_info
from .transliterate import transliterate

MARK_RE = regex.compile(r'[\p{Mn}\N{ARABIC TATWEEL}]', regex.V1)

DIGIT_RE = regex.compile(r'\d')
MULTI_DIGIT_RE = regex.compile(r'\d[\d.,]+')


def preprocess_text(text, language):
{'fraction_non_alphanumeric': 0.13100436681222707, 'fraction_numerical': 0.002911208151382824, 'mean_word_length': 6.478260869565218, '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': '6237835', 'n_tokens_mistral': 254, 'n_tokens_neox': 244, 'n_words': 52}