<commit_before>.PHONY: build

PYTHON := python2.7
ENV := env
GOVENDOR := ${GOPATH}/bin/govendor

build:
	virtualenv -p ${PYTHON} ${ENV}
	${ENV}/bin/pip install --upgrade --quiet pip wheel
	${ENV}/bin/pip install --quiet -r requirements.txt
	${ENV}/bin/python setup.py install
	pwd > ${ENV}/lib/${PYTHON}/site-packages/perfrunner.pth

clean:
	rm -fr build perfrunner.egg-info dist dcptest kvgen cbindexperf YCSB
	find . -name '*.pyc' -o -name '*.pyo' | xargs rm -f

pep8:
	${ENV}/bin/flake8 --statistics cbagent perfdaily perfrunner scripts spring
	${ENV}/bin/isort --quiet --check-only --recursive cbagent perfdaily perfrunner scripts spring

nose:
	${ENV}/bin/nosetests -v unittests.py

gofmt:
	gofmt -e -d -s go && ! gofmt -l go | read

test: nose pep8 gofmt

dcptest: vendor-sync
	go build ./go/dcptest

cbindexperf: buildquery
	go build ./go/cbindexperf

buildquery: vendor-sync
	cd vendor/github.com/couchbase/query/parser/n1ql && sh build.sh

kvgen: vendor-sync
	go build ./go/kvgen

vendor-sync: go-tools
	${GOVENDOR} sync

go-tools:
	go get -u github.com/kardianos/govendor

ycsb:
	git clone git://github.com/brianfrankcooper/YCSB.git
	cd YCSB && mvn -pl com.yahoo.ycsb:couchbase2-binding -am clean package<commit_msg>CBPS-257: Skip YCSB tests and style checks<commit_after>.PHONY: build

PYTHON := python2.7
ENV := env
GOVENDOR := ${GOPATH}/bin/govendor

build:
	virtualenv -p ${PYTHON} ${ENV}
	${ENV}/bin/pip install --upgrade --quiet pip wheel
	${ENV}/bin/pip install --quiet -r requirements.txt
	${ENV}/bin/python setup.py install
	pwd > ${ENV}/lib/${PYTHON}/site-packages/perfrunner.pth

clean:
	rm -fr build perfrunner.egg-info dist dcptest kvgen cbindexperf YCSB
	find . -name '*.pyc' -o -name '*.pyo' | xargs rm -f

pep8:
	${ENV}/bin/flake8 --statistics cbagent perfdaily perfrunner scripts spring
	${ENV}/bin/isort --quiet --check-only --recursive cbagent perfdaily perfrunner scripts spring

nose:
	${ENV}/bin/nosetests -v unittests.py

gofmt:
	gofmt -e -d -s go && ! gofmt -l go | read

test: nose pep8 gofmt

dcptest: vendor-sync
	go build ./go/dcptest

cbindexperf: buildquery
	go build ./go/cbindexperf

buildquery: vendor-sync
	cd vendor/github.com/couchbase/query/parser/n1ql && sh build.sh

kvgen: vendor-sync
	go build ./go/kvgen

vendor-sync: go-tools
	${GOVENDOR} sync

go-tools:
	go get -u github.com/kardianos/govendor

ycsb:
	git clone git://github.com/brianfrankcooper/YCSB.git
	cd YCSB && mvn -pl com.yahoo.ycsb:couchbase2-binding -am -Dcheckstyle.skip -DskipTests clean package
{'fraction_non_alphanumeric': 0.13819195539625648, 'fraction_numerical': 0.0067702110712863405, 'mean_word_length': 3.6778398510242085, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5943314', 'n_tokens_mistral': 1013, 'n_tokens_neox': 996, 'n_words': 257}