<commit_before>from radar_api.serializers.groups import GroupReferenceField
from radar.serializers.core import Serializer
from radar.serializers.fields import DateField, IntegerField, ListField, EnumField
from radar.models.groups import GROUP_TYPE


class DataPointSerializer(Serializer):
    date = DateField()
    newPatients = IntegerField()
    totalPatients = IntegerField()


class DataPointListSerializer(Serializer):
    points = ListField(DataPointSerializer())


class PatientsByGroupSerializer(Serializer):
    group = GroupReferenceField()
    patientCount = IntegerField()


class PatientsByGroupListSerializer(Serializer):
    counts = ListField(PatientsByGroupSerializer())


class RecruitmentByMonthRequestSerializer(Serializer):
    group = GroupReferenceField()


class PatientsByGroupRequestSerializer(Serializer):
    group = GroupReferenceField()
    type = EnumField(GROUP_TYPE)
<commit_msg>Fix typo<commit_after>from radar_api.serializers.groups import GroupReferenceField
from radar.serializers.core import Serializer
from radar.serializers.fields import DateField, IntegerField, ListField, EnumField
from radar.models.groups import GROUP_TYPE


class DataPointSerializer(Serializer):
    date = DateField()
    newPatients = IntegerField()
    totalPatients = IntegerField()


class DataPointListSerializer(Serializer):
    points = ListField(DataPointSerializer())


class PatientsByGroupSerializer(Serializer):
    group = GroupReferenceField()
    patientCount = IntegerField()


class PatientsByGroupListSerializer(Serializer):
    counts = ListField(PatientsByGroupSerializer())


class RecruitmentByMonthRequestSerializer(Serializer):
    group = GroupReferenceField()


class PatientsByGroupRequestSerializer(Serializer):
    group = GroupReferenceField()
    group_type = EnumField(GROUP_TYPE)

{'fraction_non_alphanumeric': 0.0722495894909688, 'fraction_numerical': 0.0, 'mean_word_length': 6.491803278688525, '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': '7371343', 'n_tokens_mistral': 467, 'n_tokens_neox': 438, 'n_words': 103}