<commit_before>from django.template import Template, Context
from django.test import TestCase


class KickassTestCase(TestCase):
    def test_basic(self):
        tmpl = Template("""{% load test_tags %}{% test_tag_1 for "alex" %}""")
        self.assertEqual(tmpl.render(Context()), "alex")
        
        tmpl = Template("""{% load test_tags %}{% test_tag_1 for "brian" as name %}""")
        context = Context()
        tmpl.render(context)
        self.assertEqual(context["name"], "brian")<commit_msg>Added another test.<commit_after>from django.template import Template, Context
from django.test import TestCase


class KickassTestCase(TestCase):
    def test_basic(self):
        tmpl = Template("""{% load test_tags %}{% test_tag_1 for "alex" %}""")
        self.assertEqual(tmpl.render(Context()), "alex")
        
        tmpl = Template("""{% load test_tags %}{% test_tag_1 for "brian" as name %}""")
        context = Context()
        tmpl.render(context)
        self.assertEqual(context["name"], "brian")
        
        tmpl = Template("""{% load test_tags %}{% test_tag_1 for variable %}""")
        context = Context({"variable": [1, 2, 3]})
        self.assertEqual(tmpl.render(context), "[1, 2, 3]")
{'fraction_non_alphanumeric': 0.16134316134316135, 'fraction_numerical': 0.009009009009009009, 'mean_word_length': 3.3487544483985765, 'pattern_counts': {'":': 1, '<': 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': '6326504', 'n_tokens_mistral': 387, 'n_tokens_neox': 364, 'n_words': 89}