<commit_before>
setup: key 
	mkdir -p /var/lib/demo/storage
	mkdir -p /var/lib/demo/apps

key:
	ssh-keygen -t rsa -N "" -f id_rsa

foreman:
	gem install foreman

slugbuilder:
	docker pull flynn/slugbuilder

slugrunner:
	docker pull flynn/slugrunner

gitreceive:
	git clone https://github.com/flynn/gitreceive-next.git
	cd gitreceive-next && make install

discoverd:
	git clone https://github.com/flynn/go-discover.git
	cd go-discover/discoverd && make install

etcd:
	wget https://github.com/coreos/etcd/releases/download/v0.2.0-rc0/etcd-v0.2.0-rc0-Linux-x86_64.tar.gz
	tar -zxvf etcd-v0.2.0-rc0-Linux-x86_64.tar.gz
	cp etcd-v0.2.0-rc0-Linux-x86_64/etcd /usr/local/bin

shelf:
	git clone https://github.com/flynn/shelf.git
	cd shelf && make install

docker: aufs
	egrep -i "^docker" /etc/group || groupadd docker
	curl https://get.docker.io/gpg | apt-key add -
	echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list
	apt-get update
	apt-get install -y lxc-docker 
	sleep 2 # give docker a moment i guess

aufs:
	lsmod | grep aufs || modprobe aufs || apt-get install -y linux-image-extra-`uname -r`<commit_msg>demo: more things to install<commit_after>
# Setup

setup: key 
	mkdir -p /var/lib/demo/storage
	mkdir -p /var/lib/demo/apps

key:
	ssh-keygen -t rsa -N "" -f id_rsa

# Projects

slugbuilder:
	docker pull flynn/slugbuilder

slugrunner:
	docker pull flynn/slugrunner

gitreceive:
	git clone https://github.com/flynn/gitreceive-next.git
	cd gitreceive-next && make install

discoverd:
	git clone https://github.com/flynn/go-discover.git
	cd go-discover/discoverd && make install

shelf:
	git clone https://github.com/flynn/shelf.git
	cd shelf && make install

## Vendor

packages: docker go etcd
	apt-get install -y ruby1.9.1 rubygems
	gem install foreman --no-rdoc --no-ri

etcd:
	wget https://github.com/coreos/etcd/releases/download/v0.2.0-rc0/etcd-v0.2.0-rc0-Linux-x86_64.tar.gz
	tar -zxvf etcd-v0.2.0-rc0-Linux-x86_64.tar.gz
	cp etcd-v0.2.0-rc0-Linux-x86_64/etcd /usr/local/bin

go:
	wget http://j.mp/godeb
	tar -zxvf ./godeb
	./godeb install 1.1.2

docker: aufs
	egrep -i "^docker" /etc/group || groupadd docker
	curl https://get.docker.io/gpg | apt-key add -
	echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list
	apt-get update
	apt-get install -y lxc-docker 
	sleep 2 # give docker a moment i guess

aufs:
	lsmod | grep aufs || modprobe aufs || apt-get install -y linux-image-extra-`uname -r`
{'fraction_non_alphanumeric': 0.13494949494949496, 'fraction_numerical': 0.02585858585858586, 'mean_word_length': 3.2911611785095323, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 10, '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': '6022453', 'n_tokens_mistral': 1088, 'n_tokens_neox': 1021, 'n_words': 233}