<commit_before># -*- encoding: utf-8 -*-
from aiohttp.web import Response
from zope.interface import Attribute
from zope.interface import Interface


class ITodo(Interface):
    title = Attribute("""Title""")
    done = Attribute("""Done""")


class View(object):
    def __init__(self, context, request):
        self.context = context
        self.request = request

    async def __call__(self):
        return Response(text='Hello World!')<commit_msg>Use supermodel/zope.schema for Todo field definition<commit_after># -*- encoding: utf-8 -*-
from aiohttp.web import Response
from plone.supermodel import model
from zope import schema


class ITodo(model.Schema):
    title = schema.TextLine(title=u"Title",
                            required=False)
    done = schema.Bool(title=u"Done",
                       required=False)


class View(object):
    def __init__(self, context, request):
        self.context = context
        self.request = request

    async def __call__(self):
        return Response(text='Hello World!')
{'fraction_non_alphanumeric': 0.11218568665377177, 'fraction_numerical': 0.0019342359767891683, 'mean_word_length': 3.027237354085603, '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': '918353', 'n_tokens_mistral': 288, 'n_tokens_neox': 279, 'n_words': 80}