<commit_before>FLAGS := --disable-documentation --disable-library-coverage

.PHONY: test lint doc

all: build

build: cabal.sandbox.config
	cabal build

install: $(DEPS) add-sources
	cabal install -j $(FLAGS)

clean:
	-rm -rf dist cabal.sandbox.config .cabal-sandbox
	cabal clean

test:
	cabal install --enable-tests $(FLAGS)

lint:
	hlint src

doc:
	cabal haddock

add-sources: cabal.sandbox.config vendor/http-streams
	cabal sandbox add-source ../hexpat-pickle-generic
	cabal sandbox add-source ../querystring-pickle
	cabal sandbox add-source vendor/http-streams

cabal.sandbox.config:
	cabal sandbox init

vendor/%:
	git clone <EMAIL>:brendanhay/$*.git $@<commit_msg>Ensuring cabal clean/install is more robust with new sandboxing<commit_after>FLAGS := --disable-documentation --disable-library-coverage

.PHONY: test lint doc

all: build

build: cabal.sandbox.config .cabal-sandbox
	cabal build

clean:
	-rm -rf dist cabal.sandbox.config .cabal-sandbox
	cabal clean

test:
	cabal install --enable-tests $(FLAGS)

lint:
	hlint src

doc:
	cabal haddock

cabal.sandbox.config:
	cabal sandbox init

.cabal-sandbox: $(DEPS) add-sources
	cabal install -j $(FLAGS)

add-sources: cabal.sandbox.config vendor/http-streams
	cabal sandbox add-source ../hexpat-pickle-generic
	cabal sandbox add-source ../querystring-pickle
	cabal sandbox add-source vendor/http-streams

vendor/%:
	git clone <EMAIL>:brendanhay/$*.git $@
{'fraction_non_alphanumeric': 0.11402266288951841, 'fraction_numerical': 0.0, 'mean_word_length': 4.101083032490974, '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': '3444828', 'n_tokens_mistral': 561, 'n_tokens_neox': 532, 'n_words': 133}