<commit_before>#! /bin/sh

${SUBSONIC_HOME}/subsonic.sh --port=${SUBSONIC_PORT} --https-port=${SUBSONIC_HTTPS_PORT} --default-music-folder=${SUBSONIC_MUSIC_FOLDER} --default-podcast-folder=${SUBSONIC_PODCAST_FOLDER} --default-playlist-folder=${SUBSONIC_PLAYLIST_FOLDER}

tail -F ${SUBSONIC_HOME}/subsonic_sh.log<commit_msg>Control ports<commit_after>#! /bin/sh

# Set defaults.
SUBSONIC_PORT=4040
SUBSONIC_HTTPS_PORT=0


# Parse arguments.
while [ $# -ge 1 ]; do
    case $1 in
        --https)
            SUBSONIC_PORT=0
            SUBSONIC_HTTPS_PORT=4050
            ;;
    esac
    shift
done

# Launch.
${SUBSONIC_HOME}/subsonic.sh --port=${SUBSONIC_PORT} --https-port=${SUBSONIC_HTTPS_PORT} --default-music-folder=${SUBSONIC_MUSIC_FOLDER} --default-podcast-folder=${SUBSONIC_PODCAST_FOLDER} --default-playlist-folder=${SUBSONIC_PLAYLIST_FOLDER}

# Keep running.
tail -F ${SUBSONIC_HOME}/subsonic_sh.log
{'fraction_non_alphanumeric': 0.14725274725274726, 'fraction_numerical': 0.013186813186813187, 'mean_word_length': 4.358823529411764, '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': '6393012', 'n_tokens_mistral': 364, 'n_tokens_neox': 371, 'n_words': 44}