<commit_before># <NAME> <<EMAIL>>
import pandas as pd

##__________________________________________________________________||
def sumOverCategories(tbl, categories, variables):
    import logging
    logging.warning('the function "{}" is renamed "{}"'.format(
        "sumOverCategories", "sum_over_categories")
    )
    return sum_over_categories(tbl, categories, variables)

##__________________________________________________________________||
def sum_over_categories(tbl, categories, variables):

    if categories is None: categories = ()

    variables = tuple([v for v in variables if v in tbl.columns.values])

    factor_names = [c for c in tbl.columns if c not in categories + variables]

    if len(factor_names) == 0:

        # group by dummy index [1, 1, ...]<commit_msg>remove sumOverCategories(), replaced with sum_over_categories()<commit_after># <NAME> <<EMAIL>>
import pandas as pd

##__________________________________________________________________||
def sum_over_categories(tbl, categories, variables):

    if categories is None: categories = ()

    variables = tuple([v for v in variables if v in tbl.columns.values])

    factor_names = [c for c in tbl.columns if c not in categories + variables]

    if len(factor_names) == 0:

        # group by dummy index [1, 1, ...]
{'fraction_non_alphanumeric': 0.1037663335895465, 'fraction_numerical': 0.004611837048424289, 'mean_word_length': 4.564102564102564, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '5916117', 'n_tokens_mistral': 343, 'n_tokens_neox': 317, 'n_words': 115}