<commit_before>YUI = ~/dev/yuicompressor-2.4.2.jar --charset=UTF-8
BUILD = GearsUploader/build

ProgressBar = GearsUploader/external/ProgressBar.js 
GearsInit = GearsUploader/external/gears_init.js
MooMore = GearsUploader/external/Element.Shortcuts.js

GearsUploader = GearsUploader/GearsMultipartForm.js GearsUploader/GearsUploader.js GearsUploader/GearsImageUploader.js GearsUploader/DjangoUploader.js
Complete = $(MooMore) $(ProgressBar) $(GearsInit) $(GearsUploader)

all: cleanup ru-complete en-complete prepare-examples

cleanup:
	rm $(BUILD)/*

ru-complete: $(Complete) GearsUploader/Localization/ru.js
	cat $+ > $(BUILD)/GearsUploader.ru.js 
	java -jar $(YUI) $(BUILD)/GearsUploader.ru.js > $(BUILD)/GearsUploader.ru.yui.js 
	
en-complete: $(Complete) GearsUploader/Localization/en.js
	cat $+ > GearsUploader/build/GearsUploader.en.js
	java -jar $(YUI) $(BUILD)/GearsUploader.en.js > $(BUILD)/GearsUploader.en.yui.js

prepare-examples: ru-complete en-complete
	cp $(BUILD)/GearsUploader.en.js examples/django_example/static/js
	<commit_msg>updated Makefile<commit_after>YUI = ~/dev/yuicompressor-2.4.2.jar --charset=UTF-8
BUILD = GearsUploader/build

ProgressBar = GearsUploader/external/ProgressBar.js 
GearsInit = GearsUploader/external/gears_init.js
MooMore = GearsUploader/external/Element.Shortcuts.js

GearsUploader = GearsUploader/GearsMultipartForm.js GearsUploader/GearsUploader.js GearsUploader/GearsImageUploader.js GearsUploader/DjangoUploader.js
Complete = $(MooMore) $(ProgressBar) $(GearsInit) $(GearsUploader)

all: cleanup ru-complete en-complete pl-complete prepare-examples

cleanup:
	rm $(BUILD)/*

ru-complete: $(Complete) GearsUploader/Localization/ru.js
	cat $+ > $(BUILD)/GearsUploader.ru.js 
	java -jar $(YUI) $(BUILD)/GearsUploader.ru.js > $(BUILD)/GearsUploader.ru.yui.js 
	
en-complete: $(Complete) GearsUploader/Localization/en.js
	cat $+ > GearsUploader/build/GearsUploader.en.js
	java -jar $(YUI) $(BUILD)/GearsUploader.en.js > $(BUILD)/GearsUploader.en.yui.js

pl-complete: $(Complete) GearsUploader/Localization/pl.js
	cat $+ > GearsUploader/build/GearsUploader.pl.js
	java -jar $(YUI) $(BUILD)/GearsUploader.pl.js > $(BUILD)/GearsUploader.pl.yui.js

prepare-examples: ru-complete en-complete pl-complete
	cp $(BUILD)/GearsUploader.en.js examples/django_example/static/js
	
{'fraction_non_alphanumeric': 0.13872082973206568, 'fraction_numerical': 0.003457216940363008, 'mean_word_length': 5.53954802259887, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '992017', 'n_tokens_mistral': 865, 'n_tokens_neox': 842, 'n_words': 123}