<commit_before># coding=utf-8
from django import forms
from django.forms import ModelChoiceField
from dproject import models

LANGUAGE_CHOICES = (
                    ('af', 'Afrikaans'),
                    ('id', 'Bahasa Indonesia'),
                    ('ms', 'Bahasa Malaysia'),
                    ('ca', 'Català'),
                    ('cs', 'Čeština'),
                    ('da', 'Dansk'),
                    ('de', 'Deutsch'),
                    ('et', 'Eesti'),
                    ('en-GB', 'English (UK)'),
                    ('en', 'English (US)'),
                    ('es', 'Español (España)'),
                    ('es-419', 'Español (Latinoamérica)'),
                    ('eu', 'Euskara'),
                    ('fil', 'Filipino'),
                    ('fr', 'Français'),
                    ('fr-CA', 'Français (Canada)'),
                    ('gl', 'Galego'),
                    ('hr', 'Hrvatski'),
                    ('zu', 'IsiZulu'),
                    ('is', 'Íslenska'),
                    ('it', 'Italiano'),
                    ('sw', 'Kiswahili'),
                    ('lv', 'Latviešu valoda'),
                    ('lt', 'Lietuvių'),
                    ('hu', 'Magyar'),
                    ('nl', 'Nederlands'),
                    ('no', 'Norsk'),
                    ('pl', 'Polski'),
                    ('pt-PT', 'Português'),
                    ('pt', 'Português (Brasil)'),
                    ('ro', 'Română'),
                    ('sk', 'Slovenčina'),
                    ('sl', 'Slovenščina'),
                    ('fi', 'Suomi'),
                    ('sv', 'Svenska'),
                    ('vi', 'Tiếng Việt'),
                    ('tr', 'Türkçe'),
                    ('bg', 'Български'),
                    ('ru', 'Русский'),
                    ('sr', 'Српски'),
                    ('uk', 'Українська'),
                    ('el', 'Ελληνικά'),
                    ('iw', 'עברית'),
                    ('ur', 'اردو'),
                    ('ar', 'العربية'),
                    ('fa', 'فارسی'),
                    ('mr', 'मराठी'),
                    ('hi', 'हिन्दी'),
                    ('bn', 'বাংলা'),
                    ('gu', 'ગુજરાતી'),
                    ('ta', 'தமிழ்'),
                    ('te', 'తెలుగు'),
                    ('kn', 'ಕನ್ನಡ'),
                    ('ml', 'മലയാളം '),
                    ('th', 'ภาษาไทย'),
                    ('am', 'አማርኛ'),
                    ('zh-CN', '中文 (简体)'),
                    ('zh-TW', '中文 (繁體)'),
                    ('zh-HK', '中文 (香港)'),
                    ('ja', '日本語'),
                    ('ko', '한국어'),
                )
                
class SearchForm(forms.Form):
    # dup of models
    # https://docs.djangoproject.com/en/1.6/topics/forms/modelforms/
    transcript = forms.CharField(max_length=50,
                                 label = '',
                                 widget=forms.TextInput(attrs={'placeholder': 'enter video link'}))

class LanguageDeclaration(forms.Form):
    langauge = forms.MultipleChoiceField(required=True,
                                         widget=forms.CheckboxSelectMultiple,
                                         choices=LANGUAGE_CHOICES)

class FormTest(forms.Form):
    subject = forms.CharField(widget=forms.Textarea)

class LanguageModelChoiceField(forms.Form):
        l = models.Transcript.LANGUAGES
        languages_array = [x[1] for x in l]<commit_msg>add languages dropdown<commit_after># coding=utf-8
from django import forms
from django.forms import ModelChoiceField
from dproject import models

LANGUAGE_CHOICES = (
                    ('af', 'Afrikaans'),
                    ('id', 'Bahasa Indonesia'),
                    ('ms', 'Bahasa Malaysia'),
                    ('ca', 'Català'),
                    ('cs', 'Čeština'),
                    ('da', 'Dansk'),
                    ('de', 'Deutsch'),
                    ('et', 'Eesti'),
                    ('en-GB', 'English (UK)'),
                    ('en', 'English (US)'),
                    ('es', 'Español (España)'),
                    ('es-419', 'Español (Latinoamérica)'),
                    ('eu', 'Euskara'),
                    ('fil', 'Filipino'),
                    ('fr', 'Français'),
                    ('fr-CA', 'Français (Canada)'),
                    ('gl', 'Galego'),
                    ('hr', 'Hrvatski'),
                    ('zu', 'IsiZulu'),
                    ('is', 'Íslenska'),
                    ('it', 'Italiano'),
                    ('sw', 'Kiswahili'),
                    ('lv', 'Latviešu valoda'),
                    ('lt', 'Lietuvių'),
                    ('hu', 'Magyar'),
                    ('nl', 'Nederlands'),
                    ('no', 'Norsk'),
                    ('pl', 'Polski'),
                    ('pt-PT', 'Português'),
                    ('pt', 'Português (Brasil)'),
                    ('ro', 'Română'),
                    ('sk', 'Slovenčina'),
                    ('sl', 'Slovenščina'),
                    ('fi', 'Suomi'),
                    ('sv', 'Svenska'),
                    ('vi', 'Tiếng Việt'),
                    ('tr', 'Türkçe'),
                    ('bg', 'Български'),
                    ('ru', 'Русский'),
                    ('sr', 'Српски'),
                    ('uk', 'Українська'),
                    ('el', 'Ελληνικά'),
                    ('iw', 'עברית'),
                    ('ur', 'اردو'),
                    ('ar', 'العربية'),
                    ('fa', 'فارسی'),
                    ('mr', 'मराठी'),
                    ('hi', 'हिन्दी'),
                    ('bn', 'বাংলা'),
                    ('gu', 'ગુજરાતી'),
                    ('ta', 'தமிழ்'),
                    ('te', 'తెలుగు'),
                    ('kn', 'ಕನ್ನಡ'),
                    ('ml', 'മലയാളം '),
                    ('th', 'ภาษาไทย'),
                    ('am', 'አማርኛ'),
                    ('zh-CN', '中文 (简体)'),
                    ('zh-TW', '中文 (繁體)'),
                    ('zh-HK', '中文 (香港)'),
                    ('ja', '日本語'),
                    ('ko', '한국어'),
                )
                
class SearchForm(forms.Form):
    # dup of models
    # https://docs.djangoproject.com/en/1.6/topics/forms/modelforms/
    transcript = forms.CharField(max_length=50,
                                 label = '',
                                 widget=forms.TextInput(attrs={'placeholder': 'enter video link'}))

class LanguageDeclaration(forms.Form):
    langauge = forms.MultipleChoiceField(required=True,
                                         widget=forms.CheckboxSelectMultiple,
                                         choices=LANGUAGE_CHOICES)

class FormTest(forms.Form):
    subject = forms.CharField(widget=forms.Textarea)

class LanguageModelChoiceField(forms.Form):
        language = forms.ChoiceField(choices = models.Transcript.LANGUAGES)
{'fraction_non_alphanumeric': 0.1801079189149774, 'fraction_numerical': 0.002479218317048272, 'mean_word_length': 1.0613165013525698, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6840764', 'n_tokens_mistral': 2134, 'n_tokens_neox': 2019, 'n_words': 362}