<commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models

MARKDOWN_HELP_TEXT = '' \
    '<a href="http://en.wikipedia.org/wiki/Markdown">Markdown</a> ' \
    'formatting available'


class Category(models.Model):
    title = models.CharField(max_length=200)
    slug = models.SlugField(max_length=50, unique=True)

    class Meta:
        ordering = ['title']
        verbose_name_plural = "Categories"

    def __str__(self):
        return self.title


class Project(models.Model):
    title = models.CharField(max_length=200)
    slug = models.SlugField(max_length=50, unique=True)
    description = models.TextField(help_text=MARKDOWN_HELP_TEXT)
    published = models.BooleanField('Published', default=False)
    date_completed = models.DateField(blank=True)
    category = models.ForeignKey(Category, related_name='projects')

    class Meta:
        ordering = ['title']

    def __str__(self):
        return self.title


class Artifact(models.Model):
    title = models.CharField(max_length=200, null=True, blank=True)
    slug = models.SlugField(max_length=50, unique=True)
    order = models.IntegerField(null=True, blank=True)
    description = models.TextField(help_text=MARKDOWN_HELP_TEXT)
    project = models.ForeignKey(Project, related_name='artifacts')
    published = models.BooleanField('Published', default=False)

    class Meta:<commit_msg>allow null value<commit_after># -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models

MARKDOWN_HELP_TEXT = '' \
    '<a href="http://en.wikipedia.org/wiki/Markdown">Markdown</a> ' \
    'formatting available'


class Category(models.Model):
    title = models.CharField(max_length=200)
    slug = models.SlugField(max_length=50, unique=True)

    class Meta:
        ordering = ['title']
        verbose_name_plural = "Categories"

    def __str__(self):
        return self.title


class Project(models.Model):
    title = models.CharField(max_length=200)
    slug = models.SlugField(max_length=50, unique=True)
    description = models.TextField(help_text=MARKDOWN_HELP_TEXT)
    published = models.BooleanField('Published', default=False)
    date_completed = models.DateField(null=True, blank=True)
    category = models.ForeignKey(Category, related_name='projects')

    class Meta:
        ordering = ['title']

    def __str__(self):
        return self.title


class Artifact(models.Model):
    title = models.CharField(max_length=200, null=True, blank=True)
    slug = models.SlugField(max_length=50, unique=True)
    order = models.IntegerField(null=True, blank=True)
    description = models.TextField(help_text=MARKDOWN_HELP_TEXT)
    project = models.ForeignKey(Project, related_name='artifacts')
    published = models.BooleanField('Published', default=False)

    class Meta:
{'fraction_non_alphanumeric': 0.11814345991561181, 'fraction_numerical': 0.011251758087201125, 'mean_word_length': 4.153985507246377, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '7444451', 'n_tokens_mistral': 911, 'n_tokens_neox': 866, 'n_words': 162}