<commit_before>from django.contrib.auth import login
from django.shortcuts import render, get_object_or_404
from django.conf import settings
from django.views.decorators.csrf import csrf_exempt

from cfp.models import PaperApplication
from cfp.choices import TALK_DURATIONS
from talks.models import Talk
from django.db import IntegrityError
from django.http import JsonResponse, Http404
from django.contrib.auth.decorators import login_required
from django.views.decorators.http import require_POST

from .decorators import require_ticket_holder
from .models import Vote, VoteToken


def authenticate_by_vote_token(request, vote_token):
    try:
        user = VoteToken.objects.get(ticket_code=vote_token).user<commit_msg>Sort imports<commit_after>from django.conf import settings
from django.contrib.auth import login
from django.contrib.auth.decorators import login_required
from django.db import IntegrityError
from django.http import JsonResponse, Http404
from django.shortcuts import render, get_object_or_404
from django.views.decorators.csrf import csrf_exempt
from django.views.decorators.http import require_POST

from cfp.choices import TALK_DURATIONS
from cfp.models import PaperApplication
from talks.models import Talk

from .decorators import require_ticket_holder
from .models import Vote, VoteToken


def authenticate_by_vote_token(request, vote_token):
    try:
        user = VoteToken.objects.get(ticket_code=vote_token).user
{'fraction_non_alphanumeric': 0.05259515570934256, 'fraction_numerical': 0.008304498269896194, 'mean_word_length': 6.158415841584159, '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': '298568', 'n_tokens_mistral': 426, 'n_tokens_neox': 399, 'n_words': 122}