<commit_before>from django.db import models
from django.contrib.sites.models import Site
from django.contrib.auth import models as auth_models
class RecProduct(models.Model):
    """A generic Product"""
    name = models.CharField(blank=True, max_length=100)
    sites = models.ManyToManyField(Site)

    def __unicode__(self):
        return self.name

    @models.permalink
    def get_absolute_url(self):
        return ('product_detail', [self.id])

    def sites_str(self):
        return u', '.join([s.name for s in self.sites.all()])

    sites_str.short_description = 'sites'
    class Meta:
        app_label = 'recommends'


class RecVote(models.Model):
    """A Vote on a Product"""
    user = models.ForeignKey(auth_models.User, related_name='rec_votes')
    product = models.ForeignKey(RecProduct)
    site = models.ForeignKey(Site)
    score = models.FloatField()

    def __unicode__(self):
        return u"Vote"
    class Meta:
        app_label = 'recommends'<commit_msg>code styling<commit_after>from django.db import models
from django.contrib.sites.models import Site
from django.contrib.auth import models as auth_models


class RecProduct(models.Model):
    """A generic Product"""
    name = models.CharField(blank=True, max_length=100)
    sites = models.ManyToManyField(Site)

    class Meta:
        app_label = 'recommends'

    def __unicode__(self):
        return self.name

    @models.permalink
    def get_absolute_url(self):
        return ('product_detail', [self.id])

    def sites_str(self):
        return u', '.join([s.name for s in self.sites.all()])
    sites_str.short_description = 'sites'


class RecVote(models.Model):
    """A Vote on a Product"""
    user = models.ForeignKey(auth_models.User, related_name='rec_votes')
    product = models.ForeignKey(RecProduct)
    site = models.ForeignKey(Site)
    score = models.FloatField()

    class Meta:
        app_label = 'recommends'

    def __unicode__(self):
        return u"Vote"
{'fraction_non_alphanumeric': 0.11212121212121212, 'fraction_numerical': 0.0030303030303030303, 'mean_word_length': 3.3924611973392462, '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': '6856965', 'n_tokens_mistral': 632, 'n_tokens_neox': 600, 'n_words': 146}