<commit_before># Create your views here.
from django.shortcuts import render # TODO: Switch to mako templates
from django.http import HttpResponse, HttpResponseRedirect
from django.core.urlresolvers import reverse

def dashboard(request):
    if request.user.is_authenticated():
        return render(request, 'dashboard/embed_dashboard.html') # TODO: Switch to mako templates

# def dashboard(request):
#     if request.user.is_authenticated():
#         return render(request, 'dashboard/dashboard.html') # TODO: Switch to mako templates
#     else:
#        return HttpResponseRedirect(reverse("django.contrib.auth.views.login"))

# def new_dashboard(request):
#     if request.user.is_authenticated():
#         return render(request, 'new_dashboard/new_dashboard.html') # TODO: Switch to mako templates
#     else:
#         return HttpResponseRedirect(reverse("django.contrib.auth.views.login"))<commit_msg>Main view handles log-ins<commit_after># Create your views here.
from django.shortcuts import render, render_to_response # TODO: Switch to mako templates
from django.http import HttpResponse, HttpResponseRedirect
from django.core.urlresolvers import reverse

def dashboard(request):
    if request.user.is_authenticated():
        return render(request, 'dashboard/embed_dashboard.html') # TODO: Switch to mako templates
    else:
        return HttpResponseRedirect(reverse("django.contrib.auth.views.login"))

# def dashboard(request):
#     if request.user.is_authenticated():
#         return render(request, 'dashboard/dashboard.html') # TODO: Switch to mako templates
#     else:
#        return HttpResponseRedirect(reverse("django.contrib.auth.views.login"))

# def new_dashboard(request):
#     if request.user.is_authenticated():
#         return render(request, 'new_dashboard/new_dashboard.html') # TODO: Switch to mako templates
#     else:
#         return HttpResponseRedirect(reverse("django.contrib.auth.views.login"))
{'fraction_non_alphanumeric': 0.10420944558521561, 'fraction_numerical': 0.0, 'mean_word_length': 4.490140845070423, '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': '3813446', 'n_tokens_mistral': 529, 'n_tokens_neox': 530, 'n_words': 136}