<commit_before>from django import forms
from .models import Listing, HousingUser

class ListingForm(forms.ModelForm):
    furnished_details = forms.CharField(required=False, widget=forms.Textarea(attrs={
        "placeholder": "Example: bed and desk only"}))
    additional_lease_terms = forms.CharField(required=False,
        widget=forms.Textarea(attrs={'class': 'form-control',
        "placeholder": "Example: Owner pays for trash, sewer, and water. Owner "
        "shovel snow, lawn, garden, driveway maintenance."}))
    lease_duration_custom = forms.CharField(max_length=128, required=False,
        widget=forms.TextInput(attrs={"placeholder": "Example: 6/9 - 8/9/2016"}))
    date_available = forms.DateField(widget=forms.TextInput(attrs={"type": "date"}))

    class Meta:
        model = Listing
        exclude = ("listing_owner", "is_active", "datetime_modified",
            "datetime_created")

class HousingUserCreationForm(forms.ModelForm):
    class Meta:
        model = HousingUser
        fields = ("username", "password")
<commit_msg>Update ListingForm<commit_after>from django import forms
from .models import Listing, HousingUser

class ListingForm(forms.ModelForm):
    furnished_details = forms.CharField(required=False, widget=forms.TextInput(attrs={
        "placeholder": "Example: bed and desk only"}))
    additional_lease_terms = forms.CharField(required=False,
        widget=forms.Textarea(attrs={'class': 'form-control',
        "placeholder": "Example: Owner pays for trash, sewer, and water. Owner "
        "shovel snow, lawn, garden, driveway maintenance."}))
    lease_duration_custom = forms.CharField(max_length=128, required=False,
        widget=forms.TextInput(attrs={"placeholder": "Other lease duration, example: 6/9 - 8/9/2016"}))
    date_available = forms.DateField(widget=forms.TextInput(attrs={"type": "date"}))

    class Meta:
        model = Listing
        exclude = ("listing_owner", "is_active", "datetime_modified",
            "datetime_created")

class HousingUserCreationForm(forms.ModelForm):
    class Meta:
        model = HousingUser
        fields = ("username", "password")

{'fraction_non_alphanumeric': 0.12546641791044777, 'fraction_numerical': 0.010261194029850746, 'mean_word_length': 4.119331742243436, 'pattern_counts': {'":': 8, '<': 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': '6311933', 'n_tokens_mistral': 630, 'n_tokens_neox': 599, 'n_words': 140}