<commit_before>#!/bin/bash

set -e
set -u

cd /opt/pysk/pysk
echo 'for vh in VirtualHost.objects.all(): vh.save()' | python manage.py shell_plus
echo 'ALTER TABLE "vps_virtualhost" ADD "sortkey" varchar(255);' | psql pysk

<commit_msg>it usually makes sense to first change the schema, then use the new column. ouch. -.-<commit_after>#!/bin/bash

set -e
set -u

cd /opt/pysk/pysk
echo 'ALTER TABLE "vps_virtualhost" ADD "sortkey" varchar(255);' | psql pysk
echo 'for vh in VirtualHost.objects.all(): vh.save()' | python manage.py shell_plus


{'fraction_non_alphanumeric': 0.13653136531365315, 'fraction_numerical': 0.01107011070110701, 'mean_word_length': 4.271844660194175, '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': '4885715', 'n_tokens_mistral': 213, 'n_tokens_neox': 207, 'n_words': 65}