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

import json
import reversion

from rest_framework import serializers

from ..userstories.serializers import UserStorySerializer
from . import models



class MilestoneSerializer(serializers.ModelSerializer):
    user_stories = UserStorySerializer(many=True, required=False)
    closed_points = serializers.FloatField(source='closed_points')
    client_increment_points = serializers.FloatField(source='client_increment_points')
    team_increment_points = serializers.FloatField(source='team_increment_points')

    class Meta:
        model = models.Milestone<commit_msg>Adding required=False to milestone generated fields<commit_after># -*- coding: utf-8 -*-

import json
import reversion

from rest_framework import serializers

from ..userstories.serializers import UserStorySerializer
from . import models



class MilestoneSerializer(serializers.ModelSerializer):
    user_stories = UserStorySerializer(many=True, required=False)
    closed_points = serializers.FloatField(source='closed_points', required=False)
    client_increment_points = serializers.FloatField(source='client_increment_points', required=False)
    team_increment_points = serializers.FloatField(source='team_increment_points', required=False)

    class Meta:
        model = models.Milestone
{'fraction_non_alphanumeric': 0.0816793893129771, 'fraction_numerical': 0.0015267175572519084, 'mean_word_length': 6.010695187165775, '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': '3390650', 'n_tokens_mistral': 358, 'n_tokens_neox': 345, 'n_words': 73}