<commit_before>.PHONY: nothing
nothing: ;

.PHONY: shell
shell:
	nix-shell

.PHONY: build
build:
	cabal configure --enable-tests && \
	cabal build

.PHONY: clean
clean:
	cabal clean && \
	find doc/generated -name "*.png" -type f -delete && \
	find src           -name "*.cpp" -type f -delete

.PHONY: test
test:
	cabal configure --enable-tests && \
	cabal build && \
	./dist/build/opencv-doc-images/opencv-doc-images && \
	./dist/build/test-opencv/test-opencv

.PHONY: doc
doc:
	cabal configure --enable-tests && \
	cabal build && \
	./dist/build/opencv-doc-images/opencv-doc-images && \
	cabal haddock --hyperlink-source

.PHONY: update-git-haddock
update-git-haddock:
	git checkout master && \
	cabal configure --enable-tests && \
	cabal build && \
	./dist/build/opencv-doc-images/opencv-doc-images && \
	cabal haddock --hyperlink-source && \
	git stash save && \
	git checkout gh-pages && \
	git rm -r doc && mv ./dist/doc/html/opencv doc && \
	git add doc && \
	git commit -m 'updated haddock documentation' && \
	git push && \
	git checkout master && \
	git stash pop
<commit_msg>Make sure the doc dir is removed in: make update-git-haddock<commit_after>.PHONY: nothing
nothing: ;

.PHONY: shell
shell:
	nix-shell

.PHONY: build
build:
	cabal configure --enable-tests && \
	cabal build

.PHONY: clean
clean:
	cabal clean && \
	find doc/generated -name "*.png" -type f -delete && \
	find src           -name "*.cpp" -type f -delete

.PHONY: test
test:
	cabal configure --enable-tests && \
	cabal build && \
	./dist/build/opencv-doc-images/opencv-doc-images && \
	./dist/build/test-opencv/test-opencv

.PHONY: doc
doc:
	cabal configure --enable-tests && \
	cabal build && \
	./dist/build/opencv-doc-images/opencv-doc-images && \
	cabal haddock --hyperlink-source

.PHONY: update-git-haddock
update-git-haddock:
	git checkout master && \
	cabal configure --enable-tests && \
	cabal build && \
	./dist/build/opencv-doc-images/opencv-doc-images && \
	cabal haddock --hyperlink-source && \
	git stash save && \
	git checkout gh-pages && \
	git rm -r doc && rm -rf doc && mv ./dist/doc/html/opencv doc && \
	git add doc && \
	git commit -m 'updated haddock documentation' && \
	git push && \
	git checkout master && \
	git stash pop

{'fraction_non_alphanumeric': 0.15688032272523533, 'fraction_numerical': 0.0, 'mean_word_length': 2.7386934673366836, 'pattern_counts': {'":': 0, '<': 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': '2901080', 'n_tokens_mistral': 890, 'n_tokens_neox': 871, 'n_words': 214}