<commit_before>#!/bin/sh -e

TS=`date --iso-8601`
TARGET_DIR=src/com/komanov/serialization
TARGET_NAME=jmh
DATA_DIR=./site/public/data/scala-serialization

bazel run -- //${TARGET_DIR}/${TARGET_NAME} -rf json -rff jmh.json | tee jmh.log
mv ./bazel-bin/${TARGET_DIR}/${TARGET_NAME}/${TARGET_NAME}.runfiles/stuff/jmh.json ${DATA_DIR}/jmh_${TS}.json
mv ./jmh.log ${DATA_DIR}/jmh_${TS}.log

echo ${TS}
echo "Don't forget to change JS, commit, push and deploy!"<commit_msg>Modify script according to changed directory structure<commit_after>#!/bin/sh -ex

DIR=`dirname $0`/..
DIR=`pwd $DIR`
TS=`date --iso-8601`
TARGET=src/com/komanov/serialization/jmh
TARGET_NAME=`basename $TARGET`
DATA_DIR=${DIR}/site/public/data/scala-serialization

if test ! -d /the/dir; then echo "no data dir, maybe you forgot to link site?"; exit 1; fi

cd ${DIR}/projects/scala_serialization
bazel run -- //${TARGET} -rf json -rff jmh.json | tee jmh.log
mv ./bazel-bin/${TARGET}/${TARGET_NAME}.runfiles/stuff/jmh.json ${DATA_DIR}/jmh_${TS}.json
mv ./jmh.log ${DATA_DIR}/jmh_${TS}.log
cd ${DIR}

echo ${TS}
echo "Don't forget to change JS, commit, push and deploy!"
{'fraction_non_alphanumeric': 0.1813380281690141, 'fraction_numerical': 0.008802816901408451, 'mean_word_length': 4.685, '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': '496317', 'n_tokens_mistral': 464, 'n_tokens_neox': 426, 'n_words': 100}