<commit_before>#TODO: maybe switch over to Bazel?
PROTOS=$(wildcard proto/*.proto)

all: node_modules javascript_protos

node_modules: package.json
	npm install

javascript_protos: $(PROTOS) 
	 mkdir -p node_modules && protoc \
	--proto_path=proto \
	--js_out=import_style=commonjs,binary:node_modules \
	$(PROTOS)

clean:
	rm -rf node_modules/*_pb.js

test: node_modules javascript_protos
	npm run test<commit_msg>added server and client args to Makefile<commit_after>#TODO: maybe switch over to Bazel?
PROTOS=$(wildcard proto/*.proto)

all: node_modules javascript_protos

node_modules: package.json
	npm install

javascript_protos: $(PROTOS) 
	 mkdir -p node_modules && protoc \
	--proto_path=proto \
	--js_out=import_style=commonjs,binary:node_modules \
	$(PROTOS)

clean:
	rm -rf node_modules/*_pb.js

test: node_modules javascript_protos
	npm run test

server: node_modules javascript_protos
	GINK_PORT=8080 node ./node_modules/.bin/ts-node ./typescript/main.ts

client: node_modules javascript_protos
	node ./node_modules/.bin/ts-node ./typescript/main.ts ws://localhost:8080
{'fraction_non_alphanumeric': 0.10628465804066543, 'fraction_numerical': 0.0073937153419593345, 'mean_word_length': 5.11864406779661, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5535425', 'n_tokens_mistral': 408, 'n_tokens_neox': 372, 'n_words': 87}