<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
#


"""
:module: mom.string
:synopsis: string module compatibility.

"""

from __future__ import absolute_import

from string import punctuation, printable, whitespace

ascii_uppercase = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
ascii_lowercase = "abcdefghijklmnopqrstuvwxyz"
ascii_letters = ascii_lowercase + ascii_uppercase
digits = "0123456789"

punctuation = punctuation
printable = printable
whitespace = whitespace
<commit_msg>Don't use deprecated string module.<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
#


"""
:module: mom.string
:synopsis: string module compatibility.

"""

from __future__ import absolute_import

ascii_uppercase = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
ascii_lowercase = "abcdefghijklmnopqrstuvwxyz"
ascii_letters = ascii_lowercase + ascii_uppercase
digits = "0123456789"

punctuation = '!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~'
printable = '0123456789abcdefghijklmnopqrstuvwxyz\
ABCDEFGHIJKLMNOPQRSTUVWXYZ!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~ \t\n\r\x0b\x0c'
whitespace = '\t\n\x0b\x0c\r '

{'fraction_non_alphanumeric': 0.16526610644257703, 'fraction_numerical': 0.03361344537815126, 'mean_word_length': 5.7421383647798745, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3983603', 'n_tokens_mistral': 481, 'n_tokens_neox': 422, 'n_words': 69}