<commit_before>from django import forms
from django.utils.translation import ugettext_lazy as _
from django.conf import settings
from utils.translation import get_languages_list, get_simple_languages_list, get_user_languages_from_request
from videos.search_indexes import LanguageField

ALL_LANGUAGES = get_simple_languages_list()

class ModerationListSearchForm(forms.Form):
    SORT_CHOICES = (
        ("", "------"),
        ('revisions-newest', _(u'Newest')),
        ('revisions-oldest', _(u'Oldest')),
        ('video-title', _(u'Video TieleViews This Week')),

    )
    LANG_CHOICES = [
        ("", "------"),
        ("my-langs", "My languages"),
    ] + ALL_LANGUAGES
    
    
    q = forms.CharField(label=_(u'Video title?'), required=False)
    sort = forms.ChoiceField(choices=SORT_CHOICES, required=False, initial='languages_count',
                             label=_(u'Sort By'))
    to_langs = forms.ChoiceField(choices=LANG_CHOICES, required=False, label=_(u'Subtitled Into'),
                              help_text=_(u'Left blank for any language'), initial='')
    from_langs = forms.ChoiceField(choices=LANG_CHOICES, required=False, label=_(u'Video In'),
                              help_text=_(u'Left blank for any language'), initial='')
    
    def __init__(self,request,  *args, **kwargs):
        super(ModerationListSearchForm, self).__init__(request.GET, *args, **kwargs)<commit_msg>Moderation: update title field filter label<commit_after>from django import forms
from django.utils.translation import ugettext_lazy as _
from django.conf import settings
from utils.translation import get_languages_list, get_simple_languages_list, get_user_languages_from_request
from videos.search_indexes import LanguageField

ALL_LANGUAGES = get_simple_languages_list()

class ModerationListSearchForm(forms.Form):
    SORT_CHOICES = (
        ("", "------"),
        ('revisions-newest', _(u'Newest')),
        ('revisions-oldest', _(u'Oldest')),
        ('video-title', _(u'Video TieleViews This Week')),

    )
    LANG_CHOICES = [
        ("", "------"),
        ("my-langs", "My languages"),
    ] + ALL_LANGUAGES
    
    
    q = forms.CharField(label=_(u'Video title'), required=False)
    sort = forms.ChoiceField(choices=SORT_CHOICES, required=False, initial='languages_count',
                             label=_(u'Sort By'))
    to_langs = forms.ChoiceField(choices=LANG_CHOICES, required=False, label=_(u'Subtitled Into'),
                              help_text=_(u'Left blank for any language'), initial='')
    from_langs = forms.ChoiceField(choices=LANG_CHOICES, required=False, label=_(u'Video In'),
                              help_text=_(u'Left blank for any language'), initial='')
    
    def __init__(self,request,  *args, **kwargs):
        super(ModerationListSearchForm, self).__init__(request.GET, *args, **kwargs)
{'fraction_non_alphanumeric': 0.13254272758981514, 'fraction_numerical': 0.0, 'mean_word_length': 3.358662613981763, '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': '219314', 'n_tokens_mistral': 886, 'n_tokens_neox': 861, 'n_words': 168}