<commit_before>#!/usr/bin/env sh

trim_method="trim" 	# Can be {trim or roll).
max_len=40			# Trim output to this length.
roll_speed=2

segment_path=$(dirname $0)
source "$segment_path/../lib.sh"

np=$(osascript $segment_path/np_rdio_mac.script) 



if [ -n "$np" ]; then
    case "$trim_method" in
        "roll")
        	np=$(roll_stuff "${np}" ${max_len} ${roll_speed})
        	;;
        "trim")
			np=$(echo "${np}" | cut -c1-"$max_len")
			;;
	esac
	echo "♫ ${np}"
    exit 0
else
	exit 1
fi<commit_msg>remove exit code so it can work even if the widget returns nothing<commit_after>#!/usr/bin/env sh

trim_method="trim" 	# Can be {trim or roll).
max_len=40			# Trim output to this length.
roll_speed=2

segment_path=$(dirname $0)
source "$segment_path/../lib.sh"

np=$(osascript $segment_path/np_rdio_mac.script) 



if [ -n "$np" ]; then
    case "$trim_method" in
        "roll")
        	np=$(roll_stuff "${np}" ${max_len} ${roll_speed})
        	;;
        "trim")
			np=$(echo "${np}" | cut -c1-"$max_len")
			;;
	esac
	echo "♫ ${np}"
    exit 0
fi
{'fraction_non_alphanumeric': 0.17890772128060264, 'fraction_numerical': 0.01224105461393597, 'mean_word_length': 2.9516728624535316, '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': '4703976', 'n_tokens_mistral': 436, 'n_tokens_neox': 410, 'n_words': 104}