<commit_before>from django import template

register = template.Library()

# http://www.djangosnippets.org/snippets/379/

@register.filter
def in_list(value,arg):
   return value in arg
<commit_msg>Added a docstring to the in_list template filter.<commit_after>from django import template

register = template.Library()

# http://www.djangosnippets.org/snippets/379/

@register.filter
def in_list(value, arg):
    """
    Tests if value is in arg.
    """
    return value in arg

{'fraction_non_alphanumeric': 0.10833333333333334, 'fraction_numerical': 0.0125, 'mean_word_length': 4.117021276595745, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3304657', 'n_tokens_mistral': 162, 'n_tokens_neox': 151, 'n_words': 42}