<commit_before><?xml version="1.0" encoding="UTF-8" ?>
<project name="AmbireStudentFlexApplication" basedir="." default="Ambire-swf">
	<property name="FLEX_HOME" value="/Developer/SDK/Flex" />
	<taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar" />
	<uptodate targetfile="Ambire.swf" property="Ambire-swf.uptodate">
		<srcfiles dir=".">
			<include name="Main.mxml" />
			<include name="CameraStatus.as" />
			<include name="Mode.as" />
			<include name="Reason.as" />
			<include name="ambire.jpg" />
			<include name="activity.png" />
			<include name="go.png" />
			<include name="stop.png" />
			<include name="warning.png" />
			<include name="ru/inspirit/net/*.as" />
			<include name="error.mp3" />
			<include name="shutter.mp3" />
		</srcfiles>
	</uptodate>
	<target name="Ambire-swf" depends="AmbireCapture-ane" unless="Ambire-swf.uptodate">
		<mxmlc file="Main.mxml"
			output="Ambire.swf"
			keep-generated-actionscript="true">
			<load-config filename="${FLEX_HOME}/frameworks/air-config.xml" />
			<source-path path-element="${FLEX_HOME}/frameworks" />
			<compiler.debug>true</compiler.debug>
			<compiler.verbose-stacktraces>true</compiler.verbose-stacktraces>
		</mxmlc>
	</target>
	
	
	<condition property="AmbireCapture-nativeLibrary.libraryFile" value="AmbireCapture.dll">
		<os name="Windows" />
	</condition>
	<condition property="AmbireCapture-nativeLibrary.libraryFile" value="AmbireCapture.dylib">
		<os name="Mac OS X" />
	</condition>
	
	<condition property="AmbireCapture-nativeLibrary.uptodate">
		<or>
			<and>
				<os name="Windows" />
				<uptodate targetfile="AmbireCapture.dll">
					<srcfiles dir=".">
						<include name="AmbireCapture-Win32.cpp" />
						<include name="AmbireCapture-Win32.def" />
					</srcfiles>
				</uptodate>
			</and>
			<and>
				<os name="Mac OS X" />
				<uptodate targetfile="AmbireCapture.dylib">
					<srcfiles dir=".">
						<include name="AmbireCapture-MacOSX.mm" />
					</srcfiles>
				</uptodate>
			</and>				
		</or>
	</condition>
	<target name="AmbireCapture-nativeLibrary" unless="AmbireCapture-nativeLibrary.uptodate">
		<echo message="AmbireCapture-nativeLibrary.libraryFile = ${AmbireCapture-nativeLibrary.libraryFile}" />
		<exec executable="cl" os="Windows">
			<arg value="AmbireCapture-Win32.cpp" />
		</exec>
		<exec executable="g++" os="Mac OS X">
			<arg value="-arch" />
			<arg value="i386" />
			<arg value="-fvisibility=hidden" />
			<arg value="-ObjC++" />
			<arg value="-mmacosx-version-min=10.6" />
			<arg value="-framework" />
			<arg value="CoreFoundation" />
			<arg value="-framework" />
			<arg value="ApplicationServices" />
			<arg value="-framework" />
			<arg value="Adobe AIR" />
			<arg value="-dynamiclib" />
			<arg value="-o" />
			<arg value="AmbireCapture.dylib" />
			<arg value="AmbireCapture-MacOSX.mm" />
		</exec>
	</target>
	
	
	<uptodate targetfile="AmbireCapture.swf" property="AmbireCapture-swf.uptodate">
		<srcfiles dir=".">
			<include name="org/eun/itec/ambire/student/AmbireCapture.as" />
		</srcfiles>
	</uptodate>
	<target name="AmbireCapture-swf" unless="AmbireCapture-swf.uptodate">
		<compc output="AmbireCapture.swf" include-classes="org.eun.itec.ambire.student.AmbireCapture" />
		<exec executable="unzip">
			<arg value="-o" />
			<arg value="AmbireCapture.swc" /><commit_msg>Ant task for Windows native Library build.<commit_after><?xml version="1.0" encoding="UTF-8" ?>
<project name="AmbireStudentFlexApplication" basedir="." default="Ambire-swf">
	<property name="FLEX_HOME" value="/Developer/SDK/Flex" />
	<taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar" />
	<uptodate targetfile="Ambire.swf" property="Ambire-swf.uptodate">
		<srcfiles dir=".">
			<include name="Main.mxml" />
			<include name="CameraStatus.as" />
			<include name="Mode.as" />
			<include name="Reason.as" />
			<include name="ambire.jpg" />
			<include name="activity.png" />
			<include name="go.png" />
			<include name="stop.png" />
			<include name="warning.png" />
			<include name="ru/inspirit/net/*.as" />
			<include name="error.mp3" />
			<include name="shutter.mp3" />
		</srcfiles>
	</uptodate>
	<target name="Ambire-swf" depends="AmbireCapture-ane" unless="Ambire-swf.uptodate">
		<mxmlc file="Main.mxml"
			output="Ambire.swf"
			keep-generated-actionscript="true">
			<load-config filename="${FLEX_HOME}/frameworks/air-config.xml" />
			<source-path path-element="${FLEX_HOME}/frameworks" />
			<compiler.debug>true</compiler.debug>
			<compiler.verbose-stacktraces>true</compiler.verbose-stacktraces>
		</mxmlc>
	</target>
	
	
	<condition property="AmbireCapture-nativeLibrary.libraryFile" value="AmbireCapture.dll">
		<os name="Windows" />
	</condition>
	<condition property="AmbireCapture-nativeLibrary.libraryFile" value="AmbireCapture.dylib">
		<os name="Mac OS X" />
	</condition>
	
	<condition property="AmbireCapture-nativeLibrary.uptodate">
		<or>
			<and>
				<os name="Windows" />
				<uptodate targetfile="AmbireCapture.dll">
					<srcfiles dir=".">
						<include name="AmbireCapture-Win32.cpp" />
						<include name="AmbireCapture-Win32.def" />
					</srcfiles>
				</uptodate>
			</and>
			<and>
				<os name="Mac OS X" />
				<uptodate targetfile="AmbireCapture.dylib">
					<srcfiles dir=".">
						<include name="AmbireCapture-MacOSX.mm" />
					</srcfiles>
				</uptodate>
			</and>				
		</or>
	</condition>
	<target name="AmbireCapture-nativeLibrary" unless="AmbireCapture-nativeLibrary.uptodate">
		<exec executable="cl" os="Windows">
			<arg value="$cdebug" />
			<arg value="$cflags" />
			<arg value="$cvarsmt" />
			<arg value="-I\Developer\SDK\Flex\include" />
			<arg value="AmbireCapture-Win32.cpp" />
			<arg value="/LINK" />
			<arg value="$ldebug" />
			<arg value="$dlllflags" />
			<arg value="$guilibsmt" />
			<arg value="\Developer\SDK\Flex\lib\win\FlashRuntimeExtensions.lib" />
			<arg value="/DEF:AmbireCapture-Win32.def" />
			<arg value="/OUT:AmbireCapture.dll" />
		</exec>
		<exec executable="g++" os="Mac OS X">
			<arg value="-arch" />
			<arg value="i386" />
			<arg value="-fvisibility=hidden" />
			<arg value="-ObjC++" />
			<arg value="-mmacosx-version-min=10.6" />
			<arg value="-framework" />
			<arg value="CoreFoundation" />
			<arg value="-framework" />
			<arg value="ApplicationServices" />
			<arg value="-framework" />
			<arg value="Adobe AIR" />
			<arg value="-dynamiclib" />
			<arg value="-o" />
			<arg value="AmbireCapture.dylib" />
			<arg value="AmbireCapture-MacOSX.mm" />
		</exec>
	</target>
	
	
	<uptodate targetfile="AmbireCapture.swf" property="AmbireCapture-swf.uptodate">
		<srcfiles dir=".">
			<include name="org/eun/itec/ambire/student/AmbireCapture.as" />
		</srcfiles>
	</uptodate>
	<target name="AmbireCapture-swf" unless="AmbireCapture-swf.uptodate">
		<compc output="AmbireCapture.swf" include-classes="org.eun.itec.ambire.student.AmbireCapture" />
		<exec executable="unzip">
			<arg value="-o" />
			<arg value="AmbireCapture.swc" />
{'fraction_non_alphanumeric': 0.19192351598173515, 'fraction_numerical': 0.005136986301369863, 'mean_word_length': 4.0028551034975015, 'pattern_counts': {'":': 0, '<': 193, '<?xml version=': 2, '>': 193, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 12}, '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': '4213210', 'n_tokens_mistral': 2941, 'n_tokens_neox': 2480, 'n_words': 381}