<commit_before>from psqlgraph import Node, pg_property
from node import *
from gdcdatamodel.models import validate


class Annotation(Node):

    __nonnull_properties__ = [
        'category',
        'classification',
        'creator',
        'created_datetime',
        'status',
        'notes'
    ]

    @pg_property(str)
    def submitter_id(self, value):
        self._set_property('submitter_id', value)

    @pg_property(str, enum=[
        'Acceptable treatment for TCGA tumor',
        'Administrative Compliance',
        'Alternate sample pipeline',
        'BCR Notification',
        'Barcode incorrect',
        'Biospecimen identity unknown',
        'Case submitted is found to be a recurrence after submission',
        'Center QC failed',
        'Clinical data insufficient',
        'Duplicate case',
        'Duplicate item',
        'General',
        'Genotype mismatch',
        'History of acceptable prior treatment related to a prior/other malignancy',
        'History of unacceptable prior treatment related to a prior/other malignancy',
        'Inadvertently shipped',
        'Item does not meet study protocol',
        'Item flagged DNU',
        'Item in special subset',
        'Item is noncanonical',
        'Item may not meet study protocol',
        'Molecular analysis outside specification',
        'Neoadjuvant therapy',
        'New notification type',
        'New observation type',
        'Normal class but appears diseased',
        'Normal tissue origin incorrect',
        'Pathology outside specification',
        'Permanently missing item or object',
        'Prior malignancy',
        'Qualification metrics changed',
        'Qualified in error',
        'Sample compromised',
        'Subject identity unknown',
        'Subject withdrew consent',
        'Synchronous malignancy',
        'Tumor class but appears normal',
        'Tumor tissue origin incorrect',
        'Tumor type incorrect',
        'WGA Failure'])
    def category(self, value):
        self._set_property('category', value)

    @pg_property(str)
    def classification(self, value):
        self._set_property('classification', value)

    @pg_property(str)
    def creator(self, value):
        self._set_property('creator', value)

    @pg_property(long, int)
    def created_datetime(self, value):
        self._set_property('created_datetime', value)

    @pg_property(str)
    def status(self, value):
        self._set_property('status', value)

    @pg_property(str)
    def notes(self, value):
        self._set_property('notes', value)
<commit_msg>Remove the nonnull annotation note constraint<commit_after>from psqlgraph import Node, pg_property
from node import *
from gdcdatamodel.models import validate


class Annotation(Node):

    __nonnull_properties__ = [
        'category',
        'classification',
        'creator',
        'created_datetime',
        'status',
    ]

    @pg_property(str)
    def submitter_id(self, value):
        self._set_property('submitter_id', value)

    @pg_property(str, enum=[
        'Acceptable treatment for TCGA tumor',
        'Administrative Compliance',
        'Alternate sample pipeline',
        'BCR Notification',
        'Barcode incorrect',
        'Biospecimen identity unknown',
        'Case submitted is found to be a recurrence after submission',
        'Center QC failed',
        'Clinical data insufficient',
        'Duplicate case',
        'Duplicate item',
        'General',
        'Genotype mismatch',
        'History of acceptable prior treatment related to a prior/other malignancy',
        'History of unacceptable prior treatment related to a prior/other malignancy',
        'Inadvertently shipped',
        'Item does not meet study protocol',
        'Item flagged DNU',
        'Item in special subset',
        'Item is noncanonical',
        'Item may not meet study protocol',
        'Molecular analysis outside specification',
        'Neoadjuvant therapy',
        'New notification type',
        'New observation type',
        'Normal class but appears diseased',
        'Normal tissue origin incorrect',
        'Pathology outside specification',
        'Permanently missing item or object',
        'Prior malignancy',
        'Qualification metrics changed',
        'Qualified in error',
        'Sample compromised',
        'Subject identity unknown',
        'Subject withdrew consent',
        'Synchronous malignancy',
        'Tumor class but appears normal',
        'Tumor tissue origin incorrect',
        'Tumor type incorrect',
        'WGA Failure'])
    def category(self, value):
        self._set_property('category', value)

    @pg_property(str)
    def classification(self, value):
        self._set_property('classification', value)

    @pg_property(str)
    def creator(self, value):
        self._set_property('creator', value)

    @pg_property(long, int)
    def created_datetime(self, value):
        self._set_property('created_datetime', value)

    @pg_property(str)
    def status(self, value):
        self._set_property('status', value)

    @pg_property(str)
    def notes(self, value):
        self._set_property('notes', value)

{'fraction_non_alphanumeric': 0.09408602150537634, 'fraction_numerical': 0.0, 'mean_word_length': 2.614850798056905, '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': '3733493', 'n_tokens_mistral': 1413, 'n_tokens_neox': 1317, 'n_words': 424}