<commit_before>.PHONY: help deps build-artifacts upload-artifacts test

CMD_DIR=./cmd/android_review_watcher

help:
	@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

deps: ## Install requirements
	go get -v ./...
	go get github.com/mitchellh/gox
	go get github.com/tcnksm/ghr

build-artifacts: deps ## Build command tool package
	cd $(CMD_DIR); mkdir -p android_review_watcher
	cd $(CMD_DIR); go build main.go config.go
	cd $(CMD_DIR); cp -r main .cursor templates android_review_watcher
	cd $(CMD_DIR); zip -r artifacts.zip android_review_watcher
	cd $(CMD_DIR); rm -r android_review_watcher

upload-artifacts: ## Upload artifacts to github
	cd $(CMD_DIR); ghr -t $GITHUB_TOKEN -u $USERNAME -r $CIRCLE_PROJECT_REPONAME artifacts.zip

test: deps ## Run test
	go test -cover<commit_msg>Fixed build<commit_after>.PHONY: help deps build-artifacts upload-artifacts test

CMD_DIR=./cmd/android_review_watcher

help:
	@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

deps: ## Install requirements
	go get -v ./...
	go get github.com/mitchellh/gox
	go get github.com/tcnksm/ghr

build-artifacts: deps ## Build command tool package
	cd $(CMD_DIR); mkdir -p android_review_watcher
	cd $(CMD_DIR); go build main.go config.go
	cd $(CMD_DIR); cp -r main .cursor templates android_review_watcher
	cd $(CMD_DIR); zip -r artifacts.zip android_review_watcher
	cd $(CMD_DIR); rm -r android_review_watcher

upload-artifacts: ## Upload artifacts to github
	cd $(CMD_DIR); ghr -t $GITHUB_TOKEN -u $USERNAME -r $CIRCLE_PROJECT_REPONAME --replace `cat release_tag` artifacts.zip

test: deps ## Run test
	go test -cover
{'fraction_non_alphanumeric': 0.1554054054054054, 'fraction_numerical': 0.01463963963963964, 'mean_word_length': 4.3685800604229605, 'pattern_counts': {'":': 2, '<': 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': '1703147', 'n_tokens_mistral': 710, 'n_tokens_neox': 677, 'n_words': 185}