<commit_before>root_dir := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))

TMPDIR = $(root_dir)/tmp
LIBDIR = $(TMPDIR)/libpg_query-master
LIBDIRGZ = $(TMPDIR)/libpg_query-master.tar.gz

default: test

$(LIBDIR): $(LIBDIRGZ)
	cd $(TMPDIR); tar -xzf $(LIBDIRGZ)
	cd $(LIBDIR); make JSON_OUTPUT_V2=1

$(LIBDIRGZ):
	mkdir -p $(TMPDIR)
	curl -o $(LIBDIRGZ) https://codeload.github.com/lfittl/libpg_query/tar.gz/master

build: $(LIBDIR)

clean:
	-@ $(RM) -r $(TMPDIR)

test: build
	go test -v ./ ./nodes

.PHONY: default build clean test<commit_msg>Add new dependency on kr's pretty lib.<commit_after>root_dir := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))

TMPDIR = $(root_dir)/tmp
LIBDIR = $(TMPDIR)/libpg_query-master
LIBDIRGZ = $(TMPDIR)/libpg_query-master.tar.gz

default: test

$(LIBDIR): $(LIBDIRGZ)
	cd $(TMPDIR); tar -xzf $(LIBDIRGZ)
	cd $(LIBDIR); make JSON_OUTPUT_V2=1

$(LIBDIRGZ):
	mkdir -p $(TMPDIR)
	curl -o $(LIBDIRGZ) https://codeload.github.com/lfittl/libpg_query/tar.gz/master

build: $(LIBDIR)

clean:
	-@ $(RM) -r $(TMPDIR)

test: build
	go get github.com/kr/pretty
	go test -v ./ ./nodes

.PHONY: default build clean test
{'fraction_non_alphanumeric': 0.17814113597246128, 'fraction_numerical': 0.0034423407917383822, 'mean_word_length': 4.618357487922705, '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': '428584', 'n_tokens_mistral': 482, 'n_tokens_neox': 480, 'n_words': 108}