<commit_before>from __future__ import unicode_literals

from django.db import models
from django.utils import timezone

class Target(models.Model):
    """
    A particular static target endpoint that the attack can apply to, e.g. gmail, facebook
    """
    endpoint = models.CharField(max_length=255)
    prefix = models.CharField(max_length=255)
    alphabet = models.CharField(max_length=255)

class Victim(models.Model):
    """
    A particular instance of a target for a particular user-victim e.g. <EMAIL>
    """
    target = models.ForeignKey(Target)
    # TODO: method (divide & conquer, etc.)

class SampleSet(models.Model):
    """
    A set of samples collected for a particular victim pertaining to an attack vector used to extend a known secret.
    """
    victim = models.ForeignKey(Victim)
    # number of samples contained in the set
    amount = models.IntegerField(
        default=1,
        help_text="Number of samples contained in the sampleset"
    )

    # sampleset knownstate: knownsecret and knownalphabet
    knownsecret = models.CharField(
        default="",
        max_length=255,<commit_msg>Reformat new lines to shorter ones<commit_after>from __future__ import unicode_literals

from django.db import models
from django.utils import timezone

class Target(models.Model):
    """
    A particular static target endpoint that the attack can apply to
    e.g. gmail csrf, facebook message
    """
    endpoint = models.CharField(max_length=255)
    prefix = models.CharField(max_length=255)
    alphabet = models.CharField(max_length=255)

class Victim(models.Model):
    """
    A particular instance of a target for a particular user-victim
    e.g. <EMAIL>
    """
    target = models.ForeignKey(Target)
    # TODO: method (divide & conquer, etc.)

class SampleSet(models.Model):
    """
    A set of samples collected for a particular victim pertaining to an alphabet
    vector used to extend a known secret.
    """
    victim = models.ForeignKey(Victim)
    # number of samples contained in the set
    amount = models.IntegerField(
        default=1,
        help_text="Number of samples contained in the sampleset"
    )

    # sampleset knownstate: knownsecret and knownalphabet
    knownsecret = models.CharField(
        default="",
        max_length=255,
{'fraction_non_alphanumeric': 0.08293530178028659, 'fraction_numerical': 0.011289622231871473, 'mean_word_length': 3.298507462686567, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1170996', 'n_tokens_mistral': 668, 'n_tokens_neox': 641, 'n_words': 216}