<commit_before>PKGDIR=./pkg
BASENAME=blocks-gcs-proxy
VERSION=`grep VERSION version.go | cut -f2 -d\"`
OS_LIST=linux darwin
ARCH=amd64
UNFORMATTED=$(shell gofmt -l *.go)

all: build

setup:
	go get github.com/mitchellh/gox
	go get github.com/tcnksm/ghr

checksetup:
	go get golang.org/x/tools/cmd/goimports

check: checkfmt
	go vet *.go
	goimports -l *.go

checkfmt:
ifneq ($(UNFORMATTED),)
	@echo $(UNFORMATTED)
	exit 1
else
	@echo "gofmt -l *.go OK"
endif

build:
	mkdir -p ${PKGDIR}
	for x in "$(OS_LIST)" ; do \
		gox -output="${PKGDIR}/{{.Dir}}_{{.OS}}_{{.Arch}}" -os="$$x" -arch="${ARCH}" ; \
	done

release: build
	ghr -u groovenauts -r blocks-gcs-proxy --replace --draft ${VERSION} pkg

prerelease: build
	ghr -u groovenauts -r blocks-gcs-proxy --replace --draft --prerelease ${VERSION} pkg

version:
	echo ${VERSION}

clean:
	rm -rf ${PKGDIR}<commit_msg>:recycle: Pass $OS_LIST to -os option directly instead of using for statement<commit_after>PKGDIR=./pkg
BASENAME=blocks-gcs-proxy
VERSION=`grep VERSION version.go | cut -f2 -d\"`
OS_LIST=linux darwin
ARCH=amd64
UNFORMATTED=$(shell gofmt -l *.go)

all: build

setup:
	go get github.com/mitchellh/gox
	go get github.com/tcnksm/ghr

checksetup:
	go get golang.org/x/tools/cmd/goimports

check: checkfmt
	go vet *.go
	goimports -l *.go

checkfmt:
ifneq ($(UNFORMATTED),)
	@echo $(UNFORMATTED)
	exit 1
else
	@echo "gofmt -l *.go OK"
endif

build:
	mkdir -p ${PKGDIR}
	gox -output="${PKGDIR}/{{.Dir}}_{{.OS}}_{{.Arch}}" -os="${OS_LIST}" -arch="${ARCH}" ; \

release: build
	ghr -u groovenauts -r blocks-gcs-proxy --replace --draft ${VERSION} pkg

prerelease: build
	ghr -u groovenauts -r blocks-gcs-proxy --replace --draft --prerelease ${VERSION} pkg

version:
	echo ${VERSION}

clean:
	rm -rf ${PKGDIR}
{'fraction_non_alphanumeric': 0.16818181818181818, 'fraction_numerical': 0.004545454545454545, 'mean_word_length': 3.8781163434903045, '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': '4947885', 'n_tokens_mistral': 751, 'n_tokens_neox': 713, 'n_words': 192}