<commit_before>#!/bin/bash

working_dir=`dirname $0`

cd $working_dir

set -u
set -o  errexit

svn up > /dev/null
svn status | grep '^M' && echo "Unchecked in changes aborting" && exit
./script/mediawords_reformat_all_code.sh
svn commit -m "Auto formatting fix script"<commit_msg>CD to the root directory.<commit_after>#!/bin/bash

working_dir=`dirname $0`

cd $working_dir
cd ..

set -u
set -o  errexit

svn up > /dev/null
svn status | grep '^M' && echo "Unchecked in changes aborting" && exit
./script/mediawords_reformat_all_code.sh
svn commit -m "Auto formatting fix script"
{'fraction_non_alphanumeric': 0.12283737024221453, 'fraction_numerical': 0.0034602076124567475, 'mean_word_length': 4.263636363636364, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7375494', 'n_tokens_mistral': 220, 'n_tokens_neox': 211, 'n_words': 66}