<commit_before>#!/bin/sh

echo Resetting database for app 'Photos'

python manage.py sqlclear photos | python manage.py dbshell
python manage.py syncdb

echo Deleting uploaded photos

rm -rfi ../media/photos/*<commit_msg>causes reset.sh to remove uploaded files (with confirmation)<commit_after>#!/bin/bash

echo Resetting database for app 'Photos'

python manage.py sqlclear photos | python manage.py dbshell
python manage.py syncdb

read -p "Delete all non-hidden files/dirs in the media/photos/ directory (rm -rfv ../media/photos/*)?  (yes/n)" proceed

if [ $proceed == yes ];
then
    rm -rfv ../media/photos/*
else
    echo "media/photos/ preserved"
fi

echo "Reset complete."
{'fraction_non_alphanumeric': 0.11160058737151249, 'fraction_numerical': 0.0, 'mean_word_length': 3.9420289855072466, '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': '1915312', 'n_tokens_mistral': 227, 'n_tokens_neox': 212, 'n_words': 77}