<commit_before>#!/bin/sh

myip=$( ip addr show eth0 | awk '$1 == "inet" {print $2}' | cut -f1 -d/ )
url="http://$myip:9000/"

echo ======================================================================
echo "$url"
echo ======================================================================
echo

exec squeezeboxserver \
	--prefsdir $SQUEEZE_VOL/prefs \
	--logdir $SQUEEZE_VOL/logs \
	--cachedir $SQUEEZE_VOL/cache "$@"
<commit_msg>handle failures to determine local ip address<commit_after>#!/bin/sh

myip=$( ip addr show eth0 2> /dev/null | awk '$1 == "inet" {print $2}' | cut -f1 -d/ )

if [ "$myip" ]; then
	url="http://$myip:9000/"

	echo ======================================================================
	echo "$url"
	echo ======================================================================
	echo
fi

exec squeezeboxserver \
	--prefsdir $SQUEEZE_VOL/prefs \
	--logdir $SQUEEZE_VOL/logs \
	--cachedir $SQUEEZE_VOL/cache "$@"

{'fraction_non_alphanumeric': 0.43009605122732125, 'fraction_numerical': 0.01814300960512273, 'mean_word_length': 5.211920529801325, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '1415435', 'n_tokens_mistral': 319, 'n_tokens_neox': 290, 'n_words': 68}