<commit_before>#!bash
#
# Usage: clicraft dl
#
#    Downloads the server jar file.
#

if [ -f "$SERVER_JAR" ]; then
	msg "Backing up server jar to $(basename $SERVER_JAR).ccback"
	mv "$SERVER_JAR" "$SERVER_JAR.ccback" || return $?

	msg "Downloading new $(basename $SERVER_JAR)"
else
	msg "Downloading $(basename $SERVER_JAR)"
fi

$DOWNLOAD_COMMAND
<commit_msg>Check for write perms on dl<commit_after>#!bash
#
# Usage: clicraft dl
#
#    Downloads the server jar file.
#

JAR_DIR="$(dirname "$SERVER_JAR")"
if [ ! -w "$JAR_DIR" ]; then
	err "No write permissions in $JAR_DIR"
	return 1
fi

if [ -f "$SERVER_JAR" ]; then
	msg "Backing up server jar to $(basename $SERVER_JAR).ccback"
	mv "$SERVER_JAR" "$SERVER_JAR.ccback" || return $?

	msg "Downloading new $(basename $SERVER_JAR)"
else
	msg "Downloading $(basename $SERVER_JAR)"
fi

$DOWNLOAD_COMMAND

{'fraction_non_alphanumeric': 0.1405152224824356, 'fraction_numerical': 0.00117096018735363, 'mean_word_length': 4.777027027027027, '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': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3063311', 'n_tokens_mistral': 336, 'n_tokens_neox': 329, 'n_words': 94}