<commit_before># coding: utf8

from datetime import date

from django import forms
from .models import Wager


class WagerForm(forms.ModelForm):
    amount = forms.FloatField(label="Amount:",
                              widget=forms.TextInput(
                                  attrs={'class': 'form-control'}),
                              localize=True, required=True)
    end_date = forms.DateField(label="End date:",
                               widget=forms.DateInput(
                                    attrs={'class': 'form-control',
                                           'id': 'wager_datepicker',
                                           'autocomplete': "off"}),
                               required=True)

    wager_text = forms.CharField(label="What is the bet?",
                                 required=True,
                                 widget=forms.Textarea(
                                        attrs={'class': 'form-control'}))

    class Meta:
        model = Wager
        fields = ['amount', 'end_date', 'wager_text']
<commit_msg>change wagers form amount label<commit_after># coding: utf8

from datetime import date

from django import forms
from .models import Wager


class WagerForm(forms.ModelForm):
    amount = forms.FloatField(label="Amount (kr)",
                              widget=forms.TextInput(
                                  attrs={'class': 'form-control'}),
                              localize=True, required=True)
    end_date = forms.DateField(label="End date:",
                               widget=forms.DateInput(
                                    attrs={'class': 'form-control',
                                           'id': 'wager_datepicker',
                                           'autocomplete': "off"}),
                               required=True)

    wager_text = forms.CharField(label="What is the bet?",
                                 required=True,
                                 widget=forms.Textarea(
                                        attrs={'class': 'form-control'}))

    class Meta:
        model = Wager
        fields = ['amount', 'end_date', 'wager_text']

{'fraction_non_alphanumeric': 0.10101476014760148, 'fraction_numerical': 0.0009225092250922509, 'mean_word_length': 1.1997971602434077, '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': 18, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2434122', 'n_tokens_mistral': 490, 'n_tokens_neox': 479, 'n_words': 109}