<commit_before>clean: www/index.html
	@rm -rf www/*

server: www/index.html
	@docker-compose up -d www

server-stop: www/index.html
	@docker-compose kill www

update-modules: .gitmodules
	@cd static-transformer && \
	git fetch --all && \
	git reset --hard origin/master && \
	git commit -am 'Update submodules' && \
	git push origin $(git rev-parse --abbrev-ref HEAD)

build: docker-compose.yml
	@mkdir -p ./www && \
	docker-compose build static-transformer && \
	docker-compose run static-transformer build

publish-gh-pages: docker-compose.yml
	@git config user.name "<NAME>" && \
	git config user.email "<EMAIL>" && \
	git branch -D gh-pages 2>/dev/null || true && \
	git branch -D draft 2>/dev/null || true && \
	git checkout -b draft && \
	git add -f www && \
	git commit -am "Deploy on gh-pages" && \
	git subtree split --prefix www -b gh-pages && \
	git checkout origin/master -- ./CNAME && \
	git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:gh-pages > /dev/null 2>&1

stop: docker-compose.yml<commit_msg>Fix publishing<commit_after>clean: www/index.html
	@rm -rf www/*

server: www/index.html
	@docker-compose up -d www

server-stop: www/index.html
	@docker-compose kill www

update-modules: .gitmodules
	@cd static-transformer && \
	git fetch --all && \
	git reset --hard origin/master && \
	git commit -am 'Update submodules' && \
	git push origin $(git rev-parse --abbrev-ref HEAD)

build: docker-compose.yml
	@mkdir -p ./www && \
	docker-compose build static-transformer && \
	docker-compose run static-transformer build

publish-gh-pages: docker-compose.yml
	@git config user.name "Travis CI" && \
	git config user.email "<EMAIL>" && \
	git branch -D gh-pages 2>/dev/null || true && \
	git branch -D draft 2>/dev/null || true && \
	git checkout -b draft && \
	git add -f www && \
	git commit -am "Deploy on gh-pages -- start" && \
	git subtree split --prefix www -b gh-pages && \
	curl "https://${GH_REF}/raw/master/CNAME" --output ./CNAME && \
	git add . && \
	git commit -am "Deploy on gh-pages -- publish" && \
	git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:gh-pages > /dev/null 2>&1

stop: docker-compose.yml
{'fraction_non_alphanumeric': 0.1662806855025475, 'fraction_numerical': 0.0037054191755442334, 'mean_word_length': 2.985239852398524, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 14, 'https://': 3, 'lorem ipsum': 0, 'www.': 14, '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': '2024102', 'n_tokens_mistral': 810, 'n_tokens_neox': 761, 'n_words': 227}