<commit_before>from mitxmako.shortcuts import render_to_response
from keystore.django import keystore
from django.contrib.auth.decorators import login_required


def index(request):
    # TODO (cpennington): These need to be read in from the active user
    org = 'mit.edu'
    course = '6002xs12'
    course = keystore().get_item(['i4x', org, course, 'Course', None])
    weeks = course.get_children()
    return render_to_response('index.html', {'weeks': weeks})<commit_msg>Search for course specifically in navigation view<commit_after>from mitxmako.shortcuts import render_to_response
from keystore.django import keystore
from django.contrib.auth.decorators import login_required


def index(request):
    # TODO (cpennington): These need to be read in from the active user
    org = 'mit.edu'
    course = '6002xs12'
    name = '6.002 Spring 2012'
    course = keystore().get_item(['i4x', org, course, 'Course', name])
    weeks = course.get_children()
    return render_to_response('index.html', {'weeks': weeks})
{'fraction_non_alphanumeric': 0.10794896957801767, 'fraction_numerical': 0.021589793915603533, 'mean_word_length': 4.698324022346369, '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': '5882897', 'n_tokens_mistral': 330, 'n_tokens_neox': 303, 'n_words': 93}