<commit_before>from django.db import models

from django.db import models
from django.db.models import permalink
from django.core.urlresolvers import reverse
from django.contrib.auth.models import User

from commoner.util import getBaseURL

class Content(models.Model):

    user = models.ForeignKey(User, related_name='content')

    url = models.URLField(max_length=255, blank=False,
                          verify_exists=False,
                          verbose_name="Content URL")

    title = models.CharField(max_length=255, blank=True)
    registered = models.DateField(auto_now_add=True)
    license = models.URLField(max_length=255, blank=True,
                              help_text="The URL of the license your work is available under.")

    def __unicode__(self):
        return self.title or self.url

    def get_absolute_url(self):
        return reverse('view_work', args=(self.id,))
	<commit_msg>"Work" URL, not "Content" URL.<commit_after>from django.db import models

from django.db import models
from django.db.models import permalink
from django.core.urlresolvers import reverse
from django.contrib.auth.models import User

from commoner.util import getBaseURL

class Content(models.Model):

    user = models.ForeignKey(User, related_name='content')

    url = models.URLField(max_length=255, blank=False,
                          verify_exists=False,
                          verbose_name="Work URL")

    title = models.CharField(max_length=255, blank=True)
    registered = models.DateField(auto_now_add=True)
    license = models.URLField(max_length=255, blank=True,
                              help_text="The URL of the license your work is available under.")

    def __unicode__(self):
        return self.title or self.url

    def get_absolute_url(self):
        return reverse('view_work', args=(self.id,))
	
{'fraction_non_alphanumeric': 0.08982683982683982, 'fraction_numerical': 0.00974025974025974, 'mean_word_length': 3.0726872246696035, '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': '1185408', 'n_tokens_mistral': 537, 'n_tokens_neox': 509, 'n_words': 132}