<commit_before>from django.db import models
import ast
from helpers import rand_id

class Recommendation(models.Model):
    item_hash = models.BigIntegerField()
    milestone = models.URLField()
    url = models.URLField()
    name = models.CharField(max_length=255)
    m_name = models.CharField(max_length=255)
    description = models.CharField(max_length=255)
    confidence = models.FloatField()
    support = models.IntegerField()
    timestamp = models.DateTimeField(auto_now=True)

    def __unicode__(self):
        return self.name

    def __html__(self):
        return '<a href="' + str(self.url) + '" >' + \
               str(self.name) + '</a>'


class Activity(models.Model):
    user = models.EmailField()
    type = models.URLField(max_length=255)
    verb = models.URLField(max_length=255)<commit_msg>Renamed columns to be more descriptive<commit_after>from django.db import models
from helpers import rand_id

class Recommendation(models.Model):
    antecedent_hash = models.BigIntegerField()
    milestone = models.URLField()
    consequent = models.URLField()
    name = models.CharField(max_length=255)
    m_name = models.CharField(max_length=255)
    description = models.CharField(max_length=255)
    confidence = models.FloatField()
    support = models.IntegerField()
    timestamp = models.DateTimeField(auto_now=True)

    def __unicode__(self):
        return self.name

    def __html__(self):
        return '<a href="' + str(self.url) + '" >' + \
               str(self.name) + '</a>'


class Activity(models.Model):
    user = models.EmailField()
    type = models.URLField(max_length=255)
    verb = models.URLField(max_length=255)
{'fraction_non_alphanumeric': 0.11743559017375674, 'fraction_numerical': 0.017974835230677052, 'mean_word_length': 3.587912087912088, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6916736', 'n_tokens_mistral': 540, 'n_tokens_neox': 500, 'n_words': 102}