<commit_before>#! /bin/bash
TEMPLATE=$(cat <<EOF
#! /bin/bash
GLXOSD_LIBRARY_PATH_I386=#{{GLXOSD_LIBRARY_PATH_I386}}
GLXOSD_LIBRARY_PATH_AMD64=#{{GLXOSD_LIBRARY_PATH_AMD64}}
if [ -d \$GLXOSD_LIBRARY_PATH_I386 ]; then
	GLXOSD_I386_PLUGIN_LIST=\$(ls \$GLXOSD_LIBRARY_PATH_I386/libglxosd-plugins-*.so | xargs -n 1 basename)
	GLXOSD_I386_PLUGIN_LIST=\$(echo \$GLXOSD_I386_PLUGIN_LIST | sed 's/ /:/g')
fi
if [ -d \$GLXOSD_LIBRARY_PATH_AMD64 ]; then
	GLXOSD_AMD64_PLUGIN_LIST=\$(ls \$GLXOSD_LIBRARY_PATH_AMD64/libglxosd-plugins-*.so | xargs -n 1 basename)
	GLXOSD_AMD64_PLUGIN_LIST=\$(echo \$GLXOSD_AMD64_PLUGIN_LIST | sed 's/ /:/g')
fi
export LD_LIBRARY_PATH=\$GLXOSD_LIBRARY_PATH_I386:\$GLXOSD_LIBRARY_PATH_AMD64:\$LD_LIBRARY_PATH
export LD_PRELOAD="libglxosd-elfhacks.so:libglxosd-glinject.so:libglxosd-ftgl.so:libglxosd.so:"\$LD_PRELOAD
GLXOSD_PLUGINS="\$GLXOSD_I386_PLUGIN_LIST:\$GLXOSD_AMD64_PLUGIN_LIST"
GLXOSD_PLUGINS=\$(echo "\$GLXOSD_PLUGINS" | awk -v RS=':' -v ORS=":" '!a[\$1]++')
export GLXOSD_PLUGINS
export GLINJECT_CONSTRUCTORS="constructGLXOSD"
export GLINJECT_DESTRUCTORS="destructGLXOSD"
\$@
EOF
)
TARGET_FILE="./glxosd"
PREFIX="/usr"
while : ; do
	case "$1" in 
		--target-file)
		[ -n "${TARGET_FILE}" ]
			TARGET_FILE="$2"
			shift 2 ;;
		--installation-prefix)
		[ -n "${PREFIX}" ]
			PREFIX="$2"<commit_msg>Fix uniqueness check in launcher<commit_after>#! /bin/bash
TEMPLATE=$(cat <<EOF
#! /bin/bash
GLXOSD_LIBRARY_PATH_I386=#{{GLXOSD_LIBRARY_PATH_I386}}
GLXOSD_LIBRARY_PATH_AMD64=#{{GLXOSD_LIBRARY_PATH_AMD64}}
if [ -d \$GLXOSD_LIBRARY_PATH_I386 ]; then
	GLXOSD_I386_PLUGIN_LIST=\$(ls \$GLXOSD_LIBRARY_PATH_I386/libglxosd-plugins-*.so | xargs -n 1 basename)
	GLXOSD_I386_PLUGIN_LIST=\$(echo \$GLXOSD_I386_PLUGIN_LIST | sed 's/ /:/g')
fi
if [ -d \$GLXOSD_LIBRARY_PATH_AMD64 ]; then
	GLXOSD_AMD64_PLUGIN_LIST=\$(ls \$GLXOSD_LIBRARY_PATH_AMD64/libglxosd-plugins-*.so | xargs -n 1 basename)
	GLXOSD_AMD64_PLUGIN_LIST=\$(echo \$GLXOSD_AMD64_PLUGIN_LIST | sed 's/ /:/g')
fi
export LD_LIBRARY_PATH=\$GLXOSD_LIBRARY_PATH_I386:\$GLXOSD_LIBRARY_PATH_AMD64:\$LD_LIBRARY_PATH
export LD_PRELOAD="libglxosd-elfhacks.so:libglxosd-glinject.so:libglxosd-ftgl.so:libglxosd.so:"\$LD_PRELOAD
GLXOSD_PLUGINS="\$GLXOSD_I386_PLUGIN_LIST:\$GLXOSD_AMD64_PLUGIN_LIST"
GLXOSD_PLUGINS=\$(echo \$GLXOSD_PLUGINS | tr ':' '\n' | sort | uniq | tr '\n' ':')
export GLXOSD_PLUGINS
export GLINJECT_CONSTRUCTORS="constructGLXOSD"
export GLINJECT_DESTRUCTORS="destructGLXOSD"
\$@
EOF
)
TARGET_FILE="./glxosd"
PREFIX="/usr"
while : ; do
	case "$1" in 
		--target-file)
		[ -n "${TARGET_FILE}" ]
			TARGET_FILE="$2"
			shift 2 ;;
		--installation-prefix)
		[ -n "${PREFIX}" ]
			PREFIX="$2"
{'fraction_non_alphanumeric': 0.15955056179775282, 'fraction_numerical': 0.03857677902621723, 'mean_word_length': 6.277929155313352, 'pattern_counts': {'":': 1, '<': 7, '<?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': '3900501', 'n_tokens_mistral': 1422, 'n_tokens_neox': 1258, 'n_words': 155}