<commit_before>{

  dump_database() {
    echo "Backing up database to ./docker/database"
    mkdir ./docker/database
    docker-compose exec mysql mysqldump -uroot -psecret craft > ./docker/database/craft.sql
    echo "Finished Backing up database"
  }

  import_database() {
    echo "Importing database from ./docker/database/craft.sql"
    echo "For some reason this takes a little time, so be patient..."
    docker-compose exec mysql mysql -uroot -psecret -e "DROP DATABASE craft"
    docker-compose exec mysql mysql -uroot -psecret -e "CREATE DATABASE craft"
    docker exec -i `basename $PWD`_mysql_1 mysql -uroot -psecret craft < ./docker/database/craft.sql
    echo "Finished importing database"
  }

  pack_uploads() {
    echo "Packing uploads"
    tar -zcvf ~/Desktop/uploads.tar.gz ./public/uploads/ 
    echo "Finished pacing uploads"
  }

  unpack_uploads() {
    echo "Unpacking uploads"
    tar -C ./ -xzf ./public/uploads.tar.gz
    rm -rf ./public/uploads.tar.gz
    echo "Finished unpacking uploads"<commit_msg>Changing the uploads pack location to dropbox folder<commit_after>{

  dump_database() {
    echo "Backing up database to ./docker/database"
    mkdir ./docker/database
    docker-compose exec mysql mysqldump -uroot -psecret craft > ./docker/database/craft.sql
    echo "Finished Backing up database"
  }

  import_database() {
    echo "Importing database from ./docker/database/craft.sql"
    echo "For some reason this takes a little time, so be patient..."
    docker-compose exec mysql mysql -uroot -psecret -e "DROP DATABASE craft"
    docker-compose exec mysql mysql -uroot -psecret -e "CREATE DATABASE craft"
    docker exec -i `basename $PWD`_mysql_1 mysql -uroot -psecret craft < ./docker/database/craft.sql
    echo "Finished importing database"
  }

  pack_uploads() {
    echo "Packing uploads to your dropbox folder"
    tar -zcvf ~/Dropbox/`basename $PWD`/uploads.tar.gz ./public/uploads/ 
    echo "Finished pacing uploads"
  }

  unpack_uploads() {
    echo "Unpacking uploads"
    tar -C ./ -xzf ./public/uploads.tar.gz
    rm -rf ./public/uploads.tar.gz
    echo "Finished unpacking uploads"
{'fraction_non_alphanumeric': 0.10457516339869281, 'fraction_numerical': 0.0009337068160597573, 'mean_word_length': 3.01310861423221, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3325585', 'n_tokens_mistral': 726, 'n_tokens_neox': 668, 'n_words': 215}