<commit_before>all: static/vendor/semantic-ui/dist/semantic.js

node_modules/.bin/bower:
	npm install

static/vendor: node_modules/.bin/bower
	./node_modules/.bin/bower install

static/vendor/semantic-ui/dist/semantic.js: static/vendor
	# Unintuitively, the working directory is reset to the top-level directory before running each line below.
	cd static/vendor/semantic-ui && npm install
	cp semantic-config/semantic.json static/vendor/semantic-ui
	cp semantic-config/theme.config static/vendor/semantic-ui/src/
	cp -r static/vendor/semantic-ui/src/_site static/vendor/semantic-ui/src/site
	cd static/vendor/semantic-ui && gulp build

clean:
	rm -r node_modules static/vendor

.PHONY: all
<commit_msg>Remove 'install' script from semantic so it doesn't force unintuitive interaction on the user when building.<commit_after>all: static/vendor/semantic-ui/dist/semantic.js

node_modules/.bin/bower:
	npm install

static/vendor: node_modules/.bin/bower
	./node_modules/.bin/bower install

static/vendor/semantic-ui/dist/semantic.js: static/vendor
	# Unintuitively, the working directory is reset to the top-level directory before running each line below.
	sed -i '/^    "install": "gulp install"/d' static/vendor/semantic-ui/package.json
	cd static/vendor/semantic-ui && npm install
	cp semantic-config/semantic.json static/vendor/semantic-ui
	cp semantic-config/theme.config static/vendor/semantic-ui/src/
	cp -r static/vendor/semantic-ui/src/_site static/vendor/semantic-ui/src/site
	cd static/vendor/semantic-ui && gulp build

clean:
	rm -r node_modules static/vendor

.PHONY: all

{'fraction_non_alphanumeric': 0.10872313527180784, 'fraction_numerical': 0.0, 'mean_word_length': 4.384353741496598, 'pattern_counts': {'":': 1, '<': 3, '<?xml version=': 0, '>': 3, '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': '5403484', 'n_tokens_mistral': 531, 'n_tokens_neox': 515, 'n_words': 123}