<commit_before>from django import newforms as forms
from django.utils.translation import ugettext_lazy as _

from bookmarks.models import Bookmark

class BookmarkForm(forms.ModelForm):
    
    url = forms.URLField(label = "URL", verify_exists=True, widget=forms.TextInput(attrs={"size": 40}))
    description = forms.CharField(widget=forms.TextInput(attrs={"size": 40}))
    
    def clean_url(self):
        if Bookmark.objects.filter(url=self.cleaned_data["url"]).count() > 0:
            raise forms.ValidationError(_("That url has already been submitted and Pinax does not yet support multiple bookmarking of a URL"))
        return self.cleaned_data["name"]
    
    class Meta:
        model = Bookmark
        exclude = ('adder', 'added',)<commit_msg>fixed stupid copy-paste error preventing bookmark add<commit_after>from django import newforms as forms
from django.utils.translation import ugettext_lazy as _

from bookmarks.models import Bookmark

class BookmarkForm(forms.ModelForm):
    
    url = forms.URLField(label = "URL", verify_exists=True, widget=forms.TextInput(attrs={"size": 40}))
    description = forms.CharField(widget=forms.TextInput(attrs={"size": 40}))
    
    def clean_url(self):
        if Bookmark.objects.filter(url=self.cleaned_data["url"]).count() > 0:
            raise forms.ValidationError(_("That url has already been submitted and Pinax does not yet support multiple bookmarking of a URL"))
        return self.cleaned_data["url"]
    
    class Meta:
        model = Bookmark
        exclude = ('adder', 'added',)
{'fraction_non_alphanumeric': 0.10982658959537572, 'fraction_numerical': 0.006422607578676943, 'mean_word_length': 3.89937106918239, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 5, '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': '4871589', 'n_tokens_mistral': 455, 'n_tokens_neox': 440, 'n_words': 121}