<commit_before>prefix=/usr/local
PWD := $(shell pwd)
GOPATH :=$(PWD)/deps
appname = newyearsbot

all: cli
	GOPATH=$(GOPATH) go build -v -ldflags="-X main.icon=$(prefix)/share/icons/hicolor/256x256/apps/$(appname).png" -o ./newyearsbot-gui gui/*

cli:
	GOPATH=$(GOPATH) go build -v
install:
	install -Dm755 $(appname) $(prefix)/bin/$(appname)
	install -Dm644 LICENSE "$(prefix)/share/licenses/$(appname)/LICENSE"
	if [ -a $(appname)-gui ]; then \
		install -Dm755 $(appname)-gui $(prefix)/bin/$(appname)-gui; \
		install -Dm644 icon.png "$(prefix)/share/icons/hicolor/256x256/apps/$(appname).png"; \
		install -Dm644 $(appname).desktop "$(prefix)/share/applications/$(appname).desktop"; \
	fi

uninstall:
	rm "$(prefix)/bin/$(appname)"
	rm "$(prefix)/share/licenses/$(appname)/LICENSE"
	if [ -a $(prefix)/bin/$(appname)-gui ]; then \
		rm "$(prefix)/bin/$(appname)-gui"; \
		rm "$(prefix)/share/icons/hicolor/256x256/apps/$(appname).png"; \
		rm "$(prefix)/share/applications/$(appname).desktop"; \
	fi

clean:
	rm -rf $(GOPATH)
	rm $(appname)
	if [ -a $(appname)-gui ]; then \
		rm $(appname)-gui; \
	fi<commit_msg>chmod 755 to make it deletable<commit_after>prefix=/usr/local
PWD := $(shell pwd)
GOPATH :=$(PWD)/deps
appname = newyearsbot

all: cli
	GOPATH=$(GOPATH) go build -v -ldflags="-X main.icon=$(prefix)/share/icons/hicolor/256x256/apps/$(appname).png" -o ./newyearsbot-gui gui/*

cli:
	GOPATH=$(GOPATH) go build -v
install:
	install -Dm755 $(appname) $(prefix)/bin/$(appname)
	install -Dm644 LICENSE "$(prefix)/share/licenses/$(appname)/LICENSE"
	if [ -a $(appname)-gui ]; then \
		install -Dm755 $(appname)-gui $(prefix)/bin/$(appname)-gui; \
		install -Dm644 icon.png "$(prefix)/share/icons/hicolor/256x256/apps/$(appname).png"; \
		install -Dm644 $(appname).desktop "$(prefix)/share/applications/$(appname).desktop"; \
	fi

uninstall:
	rm "$(prefix)/bin/$(appname)"
	rm "$(prefix)/share/licenses/$(appname)/LICENSE"
	if [ -a $(prefix)/bin/$(appname)-gui ]; then \
		rm "$(prefix)/bin/$(appname)-gui"; \
		rm "$(prefix)/share/icons/hicolor/256x256/apps/$(appname).png"; \
		rm "$(prefix)/share/applications/$(appname).desktop"; \
	fi

clean:
	chmod -R 755 $(GOPATH)
	rm -rf $(GOPATH)
	rm $(appname)
	if [ -a $(appname)-gui ]; then \
		rm $(appname)-gui; \
	fi
{'fraction_non_alphanumeric': 0.22104799647732276, 'fraction_numerical': 0.031704095112285335, 'mean_word_length': 4.117117117117117, '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': '4161841', 'n_tokens_mistral': 970, 'n_tokens_neox': 873, 'n_words': 166}