<commit_before><project name="DeftJS" default="build">
	
	<property file="build.properties" />
	
	<target name="clean" description="Remove artifacts in build directory from previous builds.">
		<delete dir="build" />
	</target>
	
	<target name="init" description="Initialize build directory.">
		<mkdir dir="build" />
	</target>
	
	<target name="build" depends="init" description="Builds debug and deployment versions of the framework.">
		
		<echo message="Compiling CoffeeScript..." />
		<condition property="coffeeExecutable" value="coffee.cmd">
			<os family="windows"/>
		</condition>
		<condition property="coffeeExecutable" value="coffee">
			<os family="unix"/>
		</condition>

		<exec dir="src" executable="${coffeeExecutable}">
			<arg line="-cb -o js coffee" />
		</exec>

		<exec dir="src" executable="${coffeeExecutable}">
			<arg line="-cb -o js coffee" />
		</exec>

		<echo message="Concatenating JavaScript files..." />
		<concat destfile="build/${deftjs.filename.debug}" encoding="UTF-8" outputencoding="UTF-8">
			<header>${deftjs.copyright.notice}</header>
			<filterchain>
				<linecontainsregexp negate="true">
					<regexp pattern="// Generated by CoffeeScript*"/>
				</linecontainsregexp>
			</filterchain>
			<filelist dir="src/js">
				<!-- NOTE: Order is important - driven by class dependencies. -->
				<file name="Deft/core/Class.js" />
				<file name="Deft/log/Logger.js" />
				<file name="Deft/util/Function.js" />
				<file name="Deft/event/LiveEventListener.js" />
				<file name="Deft/event/LiveEventBus.js" />
				<file name="Deft/ioc/DependencyProvider.js" />
				<file name="Deft/ioc/Injector.js" />
				<file name="Deft/mixin/Injectable.js" />
				<file name="Deft/mvc/Observer.js" />
				<file name="Deft/mvc/ComponentSelectorListener.js" />
				<file name="Deft/mvc/ComponentSelector.js" />
				<file name="Deft/mvc/ViewController.js" />
				<file name="Deft/mixin/Controllable.js" />
				<file name="Deft/promise/Promise.js" />
				<file name="Deft/promise/Deferred.js" />
				<file name="Deft/promise/Chain.js" />
			</filelist>
		</concat>
		
		<echo message="Minifying concatenated JavaScript file..." />
		<condition property="yuiCompressorExecutable" value="yuicompressor.cmd">
			<os family="windows"/>
		</condition>
		<condition property="yuiCompressorExecutable" value="yuicompressor">
			<os family="unix"/>
		</condition>

		<exec dir="build" executable="${yuiCompressorExecutable}">
			<arg line="${deftjs.filename.debug} -o ${deftjs.filename.deploy} --charset utf-8" />
		</exec>
		
		<condition property="isWindows">
			<os family="windows"/>
		</condition>
		<antcall target="fixCrlfOnWindows"/>

		<echo message="Done." />
		
	</target>

	<target name="fixCrlfOnWindows" if="isWindows">
		<fixcrlf srcdir="src/js" includes="**/*.js" eol="crlf" />
		<fixcrlf srcdir="build" includes="**/*.js" eol="crlf" />
	</target>

</project><commit_msg>Tweaked build.xml windows compatibility changes submitted by Damir.<commit_after><project name="DeftJS" default="build">
	
	<property file="build.properties" />
	
	<target name="clean" description="Remove artifacts in build directory from previous builds.">
		<delete dir="build" />
	</target>
	
	<target name="init" description="Initialize build directory.">
		<mkdir dir="build" />
	</target>
	
	<target name="build" depends="init" description="Builds debug and deployment versions of the framework.">
		
		<echo message="Compiling CoffeeScript..." />
		<condition property="coffeeExecutable" value="coffee.cmd">
			<os family="windows"/>
		</condition>
		<condition property="coffeeExecutable" value="coffee">
			<os family="unix"/>
		</condition>
		
		<exec dir="src" executable="${coffeeExecutable}">
			<arg line="-cb -o js coffee" />
		</exec>
		
		<exec dir="src" executable="${coffeeExecutable}">
			<arg line="-cb -o js coffee" />
		</exec>
		
		<echo message="Concatenating JavaScript files..." />
		<concat destfile="build/${deftjs.filename.debug}" encoding="UTF-8" outputencoding="UTF-8">
			<header>${deftjs.copyright.notice}</header>
			<filterchain>
				<linecontainsregexp negate="true">
					<regexp pattern="// Generated by CoffeeScript*"/>
				</linecontainsregexp>
			</filterchain>
			<filelist dir="src/js">
				<!-- NOTE: Order is important - driven by class dependencies. -->
				<file name="Deft/core/Class.js" />
				<file name="Deft/log/Logger.js" />
				<file name="Deft/util/Function.js" />
				<file name="Deft/event/LiveEventListener.js" />
				<file name="Deft/event/LiveEventBus.js" />
				<file name="Deft/ioc/DependencyProvider.js" />
				<file name="Deft/ioc/Injector.js" />
				<file name="Deft/mixin/Injectable.js" />
				<file name="Deft/mvc/Observer.js" />
				<file name="Deft/mvc/ComponentSelectorListener.js" />
				<file name="Deft/mvc/ComponentSelector.js" />
				<file name="Deft/mvc/ViewController.js" />
				<file name="Deft/mixin/Controllable.js" />
				<file name="Deft/promise/Promise.js" />
				<file name="Deft/promise/Deferred.js" />
				<file name="Deft/promise/Chain.js" />
			</filelist>
		</concat>
		
		<echo message="Minifying concatenated JavaScript file..." />
		<condition property="yuiCompressorExecutable" value="yuicompressor.cmd">
			<os family="windows"/>
		</condition>
		<condition property="yuiCompressorExecutable" value="yuicompressor">
			<os family="unix"/>
		</condition>
		
		<exec dir="build" executable="${yuiCompressorExecutable}">
			<arg line="${deftjs.filename.debug} -o ${deftjs.filename.deploy} --charset utf-8" />
		</exec>
		
		<!-- Convert EOL characters to match local OS conventions. -->
		<fixcrlf srcdir="src/js" includes="**/*.js" />
		<fixcrlf srcdir="build" includes="**/*.js" />
		
		<echo message="Done." />
		
	</target>

</project>
{'fraction_non_alphanumeric': 0.1826906299075205, 'fraction_numerical': 0.0010469377072064212, 'mean_word_length': 3.967071057192374, 'pattern_counts': {'":': 0, '<': 142, '<?xml version=': 0, '>': 142, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, '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': '1934629', 'n_tokens_mistral': 2187, 'n_tokens_neox': 1870, 'n_words': 367}