<commit_before>from django.contrib.admin.templatetags.admin_list import result_list
from django import template
from pohledavky.models import Osoba
from pohledavky.utils.tasks import get_osoba_action, get_user_issues
from django.template.loader import render_to_string
from django.utils.html import format_html
register = template.Library()

@register.filter
def list(array):
    """
    """
    ul = u"<ul class=\"list-group\">{0}</ul>"
    li = u"<li class=\"list-group-item\">{0}</li>"
    lis = []
    for value in array:
        lis.append(li.format(value))
    ul = ul.format("".join(lis))
    return format_html(ul)

@register.filter
def line_list(array):
    return ",".join(array)

@register.filter
def form_group(instance, group_fields):
    """
    attribute:: instnace
    attribute:: fields :: ["string"]
    """
    label = u"<label class=\"control-label\" for=\"{0}\">{0}</label>"<commit_msg>space after comma<commit_after>from django.contrib.admin.templatetags.admin_list import result_list
from django import template
from pohledavky.models import Osoba
from pohledavky.utils.tasks import get_osoba_action, get_user_issues
from django.template.loader import render_to_string
from django.utils.html import format_html
register = template.Library()

@register.filter
def list(array):
    """
    """
    ul = u"<ul class=\"list-group\">{0}</ul>"
    li = u"<li class=\"list-group-item\">{0}</li>"
    lis = []
    for value in array:
        lis.append(li.format(value))
    ul = ul.format("".join(lis))
    return format_html(ul)

@register.filter
def line_list(array):
    return ", ".join(array)

@register.filter
def form_group(instance, group_fields):
    """
    attribute:: instnace
    attribute:: fields :: ["string"]
    """
    label = u"<label class=\"control-label\" for=\"{0}\">{0}</label>"
{'fraction_non_alphanumeric': 0.15393073117097306, 'fraction_numerical': 0.0043980208905992305, 'mean_word_length': 4.083798882681564, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '6944047', 'n_tokens_mistral': 594, 'n_tokens_neox': 592, 'n_words': 129}