<commit_before>#!/bin/bash
[ -f .env ]  && source .env

./node_modules/.bin/coffee ./server/app.coffee "$@"
<commit_msg>Restart nodejs server on crashes<commit_after>#!/bin/bash
[ -f .env ]  && source .env

# Kill child process on exit
trap 'kill $(jobs -p)' EXIT

# Re-run server on crashes
while :
do
  ./node_modules/.bin/coffee ./server/app.coffee "$@"
  echo "Server crashed with status $?"
  sleep 1
done

{'fraction_non_alphanumeric': 0.1654501216545012, 'fraction_numerical': 0.0024330900243309003, 'mean_word_length': 3.2916666666666665, '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': '6382673', 'n_tokens_mistral': 163, 'n_tokens_neox': 148, 'n_words': 42}