<commit_before>bin := node_modules/.bin/

all: compile

compile: install apidocs.json
	@$(bin)babel src -q --extensions .es --source-maps both --out-dir src

# In layman's terms: node_modules directory depends on the state of package.json
# Make will compare their timestamps and only if package.json is newer, it will run this target.
node_modules: package.json
	@npm install

apidocs.json:
	@curl -s https://nodejs.org/api/all.json -o "$@"

module: compile module/package.json
	@node src/generate

module/package.json:
	@mkdir -p module && cp package.json module/package.json

install: node_modules
<commit_msg>Include README and LICENSE in published package<commit_after>bin := node_modules/.bin/

all: compile

compile: install apidocs.json
	@$(bin)babel src -q --extensions .es --source-maps both --out-dir src

# In layman's terms: node_modules directory depends on the state of package.json
# Make will compare their timestamps and only if package.json is newer, it will run this target.
node_modules: package.json
	@npm install

apidocs.json:
	@curl -s https://nodejs.org/api/all.json -o "$@"

module: compile
	@mkdir -p module \
	&& cp README.md LICENSE package.json module/ \
	&& node src/generate

install: node_modules

{'fraction_non_alphanumeric': 0.10885458976441917, 'fraction_numerical': 0.0, 'mean_word_length': 4.008130081300813, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3964564', 'n_tokens_mistral': 403, 'n_tokens_neox': 384, 'n_words': 138}