<commit_before>.DEFAULT_GOAL := peppermint
peppermint := peppermint
docs := docs

.PHONY: setupApiDoc peppermint docs

ApiDocPresent := $(shell sh -c apidoc --help 1\>/dev/null)

peppermint:
	@echo [peppermint/build] Rebuilding Pepperminty Wiki
	php build.php

docs: setupApiDoc
	@echo [peppermint/docs] Building docs
	apidoc -vvv -o './RestApiDocs/' -f '.*\.php' -e index.php
	rm -rf doc/

setupApiDoc:
	@echo [peppermint] Checking for apiDoc
ifndef ApiDocPresent
	@echo [peppermint] Attempting to install ApiDoc, since it wasn't detected in your PATH
	@echo [peppermint] Note that you may need to be root, and you'll need npm installed.
	npm install apidoc --global
endif
	@echo [peppermint] Check complete<commit_msg>Remove the doc folder once and for all!!!!<commit_after>.DEFAULT_GOAL := peppermint

.PHONY: setupApiDoc peppermint docs

ApiDocPresent := $(shell sh -c apidoc --help 1\>/dev/null && rm -rf doc/)

peppermint:
	@echo [peppermint/build] Rebuilding Pepperminty Wiki
	php build.php

docs: setupApiDoc
	@echo [peppermint/docs] Building docs
	apidoc -vvv -o './RestApiDocs/' -f '.*\.php' -e index.php
	rm -rf doc/

setupApiDoc:
	@echo [peppermint] Checking for apiDoc
ifndef ApiDocPresent
	@echo [peppermint] Attempting to install ApiDoc, since it wasn't detected in your PATH
	@echo [peppermint] Note that you may need to be root, and you'll need npm installed.
	npm install apidoc --global
endif
	@echo [peppermint] Check complete
{'fraction_non_alphanumeric': 0.1037344398340249, 'fraction_numerical': 0.0013831258644536654, 'mean_word_length': 4.319852941176471, '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': '4449056', 'n_tokens_mistral': 541, 'n_tokens_neox': 517, 'n_words': 179}