<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 csrf, facebook message
    """
    endpoint = models.CharField(max_length=255)
    prefix = models.CharField(max_length=255)
    alphabet = models.CharField(max_length=255)

    maxreflectionlength = models.IntegerField(
        default=0,
        help_text=('The maximum length that will be reflected by the service '
                   'the designated location within the endpoint. If this is 0 '
                   'then there is no limit in the reflection length.')
    )
<commit_msg>Add help texts documenting target model fields<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,
        help_text=("The endpoint in full URL form, including 'https://'."
                   "The endpoint string must contain a '%s' to mark the "
                   "position in which the string-to-be-reflected will be "
                   "replaced into.")
    )

    maxreflectionlength = models.IntegerField(
        default=0,
        help_text=('The maximum length that will be reflected by the service '
                   'the designated location within the endpoint. If this is 0 '
                   'then there is no limit in the reflection length.')
    )

    prefix = models.CharField(
        max_length=255,
        help_text=("The known prefix of the secret used to bootstrap the "
                   "attack.")
    )

    alphabet = models.CharField(
        max_length=255,
        help_text=("This set contains all the candidate symbols each ",
                   "character of the secret can be.")
    )

{'fraction_non_alphanumeric': 0.07149901380670612, 'fraction_numerical': 0.010848126232741617, 'mean_word_length': 2.3929765886287626, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '6780397', 'n_tokens_mistral': 546, 'n_tokens_neox': 510, 'n_words': 197}