<commit_before># Copyright (c) 2015-2017 <NAME> <<EMAIL>>
# emulators-online is a HTML based front end for video game console emulators
# It uses the GNU AGPL 3 license
# It is hosted at: https://github.com/workhorsy/emulators-online-d

set -e

function build {
	# Make sure G++ is installed
	if ! type g++ >/dev/null 2>&1; then
		echo "G++ was not found. Please install G++ or MinGW." >&2
		return
	fi

	# Make sure DMD is installed
	if ! type dmd >/dev/null 2>&1; then
		echo "DMD was not found. Please install DMD." >&2
		return
	fi

	# Put everything inside the generated D file
	echo "!!! Generating files ..."
	cd client/generate
	dub run
	rm -f generate_included_files
	cd ..

	# Remove the exes
	rm -f emulators_online_client.exe
	rm -f emulators_online_client
	#rm -f client/identify_games/identify_games.exe

	# Build the client exe
	echo "!!! Building emulators_online_client ..."
	dub build
	mv emulators_online_client ../emulators_online_client
	OS=`uname -o`
	if [ "$OS" = "Msys" ]; then
		mv libeay32.dll ../libeay32.dll
		mv libevent.dll ../libevent.dll
		mv ssleay32.dll ../ssleay32.dll
	fi

	cd ..

	#echo "Running ..."
	#./emulators_online_client

	echo "!!! Copying binary into wrapper source code ..."
	cd client/wrap_binary
	dub run
	rm -f wrapper_generator

	echo "!!! Building binary wrapper ..."
	cd ../wrapped_client/
	dub build
	rm -f wrapped.d

	echo "!!! Done!"<commit_msg>Turned off wrapper generator for now.<commit_after># Copyright (c) 2015-2017 <NAME> <<EMAIL>>
# emulators-online is a HTML based front end for video game console emulators
# It uses the GNU AGPL 3 license
# It is hosted at: https://github.com/workhorsy/emulators-online-d

set -e

function build {
	# Make sure G++ is installed
	if ! type g++ >/dev/null 2>&1; then
		echo "G++ was not found. Please install G++ or MinGW." >&2
		return
	fi

	# Make sure DMD is installed
	if ! type dmd >/dev/null 2>&1; then
		echo "DMD was not found. Please install DMD." >&2
		return
	fi

	# Put everything inside the generated D file
	echo "!!! Generating files ..."
	cd client/generate
	dub run
	rm -f generate_included_files
	cd ..

	# Remove the exes
	rm -f emulators_online_client.exe
	rm -f emulators_online_client
	#rm -f client/identify_games/identify_games.exe

	# Build the client exe
	echo "!!! Building emulators_online_client ..."
	dub build #--build=release
	mv emulators_online_client ../emulators_online_client
	OS=`uname -o`
	if [ "$OS" = "Msys" ]; then
		mv libeay32.dll ../libeay32.dll
		mv libevent.dll ../libevent.dll
		mv ssleay32.dll ../ssleay32.dll
	fi

	cd ..

	echo "!!! Running ..."
	./emulators_online_client

<<"TURN_CODE_OFF"
	echo "!!! Copying binary into wrapper source code ..."
	cd client/wrap_binary
	dub run
	rm -f wrapper_generator

	echo "!!! Building binary wrapper ..."
	cd ../wrapped_client/
	dub build #--build=release
	rm -f wrapped.d

	echo "!!! Done!"
TURN_CODE_OFF
{'fraction_non_alphanumeric': 0.12016574585635359, 'fraction_numerical': 0.015883977900552487, 'mean_word_length': 3.298219584569733, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 21, 'https://': 2, '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': '6994430', 'n_tokens_mistral': 1133, 'n_tokens_neox': 1005, 'n_words': 346}