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

TARG=gommap

GOFILES=\
	gommap.go\
	consts.go\

include $(GOROOT)/src/Make.pkg

# consts.go isn't cleaned up so that goinstall works.
CLEANFILES+=\
	_consts.out\

%.go: %.c
	$(HOST_CC) -Wall -pedantic $< -o _$*.out
	./_$*.out > $@

GOFMT=gofmt
BADFMT=$(shell $(GOFMT) -l $(GOFILES) $(wildcard *_test.go))

gofmt: $(BADFMT)
	@for F in $(BADFMT); do $(GOFMT) -w $$F && echo $$F; done

ifneq ($(BADFMT),)<commit_msg>Use launchpad.net/gommap<commit_after>include $(GOROOT)/src/Make.inc

TARG=launchpad.net/gommap

GOFILES=\
	gommap.go\
	consts.go\

include $(GOROOT)/src/Make.pkg

# consts.go isn't cleaned up so that goinstall works.
CLEANFILES+=\
	_consts.out\

%.go: %.c
	$(HOST_CC) -Wall -pedantic $< -o _$*.out
	./_$*.out > $@

GOFMT=gofmt
BADFMT=$(shell $(GOFMT) -l $(GOFILES) $(wildcard *_test.go))

gofmt: $(BADFMT)
	@for F in $(BADFMT); do $(GOFMT) -w $$F && echo $$F; done

ifneq ($(BADFMT),)
{'fraction_non_alphanumeric': 0.21164021164021163, 'fraction_numerical': 0.0, 'mean_word_length': 3.8762886597938144, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5459380', 'n_tokens_mistral': 440, 'n_tokens_neox': 434, 'n_words': 96}