<commit_before># coding=utf-8

from __future__ import print_function
from string import maketrans
import re


PHONE_REGEX = re.compile(r'^(\+\d+)\.(\d)(\d+)$')


def camel_to_snake(string):
    """Converts camelCaseString to snake_case_string."""
    return re.sub('([A-Z]+)', r'_\1', string).lower()
<commit_msg>Python 3 fix<commit_after># coding=utf-8

from __future__ import print_function
try:
    from string import maketrans
except ImportError:  # Python 3
    maketrans = str.maketrans
import re


PHONE_REGEX = re.compile(r'^(\+\d+)\.(\d)(\d+)$')


def camel_to_snake(string):
    """Converts camelCaseString to snake_case_string."""
    return re.sub('([A-Z]+)', r'_\1', string).lower()

{'fraction_non_alphanumeric': 0.17385057471264367, 'fraction_numerical': 0.008620689655172414, 'mean_word_length': 4.620967741935484, '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': '1960648', 'n_tokens_mistral': 268, 'n_tokens_neox': 250, 'n_words': 57}