<commit_before>SOURCE = src/couchbase.cc src/couchbase.h src/args.cc src/notify.cc     \
         src/namemap.cc src/operations.cc src/namemap.h src/cas.cc      \
         src/cas.h

all: .lock-wscript $(SOURCE)
	@node-waf build

.lock-wscript: wscript
	@node-waf configure

clean:
	@node-waf clean

install:
	@node-waf install

dist:
	@node-waf dist

check:
	./tests/runtests.sh tests/*t.js

reformat:
	@astyle --mode=c \
               --quiet \
               --style=1tbs \
               --indent=spaces=4 \
               --indent-namespaces \
               --indent-col1-comments \
               --max-instatement-indent=78 \
               --pad-oper \
               --pad-header \
               --add-brackets \
               --unpad-paren \
               --align-pointer=name \
               src/*.cc \
               src/*.h<commit_msg>Use tests as the current directory when running tests<commit_after>SOURCE = src/couchbase.cc src/couchbase.h src/args.cc src/notify.cc     \
         src/namemap.cc src/operations.cc src/namemap.h src/cas.cc      \
         src/cas.h

all: .lock-wscript $(SOURCE)
	@node-waf build

.lock-wscript: wscript
	@node-waf configure

clean:
	@node-waf clean

install:
	@node-waf install

dist:
	@node-waf dist

check:
	(cd tests && ./runtests.sh *t.js)

reformat:
	@astyle --mode=c \
               --quiet \
               --style=1tbs \
               --indent=spaces=4 \
               --indent-namespaces \
               --indent-col1-comments \
               --max-instatement-indent=78 \
               --pad-oper \
               --pad-header \
               --add-brackets \
               --unpad-paren \
               --align-pointer=name \
               src/*.cc \
               src/*.h
{'fraction_non_alphanumeric': 0.13257142857142856, 'fraction_numerical': 0.005714285714285714, 'mean_word_length': 1.250642673521851, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5662504', 'n_tokens_mistral': 587, 'n_tokens_neox': 580, 'n_words': 103}