<commit_before>from django.db import models
from django.contrib.auth.models import User
# Create your models here.


class Follow(models.Model):
    # when started following
    date = models.DateTimeField()
    # who started following
    follower = models.ForeignKey(User, related_name="follower")
    # who was followed
    following = models.ForeignKey(User, related_name="following")

    def __unicode__(self):
        return u"{} -> {}".format(self.follower, self.following)


class Friend(models.Model):
    # when request was accepted
    date = models.DateTimeField()
    # who followed back
    accepter = models.ForeignKey(User, related_name="accepter")
    # who started following
    requester = models.ForeignKey(User, related_name="requester")

    def __unicode__(self):
        return u"{} -> {}".format(self.requester, self.accepter)<commit_msg>added accepted flag<commit_after>from django.db import models
from django.contrib.auth.models import User
# Create your models here.


class Follow(models.Model):
    # when started following
    date = models.DateTimeField()
    # who started following
    follower = models.ForeignKey(User, related_name="follower")
    # who was followed
    following = models.ForeignKey(User, related_name="following")

    def __unicode__(self):
        return u"{} -> {}".format(self.follower, self.following)


class Friend(models.Model):
    # when request was accepted
    date = models.DateTimeField()
    # who followed back
    accepter = models.ForeignKey(User, related_name="accepter")
    # who started following
    requester = models.ForeignKey(User, related_name="requester")
    #did accepter accept the request
    accepted = models.BooleanField(default=False)

    def __unicode__(self):
        return u"{} -> {}".format(self.requester, self.accepter)
{'fraction_non_alphanumeric': 0.10982976386600769, 'fraction_numerical': 0.0, 'mean_word_length': 3.8978494623655915, 'pattern_counts': {'":': 0, '<': 3, '<?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': '63589', 'n_tokens_mistral': 526, 'n_tokens_neox': 503, 'n_words': 134}