<commit_before>GO          := go
GOBUILDOPTS ?= -v
GOTESTOPTS  := -v
BINPATH     := bin

export CGO_CFLAGS=-I. -I/usr/local/include
export CGO_LDFLAGS=-L/usr/local/lib

build: build-converter build-spatialize build-tiler

build-converter:
	$(GO) build $(GOBUILDOPTS) -o "$(BINPATH)/grandine-converter" cmd/converter/*.go

build-spatialize:
	$(GO) build $(GOBUILDOPTS) -o "$(BINPATH)/grandine-spatialize" cmd/spatialize/*.go

build-tiler:
	$(GO) build $(GOBUILDOPTS) -o "$(BINPATH)/grandine-tiler" cmd/tiler/*.go 

clean:
	rm '$(BINPATH)'/*

test:
	$(GO) test $(GOTESTOPTS) ./...

# retrieves deps for tests
test-deps:
	$(GO) get -t -u -v ./...<commit_msg>cmd/inspect: make target (though not built by default for now)<commit_after>GO          := go
GOBUILDOPTS ?= -v
GOTESTOPTS  := -v
BINPATH     := bin

export CGO_CFLAGS=-I. -I/usr/local/include
export CGO_LDFLAGS=-L/usr/local/lib

build: build-converter build-spatialize build-tiler

build-converter:
	$(GO) build $(GOBUILDOPTS) -o "$(BINPATH)/grandine-converter" cmd/converter/*.go

build-inspect:
	$(GO) build $(GOBUILDOPTS) -o "$(BINPATH)/grandine-inspect" cmd/inspect/*.go

build-spatialize:
	$(GO) build $(GOBUILDOPTS) -o "$(BINPATH)/grandine-spatialize" cmd/spatialize/*.go

build-tiler:
	$(GO) build $(GOBUILDOPTS) -o "$(BINPATH)/grandine-tiler" cmd/tiler/*.go

clean:
	rm '$(BINPATH)'/*

test:
	$(GO) test $(GOTESTOPTS) ./...

# retrieves deps for tests
test-deps:
	$(GO) get -t -u -v ./...
{'fraction_non_alphanumeric': 0.1859504132231405, 'fraction_numerical': 0.0, 'mean_word_length': 3.7175324675324677, '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': '6447685', 'n_tokens_mistral': 594, 'n_tokens_neox': 584, 'n_words': 126}