<commit_before>from django.db import models

from django_extensions.db.fields import (
    AutoSlugField, CreationDateTimeField, ModificationDateTimeField)
from taggit.managers import TaggableManager


class Hub(models.Model):
    """Local communities with Gigabit capabilities."""
    APPROVED = 1
    PENDING = 2
    REMOVED = 3
    STATUS_CHOICES = (
        (APPROVED, 'Approved'),
        (PENDING, 'Pending'),
        (REMOVED, 'Removed'),
    )
    name = models.CharField(max_length=255)
    slug = AutoSlugField(populate_from='name', unique=True)
    guardian = models.ForeignKey('auth.User', blank=True, null=True)
    summary = models.TextField(blank=True)
    description = models.TextField()
    image = models.ImageField(blank=True, upload_to='hub', max_length=500)
    website = models.URLField(max_length=500, blank=True)
    features = models.ManyToManyField('apps.Feature', blank=True)
    tags = TaggableManager(blank=True)
    notes = models.TextField(blank=True)
    status = models.IntegerField(choices=STATUS_CHOICES, default=PENDING)
    is_featured = models.BooleanField(default=False)
    created = CreationDateTimeField()
    modified = ModificationDateTimeField()

    def __unicode__(self):
        return self.name


class HubActivity(models.Model):
    hub = models.ForeignKey('hubs.Hub')
    title = models.CharField(max_length=255)
    description = models.TextField(blank=True)
    url = models.URLField(max_length=500, blank=True)
    user = models.ForeignKey('auth.User', blank=True, null=True)
    created = CreationDateTimeField()
    modified = ModificationDateTimeField()

    class Meta:
        verbose_name_plural = 'Hub Activities'

    def __unicode__(self):
        return self.name
<commit_msg>Rename ``title`` field to ``name``.<commit_after>from django.db import models

from django_extensions.db.fields import (
    AutoSlugField, CreationDateTimeField, ModificationDateTimeField)
from taggit.managers import TaggableManager


class Hub(models.Model):
    """Local communities with Gigabit capabilities."""
    APPROVED = 1
    PENDING = 2
    REMOVED = 3
    STATUS_CHOICES = (
        (APPROVED, 'Approved'),
        (PENDING, 'Pending'),
        (REMOVED, 'Removed'),
    )
    name = models.CharField(max_length=255)
    slug = AutoSlugField(populate_from='name', unique=True)
    guardian = models.ForeignKey('auth.User', blank=True, null=True)
    summary = models.TextField(blank=True)
    description = models.TextField()
    image = models.ImageField(blank=True, upload_to='hub', max_length=500)
    website = models.URLField(max_length=500, blank=True)
    features = models.ManyToManyField('apps.Feature', blank=True)
    tags = TaggableManager(blank=True)
    notes = models.TextField(blank=True)
    status = models.IntegerField(choices=STATUS_CHOICES, default=PENDING)
    is_featured = models.BooleanField(default=False)
    created = CreationDateTimeField()
    modified = ModificationDateTimeField()

    def __unicode__(self):
        return self.name


class HubActivity(models.Model):
    hub = models.ForeignKey('hubs.Hub')
    name = models.CharField(max_length=255)
    description = models.TextField(blank=True)
    url = models.URLField(max_length=500, blank=True)
    user = models.ForeignKey('auth.User', blank=True, null=True)
    created = CreationDateTimeField()
    modified = ModificationDateTimeField()

    class Meta:
        verbose_name_plural = 'Hub Activities'

    def __unicode__(self):
        return self.name

{'fraction_non_alphanumeric': 0.11104767342278048, 'fraction_numerical': 0.010276905509563231, 'mean_word_length': 4.12280701754386, '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': '206584', 'n_tokens_mistral': 1095, 'n_tokens_neox': 1043, 'n_words': 208}