<commit_before># -*- coding: utf-8 -*-
from django import forms
from django.forms import Form

from ajax_select import make_ajax_field

from statistics import Statistic


class StatForm(Form):
    display_or_export = forms.BooleanField(label=u'Exporter dans un fichier', required=False, localize=True)
    start_date = forms.DateField(label=u'Date de début', required=False, localize=True)
    end_date = forms.DateField(label=u'Date de fin', required=False, localize=True)
    patients = make_ajax_field(Statistic, 'patients', 'patientrecord', True)
    participants = make_ajax_field(Statistic, 'participants', 'worker-or-group', True)

class ActivePatientsForm(Form):
    display_or_export = forms.BooleanField(label=u'Exporter dans un fichier', required=False, localize=True)
    start_date = forms.DateField(label=u'Date de début', required=False, localize=True)
    end_date = forms.DateField(label=u'Date de fin', required=False, localize=True)

class AnnualActivityForm(Form):
    display_or_export = forms.BooleanField(label=u'Exporter dans un fichier', required=False, localize=True)
    start_date = forms.DateField(label=u"Date de l'année souhaitée", required=False, localize=True)
    participants = make_ajax_field(Statistic, 'participants', 'worker-or-group', True,
        help_text="Ne choisir aucun participant pour le tableau de synthèse générale.")<commit_msg>statistic: remove useless helptext in annual activity form.<commit_after># -*- coding: utf-8 -*-
from django import forms
from django.forms import Form

from ajax_select import make_ajax_field

from statistics import Statistic


class StatForm(Form):
    display_or_export = forms.BooleanField(label=u'Exporter dans un fichier', required=False, localize=True)
    start_date = forms.DateField(label=u'Date de début', required=False, localize=True)
    end_date = forms.DateField(label=u'Date de fin', required=False, localize=True)
    patients = make_ajax_field(Statistic, 'patients', 'patientrecord', True)
    participants = make_ajax_field(Statistic, 'participants', 'worker-or-group', True)

class ActivePatientsForm(Form):
    display_or_export = forms.BooleanField(label=u'Exporter dans un fichier', required=False, localize=True)
    start_date = forms.DateField(label=u'Date de début', required=False, localize=True)
    end_date = forms.DateField(label=u'Date de fin', required=False, localize=True)

class AnnualActivityForm(Form):
    display_or_export = forms.BooleanField(label=u'Exporter dans un fichier', required=False, localize=True)
    start_date = forms.DateField(label=u"Date de l'année souhaitée", required=False, localize=True)
    participants = make_ajax_field(Statistic, 'participants', 'worker-or-group', True)
{'fraction_non_alphanumeric': 0.10927152317880795, 'fraction_numerical': 0.0007358351729212656, 'mean_word_length': 6.309139784946237, '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': '3370211', 'n_tokens_mistral': 841, 'n_tokens_neox': 838, 'n_words': 200}