<commit_before>from django.shortcuts import render_to_response

import models


def index(request):
    clusters = [c for c in models.Cluster.objects.all()]
    try:
        servers = [c for c in models.Server.objects.filter(cluster=clusters[0])]
    except IndexError:
        servers = []
    try:
        buckets = [b for b in models.Bucket.objects.filter(cluster=clusters[0])]
    except IndexError:
        buckets = []

    data = {
        "clusters": [c.name for c in clusters],
        "servers": [s.address for s in servers],
        "buckets": [b.name for b in buckets]
    }

    return render_to_response("index.jade", data)<commit_msg>remove obsolete code from index view<commit_after>from django.shortcuts import render_to_response


def index(request):
    return render_to_response("index.jade")
{'fraction_non_alphanumeric': 0.10837438423645321, 'fraction_numerical': 0.0024630541871921183, 'mean_word_length': 3.2124352331606216, 'pattern_counts': {'":': 3, '<': 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': '742075', 'n_tokens_mistral': 252, 'n_tokens_neox': 246, 'n_words': 68}