<commit_before>srcPath = ../src
servicesDir = $(srcPath)/services
buildDir = .
dist = ../dist
srcModules = $(srcPath)/core.js $(servicesDir)/*.js
serviceListPath = ../download/services.txt
jls = $(dist)/jquery.lifestream.js
jlsMin = $(dist)/jquery.lifestream.min.js

all: uncompressed compressed serviceList uglifyjs-cs

uncompressed: $(jls)

$(jls): $(srcModules)
	cat $^ > $@
	
compressed: $(jlsMin)

$(jlsMin): $(jls)
	uglifyjs $^ > $@
	
serviceList:
#	grep -l $.fn.lifestream.feeds. $(servicesDir)/*.js
#	ls -l $(servicesDir) | awk '{print $$NF}'
#	ls -l $(servicesDir) | awk '{print $$9}'
#	ls -l $(servicesDir) | grep -v '^total' | awk '{print $$9}' 
#	find $(servicesDir) -name '*.js' -exec echo '{}' \;
	ls -l $(servicesDir) | grep -v '^total' | awk '{print $$9}' | sed 's;\(.*\)\.js;\1;' > $(serviceListPath)
	
uglifyjs-cs: ../download/js/uglifyjs-cs.min.js

../download/js/uglifyjs-cs.min.js: ../download/js/uglifyjs-cs.js
	uglifyjs $^ > $@
	<commit_msg>BS: Makefile: create 'dist' directory if it doesn't exist<commit_after>srcPath = ../src
servicesDir = $(srcPath)/services
buildDir = .
dist = ../dist
srcModules = $(srcPath)/core.js $(servicesDir)/*.js
serviceListPath = ../download/services.txt
jls = $(dist)/jquery.lifestream.js
jlsMin = $(dist)/jquery.lifestream.min.js

all: uncompressed compressed serviceList uglifyjs-cs

$(dist): 
	mkdir -p $(dist)

uncompressed: $(jls)

$(jls): $(srcModules) | $(dist)
	cat $^ > $@
	
compressed: $(jlsMin)

$(jlsMin): $(jls) | $(dist)
	uglifyjs $^ > $@
	
serviceList:
#	grep -l $.fn.lifestream.feeds. $(servicesDir)/*.js
#	ls -l $(servicesDir) | awk '{print $$NF}'
#	ls -l $(servicesDir) | awk '{print $$9}'
#	ls -l $(servicesDir) | grep -v '^total' | awk '{print $$9}' 
#	find $(servicesDir) -name '*.js' -exec echo '{}' \;
	ls -l $(servicesDir) | grep -v '^total' | awk '{print $$9}' | sed 's;\(.*\)\.js;\1;' > $(serviceListPath)
	
uglifyjs-cs: ../download/js/uglifyjs-cs.min.js

../download/js/uglifyjs-cs.min.js: ../download/js/uglifyjs-cs.js
	uglifyjs $^ > $@
	
{'fraction_non_alphanumeric': 0.23008411677387433, 'fraction_numerical': 0.0039584364176150424, 'mean_word_length': 3.7576470588235296, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3252548', 'n_tokens_mistral': 843, 'n_tokens_neox': 802, 'n_words': 174}