<commit_before>#!/bin/sh
ls_user="pypo"
export HOME="/var/tmp/airtime/pypo/"
api_client_path="/usr/lib/airtime/pypo/"
ls_path="/usr/lib/airtime/pypo/bin/liquidsoap/liquidsoap"
ls_param="/usr/lib/airtime/pypo/bin/scripts/ls_script.liq"
echo "*** Daemontools: starting liquidsoap"
exec 2>&1

cd /usr/lib/airtime/pypo/bin/scripts

export PYTHONPATH=${api_client_path}
#su ${ls_user} -c "${ls_path} ${ls_param}" 2>&1

setuidgid ${ls_user} ${ls_path} ${ls_param}

# EOF<commit_msg>CC-2375: Liquidsoap cannot access the ALSA device<commit_after>#!/bin/sh
ls_user="pypo"
export HOME="/var/tmp/airtime/pypo/"
api_client_path="/usr/lib/airtime/pypo/"
ls_path="/usr/lib/airtime/pypo/bin/liquidsoap/liquidsoap"
ls_param="/usr/lib/airtime/pypo/bin/scripts/ls_script.liq"
echo "*** Daemontools: starting liquidsoap"
exec 2>&1

cd /usr/lib/airtime/pypo/bin/scripts

export PYTHONPATH=${api_client_path}

#setuidgid does not allow Liquidsoap to access the ALSA device!!! Do NOT use!
su ${ls_user} -c "${ls_path} ${ls_param}" 2>&1

# EOF
{'fraction_non_alphanumeric': 0.1733594515181195, 'fraction_numerical': 0.011753183153770812, 'mean_word_length': 5.768211920529802, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5897079', 'n_tokens_mistral': 446, 'n_tokens_neox': 423, 'n_words': 71}