<commit_before>#!/bin/bash

die() {
    echo >&2 $0: $*
    exit 1
}

if [ -z "$home" ]; then
    home=/gowebhello
fi

main=$home/main.go

echo $0: $main

[ -r "$main" ] || die "unable to read: $main"

# kill previous instance
pkill -f -9 '^.+go-build.+main$'

# start new instance
nohup /usr/local/go/bin/go run $main &
<commit_msg>Long running process.<commit_after>#!/bin/bash

die() {
    echo >&2 $0: $*
    exit 1
}

if [ -z "$home" ]; then
    home=/gowebhello
fi

main=$home/main.go

echo $0: $main

[ -r "$main" ] || die "unable to read: $main"

# kill previous instance
pkill -f -9 '^.+go-build.+main$'

# start new instance
#nohup /usr/local/go/bin/go run $main &
# http://docs.aws.amazon.com/codedeploy/latest/userguide/troubleshooting-deployments.html#troubleshooting-long-running-processes
/usr/local/go/bin/go run $main >/dev/null 2>/dev/null </dev/null &

{'fraction_non_alphanumeric': 0.1894374282433984, 'fraction_numerical': 0.012629161882893225, 'mean_word_length': 3.1923076923076925, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 7, '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': '4494286', 'n_tokens_mistral': 374, 'n_tokens_neox': 358, 'n_words': 85}