<commit_before>WATCHIFY = ./node_modules/.bin/watchify
BROWSERIFY = ./node_modules/.bin/browserify
NODEMON = ./node_modules/.bin/nodemon
MOCHA = ./node_modules/.bin/mocha
NPM = npm
NODE ?= node
BUILD_DIR = build
SERVER_JS = app/server.js
SERVER_BUNDLE_JS = $(BUILD_DIR)/server.js
BABELIFY_PLUGIN = [ babelify --presets [ es2015 ] ]
BROWSERIFY_EXCLUDE = "**/mongoose/**"
BROWSERIFY_OPTIONS = --verbose -u $(BROWSERIFY_EXCLUDE) --node $(SERVER_JS) -d -t $(BABELIFY_PLUGIN) -o $(SERVER_BUNDLE_JS)

run: install build-server webserver watchify

build: install build-server

node-version: npm
	@if [ "$(shell $(NODE) --version | sed 's/[^0-9]//g')" -lt 400 ]; then echo "Please upgrade your version of Node.js: https://nodejs.org/"; exit 1; fi

webserver:
	@echo "Starting server..."
	$(NODEMON) $(SERVER_BUNDLE_JS) &

npm:
	@echo "Checking for npm..."
	@command -v npm >/dev/null 2>&1 || { echo >&2 "Please install Node.js: https://nodejs.org/"; exit 1; }

install: npm node-version
	@echo "Checking dependencies..."
	@$(NPM) install

build-server:
	@echo "Building server..."
	mkdir -p $(BUILD_DIR)
	$(BROWSERIFY) $(BROWSERIFY_OPTIONS)

watchify:
	@echo "Running Browserify on your files and watching for changes... (Press CTRL-C to stop)"
	$(WATCHIFY) $(BROWSERIFY_OPTIONS)

clean:
	@rm -rf node_modules $(BUILD_DIR)

run-tests:
	@echo "Running tests..."
	$(MOCHA) --compilers js:babel-register

test: build run-tests

.PHONY: run watchify install npm node-version build-server clean test run-tests
<commit_msg>Revert to old `make test`<commit_after>WATCHIFY = ./node_modules/.bin/watchify
BROWSERIFY = ./node_modules/.bin/browserify
NODEMON = ./node_modules/.bin/nodemon
MOCHA = ./node_modules/.bin/mocha
NPM = npm
NODE ?= node
BUILD_DIR = build
SERVER_JS = app/server.js
SERVER_BUNDLE_JS = $(BUILD_DIR)/server.js
BABELIFY_PLUGIN = [ babelify --presets [ es2015 ] ]
BROWSERIFY_EXCLUDE = "**/mongoose/**"
BROWSERIFY_OPTIONS = --verbose -u $(BROWSERIFY_EXCLUDE) --node $(SERVER_JS) -d -t $(BABELIFY_PLUGIN) -o $(SERVER_BUNDLE_JS)

run: install build-server webserver watchify

build: install build-server

node-version: npm
	@if [ "$(shell $(NODE) --version | sed 's/[^0-9]//g')" -lt 400 ]; then echo "Please upgrade your version of Node.js: https://nodejs.org/"; exit 1; fi

webserver:
	@echo "Starting server..."
	$(NODEMON) $(SERVER_BUNDLE_JS) &

npm:
	@echo "Checking for npm..."
	@command -v npm >/dev/null 2>&1 || { echo >&2 "Please install Node.js: https://nodejs.org/"; exit 1; }

install: npm node-version
	@echo "Checking dependencies..."
	@$(NPM) install

build-server:
	@echo "Building server..."
	mkdir -p $(BUILD_DIR)
	$(BROWSERIFY) $(BROWSERIFY_OPTIONS)

watchify:
	@echo "Running Browserify on your files and watching for changes... (Press CTRL-C to stop)"
	$(WATCHIFY) $(BROWSERIFY_OPTIONS)

clean:
	@rm -rf node_modules $(BUILD_DIR)

test:
	@echo "Running tests..."
	$(MOCHA) --compilers js:babel-register

.PHONY: run watchify install npm node-version build-server clean test

{'fraction_non_alphanumeric': 0.15842245989304812, 'fraction_numerical': 0.009358288770053475, 'mean_word_length': 4.205217391304348, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 4, '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': '1496047', 'n_tokens_mistral': 1168, 'n_tokens_neox': 1105, 'n_words': 296}