<commit_before>#!/bin/bash

[ ! -e ../../config.sh ] && die "FRESteamWorks/config.sh is not set up!"
. ../../config.sh

export LD_PRELOAD="$STEAM_SDK/redistributable_bin/linux32/libsteam_api.so"

if [ -z "$SteamAppId" ] && [ ! -e "steam_appid.txt" ]; then
	echo "\$SteamAppId not set and steam_appid.txt not found"
	exit 1
fi

if [ ! -e "$LD_PRELOAD" ]; then
	echo "libsteam_api.so not found"
	exit 2
fi

if [ ! -x "NativeApps/Linux/APIWrapper" ]; then
	echo "APIWrapper not found, expected it to be in"
	echo "NativeApps/Linux/APIWrapper"
	exit 4
fi

"$AIR_SDK/bin/adl" FRESteamWorksTest-linux.xml .
<commit_msg>Support additional LD_PRELOADs in Linux run script.<commit_after>#!/bin/bash

[ ! -e ../../config.sh ] && die "FRESteamWorks/config.sh is not set up!"
. ../../config.sh

STEAM_LIB="$STEAM_SDK/redistributable_bin/linux32/libsteam_api.so"

if [ -z "$SteamAppId" ] && [ ! -e "steam_appid.txt" ]; then
	echo "\$SteamAppId not set and steam_appid.txt not found"
	exit 1
fi

if [ ! -e "$STEAM_LIB" ]; then
	echo "libsteam_api.so not found"
	exit 2
fi

if [ ! -x "NativeApps/Linux/APIWrapper" ]; then
	echo "APIWrapper not found, expected it to be in"
	echo "NativeApps/Linux/APIWrapper"
	exit 4
fi

export LD_PRELOAD="$STEAM_LIB:${LD_PRELOAD+:$LD_PRELOAD}"
"$AIR_SDK/bin/adl" FRESteamWorksTest-linux.xml .

{'fraction_non_alphanumeric': 0.1568926123381569, 'fraction_numerical': 0.007616146230007616, 'mean_word_length': 3.8131868131868134, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '3681979', 'n_tokens_mistral': 565, 'n_tokens_neox': 525, 'n_words': 127}