<commit_before>import cherrypy

from girder.models.model_base import AccessControlledModel
from girder.constants import AccessType
from bson.objectid import ObjectId
import cumulus


class Task(AccessControlledModel):

    def initialize(self):
        self.name = 'tasks'

    def create(self, user, task):

        doc  = self.setUserAccess(task, user, level=AccessType.ADMIN, save=True)
        print doc

        return doc


<commit_msg>Add missing validate function<commit_after>import cherrypy

from girder.models.model_base import AccessControlledModel
from girder.constants import AccessType
from bson.objectid import ObjectId
import cumulus


class Task(AccessControlledModel):

    def initialize(self):
        self.name = 'tasks'

    def validate(self, doc):
        return doc

    def create(self, user, task):

        doc  = self.setUserAccess(task, user, level=AccessType.ADMIN, save=True)
        print doc

        return doc



{'fraction_non_alphanumeric': 0.07165437302423604, 'fraction_numerical': 0.0, 'mean_word_length': 3.5238095238095237, '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': '501839', 'n_tokens_mistral': 280, 'n_tokens_neox': 265, 'n_words': 78}