<commit_before>from django.db import models


class Site(models.Model):
    name = models.CharField('Name', max_length=255, unique=True)
    url = models.CharField(
        'URL',
        max_length=255,
        unique=True,
        help_text='Specify the domain name without the scheme, e.g. "example.com" instead of "https://example.com"')

    added = models.DateTimeField(auto_now_add=True)

    def __str__(self):
        return self.name
    

class Scan(models.Model):
    site = models.ForeignKey(Site, on_delete=models.CASCADE, related_name='scans')
    timestamp = models.DateTimeField()

    # Scan results
    supports_https = models.BooleanField()<commit_msg>Automatically timestamp scans on save<commit_after>from django.db import models


class Site(models.Model):
    name = models.CharField('Name', max_length=255, unique=True)
    url = models.CharField(
        'URL',
        max_length=255,
        unique=True,
        help_text='Specify the domain name without the scheme, e.g. "example.com" instead of "https://example.com"')

    added = models.DateTimeField(auto_now_add=True)

    def __str__(self):
        return self.name
    

class Scan(models.Model):
    site = models.ForeignKey(Site, on_delete=models.CASCADE, related_name='scans')
    added = models.DateTimeField(auto_now_add=True)

    # Scan results
    supports_https = models.BooleanField()
{'fraction_non_alphanumeric': 0.11223750905141203, 'fraction_numerical': 0.008689355539464157, 'mean_word_length': 3.501628664495114, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '494110', 'n_tokens_mistral': 439, 'n_tokens_neox': 417, 'n_words': 93}