<commit_before>#!/bin/bash

function clean_shutdown {
  kill $(cat /app/cron.pid)
  . /app/bin/sync-from-s3.sh
}
trap clean_shutdown SIGTERM

# sync initial files
. /app/bin/sync-from-s3.sh

# setup background syncing
/app/bin/poor-mans-cron.sh &
echo $! > /app/cron.pid

# create server config
cp /app/server.properties1 /app/server.properties
echo "server-port=$PORT" >> /app/server.properties
cat /app/server.properties2 >> /app/server.properties

# run minecraft
cd /app
java -Xmx1024M -Xms1024M -jar /app/bin/minecraft_server.jar nogui<commit_msg>send logs to stdout<commit_after>#!/bin/bash

function clean_shutdown {
  kill $(cat /app/cron.pid)
  . /app/bin/sync-from-s3.sh
}
trap clean_shutdown SIGTERM

# sync initial files
. /app/bin/sync-from-s3.sh

# setup background syncing
/app/bin/poor-mans-cron.sh &
echo $! > /app/cron.pid

# create server config
cp /app/server.properties1 /app/server.properties
echo "server-port=$PORT" >> /app/server.properties
cat /app/server.properties2 >> /app/server.properties

# print logs to stdout
touch /app/server.log
tail -f /app/server.log &

# run minecraft
cd /app
java -Xmx1024M -Xms1024M -jar /app/bin/minecraft_server.jar nogui
{'fraction_non_alphanumeric': 0.13959390862944163, 'fraction_numerical': 0.02030456852791878, 'mean_word_length': 3.675889328063241, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '6095613', 'n_tokens_mistral': 462, 'n_tokens_neox': 445, 'n_words': 95}