<commit_before><?xml version="1.0" encoding="UTF-8"?>
<project name="JADE-LEAP" default="complete" basedir=".">
  
	<!-- PROPERTIES -->
  <property environment="env"/>
  <property file="buildLEAP.properties"/>
  <property file="../jade/build.properties"/>
  <property name="java-home" value="${env.JAVA_HOME}"/>
  <property name="root"      value="."/>
  <property name="jade-home" value=".."/>

	<property name="buildfiles" value="${root}/resources/build"/>

	<!-- JAVA classes -->
	<property name="boot-java-classes" value="${java-home}/jre/lib/rt.jar"/>

   
	<!-- Directories -->
	<property name="jade-src" value="${jade-home}/src"/>
	<property name="leap-src" value="${root}/src"/>
	<property name="j2se-root" value="${root}/j2se"/>
	<property name="pjava-root" value="${root}/pjava"/>
	<property name="midp-root" value="${root}/midp"/>	
	<property name="dotnet-root" value="${root}/dotnet"/>	
	<property name="tmp" value="${root}/tmp"/>	
	<property name="dist" value="${jade-home}/add-ons"/>	
	
	<!-- Javadoc Header and Footer -->
	<property name="title" value="JADE-LEAP"/>
	<property name="version" value="3.6.1"/>	
	<property name="javadoc-footer" value="&lt;center>&lt;i>&lt;a href=&quot;http://leap.crm-paris.com&quot; target=top>The LEAP Project&lt;/a>&lt;/i>&lt;/center>"/>

	<!-- Properties for compiling the demo -->
	<property name="demo" value="${root}/demo"/>
	<property name="demo-src" value="${demo}/src"/>
	<property name="demo-preprocessed" value="${tmp}/demo/preprocessed"/>
	<property name="demo-unverified" value="${tmp}/demo/unverified"/>
	<property name="demo-classes" value="${tmp}/demo/classes"/>
	
	<!-- Additional ANT tasks definition -->
	<!-- Preprocessor -->
	<taskdef name = "pproc"    classname="leapTools.Preprocessor">
		<classpath path ="resources/antTasks/leapTools.jar"/>
	</taskdef>
	<!-- Minimizer -->
	<taskdef name = "minimize"    classname="leapTools.Minimizer">
		<classpath path ="resources/antTasks/leapTools.jar"/>
	</taskdef>
	<!-- Preverifier -->
	<taskdef  name="preverify" classname="com.stampysoft.ant.j2me.PreverifyTask">
  	<classpath path ="resources/antTasks/StampysoftAntTasks.jar" />
	</taskdef>
    <!-- Jad Updater -->
    <taskdef name="updatejad" classname="com.stampysoft.ant.j2me.UpdateJARSizeTask">
	<classpath path ="resources/antTasks/StampysoftAntTasks.jar" />
	</taskdef>  
  <property name="j2mewtk.home" value="${j2me-wtk-home}"/>
  
  
  
	<!-- TARGETS -->

  <target name="help" description="show the usage of the most frequently used targets of this ant file">
   <echo message="ant all rebuild  (to clean and recompile midp, j2se, and pjava)"/>
   <echo message="ant midp rebuild  (to clean and recompile only midp)"/>
  </target>

	<!-- ******** JAVA ENVIRONMENTS ********* -->
	
	<!-- J2SE -->
	<target name = "j2se"
	        description = "Set the j2se property --> j2se.xml will be called">
		<property name = "j2se"  value = "true"/>
	</target>
	
	
	<!-- PJAVA -->
	<target name = "pjava" 
	        description = "Set the pjava property --> pjava.xml will be called">
		<property name = "pjava"  value = "true"/>
	</target>


	<!-- MIDP (j2me-wtk-home must be set in the buildLEAP.properties file) -->
	<target name = "midp" depends = "midp-do, midp-dont"
	        description = "Set the midp property --> midp.xml will be called (unless j2me-wtk-home is not set)"/>
	<target name = "midp-do" if = "j2me-wtk-home">
		<property name = "midp"  value = "true"/>
	</target>
	<target name = "midp-dont" unless = "j2me-wtk-home">
		<echo> WARNING: 'j2me-wtk-home' not specified in buildLEAP.properties. Skipping midp build.</echo>
	</target>


	<!-- DOTNET (vjc must be set in the buildLEAP.properties file) -->
	<target name = "dotnet" depends = "dotnet-do, dotnet-dont"
	        description = "Set the dotnet property --> dotnet.xml will be called (unless vjc is not set)"/>
	<target name = "dotnet-do" if = "dotnet-home">
		<property name = "dotnet"  value = "true"/>
	</target>
	<target name = "dotnet-dont" unless = "dotnet-home">
		<echo> WARNING: 'dotnet directory' not specified in buildLEAP.properties. Skipping dotnet build.</echo>
	</target>

	
	<!-- ALL -->
	<target name = "all" depends = "j2se, pjava, midp, dotnet"
	        description = "Set the property for all environments"/>


	<!-- ******* ACTIONS that can be specified for the above java environments ******** -->

	<!-- INIT the whole -->
	<target name="init"
	        description="Set time stamp">
	  <tstamp/>
	  
		<antcall target="jade-tag"/>
	  
    <condition property="boot-midp-classes-tmp" 
               value="${j2me-wtk-home}/lib/midpapi.zip">
       <available file="${j2me-wtk-home}/lib/midpapi.zip"/>
    </condition>
    <condition property="boot-midp-classes-tmp" 
               value="${j2me-wtk-home}/lib/midpapi10.jar${path.separator}${j2me-wtk-home}/lib/cldcapi10.jar">
       <equals arg1="${midp-version}" arg2="1.0" trim="true" />
    </condition>
    <condition property="boot-midp-classes-tmp" 
               value="${j2me-wtk-home}/lib/midpapi20.jar${path.separator}${j2me-wtk-home}/lib/cldcapi11.jar">
       <equals arg1="${midp-version}" arg2="2.0" trim="true" />
    </condition>
    
    <!-- Add the WMA classes to the bootclasspath if present -->
    <condition property="boot-midp-classes" 
               value="${boot-midp-classes-tmp}${path.separator}${wma-classes}">
    	<isset property="wma-classes" />
    </condition>
    <condition property="boot-midp-classes" 
               value="${boot-midp-classes-tmp}">
    	<not>
      	<isset property="wma-classes" />
      </not>
    </condition>

		<mkdir dir="${tmp}"/>
	</target>
	
	<target name="jade-tag" if="jade-exists" depends="check-jade">
		<ant antfile="build.xml" target="doTag" dir="${jade-home}"/><commit_msg>Added support for Java Platform Micro Edition SDK 3.0 Early Access.<commit_after><?xml version="1.0" encoding="UTF-8"?>
<project name="JADE-LEAP" default="complete" basedir=".">
  
	<!-- PROPERTIES -->
  <property environment="env"/>
  <property file="buildLEAP.properties"/>
  <property file="../jade/build.properties"/>
  <property name="java-home" value="${env.JAVA_HOME}"/>
  <property name="root"      value="."/>
  <property name="jade-home" value=".."/>

	<property name="buildfiles" value="${root}/resources/build"/>

	<!-- JAVA classes -->
	<property name="boot-java-classes" value="${java-home}/jre/lib/rt.jar"/>

   
	<!-- Directories -->
	<property name="jade-src" value="${jade-home}/src"/>
	<property name="leap-src" value="${root}/src"/>
	<property name="j2se-root" value="${root}/j2se"/>
	<property name="pjava-root" value="${root}/pjava"/>
	<property name="midp-root" value="${root}/midp"/>	
	<property name="dotnet-root" value="${root}/dotnet"/>	
	<property name="tmp" value="${root}/tmp"/>	
	<property name="dist" value="${jade-home}/add-ons"/>	
	
	<!-- Javadoc Header and Footer -->
	<property name="title" value="JADE-LEAP"/>
	<property name="version" value="3.6.1"/>	
	<property name="javadoc-footer" value="&lt;center>&lt;i>&lt;a href=&quot;http://leap.crm-paris.com&quot; target=top>The LEAP Project&lt;/a>&lt;/i>&lt;/center>"/>

	<!-- Properties for compiling the demo -->
	<property name="demo" value="${root}/demo"/>
	<property name="demo-src" value="${demo}/src"/>
	<property name="demo-preprocessed" value="${tmp}/demo/preprocessed"/>
	<property name="demo-unverified" value="${tmp}/demo/unverified"/>
	<property name="demo-classes" value="${tmp}/demo/classes"/>
	
	<!-- Additional ANT tasks definition -->
	<!-- Preprocessor -->
	<taskdef name = "pproc"    classname="leapTools.Preprocessor">
		<classpath path ="resources/antTasks/leapTools.jar"/>
	</taskdef>
	<!-- Minimizer -->
	<taskdef name = "minimize"    classname="leapTools.Minimizer">
		<classpath path ="resources/antTasks/leapTools.jar"/>
	</taskdef>
	<!-- Preverifier -->
	<taskdef  name="preverify" classname="com.stampysoft.ant.j2me.PreverifyTask">
  	<classpath path ="resources/antTasks/StampysoftAntTasks.jar" />
	</taskdef>
    <!-- Jad Updater -->
    <taskdef name="updatejad" classname="com.stampysoft.ant.j2me.UpdateJARSizeTask">
	<classpath path ="resources/antTasks/StampysoftAntTasks.jar" />
	</taskdef>  
  <property name="j2mewtk.home" value="${j2me-wtk-home}"/>
  
  
  
	<!-- TARGETS -->

  <target name="help" description="show the usage of the most frequently used targets of this ant file">
   <echo message="ant all rebuild  (to clean and recompile midp, j2se, and pjava)"/>
   <echo message="ant midp rebuild  (to clean and recompile only midp)"/>
  </target>

	<!-- ******** JAVA ENVIRONMENTS ********* -->
	
	<!-- J2SE -->
	<target name = "j2se"
	        description = "Set the j2se property --> j2se.xml will be called">
		<property name = "j2se"  value = "true"/>
	</target>
	
	
	<!-- PJAVA -->
	<target name = "pjava" 
	        description = "Set the pjava property --> pjava.xml will be called">
		<property name = "pjava"  value = "true"/>
	</target>


	<!-- MIDP (j2me-wtk-home must be set in the buildLEAP.properties file) -->
	<target name = "midp" depends = "midp-do, midp-dont"
	        description = "Set the midp property --> midp.xml will be called (unless j2me-wtk-home is not set)"/>
	<target name = "midp-do" if = "j2me-wtk-home">
		<property name = "midp"  value = "true"/>
	</target>
	<target name = "midp-dont" unless = "j2me-wtk-home">
		<echo> WARNING: 'j2me-wtk-home' not specified in buildLEAP.properties. Skipping midp build.</echo>
	</target>


	<!-- DOTNET (vjc must be set in the buildLEAP.properties file) -->
	<target name = "dotnet" depends = "dotnet-do, dotnet-dont"
	        description = "Set the dotnet property --> dotnet.xml will be called (unless vjc is not set)"/>
	<target name = "dotnet-do" if = "dotnet-home">
		<property name = "dotnet"  value = "true"/>
	</target>
	<target name = "dotnet-dont" unless = "dotnet-home">
		<echo> WARNING: 'dotnet directory' not specified in buildLEAP.properties. Skipping dotnet build.</echo>
	</target>

	
	<!-- ALL -->
	<target name = "all" depends = "j2se, pjava, midp, dotnet"
	        description = "Set the property for all environments"/>


	<!-- ******* ACTIONS that can be specified for the above java environments ******** -->

	<!-- INIT the whole -->
	<target name="init"
	        description="Set time stamp">
		<tstamp />

		<antcall target="jade-tag" />


		<!-- wireless toolkit 1.x -->
		<condition property="boot-midp-classes-tmp" value="${j2me-wtk-home}/lib/midpapi.zip">
			<available file="${j2me-wtk-home}/lib/midpapi.zip" />
		</condition>

		<!-- wireless toolkit 2.x -->
		<condition property="midp10.jar" value="midpapi10.jar">
			<available file="${j2me-wtk-home}/lib/midpapi10.jar" />
		</condition>
		<condition property="midp20.jar" value="midpapi20.jar">
			<available file="${j2me-wtk-home}/lib/midpapi20.jar" />
		</condition>
		<condition property="cldc10.jar" value="cldcapi10.jar">
			<available file="${j2me-wtk-home}/lib/cldcapi10.jar" />
		</condition>
		<condition property="cldc11.jar" value="cldcapi11.jar">
			<available file="${j2me-wtk-home}/lib/cldcapi11.jar" />
		</condition>

		<!-- wireless toolkit 3.x -->
		<condition property="midp10.jar" value="midp_1.0.jar">
			<available file="${j2me-wtk-home}/lib/midp_1.0.jar" />
		</condition>
		<condition property="midp20.jar" value="midp_2.0.jar">
			<available file="${j2me-wtk-home}/lib/midp_2.0.jar" />
		</condition>
		<condition property="cldc10.jar" value="cldc_1.0.jar">
			<available file="${j2me-wtk-home}/lib/cldc_1.0.jar" />
		</condition>
		<condition property="cldc11.jar" value="cldc_1.1.jar">
			<available file="${j2me-wtk-home}/lib/cldc_1.1.jar" />
		</condition>

		<echo>midp10.jar=${midp10.jar}</echo>
		<echo>midp20.jar=${midp20.jar}</echo>
		<echo>cldc10.jar=${cldc10.jar}</echo>
		<echo>cldc11.jar=${cldc11.jar}</echo>
		<!-- midp version 1.0, wireless toolkit 2.x/3.x -->
		<condition property="boot-midp-classes-tmp"
			value="${j2me-wtk-home}/lib/${midp10.jar}${path.separator}${j2me-wtk-home}/lib/${cldc10.jar}">
			<equals arg1="${midp-version}" arg2="1.0" trim="true" />
		</condition>

		<!-- midp version 2.0, wireless toolkit 2.x/3.x -->
		<condition property="boot-midp-classes-tmp"
			value="${j2me-wtk-home}/lib/${midp20.jar}${path.separator}${j2me-wtk-home}/lib/${cldc11.jar}">
			<equals arg1="${midp-version}" arg2="2.0" trim="true" />
		</condition>

		<!-- Add the WMA classes to the bootclasspath if present -->
		<condition property="boot-midp-classes"
			value="${boot-midp-classes-tmp}${path.separator}${wma-classes}">
			<isset property="wma-classes" />
		</condition>
		<condition property="boot-midp-classes" value="${boot-midp-classes-tmp}">
			<not>
				<isset property="wma-classes" />
			</not>
		</condition>

		<mkdir dir="${tmp}" />
		<echo>================================================================================</echo>
		<echo>boot-midp-classes-tmp=${boot-midp-classes-tmp}</echo>
		<echo>boot-midp-classes=${boot-midp-classes}</echo>
		<echo>================================================================================</echo>
	</target>
	
	<target name="jade-tag" if="jade-exists" depends="check-jade">
		<ant antfile="build.xml" target="doTag" dir="${jade-home}"/>
{'fraction_non_alphanumeric': 0.2146052930916812, 'fraction_numerical': 0.01342230985061045, 'mean_word_length': 3.7782608695652176, 'pattern_counts': {'":': 0, '<': 268, '<?xml version=': 2, '>': 288, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 12}, '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': '711622', 'n_tokens_mistral': 4873, 'n_tokens_neox': 4594, 'n_words': 926}