<commit_before>set -e 
export DOCKER_PORT=${DOCKER_PORT:-2375}

if [ -z "${DOCKER_HOST}" ]; then 
	if [ -r /var/run/docker.sock ]; then 
        export DOCKER_HOST=unix:///var/run/docker.sock
	else
        export DOCKER_HOST=tcp://$(netstat -nr | grep '^0\.0\.0\.0' | awk '{print $2}'):$DOCKER_PORT
        echo "/var/run/docker.sock is not available set DOCKER_HOST=$DOCKER_HOST"
	fi
fi

export HOSTNAME=$(bin/docker-info.js Name)
echo "Docker Hostname: ${HOSTNAME}"

if [ -n "${TUTUM_NODE_HOSTNAME}" ]; then 
	export HOSTNAME=$TUTUM_NODE_HOSTNAME
	echo "Tutum Node Hostname: ${HOSTNAME}"
fi

if [ -n "${HOSTNAME_LOOKUP_URL}" ]; then 
	echo Hostname lookup: ${HOSTNAME_LOOKUP_URL}
	export HOSTNAME=$(curl -s $HOSTNAME_LOOKUP_URL)
	echo "Hostname lookup from ${HOSTNAME_LOOKUP_URL}: ${HOSTNAME}"
fi

sematext-agent-docker ${SPM_TOKEN} <commit_msg>changed path to docker-info script for hostname discovery<commit_after>set -e 
export DOCKER_PORT=${DOCKER_PORT:-2375}

if [ -z "${DOCKER_HOST}" ]; then 
	if [ -r /var/run/docker.sock ]; then 
        export DOCKER_HOST=unix:///var/run/docker.sock
	else
        export DOCKER_HOST=tcp://$(netstat -nr | grep '^0\.0\.0\.0' | awk '{print $2}'):$DOCKER_PORT
        echo "/var/run/docker.sock is not available set DOCKER_HOST=$DOCKER_HOST"
	fi
fi

export HOSTNAME=$(docker-info Name)
echo "Docker Hostname: ${HOSTNAME}"

if [ -n "${TUTUM_NODE_HOSTNAME}" ]; then 
	export HOSTNAME=$TUTUM_NODE_HOSTNAME
	echo "Tutum Node Hostname: ${HOSTNAME}"
fi

if [ -n "${HOSTNAME_LOOKUP_URL}" ]; then 
	echo Hostname lookup: ${HOSTNAME_LOOKUP_URL}
	export HOSTNAME=$(curl -s $HOSTNAME_LOOKUP_URL)
	echo "Hostname lookup from ${HOSTNAME_LOOKUP_URL}: ${HOSTNAME}"
fi

sematext-agent-docker ${SPM_TOKEN} 
{'fraction_non_alphanumeric': 0.15193529751588677, 'fraction_numerical': 0.010398613518197574, 'mean_word_length': 4.32923076923077, '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': '541306', 'n_tokens_mistral': 699, 'n_tokens_neox': 665, 'n_words': 151}