<commit_before>#
# Makefile for Go.bbpackage
#

GOTAGS ?= gotags

SRC_DIR = ./src
PKG = ./Go.bbpackage
CONTENTS_DIR = $(PKG)/Contents

COMPLETION_DIR = $(CONTENTS_DIR)/Completion\ Data/Go
TAGFILE = $(COMPLETION_DIR)/Go\ Standard\ Library.tags

.DEFAULT: all

.PHONY: all clean install tags ctags test

all: build tags

clean:
	-rm -rf $(PKG)

install: all
	open $(PKG)/.

build: $(PKG)
	
$(PKG):
	mkdir -p $(CONTENTS_DIR)
	cp README.md $(PKG)/.
	cp LICENSE $(PKG)/.
	cp -R $(SRC_DIR)/* $(CONTENTS_DIR)/.

test:
	go build test.go

tags: $(TAGFILE)

$(TAGFILE):
	mkdir -p $(COMPLETION_DIR)
	$(GOTAGS) -R \
		--exclude="*_test.go" \
		--exclude="/usr/local/go/src/*/*/testdata/*" \
		--exclude="/usr/local/go/src/*/*/testdata/*/*" \
		--exclude="/usr/local/go/src/*/*/testdata/*/*/*" \
		--exclude="/usr/local/go/src/*/*/testdata/*/*/*/*" \
		--exclude="/usr/local/go/src/*/*/testdata/*/*/*/*/*" \
		--exclude="/usr/local/go/src/*/*/testdata/*/*/*/*/*/*" \
		--exclude="/usr/local/go/src/*/*/testdata/*/*/*/*/*/*/*" \
		--exclude="/usr/local/go/src/*/*/*/testdata/*" \
		--exclude="/usr/local/go/src/internal/*/*" \
		--exclude="/usr/local/go/src/internal/*/*/*" \
		--exclude="/usr/local/go/*/internal/*" \
		--exclude="/usr/local/go/*/internal/*/*" \
		--exclude="/usr/local/go/*/internal/*/*/*" \
		--exclude="/usr/local/go/*/internal/*/*/*/*" \
		--exclude="/usr/local/go/*/*/internal/*" \
		--exclude="/usr/local/go/*/*/internal/*/*" \
		--exclude="/usr/local/go/*/*/internal/*/*/*" \
		--exclude="/usr/local/go/*/*/internal/*/*/*/*" \
		-f=$(TAGFILE) --exclude-private=true $(GOROOT)/src<commit_msg>Update makefile to set GOROOT<commit_after>#
# Makefile for Go.bbpackage
#

GOTAGS ?= gotags
GOROOT ?= /usr/local/go

SRC_DIR = ./src
PKG = ./Go.bbpackage
CONTENTS_DIR = $(PKG)/Contents

COMPLETION_DIR = $(CONTENTS_DIR)/Completion\ Data/Go
TAGFILE = $(COMPLETION_DIR)/Go\ Standard\ Library.tags

.DEFAULT: all

.PHONY: all clean install tags ctags test

all: build tags

clean:
	-rm -rf $(PKG)

install: all
	open $(PKG)/.

build: $(PKG)
	
$(PKG):
	mkdir -p $(CONTENTS_DIR)
	cp README.md $(PKG)/.
	cp LICENSE $(PKG)/.
	cp -R $(SRC_DIR)/* $(CONTENTS_DIR)/.

test:
	go build test.go

tags: $(TAGFILE)

$(TAGFILE):
	mkdir -p $(COMPLETION_DIR)
	$(GOTAGS) -R \
		--exclude="*_test.go" \
		--exclude="$(GOROOT)/src/*/*/testdata/*" \
		--exclude="$(GOROOT)/src/*/*/testdata/*/*" \
		--exclude="$(GOROOT)/src/*/*/testdata/*/*/*" \
		--exclude="$(GOROOT)/src/*/*/testdata/*/*/*/*" \
		--exclude="$(GOROOT)/src/*/*/testdata/*/*/*/*/*" \
		--exclude="$(GOROOT)/src/*/*/testdata/*/*/*/*/*/*" \
		--exclude="$(GOROOT)/src/*/*/testdata/*/*/*/*/*/*/*" \
		--exclude="$(GOROOT)/src/*/*/*/testdata/*" \
		--exclude="$(GOROOT)/src/internal/*/*" \
		--exclude="$(GOROOT)/src/internal/*/*/*" \
		--exclude="$(GOROOT)/*/internal/*" \
		--exclude="$(GOROOT)/*/internal/*/*" \
		--exclude="$(GOROOT)/*/internal/*/*/*" \
		--exclude="$(GOROOT)/*/internal/*/*/*/*" \
		--exclude="$(GOROOT)/*/*/internal/*" \
		--exclude="$(GOROOT)/*/*/internal/*/*" \
		--exclude="$(GOROOT)/*/*/internal/*/*/*" \
		--exclude="$(GOROOT)/*/*/internal/*/*/*/*" \
		-f=$(TAGFILE) --exclude-private=true $(GOROOT)/src
{'fraction_non_alphanumeric': 0.30611601513240855, 'fraction_numerical': 0.0, 'mean_word_length': 2.7818831942789033, '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': '5019644', 'n_tokens_mistral': 1428, 'n_tokens_neox': 1321, 'n_words': 183}