<commit_before># -*- encoding: utf-8 -*-
from django import template


register = template.Library()


@register.inclusion_tag('block/_add.html')
def block_add(url, caption="", return_path=None):
    return dict(url=url, caption=caption, return_path=return_path)


@register.inclusion_tag('block/_moderate.html')
def block_moderate(generic_content, can_remove=True, caption="", return_path=None):
    return dict(c=generic_content, can_remove=can_remove, caption=caption, return_path=return_path)


@register.inclusion_tag('block/_status.html')
def block_status(generic_content):
    return dict(c=generic_content)
<commit_msg>Pep 8<commit_after># -*- encoding: utf-8 -*-
from django import template

register = template.Library()


@register.inclusion_tag('block/_add.html')
def block_add(url, caption="", return_path=None):
    return dict(url=url, caption=caption, return_path=return_path)


@register.inclusion_tag('block/_moderate.html')
def block_moderate(
        generic_content, can_remove=True, caption="", return_path=None):
    return dict(
        c=generic_content, can_remove=can_remove, caption=caption,
        return_path=return_path
    )


@register.inclusion_tag('block/_status.html')
def block_status(generic_content):
    return dict(c=generic_content)

{'fraction_non_alphanumeric': 0.12852664576802508, 'fraction_numerical': 0.0023510971786833857, 'mean_word_length': 6.255681818181818, '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': '4869788', 'n_tokens_mistral': 421, 'n_tokens_neox': 396, 'n_words': 71}