<commit_before>#http://www.gnu.org/prep/standards/html_node/Standard-Targets.html#Standard-Targets

all: mapnik.node

OS:=$(shell uname -s)

ifeq ($(NPROCS),)
	NPROCS:=1
	ifeq ($(OS),Linux)
		NPROCS:=$(shell grep -c ^processor /proc/cpuinfo)
	endif
	ifeq ($(OS),Darwin)
		NPROCS:=$(shell sysctl -n hw.ncpu)
	endif
endif

gyp:
	python gen_settings.py
	python gyp/gyp build.gyp --depth=. -f make --generator-output=./projects/makefiles
	make -j$(NPROCS) -C ./projects/makefiles/ V=1
	cp projects/makefiles/out/Default/_mapnik.node lib/_mapnik.node

install: all
	@node-waf build install

mapnik.node:
	@node-waf build -j $(NPROCS)
	@make test

clean:
	@node-waf clean distclean
	@rm -rf ./projects/makefiles/

uninstall:
	@node-waf uninstall

rebuild:
	@make clean
	@./configure
	@make

test-tmp:
	@rm -rf test/tmp
	@mkdir -p test/tmp

ifndef only
test: test-tmp
	@PATH="./node_modules/mocha/bin:${PATH}" && NODE_PATH="./lib:$(NODE_PATH)" mocha -R spec
else
test: test-tmp
	@PATH="./node_modules/mocha/bin:${PATH}" && NODE_PATH="./lib:$(NODE_PATH)" mocha -R spec test/${only}.test.js
endif

check: test
<commit_msg>no need to test just build<commit_after>#http://www.gnu.org/prep/standards/html_node/Standard-Targets.html#Standard-Targets

all: mapnik.node

OS:=$(shell uname -s)

ifeq ($(NPROCS),)
	NPROCS:=1
	ifeq ($(OS),Linux)
		NPROCS:=$(shell grep -c ^processor /proc/cpuinfo)
	endif
	ifeq ($(OS),Darwin)
		NPROCS:=$(shell sysctl -n hw.ncpu)
	endif
endif

gyp:
	python gen_settings.py
	python gyp/gyp build.gyp --depth=. -f make --generator-output=./projects/makefiles
	make -j$(NPROCS) -C ./projects/makefiles/ V=1
	cp projects/makefiles/out/Default/_mapnik.node lib/_mapnik.node

install: all
	@node-waf build install

mapnik.node:
	@node-waf build -j $(NPROCS)

clean:
	@node-waf clean distclean
	@rm -rf ./projects/makefiles/

uninstall:
	@node-waf uninstall

rebuild:
	@make clean
	@./configure
	@make

test-tmp:
	@rm -rf test/tmp
	@mkdir -p test/tmp

ifndef only
test: test-tmp
	@PATH="./node_modules/mocha/bin:${PATH}" && NODE_PATH="./lib:$(NODE_PATH)" mocha -R spec
else
test: test-tmp
	@PATH="./node_modules/mocha/bin:${PATH}" && NODE_PATH="./lib:$(NODE_PATH)" mocha -R spec test/${only}.test.js
endif

check: test

{'fraction_non_alphanumeric': 0.1710821733273462, 'fraction_numerical': 0.001796138302649304, 'mean_word_length': 4.052154195011338, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4052557', 'n_tokens_mistral': 931, 'n_tokens_neox': 904, 'n_words': 199}