<commit_before># -*- coding: utf-8 -*-
# import clldutils.dsv as dsv
# from ielex.lexicon.models import Language, Lexeme, Meaning
from ielex.shortcuts import render_template


def viewCsvImport(request):
    return render_template(request, "admin/viewCsvImport.html", {})<commit_msg>Add decorators to ielex.viewCsvImport<commit_after># -*- coding: utf-8 -*-
from django.views.decorators.csrf import csrf_protect
from django.contrib.auth.decorators import user_passes_test
# import clldutils.dsv as dsv
# from ielex.lexicon.models import Language, Lexeme, Meaning
from ielex.shortcuts import render_template
from ielex.utilities import logExceptions


@user_passes_test(lambda u: u.is_superuser)
@csrf_protect
@logExceptions
def viewCsvImport(request):
    return render_template(request, "admin/viewCsvImport.html", {})
{'fraction_non_alphanumeric': 0.0989010989010989, 'fraction_numerical': 0.002442002442002442, 'mean_word_length': 6.068965517241379, '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': '6922323', 'n_tokens_mistral': 265, 'n_tokens_neox': 259, 'n_words': 64}