<commit_before>import authtools
from django.conf import settings
from django.db import models
from django.http import request


class Tour(models.Model):
    title_pt = models.CharField(max_length=100, blank=True, null=False)
    title_gb = models.CharField(max_length=100, blank=True, null=False)
    title_de = models.CharField(max_length=100, blank=True, null=False)
    description_pt = models.TextField(max_length=1000, blank=True, null=False)
    description_gb = models.TextField(max_length=1000, blank=True, null=False)
    description_de = models.TextField(max_length=1000, blank=True, null=False)
    price = models.CharField(max_length=100, blank=True, null=False)
    img = models.FileField(null=True, blank=True)
    url = models.URLField(max_length=200, blank=True, null=False)
    created_on = models.DateTimeField(auto_now_add=True, auto_created=False)

    def __str__(self):
        return self.title_pt

    def __unicode__(self):
        return self.title_pt


class Offer(models.Model):
    title = models.CharField(max_length=100, blank=True, null=False)
    text = models.TextField(max_length=1000, blank=True, null=False)
    created_on = models.DateTimeField(auto_now_add=True, auto_created=False)
    img = models.FileField(null=True, blank=True)

    def __str__(self):
        return self.title

    def __unicode__(self):
        return self.title


class Gallery(models.Model):
    img = models.FileField(null=True, blank=True)
    title = models.TextField(max_length=100, blank=True, null=False)
    video = models.URLField(max_length=1000, blank=True, null=False)

    def __str__(self):
        return self.title

    def __unicode__(self):
        return self.title


class Contact(models.Model):
    first_name = models.CharField(max_length=100, blank=True, null=False)
    last_name = models.CharField(max_length=100, blank=True, null=False)
    img = models.FileField(null=True, blank=True)
    category = models.CharField(max_length=100, blank=True, null=False)
    mobile = models.CharField(max_length=100, blank=True, null=False)
    email = models.CharField(max_length=100, blank=True, null=False)
    whatsapp = models.CharField(max_length=100, blank=True, null=False)
    viber = models.CharField(max_length=100, blank=True, null=False)
    telegram = models.CharField(max_length=100, blank=True, null=False)
    skype = models.CharField(max_length=100, blank=True, null=False)
    facebook = models.URLField(max_length=100, blank=True, null=False)
    twitter = models.URLField(max_length=100, blank=True, null=False)
    pinterest = models.URLField(max_length=100, blank=True, null=False)
    google = models.URLField(max_length=100, blank=True, null=False)
    instagram = models.URLField(max_length=100, blank=True, null=False)

    def __str__(self):
        return self.last_name

    def __unicode__(self):
        return self.name


class Post(models.Model):
    user = models.ForeignKey(settings.AUTH_USER_MODEL)
    title = models.CharField(max_length=500)
    # updated = models.DateTimeField(auto_now=True, auto_now_add=False)
    # timestamp = models.DateTimeField(auto_now=False, auto_now_add=True)

    def __unicode__(self):
        return self.title
<commit_msg>fix model<commit_after>import authtools
from django.conf import settings
from django.db import models
from django.http import request


class Tour(models.Model):
    title_pt = models.CharField(max_length=100, blank=True, null=False)
    title_gb = models.CharField(max_length=100, blank=True, null=False)
    title_de = models.CharField(max_length=100, blank=True, null=False)
    description_pt = models.TextField(max_length=1000, blank=True, null=False)
    description_gb = models.TextField(max_length=1000, blank=True, null=False)
    description_de = models.TextField(max_length=1000, blank=True, null=False)
    price = models.CharField(max_length=100, blank=True, null=False)
    img = models.FileField(null=True, blank=True)
    url = models.URLField(max_length=200, blank=True, null=False)
    created_on = models.DateTimeField(auto_now_add=True, auto_created=False)

    def __str__(self):
        return self.title_pt

    def __unicode__(self):
        return self.title_pt


class Offer(models.Model):
    title = models.CharField(max_length=100, blank=True, null=False)
    text = models.TextField(max_length=1000, blank=True, null=False)
    created_on = models.DateTimeField(auto_now_add=True, auto_created=False)
    img = models.FileField(null=True, blank=True)

    def __str__(self):
        return self.title

    def __unicode__(self):
        return self.title


class Gallery(models.Model):
    img = models.FileField(null=True, blank=True)
    title = models.TextField(max_length=100, blank=True, null=False)
    video = models.URLField(max_length=1000, blank=True, null=False)

    def __str__(self):
        return self.title

    def __unicode__(self):
        return self.title


class Contact(models.Model):
    first_name = models.CharField(max_length=100, blank=True, null=False)
    last_name = models.CharField(max_length=100, blank=True, null=False)
    img = models.FileField(null=True, blank=True)
    category = models.CharField(max_length=100, blank=True, null=False)
    mobile = models.CharField(max_length=100, blank=True, null=False)
    email = models.CharField(max_length=100, blank=True, null=False)
    whatsapp = models.CharField(max_length=100, blank=True, null=False)
    viber = models.CharField(max_length=100, blank=True, null=False)
    telegram = models.CharField(max_length=100, blank=True, null=False)
    skype = models.CharField(max_length=100, blank=True, null=False)
    facebook = models.URLField(max_length=100, blank=True, null=False)
    twitter = models.URLField(max_length=100, blank=True, null=False)
    pinterest = models.URLField(max_length=100, blank=True, null=False)
    google = models.URLField(max_length=100, blank=True, null=False)
    instagram = models.URLField(max_length=100, blank=True, null=False)

    def __str__(self):
        return self.last_name

    def __unicode__(self):
        return self.name


class Post(models.Model):
    user = models.ForeignKey(settings.AUTH_USER_MODEL)
    title = models.CharField(max_length=500)
    publish = models.DateField(auto_now=False, auto_now_add=False)
    updated = models.DateTimeField(auto_now=True, auto_now_add=False)
    timestamp = models.DateTimeField(auto_now=False, auto_now_add=True)

    def __unicode__(self):
        return self.title

{'fraction_non_alphanumeric': 0.11271720744271875, 'fraction_numerical': 0.026449331077964017, 'mean_word_length': 4.8123324396782845, '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': '4398068', 'n_tokens_mistral': 2237, 'n_tokens_neox': 2074, 'n_words': 388}