<commit_before>GOPATH=$(PWD)/go/
GO=GOPATH=$(GOPATH) go
ALOHA_VERSION=0.22.3

all: dep-aloha-editor dep-jquery monsti node-types bcrypt

.PHONY: extract-messages
extract-messages:
	mkdir -p locale/
	find templates/ -name "*.html" | xargs cat \
	  | sed 's|{{G "\(.*\)"}}|gettext("\1");|g' \
	  | xgettext -d monsti-cms -L C -p locale/ -kG -kGN:1,2 -

.PHONY: bcrypt
bcrypt: 
	$(GO) get github.com/monsti/monsti-daemon/tools/bcrypt

.PHONY: monsti
monsti:
	$(GO) get github.com/monsti/monsti-daemon

.PHONY: node-types
node-types:
	$(GO) get github.com/monsti/monsti-contactform
	$(GO) get github.com/monsti/monsti-document
	$(GO) get github.com/monsti/monsti-image

.PHONY: tests
tests:
	$(GO) test github.com/monsti/monsti-daemon
	$(GO) test github.com/monsti/monsti-daemon/worker
	$(GO) test github.com/monsti/monsti-contactform
	$(GO) test github.com/monsti/monsti-document
	$(GO) test github.com/monsti/monsti-image

.PHONY: clean
clean:
	rm go/bin/*
	rm go/pkg/* -R
	rm static/aloha/ -R

dep-aloha-editor: static/aloha/<commit_msg>Update clean rule in Makefile.<commit_after>GOPATH=$(PWD)/go/
GO=GOPATH=$(GOPATH) go
ALOHA_VERSION=0.22.3

all: dep-aloha-editor dep-jquery monsti node-types bcrypt

.PHONY: extract-messages
extract-messages:
	mkdir -p locale/
	find templates/ -name "*.html" | xargs cat \
	  | sed 's|{{G "\(.*\)"}}|gettext("\1");|g' \
	  | xgettext -d monsti-cms -L C -p locale/ -kG -kGN:1,2 -

.PHONY: bcrypt
bcrypt: 
	$(GO) get github.com/monsti/monsti-daemon/tools/bcrypt

.PHONY: monsti
monsti:
	$(GO) get github.com/monsti/monsti-daemon

.PHONY: node-types
node-types:
	$(GO) get github.com/monsti/monsti-contactform
	$(GO) get github.com/monsti/monsti-document
	$(GO) get github.com/monsti/monsti-image

.PHONY: tests
tests:
	$(GO) test github.com/monsti/monsti-daemon
	$(GO) test github.com/monsti/monsti-daemon/worker
	$(GO) test github.com/monsti/monsti-contactform
	$(GO) test github.com/monsti/monsti-document
	$(GO) test github.com/monsti/monsti-image

.PHONY: clean
clean:
	rm go/bin/* -Rf
	rm go/pkg/* -Rf
	rm static/aloha/ -R

dep-aloha-editor: static/aloha/
{'fraction_non_alphanumeric': 0.17096466093600765, 'fraction_numerical': 0.0066857688634192934, 'mean_word_length': 3.7613636363636362, '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': '7667917', 'n_tokens_mistral': 978, 'n_tokens_neox': 887, 'n_words': 182}