<commit_before><project name="ArcGIS Versions" default="set_version_variables" basedir=".">
    <description>
	OUTPUTS: ${version.runtime}, ${dir.agsruntimejavasdk}
	Checks system environment variable and sets the above values depending on version detected.
	Also verifies that the folder exists
	If 2 versions are installed, it uses the current version first
	NOTE: If you need to build with the previous version, see NOTE in task "checkCurrentVersion" 
    </description>

<property environment="env"/>

<echo message="ARCGISRUNTIMESDKJAVA_10_2_1 = ${env.ARCGISRUNTIMESDKJAVA_10_2_1}"/>
<echo message="ARCGISRUNTIMESDKJAVA_10_2 = ${env.ARCGISRUNTIMESDKJAVA_10_2}"/>  	

<!-- Set these to the default locations of ArcGIS/ArcPy for the current version (ex. 10.2): -->
<property name="version.runtime_current_release" value="10.2.2"/>

<!-- Set these to the default locations for the previous release (ex. 10.2): -->
<property name="version.runtime_previous_release" value="10.2.1"/>

<!-- Check for version installed -->

<target name="checkCurrentVersion">
<!-- NOTE: Comment out this next condition if you need to build/run against the previous version -->	
	<condition property="PresentCurrentVersion">
	  <isset property="env.ARCGISRUNTIMESDKJAVA_10_2_1"/>
	</condition>
	<property name="dir_agsruntimejava_current_release" value="${env.ARCGISRUNTIMESDKJAVA_10_2_1}"/>
</target>

<target name="checkPreviousVersion">
	<condition property="PresentPreviousVersion">
		<isset property="env.ARCGISRUNTIMESDKJAVA_10_2"/>
	</condition>
	<property name="dir_agsruntimejava_previous_release" value="${env.ARCGISRUNTIMESDKJAVA_10_2}"/>
</target>
 
<target name="setvariablesCurrentVersion" depends="checkCurrentVersion" if="PresentCurrentVersion">
	<echo message="Current version of ArcGIS detected."/>
	<property name="dir.agsruntimejavasdk" value="${dir_agsruntimejava_current_release}"/>
	<property name="version.runtime" value="${version.runtime_current_release}"/>
</target>

<target name="setvariablesPreviousVersion" depends="checkPreviousVersion" if="PresentPreviousVersion"><commit_msg>Corrected current and previous versions<commit_after><project name="ArcGIS Versions" default="set_version_variables" basedir=".">
    <description>
	OUTPUTS: ${version.runtime}, ${dir.agsruntimejavasdk}
	Checks system environment variable and sets the above values depending on version detected.
	Also verifies that the folder exists
	If 2 versions are installed, it uses the current version first
	NOTE: If you need to build with the previous version, see NOTE in task "checkCurrentVersion" 
    </description>

<property environment="env"/>

<echo message="ARCGISRUNTIMESDKJAVA_10_2 = ${env.ARCGISRUNTIMESDKJAVA_10_2}"/>
<echo message="ARCGISRUNTIMESDKJAVA_10_1_1 = ${env.ARCGISRUNTIMESDKJAVA_10_1_1}"/>  	

<!-- Set these to the default locations of ArcGIS/ArcPy for the current version (ex. 10.2): -->
<property name="version.runtime_current_release" value="10.2"/>

<!-- Set these to the default locations for the previous release (ex. 10.2): -->
<property name="version.runtime_previous_release" value="10.1.1"/>

<!-- Check for version installed -->

<target name="checkCurrentVersion">
<!-- NOTE: Comment out this next condition if you need to build/run against the previous version -->	
	<condition property="PresentCurrentVersion">
	  <isset property="env.ARCGISRUNTIMESDKJAVA_10_2"/>
	</condition>
	<property name="dir_agsruntimejava_current_release" value="${env.ARCGISRUNTIMESDKJAVA_10_2}"/>
</target>

<target name="checkPreviousVersion">
	<condition property="PresentPreviousVersion">
		<isset property="env.ARCGISRUNTIMESDKJAVA_10_1_1"/>
	</condition>
	<property name="dir_agsruntimejava_previous_release" value="${env.ARCGISRUNTIMESDKJAVA_10_1_1}"/>
</target>
 
<target name="setvariablesCurrentVersion" depends="checkCurrentVersion" if="PresentCurrentVersion">
	<echo message="Current version of ArcGIS detected."/>
	<property name="dir.agsruntimejavasdk" value="${dir_agsruntimejava_current_release}"/>
	<property name="version.runtime" value="${version.runtime_current_release}"/>
</target>

<target name="setvariablesPreviousVersion" depends="checkPreviousVersion" if="PresentPreviousVersion">
{'fraction_non_alphanumeric': 0.12345385347288297, 'fraction_numerical': 0.02021883920076118, 'mean_word_length': 6.787037037037037, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 63, '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': '2215903', 'n_tokens_mistral': 1304, 'n_tokens_neox': 1238, 'n_words': 317}