<commit_before>#!/bin/sh

# * any param "$1" will redirect node.js' output i.e:
#   1>>log/app_back_stdout.txt 2>>log/app_back_stderr.txt
# * if env $NODEJS_CONFIG is exported it is used and no hardcoded file is read

set -e
PATH=.:bin:$PATH

trap 'echo "
Unexpected Script Error! Use /bin/sh -x $0 to trace it.
"
set +e

trap "" 0
exit 0
' 0

normal_exit(){
    echo "
Normal Exit${1:- (backend is running)}
"<commit_msg>_devel_backend.sh: allow runs from non root directory<commit_after>#!/bin/sh

# * any param "$1" will redirect node.js' output i.e:
#   1>>log/app_back_stdout.txt 2>>log/app_back_stderr.txt
# * if env $NODEJS_CONFIG is exported it is used and no hardcoded file is read

cd "${0%/*}" 2>/dev/null
set -e
PATH=.:bin:$PATH

trap 'echo "
Unexpected Script Error! Use /bin/sh -x $0 to trace it.
"
set +e

trap "" 0
exit 0
' 0

normal_exit(){
    echo "
Normal Exit${1:- (backend is running)}
"
{'fraction_non_alphanumeric': 0.14411441144114412, 'fraction_numerical': 0.019801980198019802, 'mean_word_length': 3.6907216494845363, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 12, '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': '2833373', 'n_tokens_mistral': 361, 'n_tokens_neox': 340, 'n_words': 117}