<commit_before>all: lib/fin lib/less.js
	cd lib/fin; make all

############
### Cmds ###
############

.PHONY: run
run: all
	redis-server redis.conf &> run-redis-server.out &
	cd lib/fin/; node run_query_observer.js &> ../../run-node-query-observer.out &
	node node_scripts/run_server.js &> run-node-server.out &
	echo "\nFin server running"

.PHONY: stop
stop:
	killall node
	killall redis-server
	echo "\nFin server stopped"

.PHONY: restart
restart: stop run

####################
### Dependencies ###
####################

.PHONY: clean
clean:
	rm -f run-*.out
	rm -rf lib/*
	touch lib/empty.txt

lib/fin:
	git clone git://github.com/marcuswestin/fin.git lib/fin
	cd lib/fin; git checkout v0.1.0; make

lib/less.js:
	curl http://lesscss.googlecode.com/files/less-1.0.18.min.js > lib/less.js
<commit_msg>Always use latest version of fin<commit_after>all: lib/fin lib/less.js
	cd lib/fin; make all

############
### Cmds ###
############

.PHONY: run
run: all
	redis-server redis.conf &> run-redis-server.out &
	cd lib/fin/; node run_query_observer.js &> ../../run-node-query-observer.out &
	node node_scripts/run_server.js &> run-node-server.out &
	echo "\nFin server running"

.PHONY: stop
stop:
	killall node
	killall redis-server
	echo "\nFin server stopped"

.PHONY: restart
restart: stop run

####################
### Dependencies ###
####################

.PHONY: clean
clean:
	rm -f run-*.out
	rm -rf lib/*
	touch lib/empty.txt

lib/fin:
	git clone git://github.com/marcuswestin/fin.git lib/fin
	cd lib/fin; make

lib/less.js:
	curl http://lesscss.googlecode.com/files/less-1.0.18.min.js > lib/less.js

{'fraction_non_alphanumeric': 0.22022332506203474, 'fraction_numerical': 0.006823821339950372, 'mean_word_length': 3.621776504297994, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, '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': '688546', 'n_tokens_mistral': 637, 'n_tokens_neox': 626, 'n_words': 142}