<commit_before>from django.db import migrations


def _truncate_authtoken_table(apps, schema_editor):
    # NOTE: truncating to preserve migration records
    from django.db import connection
    cursor = connection.cursor()
    cursor.execute("TRUNCATE TABLE authtoken_token")


class Migration(migrations.Migration):

    dependencies = [
        ('hqwebapp', '0008_hqoauthapplication'),
    ]

    operations = [
        migrations.RunPython(_truncate_authtoken_table, reverse_code=migrations.RunPython.noop)
    ]<commit_msg>use RunSQL to simplify migration<commit_after>from django.db import migrations


class Migration(migrations.Migration):

    dependencies = [
        ('hqwebapp', '0008_hqoauthapplication'),
    ]

    operations = [
        migrations.RunSQL("TRUNCATE TABLE authtoken_token", reverse_sql=migrations.RunSQL.noop)
    ]
{'fraction_non_alphanumeric': 0.089728453364817, 'fraction_numerical': 0.009445100354191263, 'mean_word_length': 4.170731707317073, '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': '2768621', 'n_tokens_mistral': 263, 'n_tokens_neox': 249, 'n_words': 48}