<commit_before>from django.shortcuts import render

# Create your views here.

from .models import Class, Student, Lesson

def home(request):

    classes = Class.objects.order_by(Class.name)

    template = "home.html"
    context = {"classes": classes}
    return render(request, template, context)

def singleClass(request, pk):
    template = "singleClass.html"
    context = {}
    return render(request, template, context)<commit_msg>classes are now ordered by their name<commit_after>from django.shortcuts import render

# Create your views here.

from .models import Class, Student, Lesson

def home(request):

    template = "home.html"
    context = {"classes": classes}
    return render(request, template, context)

def singleClass(request, pk):
    template = "singleClass.html"
    context = {}
    return render(request, template, context)
{'fraction_non_alphanumeric': 0.10304449648711944, 'fraction_numerical': 0.0, 'mean_word_length': 4.150602409638554, 'pattern_counts': {'":': 2, '<': 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': '3772427', 'n_tokens_mistral': 244, 'n_tokens_neox': 237, 'n_words': 77}