<commit_before>#! /usr/bin/sh
"\n\n...Changing into Downloads folder. Here we go...\n"
cd ~/Downloads

echo "\n...Dependencies! Making sure the build-essential, and unzip package(s) are installed\n"
sudo apt-get update
sudo apt-get install -y build-essential unzip gzip

# Uncomment these lines for 64-bit machines
#echo "\n...Attempting to install (system wide) ia32-libs for 64-bit machines\n"
#sudo apt-get install ia32-libs

echo "\n...Bare metal gcc toolchain! Attempting to download toolchain: gcc-arm-embedded 4.9-2015-q1-update release from the 4.9 series (launchpad.net)\n"
wget -o gcc-arm-none-eabi-4_9-2015q1-20150306-linux.tar.bz2 "https://launchpad.net/gcc-arm-embedded/4.9/4.9-2015-q1-update/+download/gcc-arm-none-eabi-4_9-2015q1-20150306-linux.tar.bz2"

echo "\n...Attempting to unpack the gcc-arm-embedded archive to ~/gcc-arm-toolchains/gcc-arm-none-eabi-4_9-2015q1-20150306-linux\n"
cd ~/
mkdir -p gcc-arm-toolchains
cd gcc-arm-toolchains
tar -vxjf ~/Downloads/gcc-arm-none-eabi-4_9-2015q1-20150306-linux.tar.bz2

echo "\n...Debugging tools! Attempting to download and install OpenOCD v0.9.0-dev-snapshot"
cd ~/Downloads
wget -o openocd-0.9.0-dev-snapshot.zip "http://sourceforge.net/code-snapshots/git/o/op/openocd/code.git/openocd-code-3e1dfdcb8531ae684537325ad2c94b845d741085.zip"
unzip openocd-0.9.0-dev-snapshot
mv openocd-0.9.0-dev-snapshot ~/openocd-0.9.0-dev-snapshot

echo "\n...Firmware tools! Attempting to download FemtoIO fork of BOSSA"
cd ~/Downloads
wget -o femtoio-bossa.zip https://github.com/femtoio/BOSSA/archive/master.zip
unzip femtoio-bossa.zip
mv femtoio-bossa ~/bossa


echo "\n...Development IDE! Attempting to download the Eclipse IDE, and unpack it\n"
cd ~/Downloads
wget -o eclipse-cpp-luna-SR1a-linux-gtk.tar.gz "http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/luna/SR1a/eclipse-cpp-luna-SR1a-linux-gtk.tar.gz&mirror_id=1065"
tar -zxvf eclipse-cpp-luna-SR1a-linux-gtk.tar.gz
mv eclipse ~/eclipse

# echo "\n\n\n\n********************************************\n"
# echo "\tPlease remember to edit the C/C++ Build > Environment > PATH setting in Eclipse to include:\n"
# echo "\t/usr/local/gcc-arm-none-eabi-4_9-2015q1-20150306-linux/bin\n\n"
# echo "\t(See http://gnuarmeclipse.livius.net/blog/toolchain-path/ for more info)"
# echo "\n********************************************\n\n\n\n"

echo "\n...Attempting to install the GNU ARM Eclipse Plug-ins"
cd ~/eclipse
./eclipse -nosplash \
 -application org.eclipse.equinox.p2.director \
 -repository http://gnuarmeclipse.sourceforge.net/updates \
 -destination ./ \
 -installIU ilg.gnuarmeclipse.managedbuild.cross.feature.group \
 -installIU ilg.gnuarmeclipse.doc.user.feature.group \
 -installIU ilg.gnuarmeclipse.templates.freescale.feature.group \
 -installIU ilg.gnuarmeclipse.templates.cortexm.feature.group \
 -installIU ilg.gnuarmeclipse.debug.gdbjtag.jlink.feature.group \
 -installIU ilg.gnuarmeclipse.debug.gdbjtag.openocd.feature.group \
 -installIU ilg.gnuarmeclipse.packs.feature.group \
 -installIU ilg.gnuarmeclipse.templates.stm.feature.group

 <commit_msg>Minor bug fix to wget calls<commit_after>#! /usr/bin/sh
"\n\n...Changing into Downloads folder. Here we go...\n"
cd ~/Downloads

echo "\n...Dependencies! Making sure the build-essential, and unzip package(s) are installed\n"
sudo apt-get update
sudo apt-get install -y build-essential unzip gzip

# Uncomment these lines for 64-bit machines
#echo "\n...Attempting to install (system wide) ia32-libs for 64-bit machines\n"
#sudo apt-get install ia32-libs

echo "\n...Bare metal gcc toolchain! Attempting to download toolchain: gcc-arm-embedded 4.9-2015-q1-update release from the 4.9 series (launchpad.net)\n"
wget -O gcc-arm-none-eabi-4_9-2015q1-20150306-linux.tar.bz2 "https://launchpad.net/gcc-arm-embedded/4.9/4.9-2015-q1-update/+download/gcc-arm-none-eabi-4_9-2015q1-20150306-linux.tar.bz2"

echo "\n...Attempting to unpack the gcc-arm-embedded archive to ~/gcc-arm-toolchains/gcc-arm-none-eabi-4_9-2015q1-20150306-linux\n"
cd ~/
mkdir -p gcc-arm-toolchains
cd gcc-arm-toolchains
tar -vxjf ~/Downloads/gcc-arm-none-eabi-4_9-2015q1-20150306-linux.tar.bz2

echo "\n...Attempting to download and install OpenOCD v0.9.0-dev-snapshot (sourceforge.net)"
#cd ~/Downloads
#wget -O openocd-0.9.0-dev-snapshot.zip "http://sourceforge.net/code-snapshots/git/o/op/openocd/code.git/openocd-code-3e1dfdcb8531ae684537325ad2c94b845d741085.zip"
#unzip openocd-0.9.0-dev-snapshot
#mv openocd-0.9.0-dev-snapshot ~/openocd-0.9.0-dev-snapshot
cd ~
git clone git://git.code.sf.net/p/openocd/code openocd-code
cd openocd-code
./install-sh

echo "\n...Firmware tools! Attempting to download FemtoIO fork of BOSSA"
cd ~/Downloads
wget -O femtoio-bossa.zip "https://github.com/femtoio/BOSSA/archive/master.zip"
unzip femtoio-bossa.zip
mv femtoio-bossa ~/bossa


#echo "\n...Development IDE! Attempting to download the Eclipse IDE, and unpack it\n"
#cd ~/Downloads
#wget -o eclipse-cpp-luna-SR1a-linux-gtk.tar.gz "http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/luna/SR1a/eclipse-cpp-luna-SR1a-linux-gtk.tar.gz&mirror_id=1065"
#tar -zxvf eclipse-cpp-luna-SR1a-linux-gtk.tar.gz
#mv eclipse ~/eclipse

# echo "\n\n\n\n********************************************\n"
# echo "\tPlease remember to edit the C/C++ Build > Environment > PATH setting in Eclipse to include:\n"
# echo "\t/usr/local/gcc-arm-none-eabi-4_9-2015q1-20150306-linux/bin\n\n"
# echo "\t(See http://gnuarmeclipse.livius.net/blog/toolchain-path/ for more info)"
# echo "\n********************************************\n\n\n\n"

#echo "\n...Attempting to install the GNU ARM Eclipse Plug-ins"
#cd ~/eclipse
#./eclipse -nosplash \
# -application org.eclipse.equinox.p2.director \
# -repository http://gnuarmeclipse.sourceforge.net/updates \
# -destination ./ \
# -installIU ilg.gnuarmeclipse.managedbuild.cross.feature.group \
# -installIU ilg.gnuarmeclipse.doc.user.feature.group \
# -installIU ilg.gnuarmeclipse.templates.freescale.feature.group \
# -installIU ilg.gnuarmeclipse.templates.cortexm.feature.group \
# -installIU ilg.gnuarmeclipse.debug.gdbjtag.jlink.feature.group \
# -installIU ilg.gnuarmeclipse.debug.gdbjtag.openocd.feature.group \
# -installIU ilg.gnuarmeclipse.packs.feature.group \
# -installIU ilg.gnuarmeclipse.templates.stm.feature.group

 
{'fraction_non_alphanumeric': 0.1720226843100189, 'fraction_numerical': 0.04883427851291745, 'mean_word_length': 4.095505617977528, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 30, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2822640', 'n_tokens_mistral': 2700, 'n_tokens_neox': 2407, 'n_words': 448}