<commit_before><commit_msg>Makefile first version<commit_after>BINARIES_FOLDER=/usr/local/bin
RESOURCES_FOLDER=/usr/local/lib/noonian

SWIFT_SNAPSHOT=swift-3.0.1-GM-CANDIDATE
SWIFT_URL=https://swift.org/builds/$SWIFT_SNAPSHOT/ubuntu1404/$SWIFT_SNAPSHOT/$SWIFT_SNAPSHOT-ubuntu14.04.tar.gz

.PHONY: uninstall clean test build install linux_swift

uninstall:
	rm -rf "$(RESOURCES_FOLDER)"
	rm -f "$(BINARIES_FOLDER)/noonian"

clean:
	swift build --clean

test: clean
	swift test

build: clean
	swift build -c release

install: build
	mkdir -p $BINARIES_FOLDER
	mkdir -p $RESOURCES_FOLDER
	cp .build/release/noonian $BINARIES_FOLDER
	cp example.noonian.yml $RESOURCES_FOLDER

linux_swift:
	wget -q -O - https://swift.org/keys/all-keys.asc | gpg --import -
	gpg --keyserver hkp://pool.sks-keyservers.net --refresh-keys Swift
	wget $SWIFT_URL
	wget $SWIFT_URL.sig
	gpg --verify $SWIFT_SNAPSHOT-ubuntu14.04.tar.gz.sig
	tar xzf $SWIFT_SNAPSHOT-ubuntu14.04.tar.gz
	export PATH="${PWD}/${SWIFT_SNAPSHOT}-ubuntu14.04/usr/bin:${PATH}"
{'fraction_non_alphanumeric': 0.13013698630136986, 'fraction_numerical': 0.022504892367906065, 'mean_word_length': 4.779661016949152, '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': '5838981', 'n_tokens_mistral': 475, 'n_tokens_neox': 431, 'n_words': 72}