<commit_before>#!/usr/bin/env bash
shopt -s expand_aliases

#
# A build script for building Fife Engine on Debian based linux distributions.
#
# https://github.com/fifengine/fifengine
#

echo
echo -e "\e[1;32m\tBuilding and installing FIFE Engine \e[0m"
echo -e "\t----------------------------"
echo

# how many virtual processors are there?
export NUMCPUS=`grep ^processor /proc/cpuinfo | wc -l`

# parallel make
alias pmake='time ionice -c3 nice -n 19 make -j$NUMCPUS --load-average=$NUMCPUS'

# Install all package dependencies
function install_dependencies() {
    echo
    echo -e "\e[1;33mInstalling package dependencies...\e[0m"
    echo

    sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu/ quantal main universe"
    sudo apt-get update -y &> /dev/null
    # https://github.com/fifengine/fifengine/wiki/Building-on-linux
    sudo apt-get install build-essential cmake python-dev scons swig \
                 libsdl1.2-dev libsdl-ttf2.0-dev libsdl-image1.2-dev \<commit_msg>Tried to fix travis.<commit_after>#!/usr/bin/env bash
shopt -s expand_aliases

#
# A build script for building Fife Engine on Debian based linux distributions.
#
# https://github.com/fifengine/fifengine
#

echo
echo -e "\e[1;32m\tBuilding and installing FIFE Engine \e[0m"
echo -e "\t----------------------------"
echo

# how many virtual processors are there?
export NUMCPUS=`grep ^processor /proc/cpuinfo | wc -l`

# parallel make
alias pmake='time ionice -c3 nice -n 19 make -j$NUMCPUS --load-average=$NUMCPUS'

# Install all package dependencies
function install_dependencies() {
    echo
    echo -e "\e[1;33mInstalling package dependencies...\e[0m"
    echo

    sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu/ quantal main universe"
    sudo apt-get update -y &> /dev/null
    # https://github.com/fifengine/fifengine/wiki/Building-on-linux
    sudo apt-get install build-essential cmake python-dev scons swig \
                 libsdl2.0-dev libsdl2-ttf2.0-dev libsdl2-image1.2-dev \
{'fraction_non_alphanumeric': 0.14186162269785962, 'fraction_numerical': 0.017919362867098058, 'mean_word_length': 2.964497041420118, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '7262397', 'n_tokens_mistral': 712, 'n_tokens_neox': 646, 'n_words': 189}