<commit_before>from django.views.generic.edit import FormView
from django import forms
from django.urls.base import reverse
from django.contrib.auth.mixins import LoginRequiredMixin
from django.conf import settings
from shutil import copy2
from . import utils
import os

from .jobs import job_action, STATUS_SCHEDULED, STATUS_RUNNING_REMOTELY
from django.views.generic.base import TemplateView


SECTION_DOCS = ['Fr20125', 'Royal']


class DataReleaseForm(forms.Form):
    index_input_file = forms.FileField(required=False)

# class DataReleaseView(LoginRequiredMixin, FormView):
class DataReleaseView(FormView):<commit_msg>restored the authentication in front of the data release page.<commit_after>from django.views.generic.edit import FormView
from django import forms
from django.urls.base import reverse
from django.contrib.auth.mixins import LoginRequiredMixin
from django.conf import settings
from shutil import copy2
from . import utils
import os

from .jobs import job_action, STATUS_SCHEDULED, STATUS_RUNNING_REMOTELY
from django.views.generic.base import TemplateView


SECTION_DOCS = ['Fr20125', 'Royal']


class DataReleaseForm(forms.Form):
    index_input_file = forms.FileField(required=False)


class DataReleaseView(LoginRequiredMixin, FormView):
{'fraction_non_alphanumeric': 0.06730007917656373, 'fraction_numerical': 0.009501187648456057, 'mean_word_length': 6.479289940828402, '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': '1653249', 'n_tokens_mistral': 376, 'n_tokens_neox': 362, 'n_words': 108}