<commit_before># Run tests
#
# Copyright (c) 2014 <NAME>
# MIT Licensed; see the LICENSE file in this repository.
#

T = $(sort $(wildcard t[0-9][0-9][0-9][0-9]-*.sh))
SHARNESS = sharness/sharness.sh

all: clean deps $(T) aggregate

clean:
	@echo "*** $@ ***"
	-rm -r test-results

$(T):
	@echo "*** $@ ***"
	./$@

aggregate:
	@echo "*** $@ ***"
	./test-aggregate-results.sh

deps: $(SHARNESS) ipfs random

$(SHARNESS):
	@echo "*** installing $@ ***"
	./install-sharness.sh

# phony to ensure we re-build it every time we run tests
ipfs:
	@echo "*** installing $@ ***"
	cd ../cmd/ipfs && go build
	cp ../cmd/ipfs/ipfs ipfs

random:
	@echo "*** installing $@ ***"
	go get github.com/jbenet/go-random/random
	go install github.com/jbenet/go-random/random
	cp `which random` random

.PHONY: all clean $(T) aggregate ipfs random<commit_msg>test: install random from vendored code<commit_after># Run tests
#
# Copyright (c) 2014 <NAME>
# MIT Licensed; see the LICENSE file in this repository.
#

T = $(sort $(wildcard t[0-9][0-9][0-9][0-9]-*.sh))
SHARNESS = sharness/sharness.sh
RANDOMSRC = Godeps/_workspace/src/github.com/jbenet/go-random/random

all: clean deps $(T) aggregate

clean:
	@echo "*** $@ ***"
	-rm -r test-results

$(T):
	@echo "*** $@ ***"
	./$@

aggregate:
	@echo "*** $@ ***"
	./test-aggregate-results.sh

deps: $(SHARNESS) ipfs random

$(SHARNESS):
	@echo "*** installing $@ ***"
	./install-sharness.sh

# phony to ensure we re-build it every time we run tests
ipfs:
	@echo "*** installing $@ ***"
	cd ../cmd/ipfs && go build
	cp ../cmd/ipfs/ipfs ipfs

random:
	@echo "*** installing $@ ***"
	go build ../$(RANDOMSRC)
	cp ../$(RANDOMSRC)/random random

.PHONY: all clean $(T) aggregate ipfs random
{'fraction_non_alphanumeric': 0.20631209818819404, 'fraction_numerical': 0.014026884862653419, 'mean_word_length': 3.61455525606469, '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': '4350690', 'n_tokens_mistral': 705, 'n_tokens_neox': 665, 'n_words': 174}