<commit_before>#!/bin/bash -x

SAVES=/opt/factorio/saves

if [ -f $SAVES/*.zip ]
then
  last_save=$(ls $SAVES -lt | grep save |head -1 |awk '{print $(NF)}')
else
  last_save="save.zip"
  /opt/factorio/bin/x64/factorio --create $SAVES/$last_save
fi

exec /opt/factorio/bin/x64/factorio \
  --start-server \
  $SAVES/$last_save<commit_msg>simplify startup<commit_after>#!/bin/bash -x

SAVES=/opt/factorio/saves

if [ ! -f $SAVES/*.zip ]
then
  /opt/factorio/bin/x64/factorio --create $SAVES/save.zip
fi

exec /opt/factorio/bin/x64/factorio --start-server-load-latest
{'fraction_non_alphanumeric': 0.18262411347517732, 'fraction_numerical': 0.015957446808510637, 'mean_word_length': 3.484126984126984, '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': '6563197', 'n_tokens_mistral': 256, 'n_tokens_neox': 243, 'n_words': 41}