<commit_before>import logging

logging.basicConfig(level=logging.INFO)
log = logging.getLogger(__name__)

# Handle "<actions/>"
def handle_actions(top):
    # Nothing to do if it's empty.
    # Otherwise...
    if list(top) and len(list(top)) > 0:
        raise NotImplementedError, "Don't know how to handle a non-empty <actions> element."


# Handle "<description>my cool job</description>"
def handle_description(top):
    return [['description', top.text]]

# Handle "<keepDependencies>false</keepDependencies>"
def handle_keepdependencies(top):
    return [['keep-dependencies', top.text == 'true']]

# Handle "<properties>..."
def handle_properties(top):
    properties = []
    parameters = []
    for child in top:
        # GitHub<commit_msg>handlers: JJB hardcodes <keepDependencies> to false<commit_after>import logging

logging.basicConfig(level=logging.INFO)
log = logging.getLogger(__name__)

# Handle "<actions/>"
def handle_actions(top):
    # Nothing to do if it's empty.
    # Otherwise...
    if list(top) and len(list(top)) > 0:
        raise NotImplementedError, "Don't know how to handle a non-empty <actions> element."


# Handle "<description>my cool job</description>"
def handle_description(top):
    return [['description', top.text]]

# Handle "<keepDependencies>false</keepDependencies>"
def handle_keepdependencies(top):
    # JJB cannot handle any other value than false, here.
    # There is no corresponding YAML option.
    return None

# Handle "<properties>..."
def handle_properties(top):
    properties = []
    parameters = []
    for child in top:
        # GitHub
{'fraction_non_alphanumeric': 0.12905236907730674, 'fraction_numerical': 0.0012468827930174563, 'mean_word_length': 4.047169811320755, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 20, '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': '2252522', 'n_tokens_mistral': 475, 'n_tokens_neox': 453, 'n_words': 138}