<commit_before>.PHONY: install test_ci test lint update_dev

DEV_BRANCH=dev_hyperbahn

# Helper for running autobahn servers locally.
run-local-%:
	node server.js --port `expr 21300 + $*` --bootstrapFile='["127.0.0.1:21300","127.0.0.1:21301"]' | jq .

update_dev:
	# git-subtree is sensitive to user git-config settings...
	cd ..  && HOME= XDG_CONFIG_HOME= git subtree push --prefix=hyperbahn . ${DEV_BRANCH}

install:
	sudo apt-get install libpcap-dev
	rm -rf node_modules
	mkdir -p node_modules
	ln -s $$(readlink -f ../node) node_modules/tchannel
	(cd node_modules/tchannel; npm install)
	npm install
	npm ls || true

test_ci: test

test:
	npm run test-ci

lint:
	npm run lint<commit_msg>Separate Hyperbahn linked and installed CI<commit_after>.PHONY: install test_ci test lint update_dev

DEV_BRANCH=dev_hyperbahn

# Helper for running autobahn servers locally.
run-local-%:
	node server.js --port `expr 21300 + $*` --bootstrapFile='["127.0.0.1:21300","127.0.0.1:21301"]' | jq .

update_dev:
	# git-subtree is sensitive to user git-config settings...
	cd ..  && HOME= XDG_CONFIG_HOME= git subtree push --prefix=hyperbahn . ${DEV_BRANCH}

link:
	sudo apt-get install libpcap-dev
	rm -rf node_modules
	mkdir -p node_modules
	ln -s $$(readlink -f ../node) node_modules/tchannel
	(cd node_modules/tchannel; npm install)
	npm install
	npm ls || true

install:
	sudo apt-get install libpcap-dev
	npm install
	npm ls || true

test_ci: test

test:
	npm run test-ci

lint:
	npm run lint
{'fraction_non_alphanumeric': 0.12086428089128967, 'fraction_numerical': 0.03646185010128292, 'mean_word_length': 3.891089108910891, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '4747775', 'n_tokens_mistral': 609, 'n_tokens_neox': 554, 'n_words': 160}