<commit_before>NODE_MODULES     = $(CURDIR)/node_modules
NODE_MODULES_BIN = $(NODE_MODULES)/.bin

BOWER            = $(NODE_MODULES_BIN)/bower
JSLINT           = $(NODE_MODULES_BIN)/jslint
PHANTOMJS        = $(NODE_MODULES_BIN)/phantomjs
SPEC             = $(CURDIR)/spec
TEST_RUNNER      = $(SPEC)/runner.phantom.js
UGLIFYJS         = $(NODE_MODULES_BIN)/uglifyjs
UGLIFYJS_ARGS    = -c -m # see https://github.com/mishoo/UglifyJS2#usage for details

BOWER_COMPONENTS = $(CURDIR)/bower_components

SRC              = $(CURDIR)/src/*.js
DEST             = $(CURDIR)/lib/beard.min.js

all: $(NODE_MODULES) lib

lint: .lint

.lint: $(SRC)
	@$(JSLINT) $(wildcard $(SRC)) && touch $@

lib: lint $(DEST)

$(DEST): $(SRC)
	@mkdir -p $(@D)
	@$(UGLIFYJS) $^ $(UGLIFYJS_ARGS) -o $@

$(NODE_MODULES): package.json
	@npm install

test: lib $(BOWER_COMPONENTS)
	@cd $(SPEC); ${MAKE} || exit; cd ..
	@$(PHANTOMJS) $(TEST_RUNNER)

$(BOWER_COMPONENTS): bower.json | $(NODE_MODULES)
	@$(BOWER) install

clean:
	@rm -rf $(DEST)
	@rm -rf $(NODE_MODULES)<commit_msg>Output nothing on successful lint<commit_after>NODE_MODULES     = $(CURDIR)/node_modules
NODE_MODULES_BIN = $(NODE_MODULES)/.bin

BOWER            = $(NODE_MODULES_BIN)/bower
JSLINT           = $(NODE_MODULES_BIN)/jslint
PHANTOMJS        = $(NODE_MODULES_BIN)/phantomjs
SPEC             = $(CURDIR)/spec
TEST_RUNNER      = $(SPEC)/runner.phantom.js
UGLIFYJS         = $(NODE_MODULES_BIN)/uglifyjs
UGLIFYJS_ARGS    = -c -m # see https://github.com/mishoo/UglifyJS2#usage for details

BOWER_COMPONENTS = $(CURDIR)/bower_components

SRC              = $(CURDIR)/src/*.js
DEST             = $(CURDIR)/lib/beard.min.js

all: $(NODE_MODULES) lib

lint: .lint

.lint: $(SRC)
	@$(JSLINT) $(wildcard $(SRC)) >/dev/null && touch $@

lib: lint $(DEST)

$(DEST): $(SRC)
	@mkdir -p $(@D)
	@$(UGLIFYJS) $^ $(UGLIFYJS_ARGS) -o $@

$(NODE_MODULES): package.json
	@npm install

test: lib $(BOWER_COMPONENTS)
	@cd $(SPEC); ${MAKE} || exit; cd ..
	@$(PHANTOMJS) $(TEST_RUNNER)

$(BOWER_COMPONENTS): bower.json | $(NODE_MODULES)
	@$(BOWER) install

clean:
	@rm -rf $(DEST)
	@rm -rf $(NODE_MODULES)
{'fraction_non_alphanumeric': 0.17663683466792274, 'fraction_numerical': 0.0009420631182289214, 'mean_word_length': 3.3884297520661155, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 2, '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': '7067176', 'n_tokens_mistral': 875, 'n_tokens_neox': 865, 'n_words': 158}