<commit_before>from biolabs.core import models as core_models
from rest_framework import serializers


class LaboratorySerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = core_models.Laboratory
        fields = ('name', 'description', 'url', 'adress',
                  'latitude', 'longitude')<commit_msg>Adding non required fields parameter for fields description, adress, latitude and longitude in Laboratory model serializer<commit_after>from biolabs.core import models as core_models
from rest_framework import serializers


class LaboratorySerializer(serializers.HyperlinkedModelSerializer):
    description = serializers.CharField(required=False, max_length=255)
    adress = serializers.CharField(required=False, max_length=255)
    latitude = serializers.DecimalField(required=False, max_digits=23, decimal_places=20)
    longitude = serializers.DecimalField(required=False, max_digits=23, decimal_places=20)

    class Meta:
        model = core_models.Laboratory
        fields = ('name', 'description', 'url', 'adress',
                  'latitude', 'longitude')
{'fraction_non_alphanumeric': 0.0867992766726944, 'fraction_numerical': 0.012658227848101266, 'mean_word_length': 4.857142857142857, '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': '7629859', 'n_tokens_mistral': 310, 'n_tokens_neox': 284, 'n_words': 74}