<commit_before>SRC_DIR = src
DIST_DIR = dist
LIB_DIR = lib
JQ_DIR = ${LIB_DIR}/jquery
JQ_BUILD_DIR = ${JQ_DIR}/build
JS_ENGINE ?= `which node nodejs`
COMPILER = ${JS_ENGINE} ${JQ_BUILD_DIR}/uglify.js --unsafe
POST_COMPILE = ${JS_ENGINE} ${JQ_BUILD_DIR}/post-compile.js
LATEST_JQ = ${DIST_DIR}/jquery.min.js
PLUGIN = jquery.orelse.js
PLUGIN_MIN = jquery.orelse.min.js
DIST_FILE = ${DIST_DIR}/${PLUGIN}
DIST_FILE_MIN = ${DIST_DIR}/${PLUGIN_MIN}
SRC_FILE = ${SRC_DIR}/${PLUGIN}

all: update_submodules min

update_submodules:
	@echo "Updating submodules"
	@if [ -d .git ]; then \
		if git submodule status | grep -q -E '^-'; then \
			git submodule update --init --recursive; \
		else \
			git submodule update --init --recursive --merge; \
		fi; \
	fi;

${DIST_DIR}:
	@echo "Making dist directory"
	@mkdir -p ${DIST_DIR}

${LATEST_JQ}:
	@echo "Building latest jQuery"
	@cd ${JQ_DIR} && $(MAKE)
	@cp -f ${JQ_DIR}/${LATEST_JQ} ${DIST_DIR}/

plugin: ${DIST_DIR} ${LATEST_JQ}
	@echo "Building plugin"
	@cp -f ${SRC_FILE} ${DIST_FILE}

min: plugin
	@echo "Minifiying plugin"
	${COMPILER} ${DIST_FILE} > ${DIST_FILE_MIN}

clean:
	@echo "Removing dist directory"
	@rm -rf ${DIST_DIR}

.PHONY: all update_submodules plugin min clean<commit_msg>the makefile now runs the smoke test with firefox<commit_after>SRC_DIR = src
TEST_DIR = test
DIST_DIR = dist
LIB_DIR = lib
JQ_DIR = ${LIB_DIR}/jquery
JQ_BUILD_DIR = ${JQ_DIR}/build
BROWSER = `which firefox`
JS_ENGINE ?= `which node nodejs`
COMPILER = ${JS_ENGINE} ${JQ_BUILD_DIR}/uglify.js --unsafe
POST_COMPILE = ${JS_ENGINE} ${JQ_BUILD_DIR}/post-compile.js
LATEST_JQ = ${DIST_DIR}/jquery.min.js
PLUGIN = jquery.orelse.js
PLUGIN_MIN = jquery.orelse.min.js
DIST_FILE = ${DIST_DIR}/${PLUGIN}
DIST_FILE_MIN = ${DIST_DIR}/${PLUGIN_MIN}
SRC_FILE = ${SRC_DIR}/${PLUGIN}

all: update_submodules min

update_submodules:
	@echo "Updating submodules"
	@if [ -d .git ]; then \
		if git submodule status | grep -q -E '^-'; then \
			git submodule update --init --recursive; \
		else \
			git submodule update --init --recursive --merge; \
		fi; \
	fi;

${DIST_DIR}:
	@echo "Making dist directory"
	@mkdir -p ${DIST_DIR}

${LATEST_JQ}:
	@echo "Building latest jQuery"
	@cd ${JQ_DIR} && $(MAKE)
	@cp -f ${JQ_DIR}/${LATEST_JQ} ${DIST_DIR}/

plugin: ${DIST_DIR} ${LATEST_JQ}
	@echo "Building plugin"
	@cp -f ${SRC_FILE} ${DIST_FILE}

min: plugin
	@echo "Minifiying plugin"
	${COMPILER} ${DIST_FILE} > ${DIST_FILE_MIN}

test: min
	${BROWSER} ${TEST_DIR}/smoke-test.html &

clean:
	@echo "Removing dist directory"
	@rm -rf ${DIST_DIR}

.PHONY: all update_submodules plugin min test clean
{'fraction_non_alphanumeric': 0.16090629800307218, 'fraction_numerical': 0.0, 'mean_word_length': 4.461215932914046, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '2901159', 'n_tokens_mistral': 1142, 'n_tokens_neox': 1065, 'n_words': 253}