<commit_before># -*- coding: utf-8 -*-

from django.contrib.gis.geos import Point, MultiPoint
import factory
from factory import django, fuzzy
from test.factories import UserFactory
from test.utils import FuzzyText

from geozones.factories import LocationFactory
from core.factories import SubdomainFactory
from .models import Message


class FuzzyMultiPoint(fuzzy.BaseFuzzyAttribute):
    def fuzz(self):
        p1 = Point(0, 1)
        p2 = Point(2, 4)
        mp = MultiPoint(p1, p2)
        return mp.wkt


class MessageFactory(django.DjangoModelFactory):
    """ Factory for messages. """
    FACTORY_FOR = Message

    title = FuzzyText()<commit_msg>Генератор геоданных вынесен в ядро приложения<commit_after># -*- coding: utf-8 -*-

import factory
from factory import django, fuzzy
from test.factories import UserFactory
from test.utils import FuzzyText

from geozones.factories import LocationFactory
from core.factories import SubdomainFactory
from .models import Message


class MessageFactory(django.DjangoModelFactory):
    """ Factory for messages. """
    FACTORY_FOR = Message

    title = FuzzyText()
{'fraction_non_alphanumeric': 0.08057296329453895, 'fraction_numerical': 0.008952551477170993, 'mean_word_length': 4.128440366972477, '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': '1264288', 'n_tokens_mistral': 340, 'n_tokens_neox': 326, 'n_words': 102}