<commit_before>VERSION = 0.1.0

build:
ifdef LOCAL
	make build/shelf
	make build/sdutil
else
	mkdir -p build && tar -cf - . | docker run -i -a stdin -a stdout progrium/makebuilder | tar -xC build
endif

build/shelf:
	go build -o build/shelf

build/sdutil:
	mkdir -p tmp
	cd tmp && git clone https://github.com/flynn/sdutil.git
	GOPATH=. cd tmp/sdutil && go get || true && go build -o ../../build/sdutil
	rm -rf tmp

container: build
	docker build -t flynn/shelf .

install: build
	cp shelf /usr/local/bin

clean:
	rm -rf build tmp shelf<commit_msg>Update Makefile<commit_after>build/container: build/shelf build/sdutil
	docker build -t flynn/shelf .
	touch build/container

build/shelf:
	godep go build -o build/shelf

build/sdutil:
	mkdir -p tmp
	cd tmp && git clone https://github.com/flynn/sdutil.git
	GOPATH=. cd tmp/sdutil && godep go build -o ../../build/sdutil
	rm -rf tmp

.PHONY: clean
clean:
	rm -rf build tmp
{'fraction_non_alphanumeric': 0.12078346028291621, 'fraction_numerical': 0.003264417845484222, 'mean_word_length': 3.0350877192982457, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '4339949', 'n_tokens_mistral': 364, 'n_tokens_neox': 341, 'n_words': 113}