<commit_before>from django.contrib.auth.models import User, Group
from adopteitor_core.models import Animal, AnimalFoto, FormularioAdopcion, Subscripcion, Ipn, Persona
from rest_framework import serializers


class UserSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = User
        fields = ('url', 'username', 'email', 'groups')


class GroupSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = Group
        fields = ('url', 'name')

class AnimalSerializer(serializers.ModelSerializer):
    fotos = serializers.StringRelatedField(many=True)
    edad = serializers.IntegerField(source="calcular_edad")
    class Meta:
        model = Animal
        fields = ('id','nombre', 'genero', 'fecha_nacimiento', 'desc', 'fotos', "fecha_ingreso", "edad", "etapa", "ubicacion")

class AnimalFotoSerializer(serializers.ModelSerializer):
    fotos = serializers.StringRelatedField(many=True)
    class Meta:
        model = Animal
        fields = ('id','fotos')<commit_msg>Added estado to Animal serializer<commit_after>from django.contrib.auth.models import User, Group
from adopteitor_core.models import Animal, AnimalFoto, FormularioAdopcion, Subscripcion, Ipn, Persona
from rest_framework import serializers


class UserSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = User
        fields = ('url', 'username', 'email', 'groups')


class GroupSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = Group
        fields = ('url', 'name')

class AnimalSerializer(serializers.ModelSerializer):
    fotos = serializers.StringRelatedField(many=True)
    edad = serializers.IntegerField(source="calcular_edad")
    class Meta:
        model = Animal
        fields = ('id','nombre', 'genero', 'fecha_nacimiento', 'desc', 'fotos', "fecha_ingreso", "edad", "etapa", "ubicacion", "estado")

class AnimalFotoSerializer(serializers.ModelSerializer):
    fotos = serializers.StringRelatedField(many=True)
    class Meta:
        model = Animal
        fields = ('id','fotos')
{'fraction_non_alphanumeric': 0.11265580057526366, 'fraction_numerical': 0.0, 'mean_word_length': 4.492105263157895, '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': '3340711', 'n_tokens_mistral': 610, 'n_tokens_neox': 603, 'n_words': 140}