<commit_before>SHELL = /usr/bin/env bash

EVENT_SPEC_FILE = internal/eventgen/json/events-14.0.0-rc1.json

all: api clients

api:
	go build ./
	go build ./stdbus

check: all
	# disabling golint due to stringer output failing this check; TODO: fix this somehow
	gometalinter --disable=gotype --disable=golint client/native ext/...

clients:
	go build ./client/native
	go build ./client/arimocks

extensions:
	go build ./ext/audio
	go build ./ext/prompt
	go build ./ext/record

events:
	go build -o bin/eventgen ./internal/eventgen/...
	@./bin/eventgen internal/eventgen/template.tmpl ${EVENT_SPEC_FILE} |goimports > events_gen.go
	
mock:
	mockery -all -outpkg arimocks -output client/arimocks<commit_msg>make - update eventgen target to 2.0.0<commit_after>SHELL = /usr/bin/env bash

EVENT_SPEC_FILE = internal/eventgen/json/events-2.0.0.json

all: api clients

api:
	go build ./
	go build ./stdbus

check: all
	# disabling golint due to stringer output failing this check; TODO: fix this somehow
	gometalinter --disable=gotype --disable=golint client/native ext/...

clients:
	go build ./client/native
	go build ./client/arimocks

extensions:
	go build ./ext/audio
	go build ./ext/prompt
	go build ./ext/record

events:
	go build -o bin/eventgen ./internal/eventgen/...
	@./bin/eventgen internal/eventgen/template.tmpl ${EVENT_SPEC_FILE} |goimports > events_gen.go
	
mock:
	mockery -all -outpkg arimocks -output client/arimocks
{'fraction_non_alphanumeric': 0.11640953716690042, 'fraction_numerical': 0.007713884992987377, 'mean_word_length': 3.53015873015873, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6655196', 'n_tokens_mistral': 515, 'n_tokens_neox': 498, 'n_words': 142}