<commit_before>#!/bin/bash

function setup_linux_package ()
{
	apt-get install python-software-properties -y
	add-apt-repository ppa:ubuntu-toolchain-r/test
	apt-get update
	apt-get install g++-4.8 gcc-4.8 -y
	sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 50
	sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 50
	cd /tmp && wget https://bootstrap.pypa.io/get-pip.py
	sudo python get-pip.py
	apt-get install htop vim git build-essential libgmp3-dev htop vim git build-essential openssl libssl-dev pkg-config libgmp-dev lzip curl libtool autoconf cmake -y
}

function setup_nodejs ()
{
	cd /tmp
	wget -v https://nodejs.org/dist/v4.4.1/node-v4.4.1.tar.gz
	tar xvf node-v4.4.1.tar.gz
	cd node-v4.4.1
	./configure
	make
	make install
	node -v
	npm -v
}

function setup_zeromq ()
{
	cd /tmp
	git clone git://github.com/jedisct1/libsodium.git
	cd libsodium
	./autogen.sh && ./configure && make check
	
	sudo make install
	sudo ldconfig
	
	cd /tmp
	git clone git://github.com/zeromq/libzmq.git
	cd libzmq
	./autogen.sh && ./configure && make check
	sudo make install
	sudo ldconfig
	
	cd /tmp
	git clone git://github.com/zeromq/czmq.git
	cd czmq
	./autogen.sh && ./configure && make check
	sudo make install
	sudo ldconfig

	cd /tmp
	git clone git://github.com/zeromq/zyre.git
	cd zyre
	./autogen.sh && ./configure && make check
	sudo make install
	sudo ldconfig
}

function setup_httpie ()
{
	pip install --upgrade pip setuptools
	pip install --upgrade httpie
}

function setup_node_dep ()
{
    cd js && npm install
}

#function setup_my_project ()
#{
#	cd ~
#	git clone https://github.com/jwhu1024/test.git<commit_msg>replace sudo in setup.sh<commit_after>#!/bin/bash

function setup_linux_package ()
{
	apt-get install python-software-properties -y
	add-apt-repository ppa:ubuntu-toolchain-r/test
	apt-get update
	apt-get install g++-4.8 gcc-4.8 -y
	update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 50
	update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 50
	cd /tmp && wget https://bootstrap.pypa.io/get-pip.py
	python get-pip.py
	apt-get install htop vim git build-essential libgmp3-dev htop vim git build-essential openssl libssl-dev pkg-config libgmp-dev lzip curl libtool autoconf cmake -y
}

function setup_nodejs ()
{
	cd /tmp
	wget -v https://nodejs.org/dist/v4.4.1/node-v4.4.1.tar.gz
	tar xvf node-v4.4.1.tar.gz
	cd node-v4.4.1
	./configure
	make
	make install
	node -v
	npm -v
}

function setup_zeromq ()
{
	cd /tmp
	git clone git://github.com/jedisct1/libsodium.git
	cd libsodium
	./autogen.sh && ./configure && make check
	
	make install
	ldconfig
	
	cd /tmp
	git clone git://github.com/zeromq/libzmq.git
	cd libzmq
	./autogen.sh && ./configure && make check
	make install
	ldconfig
	
	cd /tmp
	git clone git://github.com/zeromq/czmq.git
	cd czmq
	./autogen.sh && ./configure && make check
	make install
	ldconfig

	cd /tmp
	git clone git://github.com/zeromq/zyre.git
	cd zyre
	./autogen.sh && ./configure && make check
	make install
	ldconfig
}

function setup_httpie ()
{
	pip install --upgrade pip setuptools
	pip install --upgrade httpie
}

function setup_node_dep ()
{
    cd js && npm install
}

#function setup_my_project ()
#{
#	cd ~
#	git clone https://github.com/jwhu1024/test.git
{'fraction_non_alphanumeric': 0.13004895960832313, 'fraction_numerical': 0.01835985312117503, 'mean_word_length': 3.1171284634760705, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2779451', 'n_tokens_mistral': 1351, 'n_tokens_neox': 1264, 'n_words': 325}