<commit_before>#!/bin/bash

pushd "`dirname "$0"`" > /dev/null || exit $?

if [ ! -d "logs" ]; then
  mkdir "logs" || exit $?
fi

nohup \
  java \
  -server \
  -Xms256m \
  -Xmx512m \
  -XX:+UseParallelGC \
  -XX:+UseParallelOldGC \
  -Xloggc:logs/winstone-gc.log \
  -XX:+PrintGCDetails \<commit_msg>Added log cleaning.<commit_after>#!/bin/bash

pushd "`dirname "$0"`" > /dev/null || exit $?

if [ ! -d "logs" ]; then
  mkdir "logs" || exit $?
fi

# Clean interrupted logs
if [ "`ls logs | egrep '.tmp$' | wc -l`" -ne 0 ]; then
  rm -v logs/*.tmp
fi

nohup \
  java \
  -server \
  -Xms256m \
  -Xmx512m \
  -XX:+UseParallelGC \
  -XX:+UseParallelOldGC \
  -Xloggc:logs/winstone-gc.log \
  -XX:+PrintGCDetails \
{'fraction_non_alphanumeric': 0.19775596072931276, 'fraction_numerical': 0.021037868162692847, 'mean_word_length': 2.5172413793103448, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6319676', 'n_tokens_mistral': 337, 'n_tokens_neox': 319, 'n_words': 65}