<commit_before>include $(GOROOT)/src/Make.inc
TARG=src/kurz

ifeq ($(MYTARGDIR),)
	MYTARGDIR:=target
endif

CONF_NAME=kurz.conf

ifeq ($(STATIC_DIR),)
	STATIC_DIR:=share/kurz
endif

CLEANFILES=$(MYTARGDIR)
GOFILES=\
	src/*.go\

all: bin-dist


bin-dist: $(TARG)
	@mkdir -p $(MYTARGDIR)/etc/kurz/
	@mkdir -p $(MYTARGDIR)/bin
	@mkdir -p $(MYTARGDIR)/$(STATIC_DIR)
	@cp -rf conf/kurz.conf $(MYTARGDIR)/etc/kurz/
	@sed 's?=static?=$(STATIC_DIR)?' conf/$(CONF_NAME) > $(MYTARGDIR)/etc/kurz/$(CONF_NAME)
	@cp stuff/assets/* $(MYTARGDIR)/$(STATIC_DIR)
	@cp $(TARG) $(MYTARGDIR)/bin
	@git log --pretty=format:"kurz.go %H" -1 > $(MYTARGDIR)/$(STATIC_DIR)/_version


include $(GOROOT)/src/Make.cmd<commit_msg>target for copying static html/css/js files around<commit_after>include $(GOROOT)/src/Make.inc
TARG=src/kurz

ifeq ($(MYTARGDIR),)
	MYTARGDIR:=target
endif

CONF_NAME=kurz.conf

ifeq ($(STATIC_DIR),)
	STATIC_DIR:=share/kurz
endif

CLEANFILES=$(MYTARGDIR)
GOFILES=\
	src/*.go\

all: bin-dist


bin-dist: $(TARG) assets
	@mkdir -p $(MYTARGDIR)/etc/kurz/
	@mkdir -p $(MYTARGDIR)/bin
	@mkdir -p $(MYTARGDIR)/$(STATIC_DIR)
	@cp -rf conf/kurz.conf $(MYTARGDIR)/etc/kurz/
	@sed 's?=static?=$(STATIC_DIR)?' conf/$(CONF_NAME) > $(MYTARGDIR)/etc/kurz/$(CONF_NAME)
	@cp -r stuff/assets/* $(MYTARGDIR)/$(STATIC_DIR)
	@cp $(TARG) $(MYTARGDIR)/bin
	@git log --pretty=format:"kurz.go %H" -1 > $(MYTARGDIR)/$(STATIC_DIR)/_version


assets:
	cp -r stuff/assets/* $(MYTARGDIR)/$(STATIC_DIR)

include $(GOROOT)/src/Make.cmd
{'fraction_non_alphanumeric': 0.20825016633399868, 'fraction_numerical': 0.0013306719893546241, 'mean_word_length': 4.99203187250996, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '4747548', 'n_tokens_mistral': 714, 'n_tokens_neox': 663, 'n_words': 112}