<commit_before><!-- The JavaRosa build script is structured as follows:
     Modifiable properties are stored in the external build.properties file
     The classpath for external jars is defined in the Build taskdef

     NOTE: Binary Libraries (.zip is the convention in j2me) are declared
     seperately in the binaryLibraries property. Not on the classpath!

     The BuildPolish target is associated with building the jar/jad files

     All other non-test targets essentially modify properties associated with the
     Build target
-->
<project name="JavaRosa" default="LaunchEmulator">
	<!-- Main Target: Call to build the project -->
	<!-- This is the main work target, it actually builds the code -->
	<target name="BuildPolish" depends="init,CompileAndLinkSource" description="This is the controller for the J2ME build process.">
		<!-- A property containing the path to the preprocessed source files -->
		<property name="builtsource" value="${dir.build}/real/${device.identifier}/none/source/" />
		

		<!-- Definition of the J2ME Polish task:                      -->
		<!-- Note that this takes place here (rather than in the script in general) in order to allow the libraries jar to be compiled from source before the classpath is evaluated-->
		<taskdef name="buildPolish" classname="de.enough.polish.ant.PolishTask" classpath="${dir.tools}/j2merosa-libraries.jar:${polish.home}/lib/enough-j2mepolish-build.jar:${polish.home}/lib/jdom.jar:${wtk.home}/lib/jsr082.jar:${polish.home}/import/nokia-ui.jar:${polish.home}/import/m3g.jar:${polish.home}/import/pim.jar:${polish.home}/import/location.jar:${polish.home}/import/jsr234.jar" />
			<path id="classpath.base">
		</path>
		
		<buildPolish>
			<info name="${app.name}"
				version="${app.version}"
				description="${app.description}"
				vendorName="${app.vendor}"
				infoUrl="${app.infoUrl}"
				jarName="${app.jarName}"
				jarUrl="${deploy-url}${app.jarName}" copyright="" />

			<!-- selection of supported devices, set this in build.properties -->
			<deviceRequirements>
				<requirement name="Identifier" value="${device.identifier}" />
			</deviceRequirements>

			<!-- build settings -->
			<!-- 'menu' here designates that we're using the fullscreen Polish UI with native menus -->
			<!-- We should see if we can set these first two attributes as properties instead-->
			<build fullscreen="menu"
				usePolishGui="${javarosa.usepolishui}"
				workDir="${dir.work}"
				destDir="${dir.dist}">
				
				<libraries>
					<library dir="${dir.lib}" />
				</libraries>

				<jad>
					<attribute name="App-Version" value="${jrdemo.version}" />
					<attribute name="JRDemo-Build-Version" value="${jrdemo-build-version}" />
					<attribute name="JR-Build-Version" value="${jr-build-version}" />
					<attribute name="Polish-Device" value="${device.identifier}" />
					<attribute name="JRDemo-Post-Url" value="${jrdemo.postUrl}" />
					<attribute name="Form-Server-Url" value="${jrdemo.formListUrl}" />
				</jad>
				
				<!-- midlets definition -->
				<midlet class="${app.class}" name="${app.name}" />

				<!-- Code source files to include in compilation --><commit_msg>Fixed not being able to change manifested jad properties.<commit_after><!-- The JavaRosa build script is structured as follows:
     Modifiable properties are stored in the external build.properties file
     The classpath for external jars is defined in the Build taskdef

     NOTE: Binary Libraries (.zip is the convention in j2me) are declared
     seperately in the binaryLibraries property. Not on the classpath!

     The BuildPolish target is associated with building the jar/jad files

     All other non-test targets essentially modify properties associated with the
     Build target
-->
<project name="JavaRosa" default="LaunchEmulator">
	<!-- Main Target: Call to build the project -->
	<!-- This is the main work target, it actually builds the code -->
	<target name="BuildPolish" depends="init,CompileAndLinkSource" description="This is the controller for the J2ME build process.">
		<!-- A property containing the path to the preprocessed source files -->
		<property name="builtsource" value="${dir.build}/real/${device.identifier}/none/source/" />
		

		<!-- Definition of the J2ME Polish task:                      -->
		<!-- Note that this takes place here (rather than in the script in general) in order to allow the libraries jar to be compiled from source before the classpath is evaluated-->
		<taskdef name="buildPolish" classname="de.enough.polish.ant.PolishTask" classpath="${dir.tools}/j2merosa-libraries.jar:${polish.home}/lib/enough-j2mepolish-build.jar:${polish.home}/lib/jdom.jar:${wtk.home}/lib/jsr082.jar:${polish.home}/import/nokia-ui.jar:${polish.home}/import/m3g.jar:${polish.home}/import/pim.jar:${polish.home}/import/location.jar:${polish.home}/import/jsr234.jar" />
			<path id="classpath.base">
		</path>
		
		<buildPolish>
			<info name="${app.name}"
				version="${app.version}"
				description="${app.description}"
				vendorName="${app.vendor}"
				infoUrl="${app.infoUrl}"
				jarName="${app.jarName}"
				jarUrl="${deploy-url}${app.jarName}" copyright="" />

			<!-- selection of supported devices, set this in build.properties -->
			<deviceRequirements>
				<requirement name="Identifier" value="${device.identifier}" />
			</deviceRequirements>

			<!-- build settings -->
			<!-- 'menu' here designates that we're using the fullscreen Polish UI with native menus -->
			<!-- We should see if we can set these first two attributes as properties instead-->
			<build fullscreen="menu"
				usePolishGui="${javarosa.usepolishui}"
				workDir="${dir.work}"
				destDir="${dir.dist}">
				
				<libraries>
					<library dir="${dir.lib}" />
				</libraries>

				<jad>
					<attribute name="App-Version" value="${jrdemo.version}" />
					<attribute name="JRDemo-Build-Version" value="${jrdemo-build-version}" />
					<attribute name="JR-Build-Version" value="${jr-build-version}" />
					<attribute name="Polish-Device" value="${device.identifier}" />
					<attribute name="JRDemo-Post-Url" value="${jrdemo.postUrl}" />
					<attribute name="Form-Server-Url" value="${jrdemo.formListUrl}" />
				</jad>
				
				
				<!-- We rely on the jad file to be able to change properties post-compile, so
				we need to ensure that any non-static properties don't make it into the manifest file-->
				<manifestFilter>
					Manifest-Version, MIDlet-Name, MIDlet-Version, MIDlet-Vendor,
					MIDlet-Description?, MIDlet-Icon?, MIDlet-Info-URL?,
					MIDlet-1, MIDlet-2?, MIDlet-3?, MIDlet-4?, MIDlet-5?, 
					MicroEdition-Profile, MicroEdition-Configuration,
					MIDlet-Data-Size?,
					MicroEdition-*,
					Polish-*
				</manifestFilter>
				
				<!-- midlets definition -->
				<midlet class="${app.class}" name="${app.name}" />

				<!-- Code source files to include in compilation -->
{'fraction_non_alphanumeric': 0.14894545454545455, 'fraction_numerical': 0.004218181818181818, 'mean_word_length': 3.6428089128966916, 'pattern_counts': {'":': 0, '<': 78, '<?xml version=': 0, '>': 78, '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': '92578', 'n_tokens_mistral': 2317, 'n_tokens_neox': 1953, 'n_words': 562}