<commit_before>from random import randint
from .models import JednostkaAdministracyjna as JST
from .models import Category


def factory_jst():
    category = Category.objects.create(name="X", level=1)
    return JST.objects.create(name="X", id=randint(0, 1000),
                              category=category,
                              updated_on='2015-05-12',<commit_msg>Drop randomity in teryt.factory, use counter by global variable<commit_after>from .models import JednostkaAdministracyjna as JST
from .models import Category

TERYT_COUNTER = 0


def factory_jst():
    global TERYT_COUNTER
    TERYT_COUNTER += 1
    category = Category.objects.create(name="X", level=1)
    return JST.objects.create(name="X", id=TERYT_COUNTER,
                              category=category,
                              updated_on='2015-05-12',
{'fraction_non_alphanumeric': 0.09252669039145907, 'fraction_numerical': 0.02965599051008304, 'mean_word_length': 2.7017543859649122, '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': '4402604', 'n_tokens_mistral': 266, 'n_tokens_neox': 248, 'n_words': 58}