<commit_before>#!/bin/sh


# I apologize in advance that this is configured for Ubuntu
# We will add better support for other distributions in the future


read -p "Do you wish to install Haxe and Neko? (y/n) " RESP

if [ $RESP = "y" ]; then
	
	
	# If you are running 64-bit, you'll need 32-bit support
	
	echo "-----------------------------------"
	echo " Installing IA32 libraries"
	echo "-----------------------------------"	
	
	sudo apt-get install ia32-libs gcc-multilib g++-multilib
	
	
	# The version of Haxe in the package manager is probably
	# out-of-date. Download the latest version from haxe.org
	
	echo "-----------------------------------"
	echo " Downloading the Haxe installer"
	echo "-----------------------------------"	
	
	wget http://haxe.org/file/hxinst-linux.tgz

	# Extract and run the Haxe installer, then clean up
	# afterwards

	tar xvzf hxinst-linux.tgz

	echo "-----------------------------------"
	echo " Running the Haxe installer"
	echo "-----------------------------------"	

	sudo ./hxinst-linux
	rm hxinst-linux
	rm hxinst-linux.tgz

	# The installed version of Neko is 32-bit, and we may be on
	# a 64-bit system, so we'll re-install it using the package
	# manager

	
	echo "-----------------------------------"
	echo " Re-installing Neko (64-bit support)"
	echo "-----------------------------------"
	
	sudo apt-get remove neko
	sudo apt-get install neko

	# Need to recompile haxelib 

	haxe /usr/lib/haxe/std/tools/haxelib/haxelib.hxml
	sudo cp haxelib.n /usr/lib/haxe/haxelib.n
	rm index.n
	rm haxelib
	rm haxelib.n
	sudo nekotools boot /usr/lib/haxe/haxelib.n

	# Setup haxelib
	
	sudo haxelib setup /usr/lib/haxe/lib

fi


echo "-----------------------------------"
echo " Installing HXCPP and Jeash"
echo "-----------------------------------"

# Download dependencies using haxelib

haxelib install hxcpp
haxelib install jeash


echo "-----------------------------------"
echo " Installing NME 3.3.1"
echo "-----------------------------------"

# Download and install NME

wget http://www.haxenme.org/files/4813/2916/8134/NME-3.2.0.zip
haxelib test NME-3.2.0.zip
rm NME-3.2.0.zip

# Add "nme" command shortcut

sudo haxelib run nme setup


echo "-----------------------------------"
echo " Installing additional libraries"
echo "-----------------------------------"

haxelib install actuate
haxelib install swf
<commit_msg>Updated Linux installer for NME 3.2.1 beta<commit_after>#!/bin/sh


# I apologize in advance that this is configured for Ubuntu
# We will add better support for other distributions in the future


read -p "Do you wish to install Haxe and Neko? (y/n) " RESP

if [ $RESP = "y" ]; then
	
	
	# If you are running 64-bit, you'll need 32-bit support
	
	echo "-----------------------------------"
	echo " Installing IA32 libraries"
	echo "-----------------------------------"	
	
	sudo apt-get install ia32-libs gcc-multilib g++-multilib
	
	
	# The version of Haxe in the package manager is probably
	# out-of-date. Download the latest version from haxe.org
	
	echo "-----------------------------------"
	echo " Downloading the Haxe installer"
	echo "-----------------------------------"	
	
	wget http://haxe.org/file/hxinst-linux.tgz

	# Extract and run the Haxe installer, then clean up
	# afterwards

	tar xvzf hxinst-linux.tgz

	echo "-----------------------------------"
	echo " Running the Haxe installer"
	echo "-----------------------------------"	

	sudo ./hxinst-linux
	rm hxinst-linux
	rm hxinst-linux.tgz

	# The installed version of Neko is 32-bit, and we may be on
	# a 64-bit system, so we'll re-install it using the package
	# manager

	
	echo "-----------------------------------"
	echo " Re-installing Neko (64-bit support)"
	echo "-----------------------------------"
	
	sudo apt-get remove neko
	sudo apt-get install neko

	# Need to recompile haxelib 

	haxe /usr/lib/haxe/std/tools/haxelib/haxelib.hxml
	sudo cp haxelib.n /usr/lib/haxe/haxelib.n
	rm index.n
	rm haxelib
	rm haxelib.n
	sudo nekotools boot /usr/lib/haxe/haxelib.n

	# Setup haxelib
	
	sudo haxelib setup /usr/lib/haxe/lib

fi


echo "-----------------------------------"
echo " Installing HXCPP and Jeash"
echo "-----------------------------------"

# Download dependencies using haxelib

#haxelib install hxcpp

wget http://www.haxenme.org/files/7913/2950/5114/hxcpp-2082.zip
haxelib test hxcpp-2082.zip
rm hxcpp-2082.zip

haxelib install jeash


echo "-----------------------------------"
echo " Installing NME 3.3.1"
echo "-----------------------------------"

# Download and install NME

wget http://www.haxenme.org/files/8413/2950/5137/nme-321.zip
haxelib test nme-321.zip
rm nme-321.zip

# Add "nme" command shortcut

sudo haxelib run nme setup


echo "-----------------------------------"
echo " Installing additional libraries"
echo "-----------------------------------"

haxelib install actuate
haxelib install swf

{'fraction_non_alphanumeric': 0.27453798767967147, 'fraction_numerical': 0.021149897330595482, 'mean_word_length': 1.5650342285413374, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 3, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1772884', 'n_tokens_mistral': 1694, 'n_tokens_neox': 1494, 'n_words': 475}