<commit_before>import re
from pybtex import utils

is_terminated = re.compile(r'.*[.?!][{}\s]*$')
dash_re = re.compile(r'-')
ndash = '--'

def emph(s):
    return r"\emph{%s}" % s

def it(s):
    return r"\textit{%s}" %s

def bf(s):
    return r"\textbf{%s}"

def sc(s):
    return r"\textsc{%s}"

def add_period(s):
    if is_terminated.match(s.split()[-1]) is None:
        return s + "."
    else:
        return s

def dashify(s):
    return ndash.join(dash_re.split(s))
<commit_msg>removed add_period function (use the one from utils.py instead)<commit_after>import re
from pybtex import utils

dash_re = re.compile(r'-')
ndash = '--'

def emph(s):
    return r"\emph{%s}" % s

def it(s):
    return r"\textit{%s}" %s

def bf(s):
    return r"\textbf{%s}"

def sc(s):
    return r"\textsc{%s}"

def dashify(s):
    return ndash.join(dash_re.split(s))

{'fraction_non_alphanumeric': 0.1927570093457944, 'fraction_numerical': 0.0011682242990654205, 'mean_word_length': 3.263681592039801, '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': '1991203', 'n_tokens_mistral': 356, 'n_tokens_neox': 344, 'n_words': 83}