<commit_before>import datetime

from django import forms

from django_mongokit.forms import DocumentForm
from models import Node
from models import Author


class NodeForm(DocumentForm):

    tags = forms.CharField(max_length=250)
    
    def clean_tags(self):
        value = self.cleaned_data['tags']
        return [tag.strip() for tag in value.split(',')]

    class Meta:
        document = Node
        fields = ['name', 'node_type', 'tags']
        

class AuthorForm(DocumentForm):
    '''   '''

    class Meta:
        document = Author
        fields = ['_id', 'name']<commit_msg>NodeForm class -> Meta -> fields value updated.<commit_after>import datetime

from django import forms

from django_mongokit.forms import DocumentForm
from models import Node
from models import Author


class NodeForm(DocumentForm):

    tags = forms.CharField(max_length=250)
    
    def clean_tags(self):
        value = self.cleaned_data['tags']
        return [tag.strip() for tag in value.split(',')]

    class Meta:
        document = Node
        fields = ['name', 'member_of', 'tags']
        

class AuthorForm(DocumentForm):
    '''   '''

    class Meta:
        document = Author
        fields = ['_id', 'name']
{'fraction_non_alphanumeric': 0.10919540229885058, 'fraction_numerical': 0.0049261083743842365, 'mean_word_length': 2.8454258675078865, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4211361', 'n_tokens_mistral': 355, 'n_tokens_neox': 342, 'n_words': 102}