<commit_before><?xml version="1.0"?>
<!--

  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

-->

<project name="framework" default="main" basedir=".">
    <property name="FLEX_HOME" value="${basedir}"/>
	
	<!-- Set plyerglobal.version and locale -->
	<loadproperties srcFile="${FLEX_HOME}/build.properties"/>

    <target name="main" depends="thirdparty-downloads"/>
    
    <target name="thirdparty-downloads" depends="airsdk-download,playerglobal-download" description="Copies required downloads into place for build" />
    
    <target name="airsdk-check" description="Checks if the Air SDK has been downloaded.">
        <available file="${basedir}/lib/air/airglobal.swc" property="airsdk.present"/>
    </target>

    <target name="playerglobal-check" description="Checks if the playerglobal.swc has been downloaded.">
        <available file="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc" property="playerglobal.swc.present"/>
    </target>
  
    
    <!-- Adobe AIR SDK  -->
    <!-- Because this requires a network connection it is copied only if it doesn't already exist. -->
    <!-- Regardless of platform use the win kit to get airglobal.swc. --> 
    <target name="airsdk-download" depends="airsdk-check" unless="airsdk.present" description="Copies Adobe AIR SDK for the windows from the Adobe website">
        <echo message="Be patient.  This takes a few minutes..." />
        <mkdir dir="${FLEX_HOME}/air"/>
        <mkdir dir="${FLEX_HOME}/temp"/>
        <get src="http://airdownload.adobe.com/air/win/download/${air.version}/AdobeAIRSDK.zip" 
            dest="${FLEX_HOME}/temp/AIR Integration Kit.zip" 
            verbose="false"/>
        <unzip dest="${FLEX_HOME}/air/AIR Integration Kit" src="${FLEX_HOME}/temp/AIR Integration Kit.zip" />
        <!-- May not be required -->
        <copy file="${FLEX_HOME}/air/AIR Integration Kit/frameworks/libs/air/airglobal.swc" 
            toDir="${basedir}/lib/air"/>
    </target>

    <!-- playerglobal.swc -->
    <!-- Because this requires a network connection it copies playglobal.swc only if it doesn't already exist. -->	
	<target name="playerglobal-download" depends="playerglobal-check,playerglobal-settarget,playerglobal10.2-download,playerglobal10.3-download,playerglobal11.0-download,playerglobal11.1-download,playerglobal11.2-download,playerglobal11.3-download,playerglobal11.4-download,playerglobal11.5-download,playerglobal11.6-download" description="Copies playerglobal.swc from the Adobe website">
    </target>
	
	<target name="playerglobal-settarget" unless="playerglobal.swc.present">
		<condition property="target10.2">
			<equals arg1="${playerglobal.version}" arg2="10.2" />
		</condition>
		<condition property="target10.3">
			<equals arg1="${playerglobal.version}" arg2="10.3" />
		</condition>
		<condition property="target11.0">
			<equals arg1="${playerglobal.version}" arg2="11.0" />
		</condition>
		<condition property="target11.1">
			<equals arg1="${playerglobal.version}" arg2="11.1" />
		</condition>
		<condition property="target11.2">
			<equals arg1="${playerglobal.version}" arg2="11.2" />
		</condition>
		<condition property="target11.3">
			<equals arg1="${playerglobal.version}" arg2="11.3" />
		</condition>
		<condition property="target11.4">
			<equals arg1="${playerglobal.version}" arg2="11.4" />
		</condition>
		<condition property="target11.5">
			<equals arg1="${playerglobal.version}" arg2="11.5" />
		</condition>
		<condition property="target11.6">
			<equals arg1="${playerglobal.version}" arg2="11.6" />
		</condition>
	 </target>

    <target name="playerglobal10.2-download" if="target10.2">
    	<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
        <get src="http://download.macromedia.com/get/flashplayer/installers/archive/playerglobal/playerglobal10_2.swc" 
            dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc" 
            verbose="false"/>
    </target>
    	
    <target name="playerglobal10.3-download" if="target10.3">
    	<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
        <get src="http://download.macromedia.com/get/flashplayer/installers/archive/playerglobal/playerglobal10_3.swc" 
            dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc" 
            verbose="false"/>
    </target>
	
    <target name="playerglobal11.0-download" if="target11.0">
    	<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
        <get src="http://download.macromedia.com/pub/flashplayer/updaters/11/playerglobal11_0.swc" 
            dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc" 
            verbose="false"/>
    </target> 
	
    <target name="playerglobal11.1-download" if="target11.1">
    	<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
        <get src="http://download.macromedia.com/pub/flashplayer/updaters/11/playerglobal11_1.swc" 
            dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc" 
            verbose="false"/>
    </target> 
    
    <target name="playerglobal11.2-download" if="target11.2">
    	<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
        <get src="http://download.macromedia.com/pub/flashplayer/updaters/11/playerglobal11_2.swc" 
            dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc" 
            verbose="false"/>
    </target>
	
    <target name="playerglobal11.3-download" if="target11.3">
    	<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
        <get src="http://download.macromedia.com/pub/flashplayer/updaters/11/playerglobal11_3.swc" 
            dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc" 
            verbose="false"/>
    </target>
	
    <target name="playerglobal11.4-download" if="target11.4">
    	<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
        <get src="http://download.macromedia.com/pub/flashplayer/updaters/11/playerglobal11_4.swc" 
            dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc" 
            verbose="false"/>
    </target>
	
    <target name="playerglobal11.5-download" if="target11.5">
    	<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
        <get src="http://download.macromedia.com/pub/flashplayer/updaters/11/playerglobal11_5.swc" 
            dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc" 
            verbose="false"/>
    </target>
	
    <target name="playerglobal11.6-download" if="target11.6">
    	<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
        <get src="http://download.macromedia.com/pub/flashplayer/updaters/11/playerglobal11_6.swc" 
            dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc" 
            verbose="false"/>
    </target>

    <target name="clean" description="Cleans third party downloaded files.">
    	<delete dir="${FLEX_HOME}/temp" />
    	<delete dir="${FLEX_HOME}/air" />
        <delete dir="${FLEX_HOME}/lib/air" />
        <delete dir="${FLEX_HOME}/lib/player"/>
     </target>

</project><commit_msg>- typos - 11.7 support -  we want the Jenkins job to always run as cleanly as possible so issues with third party downloads are not covered by the persistence of older artefacts: added 'clean' target to 'main'<commit_after><?xml version="1.0"?>
<!--

  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

-->

<project name="framework" default="main" basedir=".">
    <property name="FLEX_HOME" value="${basedir}"/>
	
	<!-- Set playerglobal.version and locale -->
	<loadproperties srcFile="${FLEX_HOME}/build.properties"/>

    <target name="main" depends="clean,thirdparty-downloads"/>
    
    <target name="thirdparty-downloads" depends="airsdk-download,playerglobal-download" description="Copies required downloads into place for build" />
    
    <target name="airsdk-check" description="Checks if the Air SDK has been downloaded.">
        <available file="${basedir}/lib/air/airglobal.swc" property="airsdk.present"/>
    </target>

    <target name="playerglobal-check" description="Checks if the playerglobal.swc has been downloaded.">
        <available file="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc" property="playerglobal.swc.present"/>
    </target>
  
    
    <!-- Adobe AIR SDK  -->
    <!-- Because this requires a network connection it is copied only if it doesn't already exist. -->
    <!-- Regardless of platform use the win kit to get airglobal.swc. --> 
    <target name="airsdk-download" depends="airsdk-check" unless="airsdk.present" description="Copies Adobe AIR SDK for the windows from the Adobe website">
        <echo message="Be patient.  This takes a few minutes..." />
        <mkdir dir="${FLEX_HOME}/air"/>
        <mkdir dir="${FLEX_HOME}/temp"/>
        <get src="http://airdownload.adobe.com/air/win/download/${air.version}/AdobeAIRSDK.zip" 
            dest="${FLEX_HOME}/temp/AIR Integration Kit.zip" 
            verbose="false"/>
        <unzip dest="${FLEX_HOME}/air/AIR Integration Kit" src="${FLEX_HOME}/temp/AIR Integration Kit.zip" />
        <!-- May not be required -->
        <copy file="${FLEX_HOME}/air/AIR Integration Kit/frameworks/libs/air/airglobal.swc" 
            toDir="${basedir}/lib/air"/>
    </target>

    <!-- playerglobal.swc -->
    <!-- Because this requires a network connection it copies playerglobal.swc only if it doesn't already exist. -->	
	<target name="playerglobal-download" depends="playerglobal-check,playerglobal-settarget,playerglobal10.2-download,playerglobal10.3-download,playerglobal11.0-download,playerglobal11.1-download,playerglobal11.2-download,playerglobal11.3-download,playerglobal11.4-download,playerglobal11.5-download,playerglobal11.6-download" description="Copies playerglobal.swc from the Adobe website">
    </target>
	
	<target name="playerglobal-settarget" unless="playerglobal.swc.present">
		<condition property="target10.2">
			<equals arg1="${playerglobal.version}" arg2="10.2" />
		</condition>
		<condition property="target10.3">
			<equals arg1="${playerglobal.version}" arg2="10.3" />
		</condition>
		<condition property="target11.0">
			<equals arg1="${playerglobal.version}" arg2="11.0" />
		</condition>
		<condition property="target11.1">
			<equals arg1="${playerglobal.version}" arg2="11.1" />
		</condition>
		<condition property="target11.2">
			<equals arg1="${playerglobal.version}" arg2="11.2" />
		</condition>
		<condition property="target11.3">
			<equals arg1="${playerglobal.version}" arg2="11.3" />
		</condition>
		<condition property="target11.4">
			<equals arg1="${playerglobal.version}" arg2="11.4" />
		</condition>
		<condition property="target11.5">
			<equals arg1="${playerglobal.version}" arg2="11.5" />
		</condition>
		<condition property="target11.6">
			<equals arg1="${playerglobal.version}" arg2="11.6" />
		</condition>
		<condition property="target11.7">
			<equals arg1="${playerglobal.version}" arg2="11.7" />
		</condition>
	 </target>

    <target name="playerglobal10.2-download" if="target10.2">
    	<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
        <get src="http://download.macromedia.com/get/flashplayer/installers/archive/playerglobal/playerglobal10_2.swc" 
            dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc" 
            verbose="false"/>
    </target>
    	
    <target name="playerglobal10.3-download" if="target10.3">
    	<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
        <get src="http://download.macromedia.com/get/flashplayer/installers/archive/playerglobal/playerglobal10_3.swc" 
            dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc" 
            verbose="false"/>
    </target>
	
    <target name="playerglobal11.0-download" if="target11.0">
    	<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
        <get src="http://download.macromedia.com/pub/flashplayer/updaters/11/playerglobal11_0.swc" 
            dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc" 
            verbose="false"/>
    </target> 
	
    <target name="playerglobal11.1-download" if="target11.1">
    	<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
        <get src="http://download.macromedia.com/pub/flashplayer/updaters/11/playerglobal11_1.swc" 
            dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc" 
            verbose="false"/>
    </target> 
    
    <target name="playerglobal11.2-download" if="target11.2">
    	<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
        <get src="http://download.macromedia.com/pub/flashplayer/updaters/11/playerglobal11_2.swc" 
            dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc" 
            verbose="false"/>
    </target>
	
    <target name="playerglobal11.3-download" if="target11.3">
    	<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
        <get src="http://download.macromedia.com/pub/flashplayer/updaters/11/playerglobal11_3.swc" 
            dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc" 
            verbose="false"/>
    </target>
	
    <target name="playerglobal11.4-download" if="target11.4">
    	<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
        <get src="http://download.macromedia.com/pub/flashplayer/updaters/11/playerglobal11_4.swc" 
            dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc" 
            verbose="false"/>
    </target>
	
    <target name="playerglobal11.5-download" if="target11.5">
    	<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
        <get src="http://download.macromedia.com/pub/flashplayer/updaters/11/playerglobal11_5.swc" 
            dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc" 
            verbose="false"/>
    </target>
	
    <target name="playerglobal11.6-download" if="target11.6">
    	<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
        <get src="http://download.macromedia.com/pub/flashplayer/updaters/11/playerglobal11_6.swc" 
            dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc" 
            verbose="false"/>
    </target>
	
    <target name="playerglobal11.7-download" if="target11.7">
    	<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
        <get src="http://download.macromedia.com/pub/flashplayer/updaters/11/playerglobal11_7.swc" 
            dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc" 
            verbose="false"/>
    </target>

    <target name="clean" description="Cleans third party downloaded files.">
    	<delete dir="${FLEX_HOME}/temp" />
    	<delete dir="${FLEX_HOME}/air" />
        <delete dir="${FLEX_HOME}/lib/air" />
        <delete dir="${FLEX_HOME}/lib/player"/>
     </target>

</project>
{'fraction_non_alphanumeric': 0.1609714425189163, 'fraction_numerical': 0.025750549182328532, 'mean_word_length': 3.599775470109458, 'pattern_counts': {'":': 0, '<': 214, '<?xml version=': 2, '>': 214, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 81, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1485811', 'n_tokens_mistral': 5234, 'n_tokens_neox': 5186, 'n_words': 922}