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

import re
import os
from config import Config


def rep(s, subs=[]):
    head, tail = os.path.splitext(s)
    subed = head<commit_msg>deal empty string in gn<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

import re
import os
from config import Config


def rep(s, subs=[]):
    if not s:
        return s
    head, tail = os.path.splitext(s)
    subed = head
{'fraction_non_alphanumeric': 0.14549653579676675, 'fraction_numerical': 0.004618937644341801, 'mean_word_length': 2.875, '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': '3459124', 'n_tokens_mistral': 161, 'n_tokens_neox': 154, 'n_words': 48}