<commit_before>#!/bin/bash

mkdir -p log

if test -f java-memstruct.pid; then
  if ps -p $(cat java-memstruct.pid) > /dev/null; then
    echo "Hyphe's Java Memory Structure is already running, please run bin/stop.sh or kill "$(cat java-memstruct.pid)
    exit 1
  else
    rm java-memstruct.pid
  fi
fi

# Run as debug mode on start_lucene.sh 1
if [ -z $1 ]; then
  log=""
else log="log.level=DEBUG"
fi

java -server -Xms256m -Xmx1024m -Xmn224m -XX:NewSize=224m -XX:MaxNewSize=224m -XX:NewRatio=3 -XX:SurvivorRatio=6 -XX:PermSize=128m -XX:MaxPermSize=128m -XX:+UseParallelGC -XX:ParallelGCThreads=2 -jar hyphe_backend/memorystructure/MemoryStructureExecutable.jar $log >> log/hyphe-memorystructure.log &
echo $! > java-memstruct.pid
<commit_msg>separate frankly pieces of log<commit_after>#!/bin/bash

mkdir -p log

if test -f java-memstruct.pid; then
  if ps -p $(cat java-memstruct.pid) > /dev/null; then
    echo "Hyphe's Java Memory Structure is already running, please run bin/stop.sh or kill "$(cat java-memstruct.pid)
    exit 1
  else
    rm java-memstruct.pid
  fi
fi

# Run as debug mode on start_lucene.sh 1
if [ -z $1 ]; then
  log=""
else log="log.level=DEBUG"
fi

echo >> log/hyphe-memorystructure.log
java -server -Xms256m -Xmx1024m -Xmn224m -XX:NewSize=224m -XX:MaxNewSize=224m -XX:NewRatio=3 -XX:SurvivorRatio=6 -XX:PermSize=128m -XX:MaxPermSize=128m -XX:+UseParallelGC -XX:ParallelGCThreads=2 -jar hyphe_backend/memorystructure/MemoryStructureExecutable.jar $log >> log/hyphe-memorystructure.log &
echo $! > java-memstruct.pid

{'fraction_non_alphanumeric': 0.12491909385113269, 'fraction_numerical': 0.036245954692556634, 'mean_word_length': 4.136212624584718, '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': '4849825', 'n_tokens_mistral': 622, 'n_tokens_neox': 571, 'n_words': 150}