<commit_before># This Makefile is for quick minification of fd2l's javascript sources which 
#   reside in src/include for testing and release.
#
# <NAME> 2012-03-08
# Team Bananas, CS160 sjsu.edu

SHELL = /bin/sh
.PHONY: all clean

JSSOURCEDIR := src/include
JSSOURCE := $(filter-out %-min.js,$(wildcard $(JSSOURCEDIR)/*.js))
JSMINSOURCE := $(JSSOURCE:%.js=%-min.js)


# CPAN seems to think this minifier will work well all the way back to Perl 5.8,
#   so I'm not too worried about compatibility at this time.
MINIFY := utils/jsMinifier.pl


# Default target: Minifies all .js source in src/include
all : $(JSMINSOURCE)
minify : $(all)


# Expands to every target. (That is, you can minify a single js source in
#   src/include by specifying the relative path of the desired "-min.js" file.
$(JSMINSOURCE) :
	$(MINIFY) $(@:%-min.js=%.js) $@


# Removes all files ending in "-min.js" in src/include
clean :
	-rm $(JSMINSOURCE)<commit_msg>Added SED to make.<commit_after># This Makefile is for quick minification of fd2l's javascript sources which 
#   reside in src/include for testing and release.
#
# <NAME> 2012-03-08
# Team Bananas, CS160 sjsu.edu

SHELL = /bin/sh
.PHONY: all clean

JSSOURCEDIR := src/include
JSSOURCE := $(filter-out %-min.js,$(wildcard $(JSSOURCEDIR)/*.js))
JSMINSOURCE := $(JSSOURCE:%.js=%-min.js)
TESTGENERATE := cp test/primary.html test/minify.html && sed -i 's/jRequest.js/jRequest-min.js/g' && sed -i 's/gradeStats.js/gradeStates-min.js/g' && sed -i 's/grades.js/grades-min.js/g'


# CPAN seems to think this minifier will work well all the way back to Perl 5.8,
#   so I'm not too worried about compatibility at this time.
MINIFY := utils/jsMinifier.pl


# Default target: Minifies all .js source in src/include
all : $(JSMINSOURCE)
minify : $(all)


# Expands to every target. (That is, you can minify a single js source in
#   src/include by specifying the relative path of the desired "-min.js" file.
$(JSMINSOURCE) :
	$(MINIFY) $(@:%-min.js=%.js) $@


# Removes all files ending in "-min.js" in src/include
gentest: $(TESTGENERATE)
	
clean :
	-rm $(JSMINSOURCE)
	-rm test/minify.html
{'fraction_non_alphanumeric': 0.13544124587069373, 'fraction_numerical': 0.013213780084945729, 'mean_word_length': 3.851258581235698, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7667787', 'n_tokens_mistral': 798, 'n_tokens_neox': 750, 'n_words': 253}