<commit_before>import json

def infer_publisher_code_callback(body):
    args = json.loads(body)

    url = args["url"]
    code = url.split('/')[2].split('.')[-3]
    title = code.title()

    args["publisher_name"] = {
        "code": code,
        "title": title
        }

    return [ ("pubnamed", args) ]<commit_msg>get key name right<commit_after>import json

def infer_publisher_code_callback(body):
    args = json.loads(body)

    url = args["link_href"]
    code = url.split('/')[2].split('.')[-3]
    title = code.title()

    args["publisher_name"] = {
        "code": code,
        "title": title
        }

    return [ ("pubnamed", args) ]
{'fraction_non_alphanumeric': 0.17709923664122137, 'fraction_numerical': 0.0061068702290076335, 'mean_word_length': 2.6853932584269664, 'pattern_counts': {'":': 4, '<': 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': '7020924', 'n_tokens_mistral': 224, 'n_tokens_neox': 221, 'n_words': 43}