<commit_before>#!/bin/bash
if [[ -n "$1" && -n "$2" && -n "$3"  ]] ; then 

	export SPM_TOKEN=$1
	export LOGSENE_TOKEN=$2
	export LOGSENE_GATEWAY_PORT=$3

	etcdctl set /sematext.com/myapp/spm/token $SPM_TOKEN
	etcdctl set /sematext.com/myapp/logsene/token $LOGSENE_TOKEN
	etcdctl set /sematext.com/myapp/logsene/gateway_port $LOGSENE_GATEWAY_PORT

	wget https://raw.githubusercontent.com/sematext/sematext-agent-docker/master/coreos/sematext-agent.service
	fleetctl load sematext-agent.service; fleetctl start sematext-agent.service
	wget https://raw.githubusercontent.com/sematext/sematext-agent-docker/master/coreos/logsene.service
	fleetctl load logsene.service; fleetctl start logsene.service;
else 
	if [[ $# -eq 1 ]] ; then 
	  export SPM_TOKEN=$1
	  echo $SPM_TOKEN
	  etcdctl set /sematext.com/myapp/spm/token $SPM_TOKEN<commit_msg>removed debug output in coreos install script<commit_after>#!/bin/bash
if [[ -n "$1" && -n "$2" && -n "$3"  ]] ; then 

	export SPM_TOKEN=$1
	export LOGSENE_TOKEN=$2
	export LOGSENE_GATEWAY_PORT=$3

	etcdctl set /sematext.com/myapp/spm/token $SPM_TOKEN
	etcdctl set /sematext.com/myapp/logsene/token $LOGSENE_TOKEN
	etcdctl set /sematext.com/myapp/logsene/gateway_port $LOGSENE_GATEWAY_PORT

	wget https://raw.githubusercontent.com/sematext/sematext-agent-docker/master/coreos/sematext-agent.service
	fleetctl load sematext-agent.service; fleetctl start sematext-agent.service
	wget https://raw.githubusercontent.com/sematext/sematext-agent-docker/master/coreos/logsene.service
	fleetctl load logsene.service; fleetctl start logsene.service;
else 
	if [[ $# -eq 1 ]] ; then 
	  export SPM_TOKEN=$1
	  etcdctl set /sematext.com/myapp/spm/token $SPM_TOKEN
{'fraction_non_alphanumeric': 0.12344949793266391, 'fraction_numerical': 0.009450679267572357, 'mean_word_length': 4.684563758389261, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '2607072', 'n_tokens_mistral': 695, 'n_tokens_neox': 671, 'n_words': 115}