<commit_before>#!/bin/bash

# get newest changes
df-git.sh pull
if [[ $? -ne 0 ]]; then
    exit 1
fi

# run dwarf fortress
$(df-git.sh get-binary-path)

# auto-commit
df-git.sh commit "[$(date +"%Y-%m-%d %H:%M:%S")] auto-commit"
if [[ $? -ne 0 ]]; then
    exit 1
fi
# update repo
df-git.sh push
<commit_msg>df-start uses it's directory to find df-git.<commit_after>#!/bin/bash

DF_GIT_INSTALL_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
DF_GIT_SH="$DF_GIT_INSTALL_DIR/df-git.sh"

# get newest changes
$DF_GIT_SH pull
if [[ $? -ne 0 ]]; then
    exit 1
fi

# run dwarf fortress
$($DF_GIT_SH get-binary-path)

# auto-commit
$DF_GIT_SH commit "[$(date +"%Y-%m-%d %H:%M:%S")] auto-commit"
if [[ $? -ne 0 ]]; then
    exit 1
fi
# update repo
$DF_GIT_SH push

{'fraction_non_alphanumeric': 0.19477124183006536, 'fraction_numerical': 0.011764705882352941, 'mean_word_length': 3.6144578313253013, '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': '5340518', 'n_tokens_mistral': 345, 'n_tokens_neox': 323, 'n_words': 84}