<commit_before>__author__ = 'prism'
# date : 10-6-2015

from .models import Reminder
from rest_framework import serializers
from django.contrib.auth.models import User


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


class ReminderSerializer(serializers.ModelSerializer):
    created = serializers.DateTimeField(read_only=True)
    #active = serializers.NullBooleanField(default=True)

    class Meta:
        model = Reminder
        fields = ('text', 'created', 'reminder', 'active')<commit_msg>fixed serializer field<commit_after>__author__ = 'prism'
# date : 10-6-2015

from .models import Reminder
from rest_framework import serializers
from django.contrib.auth.models import User


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


class ReminderSerializer(serializers.ModelSerializer):
    created = serializers.DateTimeField(read_only=True)
    active = serializers.BooleanField(default=True)
    reminder = serializers.DateTimeField()

    class Meta:
        model = Reminder
        fields = ('text', 'created', 'reminder', 'active')
{'fraction_non_alphanumeric': 0.1004149377593361, 'fraction_numerical': 0.011618257261410789, 'mean_word_length': 4.131914893617021, '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': '5274646', 'n_tokens_mistral': 342, 'n_tokens_neox': 329, 'n_words': 83}