<commit_before>from django.db import models

from django_pgviews import view as pg


class TestModel(models.Model):
    """Test model with some basic data for running migrate tests against.
    """
    name = models.CharField(max_length=100)


class Superusers(django_pgviews.View):
    projection = ['auth.User.*']
    dependencies = ('viewtest.RelatedView',)
    sql = """SELECT * FROM auth_user WHERE is_superuser = TRUE;"""


class SimpleUser(django_pgviews.View):
    projection = ['auth.User.username', 'auth.User.password']
    # The row_number() window function is needed so that Django sees some kind
    # of 'id' field. We could also grab the one from `auth.User`, but this
    # seemed like more fun :)
    sql = """
    SELECT
        username,
        password,
        row_number() OVER () AS id
    FROM auth_user;"""

<commit_msg>Damn typos<commit_after>from django.db import models

from django_pgviews import view as django_pgviews


class TestModel(models.Model):
    """Test model with some basic data for running migrate tests against.
    """
    name = models.CharField(max_length=100)


class Superusers(django_pgviews.View):
    projection = ['auth.User.*']
    dependencies = ('viewtest.RelatedView',)
    sql = """SELECT * FROM auth_user WHERE is_superuser = TRUE;"""


class SimpleUser(django_pgviews.View):
    projection = ['auth.User.username', 'auth.User.password']
    # The row_number() window function is needed so that Django sees some kind
    # of 'id' field. We could also grab the one from `auth.User`, but this
    # seemed like more fun :)
    sql = """
    SELECT
        username,
        password,
        row_number() OVER () AS id
    FROM auth_user;"""


{'fraction_non_alphanumeric': 0.1092190252495596, 'fraction_numerical': 0.0035231943628890195, 'mean_word_length': 3.3248730964467006, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4037419', 'n_tokens_mistral': 505, 'n_tokens_neox': 486, 'n_words': 165}