<commit_before>#!upstart
# Streambot API upstart script
# This script will start/stop a Streambot API server
description "Start and stop the Streambot API server"
version "0.1"
author "<NAME>"

start on local-filesystems and net-device-up IFACE!=lo
stop on shutdown

respawn
respawn limit 5 60

# tell upstart we're creating a daemon
# upstart manages PID creation for you.
expect daemon

script
# My startup script, plain old shell scripting here.
su <%= @user %> -c "<%= @binary %> -c <%= @config %> >> <%= @log %> 2>&1"
end script<commit_msg>Fixes GOPATH for API execution<commit_after>#!upstart
# Streambot API upstart script
# This script will start/stop a Streambot API server
description "Start and stop the Streambot API server"
version "0.1"
author "<NAME>"

start on local-filesystems and net-device-up IFACE!=lo
stop on shutdown

respawn
respawn limit 5 60

# tell upstart we're creating a daemon
# upstart manages PID creation for you.
expect daemon

script
# My startup script, plain old shell scripting here.
su <%= @user %> -c 'GOPATH=$GOPATH:<%= File.dirname(@binary) %>:<%= File.dirname(@binary) %>/vendor <%= @binary %> -c <%= @config %> >> <%= @log %> 2>&1'
end script
{'fraction_non_alphanumeric': 0.12215669755686605, 'fraction_numerical': 0.011794439764111205, 'mean_word_length': 4.684210526315789, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 21, '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': '259170', 'n_tokens_mistral': 404, 'n_tokens_neox': 367, 'n_words': 151}