<commit_before># -*- coding: utf-8 -*-

from datetime import datetime
from django.db import models


class Course(models.Model):
    """Course database schema"""
    no = models.CharField(max_length=20, blank=True)
    code = models.CharField(max_length=20, blank=True)
    eng_title = models.CharField(max_length=200, blank=True)
    chi_title = models.CharField(max_length=200, blank=True)
    note = models.TextField(blank=True)
    objective = models.CharField(max_length=80, blank=True)
    time = models.CharField(max_length=20, blank=True)
    time_token = models.CharField(max_length=20, blank=True)
    teacher = models.CharField(max_length=40, blank=True)  # Only save Chinese
    room = models.CharField(max_length=20, blank=True)
    credit = models.IntegerField()
    limit = models.IntegerField()<commit_msg>set no as a db_index, and make sure it's unique<commit_after># -*- coding: utf-8 -*-

from datetime import datetime
from django.db import models


class Course(models.Model):
    """Course database schema"""
    no = models.CharField(max_length=20, unique=True, db_index=True)
    code = models.CharField(max_length=20, blank=True)
    eng_title = models.CharField(max_length=200, blank=True)
    chi_title = models.CharField(max_length=200, blank=True)
    note = models.TextField(blank=True)
    objective = models.CharField(max_length=80, blank=True)
    time = models.CharField(max_length=20, blank=True)
    time_token = models.CharField(max_length=20, blank=True)
    teacher = models.CharField(max_length=40, blank=True)  # Only save Chinese
    room = models.CharField(max_length=20, blank=True)
    credit = models.IntegerField()
    limit = models.IntegerField()
{'fraction_non_alphanumeric': 0.1204250295159386, 'fraction_numerical': 0.024793388429752067, 'mean_word_length': 4.784982935153583, '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': '6920385', 'n_tokens_mistral': 561, 'n_tokens_neox': 537, 'n_words': 113}