<commit_before>SRC=src
GIT=<EMAIL>:MrOrz/hacktabl.git
DEPLOY_BRANCH=gh-pages

.PHONY: build push clean deploy

# Build production html using gulp and put the site in /build directory
#
build: clean
	NODE_ENV=production gulp html
	mkdir build

	cp index.html build/
	cp -R public  build/

# Intialize git and push the content to master.
# Note: It is supposed to be executed in build directory
#
push-in-build:
	git init
	git remote add origin $(GIT)
	git checkout --orphan $(DEPLOY_BRANCH)
	git add .
	git commit -m "Compiled from $(MSG)"
	git push --force origin $(DEPLOY_BRANCH)

# Commits all files in build/ directory to repository's master branch
#
push: build

	cp Makefile build/

	MSG="$(shell git log -n 1 --pretty=format:'%h - %s')" $(MAKE) push-in-build -C build


clean:
	rm -rf build

deploy: clean build push<commit_msg>Add 404 page for github<commit_after>SRC=src
GIT=<EMAIL>:MrOrz/hacktabl.git
DEPLOY_BRANCH=gh-pages

.PHONY: build push clean deploy

# Build production html using gulp and put the site in /build directory
#
build: clean
	NODE_ENV=production gulp html
	mkdir build

	cp index.html build/index.html
	cp index.html build/404.html
	cp -R public  build/

# Intialize git and push the content to master.
# Note: It is supposed to be executed in build directory
#
push-in-build:
	git init
	git remote add origin $(GIT)
	git checkout --orphan $(DEPLOY_BRANCH)
	git add .
	git commit -m "Compiled from $(MSG)"
	git push --force origin $(DEPLOY_BRANCH)

# Commits all files in build/ directory to repository's master branch
#
push: build

	cp Makefile build/

	MSG="$(shell git log -n 1 --pretty=format:'%h - %s')" $(MAKE) push-in-build -C build


clean:
	rm -rf build

deploy: clean build push
{'fraction_non_alphanumeric': 0.09778812572759023, 'fraction_numerical': 0.004656577415599534, 'mean_word_length': 3.8422535211267608, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6279979', 'n_tokens_mistral': 623, 'n_tokens_neox': 586, 'n_words': 228}