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

import factory

from django.contrib.gis.geos import Point

from .models import User

class UserFactory(factory.django.DjangoModelFactory):
    class Meta:
        model = User  # Equivalent to ``model = myapp.models.User``
        #django_get_or_create = ('username',)

    name = factory.Faker('name')
    email = factory.Faker('email')
    username = factory.Faker('name')
    location = Point(-3.7035285, 40.4169473) # Puerta del Sol, Madrid<commit_msg>Add image to UserFactory<commit_after># -*- coding: utf-8 -*-

import factory

from django.contrib.gis.geos import Point

from .models import User

class UserFactory(factory.django.DjangoModelFactory):
    class Meta:
        model = User  # Equivalent to ``model = myapp.models.User``
        #django_get_or_create = ('username',)

    name = factory.Faker('name')
    email = factory.Faker('email')
    username = factory.Faker('name')
    location = Point(-3.7035285, 40.4169473) # Puerta del Sol, Madrid
    picture = factory.django.ImageField()
{'fraction_non_alphanumeric': 0.1291866028708134, 'fraction_numerical': 0.03444976076555024, 'mean_word_length': 3.5281385281385282, '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': '908306', 'n_tokens_mistral': 346, 'n_tokens_neox': 323, 'n_words': 80}