<commit_before>from django.db import models
from django.db.models import permalink
from django.db.models.signals import post_init

class Course(models.Model):
    norwegian_name = models.CharField("Norwegian Name", max_length=100)
    short_name = models.CharField("Short name", max_length=50)
    code = models.CharField("Code", max_length=15)

    english_name = models.CharField("English name", max_length=100)
    credit = models.FloatField("Credit", default=7.5)
    study_level = models.SmallIntegerField()
    taught_in_spring = models.BooleanField(default=False)
    taught_in_autumn = models.BooleanField(default=False)
    taught_from = models.IntegerField()
    taught_in_english = models.BooleanField(default=False)
    last_year_taught = models.IntegerField(default=0)

    content = models.TextField()
    learning_form = models.TextField()
    learning_goal = models.TextField()
<commit_msg>Average grades, spelling mistakes, search, access on course code not id<commit_after>from django.db import models
from django.db.models import permalink
from django.db.models.signals import post_init

class Course(models.Model):
    norwegian_name = models.CharField("Norwegian Name", max_length=100)
    short_name = models.CharField("Short name", max_length=50)
    code = models.CharField("Code", max_length=15)

    english_name = models.CharField("English name", max_length=100)
    credit = models.FloatField("Credit", default=7.5)
    study_level = models.SmallIntegerField()
    taught_in_spring = models.BooleanField(default=False)
    taught_in_autumn = models.BooleanField(default=False)
    taught_from = models.IntegerField()
    taught_in_english = models.BooleanField(default=False)
    last_year_taught = models.IntegerField(default=0)

    content = models.TextField()
    learning_form = models.TextField()
    learning_goal = models.TextField()


{'fraction_non_alphanumeric': 0.10208444681988242, 'fraction_numerical': 0.01389631213254944, 'mean_word_length': 5.198675496688741, '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': '1151459', 'n_tokens_mistral': 579, 'n_tokens_neox': 557, 'n_words': 110}