<commit_before># Base paths
ROOT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
TROUSSEAU_DIR := $(ROOT_DIR)/trousseau

# Trousseau version
VERSION=$(awk '/TROUSSEAU_VERSION/ { gsub("\"", ""); print $NF }' ${TROUSSEAU_DIR}/constants.go)

# Binaries paths
BIN_DIR = $(ROOT_DIR)/bin
TROUSSEAU_BIN = $(BIN_DIR)/trousseau

# Actions
DEPS = $(go list -f '{{range .TestImports}}{{.}} {{end}}' ./...)

all: deps trousseau 
	@(mkdir -p $(BIN_DIR))

deps:
	@(echo "-> Processing dependencies")
	@(go get github.com/kr/godep)
	@(go get ./...)

trousseau: deps
	@(echo "-> Compiling trousseau binary")
	@(mkdir -p $(BIN_DIR))
	@(go build -o $(TROUSSEAU_BIN)) 
	@(echo "-> trousseau binary created: $(TROUSSEAU_BIN)")

test: deps
	@(go list ./... | xargs -n1 go test)

format:
	@(go fmt ./...)
	@(go vet ./...)

.PNONY: all deps trousseau test format 

<commit_msg>Update Makefile deps rules to restore dependencies from godep<commit_after># Base paths
ROOT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
TROUSSEAU_DIR := $(ROOT_DIR)/trousseau

# Trousseau version
VERSION=$(awk '/TROUSSEAU_VERSION/ { gsub("\"", ""); print $NF }' ${TROUSSEAU_DIR}/constants.go)

# Binaries paths
BIN_DIR = $(ROOT_DIR)/bin
TROUSSEAU_BIN = $(BIN_DIR)/trousseau

# Actions
DEPS = $(go list -f '{{range .TestImports}}{{.}} {{end}}' ./...)

all: deps trousseau 
	@(mkdir -p $(BIN_DIR))

deps:
	@(echo "-> Processing dependencies")
	@(go get github.com/kr/godep)
	@(godep restore)

trousseau: deps
	@(echo "-> Compiling trousseau binary")
	@(mkdir -p $(BIN_DIR))
	@(go build -o $(TROUSSEAU_BIN)) 
	@(echo "-> trousseau binary created: $(TROUSSEAU_BIN)")

test: deps
	@(go list ./... | xargs -n1 go test)

format:
	@(go fmt ./...)
	@(go vet ./...)

.PNONY: all deps trousseau test format 


{'fraction_non_alphanumeric': 0.2004466778336125, 'fraction_numerical': 0.0011166945840312675, 'mean_word_length': 4.047887323943662, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '4052404', 'n_tokens_mistral': 736, 'n_tokens_neox': 684, 'n_words': 178}