<commit_before>all: osrm.node

./build: binding.gyp
	`npm explore npm -g -- pwd`/bin/node-gyp-bin/node-gyp configure

osrm.node: Makefile ./build
	`npm explore npm -g -- pwd`/bin/node-gyp-bin/node-gyp build

clean:
	@rm -rf ./build
	rm -f lib/_osrm.node
	rm -f *.osrm*

rebuild:
	@make clean
	@./configure
	@make

berlin-latest.osm.pbf:
	wget http://download.geofabrik.de/europe/germany/berlin-latest.osm.pbf

berlin-latest.osrm: berlin-latest.osm.pbf
	osrm-extract berlin-latest.osm.pbf -p test/data/car.lua

berlin-latest.osrm.hsgr: berlin-latest.osrm
	osrm-prepare berlin-latest.osrm

test: berlin-latest.osrm.hsgr
	npm test
<commit_msg>avoid brittleness of npm explore - closes #25<commit_after>all: osrm.node

./node_modules/.bin/node-gyp:
	npm install node-gyp

./build: binding.gyp ./node_modules/.bin/node-gyp
	./node_modules/.bin/node-gyp configure

osrm.node: Makefile ./build
	./node_modules/.bin/node-gyp build

clean:
	@rm -rf ./build
	rm -f lib/_osrm.node
	rm -f *.osrm*

rebuild:
	@make clean
	@./configure
	@make

berlin-latest.osm.pbf:
	wget http://download.geofabrik.de/europe/germany/berlin-latest.osm.pbf

berlin-latest.osrm: berlin-latest.osm.pbf
	osrm-extract berlin-latest.osm.pbf -p test/data/car.lua

berlin-latest.osrm.hsgr: berlin-latest.osrm
	osrm-prepare berlin-latest.osrm

test: berlin-latest.osrm.hsgr
	npm test

{'fraction_non_alphanumeric': 0.14583333333333334, 'fraction_numerical': 0.001488095238095238, 'mean_word_length': 3.438943894389439, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6994829', 'n_tokens_mistral': 594, 'n_tokens_neox': 580, 'n_words': 105}