<commit_before>all:
	@echo "reinstall | tests | build-openssl-server | build-openssl-server-mac-102"

.PHONY: reinstall
reinstall:
	(cd core; cabal install --force-reinstalls --enable-tests; cd ../debug; cabal install --force-reinstalls)

.PHONY: tests
tests: test-scripts/TestClient
	./test-scripts/TestClient

.PHONY: test-scripts/TestClient
test-scripts/TestClient:
	ghc -threaded --make test-scripts/TestClient

.PHONY: build-openssl-server
build-openssl-server:
	gcc -Wall -o test-scripts/openssl-server -lcrypto -Wno-deprecated-declarations -lssl test-scripts/openssl-server.c

# for building on osx with the latest openssl version in brew
.PHONY: build-openssl-server-mac-102
build-openssl-server-mac-102:
	gcc -Wall -o test-scripts/openssl-server \
			-L/usr/local/Cellar/openssl/1.0.2a-1/lib \
			-I/usr/local/Cellar/openssl/1.0.2a-1/include \
			-lcrypto -lssl test-scripts/openssl-server.c
<commit_msg>[Makefile] make sure the binaries are re-build in the dist too<commit_after>all:
	@echo "reinstall | tests | build-openssl-server | build-openssl-server-mac-102"

.PHONY: reinstall
reinstall:
	(cd core; cabal install --force-reinstalls --enable-tests; cd ../debug; cabal configure; cabal build; cabal install --force-reinstalls)

.PHONY: tests
tests: test-scripts/TestClient
	./test-scripts/TestClient

.PHONY: test-scripts/TestClient
test-scripts/TestClient:
	ghc -threaded --make test-scripts/TestClient

.PHONY: build-openssl-server
build-openssl-server:
	gcc -Wall -o test-scripts/openssl-server -lcrypto -Wno-deprecated-declarations -lssl test-scripts/openssl-server.c

# for building on osx with the latest openssl version in brew
.PHONY: build-openssl-server-mac-102
build-openssl-server-mac-102:
	gcc -Wall -o test-scripts/openssl-server \
			-L/usr/local/Cellar/openssl/1.0.2a-1/lib \
			-I/usr/local/Cellar/openssl/1.0.2a-1/include \
			-lcrypto -lssl test-scripts/openssl-server.c

{'fraction_non_alphanumeric': 0.13280839895013125, 'fraction_numerical': 0.01784776902887139, 'mean_word_length': 3.7889447236180906, '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': '4562888', 'n_tokens_mistral': 733, 'n_tokens_neox': 678, 'n_words': 146}