<commit_before>TESTS         = $(shell find tests -type f -name test-*)

JS_FILE      := $(shell find ./ -type f -name *.coffee)

-BIN_COFFEE  := ./node_modules/coffee-script/bin/coffee
-MOCHA       := ./node_modules/.bin/mocha

-PUB_bae_TEMP = ../../publish_bae_temp

-PUB_git_TEMP = ../../helpYou

MESSAGE       = commit form shell

PUBTYPE       = git

VERSION       = 0

default: dev

dev: npm-install test-pre env-pre

test-pre: test

env-pre:
	@rm -rf $(-PUB_TEMP)

test:
	@echo "\033[31m begin unit test!\033[39;49;0m\n"
	@$(-MOCHA) \
		--colors \
		--reporter spec \
		$(TESTS)

npm-install:
	@echo "\033[31m checking node modules... \033[39;49;0m\n"
	@npm install
	@echo "\033[32m node modules are all clear! \033[39;49;0m\n"

compile-coffee:
	@echo "\033[31m compiling coffee scripts... \033[39;49;0m\n"
	@echo $(JS_FILE)
	@for f in $(JS_FILE); do\
		coffee -c $$f;\
		rm -rf $$f;\
	done

publish: env-pre
	@echo publishing ...
	$(publish_$(PUBTYPE))
	@echo "\033[32m publish successful! \033[39;49;0m\n"

publish_bae:
	@mkdir $(-PUB_TEMP)
	@cp -rf ../* $(-PUB_TEMP)
	@cd $(-PUB_TEMP);\
	make compile-coffee ;\
	$(doPublish) ;\
	rm -rf $(-PUB_bae_TEMP)

publish_git:
	@cp -rf ./* $(-PUB_git_TEMP)
	@cd $(-PUB_git_TEMP) ;\
	$(doPublish)

define doPublish
pwd
git add . ;\
git commit -a -m "$(MESSAGE)" ;\
git push origin master
endef

	<commit_msg>auto publish test<commit_after>TESTS         = $(shell find tests -type f -name test-*)

JS_FILE      := $(shell find ./ -type f -name *.coffee)

-BIN_COFFEE  := ./node_modules/coffee-script/bin/coffee
-MOCHA       := ./node_modules/.bin/mocha

-PUB_bae_TEMP = ../../publish_bae_temp

-PUB_git_TEMP = ../../helpYou

MESSAGE       = commit form shell

PUBTYPE       = git

VERSION       = 0

default: dev

dev: npm-install test-pre env-pre

test-pre: test

env-pre:
	@rm -rf $(-PUB_TEMP)

test:
	@echo "\033[31m begin unit test!\033[39;49;0m\n"
	@$(-MOCHA) \
		--colors \
		--reporter spec \
		$(TESTS)

npm-install:
	@echo "\033[31m checking node modules... \033[39;49;0m\n"
	@npm install
	@echo "\033[32m node modules are all clear! \033[39;49;0m\n"

compile-coffee:
	@echo "\033[31m compiling coffee scripts... \033[39;49;0m\n"
	@echo $(JS_FILE)
	@for f in $(JS_FILE); do\
		coffee -c $$f;\
		rm -rf $$f;\
	done

publish: env-pre
	@echo publishing ...
	$(publish_$(PUBTYPE))
	@echo "\033[32m publish successful! \033[39;49;0m\n"

publish_bae:
	@mkdir $(-PUB_TEMP)
	@cp -rf ../* $(-PUB_TEMP)
	@cd $(-PUB_TEMP);\
	make compile-coffee ;\
	$(doPublish) ;\
	rm -rf $(-PUB_bae_TEMP)

testtest:


publish_git:
	@cp -rf ./* $(-PUB_git_TEMP)
	@cd $(-PUB_git_TEMP) ;\
	$(doPublish)

define doPublish
git add . ;\
git commit -a -m "$(MESSAGE)" ;\
git push origin master
endef

	
{'fraction_non_alphanumeric': 0.185986793837124, 'fraction_numerical': 0.04842259721203228, 'mean_word_length': 2.803347280334728, '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': '6210200', 'n_tokens_mistral': 1284, 'n_tokens_neox': 1163, 'n_words': 278}