<commit_before>#######################################################################
#   MelonJS Game Engine
#   Copyright (C) 2011, <NAME>
#   http://www.melonjs.org
#
#   melonJS is licensed under the MIT License.
#   http://www.opensource.org/licenses/mit-license.php
#
#   javascript compilation / "minification" makefile
# 
#   MODULE -- js files to minify
#   BUILD  -- js minified target file (1) 
# 
#######################################################################

# YUICOMPRESSOR
YUI_VERSION = 2.4.6
YUI_PATH = tools/yuicompressor-$(YUI_VERSION)/build/
YUI_COMPRESSOR = ${YUI_PATH}yuicompressor-$(YUI_VERSION).jar
YUI_OPTION =
#YUI_OPTION = --verbose

# GOOGLE CLOSURE COMPILER
GCC_VERSION =
GCC_PATH = tools/closure-compiler$(GCC_VERSION)/
GCC_COMPRESSOR = ${GCC_PATH}compiler$(GCC_VERSION).jar
GCC_OPTION = --jscomp_off=internetExplorerChecks 
#GCC_OPTION = --compilation_level ADVANCED_OPTIMIZATIONS

# JSDOC
JSDOC_VERSION = 2.4.0
JSDOC_PATH = tools/jsdoc-toolkit
JSDOC_OPTION = -d=docs -s

# Set the source directory
srcdir = src/
buildir = build/
docdir = docs/

# CURRENT BUILD VERSION
ME_VER=$(shell cat $(srcdir)version.js | sed "s/^.*[^0-9]\([0-9]*\.[0-9]*\.[0-9]*\).*/\1/")
VERSION=sed "s/@VERSION/${VERSION}/"

# list of module to compile
MODULE = $(srcdir)core.js\
	 $(srcdir)loader/loader.js\
	 $(srcdir)math/geometry.js\
 	 $(srcdir)entity/camera.js\
	 $(srcdir)entity/entity.js\
	 $(srcdir)font/font.js\
	 $(srcdir)GUI/GUI.js\
	 $(srcdir)GUI/HUD.js\
	 $(srcdir)audio/audio.js\
	 $(srcdir)video/video.js\
	 $(srcdir)input/input.js\
	 $(srcdir)utils/utils.js\
	 $(srcdir)utils/stat.js\
	 $(srcdir)level/level.js\
	 $(srcdir)level/TMXConstants.js\
	 $(srcdir)level/TMXUtils.js\
	 $(srcdir)level/TMXObjectGroup.js\
	 $(srcdir)level/TMXTileset.js\
	 $(srcdir)level/TMXTiledMap.js\
	 $(srcdir)utils/tween.js

# Debug Target name
DEBUG = $(buildir)melonJS-$(ME_VER).js

# Build Target name
BUILD = $(buildir)melonJS-$(ME_VER)-min.js

#######################################################################

.DEFAULT_GOAL := all

.PHONY: js

all: debug
	java -jar $(YUI_COMPRESSOR) $(YUI_OPTION) $(DEBUG) >> $(BUILD)

google: debug
	java -jar $(GCC_COMPRESSOR) $(GCC_OPTION) --js=$(DEBUG) --js_output_file=$(BUILD)
		
debug: clean
	cat $(MODULE) >> $(DEBUG)

clean:
	rm -f $(BUILD)
	rm -f $(DEBUG)<commit_msg>Use Google closure compiler as default for library minification.<commit_after>#######################################################################
#   MelonJS Game Engine
#   Copyright (C) 2011, <NAME>
#   http://www.melonjs.org
#
#   melonJS is licensed under the MIT License.
#   http://www.opensource.org/licenses/mit-license.php
#
#   javascript compilation / "minification" makefile
# 
#   MODULE -- js files to minify
#   BUILD  -- js minified target file (1) 
# 
#######################################################################

# YUICOMPRESSOR
YUI_VERSION = 2.4.6
YUI_PATH = tools/yuicompressor-$(YUI_VERSION)/build/
YUI_COMPRESSOR = ${YUI_PATH}yuicompressor-$(YUI_VERSION).jar
YUI_OPTION =
#YUI_OPTION = --verbose

# GOOGLE CLOSURE COMPILER
GCC_VERSION =
GCC_PATH = tools/closure-compiler$(GCC_VERSION)/
GCC_COMPRESSOR = ${GCC_PATH}compiler$(GCC_VERSION).jar
GCC_OPTION = --jscomp_off=internetExplorerChecks 
#GCC_OPTION = --compilation_level ADVANCED_OPTIMIZATIONS

# JSDOC
JSDOC_VERSION = 2.4.0
JSDOC_PATH = tools/jsdoc-toolkit
JSDOC_OPTION = -d=docs -s

# Set the source directory
srcdir = src/
buildir = build/
docdir = docs/

# CURRENT BUILD VERSION
ME_VER=$(shell cat $(srcdir)version.js | sed "s/^.*[^0-9]\([0-9]*\.[0-9]*\.[0-9]*\).*/\1/")
VERSION=sed "s/@VERSION/${VERSION}/"

# list of module to compile
MODULE = $(srcdir)core.js\
	 $(srcdir)loader/loader.js\
	 $(srcdir)math/geometry.js\
 	 $(srcdir)entity/camera.js\
	 $(srcdir)entity/entity.js\
	 $(srcdir)font/font.js\
	 $(srcdir)GUI/GUI.js\
	 $(srcdir)GUI/HUD.js\
	 $(srcdir)audio/audio.js\
	 $(srcdir)video/video.js\
	 $(srcdir)input/input.js\
	 $(srcdir)utils/utils.js\
	 $(srcdir)utils/stat.js\
	 $(srcdir)level/level.js\
	 $(srcdir)level/TMXConstants.js\
	 $(srcdir)level/TMXUtils.js\
	 $(srcdir)level/TMXObjectGroup.js\
	 $(srcdir)level/TMXTileset.js\
	 $(srcdir)level/TMXRenderer.js\
	 $(srcdir)level/TMXTiledMap.js\
	 $(srcdir)utils/tween.js

# Debug Target name
DEBUG = $(buildir)melonJS-$(ME_VER).js

# Build Target name
BUILD = $(buildir)melonJS-$(ME_VER)-min.js

#######################################################################

.DEFAULT_GOAL := all

.PHONY: js

yui: debug
	java -jar $(YUI_COMPRESSOR) $(YUI_OPTION) $(DEBUG) >> $(BUILD)

all: debug
	java -jar $(GCC_COMPRESSOR) $(GCC_OPTION) --js=$(DEBUG) --js_output_file=$(BUILD)
		
debug: clean
	cat $(MODULE) >> $(DEBUG)

clean:
	rm -f $(BUILD)
	rm -f $(DEBUG)
{'fraction_non_alphanumeric': 0.2460534624289623, 'fraction_numerical': 0.008419280151547043, 'mean_word_length': 4.577464788732394, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '4677394', 'n_tokens_mistral': 1857, 'n_tokens_neox': 1795, 'n_words': 310}