<commit_before># -*- coding: utf-8 -*-

u"""
Envelope contact form.
"""

import logging
from smtplib import SMTPException
from django import forms
from django.conf import settings
from django.core.mail import send_mail
from django.template.loader import render_to_string


# globalny logger dla aplikacji
logger = logging.getLogger('envelope')

DEFAULT_CONTACT_CHOICES = (
    ('',    u"Choose"),
    (10,    u"A general question regarding the website"),
    (None,   u"Other"),
)
CONTACT_CHOICES = getattr(settings, 'ENVELOPE_CONTACT_CHOICES',
                          DEFAULT_CONTACT_CHOICES)

#pylint: disable=W0232,E1101
class ContactForm(forms.Form):
    u"""
    Default contact form class.
    """
    sender = forms.CharField(label=u"From",
                             max_length=70)
    email = forms.EmailField(label=u"Email")
    category = forms.ChoiceField(label=u"Category",<commit_msg>Fixed a comment accidentaly left in Polish.<commit_after># -*- coding: utf-8 -*-

u"""
Envelope contact form.
"""

import logging
from smtplib import SMTPException
from django import forms
from django.conf import settings
from django.core.mail import send_mail
from django.template.loader import render_to_string


# global app logger
logger = logging.getLogger('envelope')

DEFAULT_CONTACT_CHOICES = (
    ('',    u"Choose"),
    (10,    u"A general question regarding the website"),
    (None,   u"Other"),
)
CONTACT_CHOICES = getattr(settings, 'ENVELOPE_CONTACT_CHOICES',
                          DEFAULT_CONTACT_CHOICES)

#pylint: disable=W0232,E1101
class ContactForm(forms.Form):
    u"""
    Default contact form class.
    """
    sender = forms.CharField(label=u"From",
                             max_length=70)
    email = forms.EmailField(label=u"Email")
    category = forms.ChoiceField(label=u"Category",
{'fraction_non_alphanumeric': 0.10922063666300769, 'fraction_numerical': 0.014270032930845226, 'mean_word_length': 3.45721271393643, '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': '5652683', 'n_tokens_mistral': 581, 'n_tokens_neox': 556, 'n_words': 136}