<commit_before># coding: utf-8

import factory
import random

from .models import Location, Region


class RegionFactory(factory.Factory):
    FACTORY_FOR = Region

    name = factory.Sequence(lambda n: "Region_%s" % n)
    slug = factory.LazyAttribute(lambda a: a.name.lower())
    latitude = random.uniform(-90.0, 90.0)
    longtitude = random.uniform(-180.0, 180.0)
    zoom = random.randint(1, 10)
    order = factory.Sequence(lambda n: n)


class LocationFactory(factory.Factory):
    FACTORY_FOR = Location

    latitude = random.uniform(-90.0, 90.0)
    longtitude = random.uniform(-180.0, 180.0)
    name = factory.Sequence(lambda n: "Location_%s" % n)
    regionId = factory.SubFactory(RegionFactory)<commit_msg>Fix typo in factories field name<commit_after># coding: utf-8

import factory
import random

from .models import Location, Region


class RegionFactory(factory.Factory):
    FACTORY_FOR = Region

    name = factory.Sequence(lambda n: "Region_%s" % n)
    slug = factory.LazyAttribute(lambda a: a.name.lower())
    latitude = random.uniform(-90.0, 90.0)
    longitude = random.uniform(-180.0, 180.0)
    zoom = random.randint(1, 10)
    order = factory.Sequence(lambda n: n)


class LocationFactory(factory.Factory):
    FACTORY_FOR = Location

    latitude = random.uniform(-90.0, 90.0)
    longitude = random.uniform(-180.0, 180.0)
    name = factory.Sequence(lambda n: "Location_%s" % n)
    regionId = factory.SubFactory(RegionFactory)
{'fraction_non_alphanumeric': 0.1247429746401645, 'fraction_numerical': 0.04386566141192598, 'mean_word_length': 3.7096774193548385, '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': '3267444', 'n_tokens_mistral': 524, 'n_tokens_neox': 477, 'n_words': 114}