<commit_before># java libraries: version
#BCPROV_t=jdk15on
#BCPROV_v=1.51
BCPROV_t=jdk16
BCPROV_v=1.46
JUNIT_v=4.12
HARMCRESTCORE_v=1.3

default:
	@echo Specify the goal: devenv OR  devclean OR cleanElection OR updateCryptoKeys



updateCryptoKeys: updatecryptokeys_cs updatecryptokeys_mix

updatecryptokeys_cs:
	cd node_modules/cryptofunc; npm install
	cd tools; node genKeys4collectingServer.js ../templates/ElectionManifest.json ../templates/config_cs.json

updatecryptokeys_mix:
	cd node_modules/cryptofunc; npm install
	cd templates; python updateMixServersCryptoKeys.py
	


devenv: javadownload javabuild npminstall configs filescopy libdownload

javadownload:
	-mkdir -p lib
	wget -P lib -nc http://central.maven.org/maven2/org/bouncycastle/bcprov-${BCPROV_t}/${BCPROV_v}/bcprov-${BCPROV_t}-${BCPROV_v}.jar

javabuild:
	-mkdir -p bin
	javac -sourcepath src \
          -classpath "lib/*" \
          -d bin \
          src/selectvoting/system/wrappers/*.java    

npminstall:
	cd BulletinBoard; npm install
	cd CollectingServer; npm install
	cd MixServer; npm install
	cd VotingBooth; npm install
	cd node_modules/cryptofunc; npm install



configs: filesconfigs mixconfigs


filesconfigs: 
	-mkdir -p tmp
	cp templates/*.pem tmp/
	cp templates/ElectionManifest.json tmp/
	cp templates/config_bb.json BulletinBoard/config.json
	cp templates/config_cs.json CollectingServer/config.json
	node tools/manifest2js.js templates/ElectionManifest.json > VotingBooth/webapp/ElectionManifest.js
	<commit_msg>config file cp in MixServer<commit_after># java libraries: version
#BCPROV_t=jdk15on
#BCPROV_v=1.51
BCPROV_t=jdk16
BCPROV_v=1.46
JUNIT_v=4.12
HARMCRESTCORE_v=1.3

default:
	@echo Specify the goal: devenv OR  devclean OR cleanElection OR updateCryptoKeys



updateCryptoKeys: updatecryptokeys_cs updatecryptokeys_mix

updatecryptokeys_cs:
	cd node_modules/cryptofunc; npm install
	cd tools; node genKeys4collectingServer.js ../templates/ElectionManifest.json ../templates/config_cs.json

updatecryptokeys_mix:
	cd node_modules/cryptofunc; npm install
	cd templates; python updateMixServersCryptoKeys.py
	


devenv: javadownload javabuild npminstall configs filescopy libdownload

javadownload:
	-mkdir -p lib
	wget -P lib -nc http://central.maven.org/maven2/org/bouncycastle/bcprov-${BCPROV_t}/${BCPROV_v}/bcprov-${BCPROV_t}-${BCPROV_v}.jar

javabuild:
	-mkdir -p bin
	javac -sourcepath src \
          -classpath "lib/*" \
          -d bin \
          src/selectvoting/system/wrappers/*.java    

npminstall:
	cd BulletinBoard; npm install
	cd CollectingServer; npm install
	cd MixServer; npm install
	cd VotingBooth; npm install
	cd node_modules/cryptofunc; npm install



configs: filesconfigs mixconfigs


filesconfigs: 
	-mkdir -p tmp
	cp templates/*.pem tmp/
	cp templates/ElectionManifest.json tmp/
	cp templates/config_bb.json BulletinBoard/config.json
	cp templates/config_cs.json CollectingServer/config.json
	cp templates/config_mix.json MixServer/config.json
	node tools/manifest2js.js templates/ElectionManifest.json > VotingBooth/webapp/ElectionManifest.js
	
{'fraction_non_alphanumeric': 0.08387516254876463, 'fraction_numerical': 0.011703511053315995, 'mean_word_length': 4.564195298372513, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5224678', 'n_tokens_mistral': 1190, 'n_tokens_neox': 1100, 'n_words': 241}