<commit_before>from django.db import models

class Job(models.Model):

    posted = models.DateTimeField(auto_now_add=True)

    approved = models.BooleanField(default=False)

    title = models.CharField(max_length=1024)

    JOB_TYPE_CHOICES = (
        ("PT", "Part-time"),
        ("FT", "Full-time"),
        ("CT", "Fixed-term contract"),
        ("CP", "Fixed-price contract"),
        ("VL", "Volunteer"),
        ("OT", "Other"),
    )
    job_type = models.CharField(max_length=2, choices=JOB_TYPE_CHOICES)

    salary = models.CharField(max_length=128, blank=True)

    url = models.CharField(max_length=1024, blank=True)

    location = models.CharField(max_length=1024, blank=True)

    company = models.CharField(max_length=512, blank=True)


    description = models.TextField()

    contact_email = models.EmailField(max_length=254)

    experience = models.CharField(max_length=128, blank=True)
<commit_msg>Added get_absolute_url method for jobs that goes to details page.<commit_after>from django.db import models

class Job(models.Model):

    posted = models.DateTimeField(auto_now_add=True)

    approved = models.BooleanField(default=False)

    title = models.CharField(max_length=1024)

    JOB_TYPE_CHOICES = (
        ("PT", "Part-time"),
        ("FT", "Full-time"),
        ("CT", "Fixed-term contract"),
        ("CP", "Fixed-price contract"),
        ("VL", "Volunteer"),
        ("OT", "Other"),
    )
    job_type = models.CharField(max_length=2, choices=JOB_TYPE_CHOICES)

    salary = models.CharField(max_length=128, blank=True)

    url = models.CharField(max_length=1024, blank=True)

    location = models.CharField(max_length=1024, blank=True)

    company = models.CharField(max_length=512, blank=True)


    description = models.TextField()

    contact_email = models.EmailField(max_length=254)

    experience = models.CharField(max_length=128, blank=True)

    @models.permalink
    def get_absolute_url(self):
        return ('view_job', [str(self.id)])
{'fraction_non_alphanumeric': 0.13713713713713713, 'fraction_numerical': 0.025025025025025027, 'mean_word_length': 3.7482185273159145, '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': '7436279', 'n_tokens_mistral': 691, 'n_tokens_neox': 629, 'n_words': 113}