<commit_before># pythonpath := $(shell pwd)/src/python

.deps : 
	mvn clean
	mvn install
	mvn install:install-file -Dfile=lib/java-aws-mturk.jar -Dpackaging=jar -DgroupId=com.amazonaws -Dversion=1.6.2 -DartifactId=java-aws-mturk
	mvn install:install-file -Dfile=lib/aws-mturk-dataschema.jar -Dpackaging=jar -DgroupId=com.amazonaws -Dversion=1.6.2 -DartifactId=aws-mturk-dataschema
	mvn install:install-file -Dfile=lib/aws-mturk-wsdl.jar -Dpackaging=jar -DgroupId=com.amazonaws -Dversion=1.6.2 -DartifactId=aws-mturk-wsdl
	echo "" > .deps

.compile : .deps
	mvn scala:compile
	mvn compile
	echo "" > .compile

.PHONY : test

test : .compile
	mvn compile
	mvn exec:java -Dexec.mainClass=testing.TestSuite
	mvn test

test_python : 
	python $(pythonpath)/example_survey.py
	python $(pythonpath)/metrics/metric-test.py file=data/ss11pwy.csv numq=5 numr=50

simulator : 
	python $(pythonpath)/survey/launcher.py display=False simulation=$(pythonpath)/simulations/simulation.py stop=stop_condition outdir=data responsefn=get_response

.PHONY : clean

clean : 
	rm .deps
	rm .compile
	rm -rf ~/.surveyman/.metadata
	mvn clean

.PHONY : jar

jar : 
	mvn clean
	mvn install
	unzip lib/aws-mturk-clt.jar 
	unzip lib/aws-mturk-dataschema.jar  
	unzip lib/aws-mturk-wsdl.jar  
	unzip lib/java-aws-mturk.jar
	jar uf surveyman.jar com/*
	git checkout -- params.properties .metadata
	zip surveyman.zip surveyman.jar params.properties .metadata/* data/samples/*
	rm -rf deploy
	mkdir deploy
	mv *.jar *.zip deploy
	rm -rf com
<commit_msg>please pass travis;<commit_after># pythonpath := $(shell pwd)/src/python

.deps : 
	mvn clean
	mvn install
	mvn install:install-file -Dfile=lib/java-aws-mturk.jar -Dpackaging=jar -DgroupId=com.amazonaws -Dversion=1.6.2 -DartifactId=java-aws-mturk
	mvn install:install-file -Dfile=lib/aws-mturk-dataschema.jar -Dpackaging=jar -DgroupId=com.amazonaws -Dversion=1.6.2 -DartifactId=aws-mturk-dataschema
	mvn install:install-file -Dfile=lib/aws-mturk-wsdl.jar -Dpackaging=jar -DgroupId=com.amazonaws -Dversion=1.6.2 -DartifactId=aws-mturk-wsdl
	echo "" > .deps

.compile : .deps
	mvn scala:compile
	mvn compile
	echo "" > .compile

.PHONY : test

test : .compile
	mvn compile
	mvn test

test_python : 
	python $(pythonpath)/example_survey.py
	python $(pythonpath)/metrics/metric-test.py file=data/ss11pwy.csv numq=5 numr=50

simulator : 
	python $(pythonpath)/survey/launcher.py display=False simulation=$(pythonpath)/simulations/simulation.py stop=stop_condition outdir=data responsefn=get_response

.PHONY : clean

clean : 
	rm .deps
	rm .compile
	rm -rf ~/.surveyman/.metadata
	mvn clean

.PHONY : jar

jar : 
	mvn clean
	mvn install
	unzip lib/aws-mturk-clt.jar 
	unzip lib/aws-mturk-dataschema.jar  
	unzip lib/aws-mturk-wsdl.jar  
	unzip lib/java-aws-mturk.jar
	jar uf surveyman.jar com/*
	git checkout -- params.properties .metadata
	zip surveyman.zip surveyman.jar params.properties .metadata/* data/samples/*
	rm -rf deploy
	mkdir deploy
	mv *.jar *.zip deploy
	rm -rf com

{'fraction_non_alphanumeric': 0.12208138759172782, 'fraction_numerical': 0.009339559706470981, 'mean_word_length': 4.01505016722408, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2379161', 'n_tokens_mistral': 1210, 'n_tokens_neox': 1163, 'n_words': 239}