<commit_before># TODO: print warning if /usr/local/bin is not in PATH
# TODO: print warning if /usr/local/lib is not in LD_LIBRARY_PATH
# TODO: encourage user to run "make test"

PREFIX=/usr/local
FTEPROXY_VERSION=0.2.0

THIRD_PARTY_DIR=thirdparty

RE2_VERSION=20130115
RE2_TGZ=https://re2.googlecode.com/files/re2-$(RE2_VERSION).tgz
RE2_DIR=$(THIRD_PARTY_DIR)/re2

OPENFST_VERSION=1.3.3
OPENFST_TGZ=http://www.openfst.org/twiki/pub/FST/FstDownload/openfst-$(OPENFST_VERSION).tar.gz

all: fte/cDFA.so
	mkdir -p dist/fteproxy-$(FTEPROXY_VERSION)
	pyinstaller fteproxy.spec
	cd dist && cp fteproxy fteproxy-$(FTEPROXY_VERSION)/
	cp README.md dist/fteproxy-$(FTEPROXY_VERSION)
	cp COPYING dist/fteproxy-$(FTEPROXY_VERSION)
	cd dist && tar cvf fteproxy-$(FTEPROXY_VERSION).tar fteproxy-$(FTEPROXY_VERSION)
	cd dist && gzip -9 fteproxy-$(FTEPROXY_VERSION).tar
<commit_msg>Issue #69: tar.gz output<commit_after>PREFIX=/usr/local
FTEPROXY_VERSION=0.2.0-`arch`

THIRD_PARTY_DIR=thirdparty

RE2_VERSION=20130115
RE2_TGZ=https://re2.googlecode.com/files/re2-$(RE2_VERSION).tgz
RE2_DIR=$(THIRD_PARTY_DIR)/re2

OPENFST_VERSION=1.3.3
OPENFST_TGZ=http://www.openfst.org/twiki/pub/FST/FstDownload/openfst-$(OPENFST_VERSION).tar.gz

all: fte/cDFA.so
	mkdir -p dist/fteproxy-$(FTEPROXY_VERSION)
	pyinstaller fteproxy.spec
	cd dist && cp fteproxy fteproxy-$(FTEPROXY_VERSION)/
	cp README.md dist/fteproxy-$(FTEPROXY_VERSION)
	cp COPYING dist/fteproxy-$(FTEPROXY_VERSION)
	cd dist && tar cvf fteproxy-$(FTEPROXY_VERSION).tar fteproxy-$(FTEPROXY_VERSION)
	cd dist && gzip -9 fteproxy-$(FTEPROXY_VERSION).tar

{'fraction_non_alphanumeric': 0.13350125944584382, 'fraction_numerical': 0.028967254408060455, 'mean_word_length': 5.761702127659574, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1899370', 'n_tokens_mistral': 703, 'n_tokens_neox': 687, 'n_words': 103}