<commit_before><?xml version="1.0"?>
<project name="flies" default="deploy" basedir="." xmlns:artifact="urn:maven-artifact-ant">

    <!-- Give user a chance to override without editing this file or typing -D -->
    <property file="${basedir}/build.properties"/>

    <property name="profile" value="dev"/>
    <property file="build-${profile}.properties"/>

    <!-- set global properties for this build -->
    <property name="project.name" value="flies"/>
    <property name="dist.dir" value="dist"/>
    <property name="src.model.dir" value="src/main"/>
    <property name="src.action.dir" value="src/hot"/>
    <property name="src.test.dir" value="src/test"/>
    <property name="lib.dir" value="lib"/>
    <property name="endorsed.dir" value="${lib.dir}/endorsed"/>
    <property name="ear.dir" value="exploded-archives/${project.name}.ear"/>
    <property name="jar.dir" value="${ear.dir}/${project.name}.jar"/>
    <property name="war.dir" value="${ear.dir}/${project.name}.war"/>
    <property name="test.dir" value="test-build"/>
    <property name="bootstrap.dir" value="${basedir}/bootstrap"/>
    <property name="jboss.domain" value="default"/>
    <property name="deploy.dir" value="${jboss.home}/server/${jboss.domain}/deploy"/>
    <property name="ear.deploy.dir" value="${deploy.dir}/${project.name}.ear"/>
    <property name="jar.deploy.dir" value="${ear.deploy.dir}/${project.name}.jar"/>
    <property name="war.deploy.dir" value="${ear.deploy.dir}/${project.name}.war"/>
    <property name="testng.jar" value="${basedir}/lib/testng.jar"/>
    <property name="javac.debug" value="true"/>
    <property name="javac.deprecation" value="false"/>
    <property name="debug" value="false"/>

    <!--Properties for validating configuration files -->
    <property name="validate.resources.dir" value="${basedir}/exploded-archives"/>
    <property name="schema.dir" value="${basedir}/exploded-archives/schemas"/>
    <property name="src.schema.dir" value="${schema.dir}/org/jboss/seam"/>
    <property name="schema.version" value="2.1"/>

    <!-- Fetch Maven Ant Tasks jar: -->
    <property name="maven.version" value="2.0.9" />
    <property name="maven-artifact-ant.bootstrap.jar" location="${lib.dir}/maven-ant-tasks-${maven.version}.jar" />
    <property name="remoteRepo" value="" />

    <target name="-check-get-maven-artifact-ant">
        <available property="-get-maven-artifact-ant-done" file="${maven-artifact-ant.bootstrap.jar}" />
    </target>

    <target name="-get-maven-artifact-ant" depends="-check-get-maven-artifact-ant" unless="-get-maven-artifact-ant-done">
        <mkdir dir="${lib.dir}" />
        <get src="http://repository.jboss.com/maven2/org/apache/maven/maven-ant-tasks/${maven.version}/maven-ant-tasks-${maven.version}.jar" dest="${maven-artifact-ant.bootstrap.jar}" />
    </target>

    <!-- Define the Ant-Contrib and Tennera Ant Gettext tasks, using Maven 
    to resolve dependencies: -->
    <target name="-initTaskDefs" depends="-get-maven-artifact-ant">
        <path id="maven-ant-tasks.classpath" 
        	path="${maven-artifact-ant.bootstrap.jar}" />
        <typedef resource="org/apache/maven/artifact/ant/antlib.xml" 
        	uri="urn:maven-artifact-ant" 
        	classpathref="maven-ant-tasks.classpath" />
    </target>

    <fileset id="lib" dir="${lib.dir}">
        <include name="*.jar"/>
    </fileset>

    <path id="build.classpath">
        <fileset refid="lib"/>
    </path>

    <target name="download-deps" depends="-initTaskDefs">
        <!-- Maven dependencies  -->
        <artifact:pom file="pom.xml" id="maven.project" />
        <artifact:dependencies 
           filesetId="dependency.fileset" 
           pathId="dependency.classpath" 
           versionsId="dependency.versions"
           useScope="runtime" 
           type="jar">
            <pom refid="maven.project" />
        </artifact:dependencies>
        <!-- This mapper strips off all leading directory information -->
<!--
    	<copy todir="${lib.dir}">
          <fileset refid="dependency.fileset" />
          <mapper type="flatten" />
        </copy>
-->
    	<!-- This mapper strips version number from directory path and filename -->
        <copy todir="${lib.dir}">
    	  <fileset refid="dependency.fileset" />
    	  <mapper classpathref="maven-ant-tasks.classpath"
    	          classname="org.apache.maven.artifact.ant.VersionMapper"
    	          from="${dependency.versions}" 
    	          to="flatten" />
    	</copy>
    </target>

<!--
    <property name="deps.repo" value="http://asgeirf.fedorapeople.org/flies-deps"/>
    <property name="deps.version" value="1.1"/>

    <target name="init-deps">
        <available property="deps.installed" value="true" file="${lib.dir}/flies-deps-${deps.version}" type="file"/>
    </target>

    <target name="download-deps" depends="init-deps" unless="deps.installed" description="Download jar dependencies">
		<delete dir="${lib.dir}" quiet="true"/>
        <mkdir dir="${lib.dir}"/>
        <echo message="Downloading library dependencies..."/>
        <get src="${deps.repo}/flies-deps-${deps.version}.zip"
            dest="flies-deps-${deps.version}.zip"/>
		<unzip src="flies-deps-${deps.version}.zip" dest="${lib.dir}"/>            
		<delete file="flies-deps-${deps.version}.zip" quiet="true"/>
    </target>

    <target name="create-deps-archive" description="Create Zip archive of current dependencies">
	    <delete>
    		<fileset dir="${lib.dir}" includes="flies-deps-*"/>
  		</delete>
        <touch file="${lib.dir}/flies-deps-${deps.version}"/>
		<zip destfile="flies-deps-${deps.version}.zip" basedir="${lib.dir}"/>
    </target><commit_msg>Changed download-deps to get individual non-Maven jars from their own web sites<commit_after><?xml version="1.0"?>
<project name="flies" default="deploy" basedir="." xmlns:artifact="urn:maven-artifact-ant">

    <!-- Give user a chance to override without editing this file or typing -D -->
    <property file="${basedir}/build.properties"/>

    <property name="profile" value="dev"/>
    <property file="build-${profile}.properties"/>

    <!-- set global properties for this build -->
    <property name="project.name" value="flies"/>
    <property name="dist.dir" value="dist"/>
    <property name="src.model.dir" value="src/main"/>
    <property name="src.action.dir" value="src/hot"/>
    <property name="src.test.dir" value="src/test"/>
    <property name="lib.dir" value="lib"/>
    <property name="endorsed.dir" value="${lib.dir}/endorsed"/>
    <property name="ear.dir" value="exploded-archives/${project.name}.ear"/>
    <property name="jar.dir" value="${ear.dir}/${project.name}.jar"/>
    <property name="war.dir" value="${ear.dir}/${project.name}.war"/>
    <property name="test.dir" value="test-build"/>
    <property name="bootstrap.dir" value="${basedir}/bootstrap"/>
    <property name="jboss.domain" value="default"/>
    <property name="deploy.dir" value="${jboss.home}/server/${jboss.domain}/deploy"/>
    <property name="ear.deploy.dir" value="${deploy.dir}/${project.name}.ear"/>
    <property name="jar.deploy.dir" value="${ear.deploy.dir}/${project.name}.jar"/>
    <property name="war.deploy.dir" value="${ear.deploy.dir}/${project.name}.war"/>
    <property name="testng.jar" value="${basedir}/lib/testng.jar"/>
    <property name="javac.debug" value="true"/>
    <property name="javac.deprecation" value="false"/>
    <property name="debug" value="false"/>

    <!--Properties for validating configuration files -->
    <property name="validate.resources.dir" value="${basedir}/exploded-archives"/>
    <property name="schema.dir" value="${basedir}/exploded-archives/schemas"/>
    <property name="src.schema.dir" value="${schema.dir}/org/jboss/seam"/>
    <property name="schema.version" value="2.1"/>

    <!-- Fetch Maven Ant Tasks jar: -->
    <property name="maven.version" value="2.0.9" />
    <property name="maven-artifact-ant.bootstrap.jar" location="${lib.dir}/maven-ant-tasks-${maven.version}.jar" />
    <property name="remoteRepo" value="" />

    <target name="-check-get-maven-artifact-ant">
        <available property="-get-maven-artifact-ant-done" file="${maven-artifact-ant.bootstrap.jar}" />
    </target>

    <target name="-get-maven-artifact-ant" depends="-check-get-maven-artifact-ant" unless="-get-maven-artifact-ant-done">
        <mkdir dir="${lib.dir}" />
        <get 
        	src="http://repository.jboss.com/maven2/org/apache/maven/maven-ant-tasks/${maven.version}/maven-ant-tasks-${maven.version}.jar" 
        	dest="${maven-artifact-ant.bootstrap.jar}" 
            usetimestamp="true" />
    </target>

    <!-- Define the Ant-Contrib and Tennera Ant Gettext tasks, using Maven 
    to resolve dependencies: -->
    <target name="-initTaskDefs" depends="-get-maven-artifact-ant">
        <path id="maven-ant-tasks.classpath" 
        	path="${maven-artifact-ant.bootstrap.jar}" />
        <typedef resource="org/apache/maven/artifact/ant/antlib.xml" 
        	uri="urn:maven-artifact-ant" 
        	classpathref="maven-ant-tasks.classpath" />
    </target>

    <fileset id="lib" dir="${lib.dir}">
        <include name="*.jar"/>
    </fileset>

    <path id="build.classpath">
        <fileset refid="lib"/>
    </path>

    <target name="maven-deps" depends="-initTaskDefs">
    	
        <!-- Maven dependencies  -->
        <artifact:pom file="pom.xml" id="maven.project" />
        <artifact:dependencies 
           filesetId="dependency.fileset" 
           pathId="dependency.classpath" 
           versionsId="dependency.versions"
           useScope="runtime" 
           type="jar">
            <pom refid="maven.project" />
        </artifact:dependencies>
        <!-- This mapper strips off all leading directory information -->
<!--
    	<copy todir="${lib.dir}">
          <fileset refid="dependency.fileset" />
          <mapper type="flatten" />
        </copy>
-->
    	<!-- This mapper strips version number from directory path and filename -->
        <copy todir="${lib.dir}">
    	  <fileset refid="dependency.fileset" />
    	  <mapper classpathref="maven-ant-tasks.classpath"
    	          classname="org.apache.maven.artifact.ant.VersionMapper"
    	          from="${dependency.versions}" 
    	          to="flatten" />
    	</copy>
    </target>

    <property name="deps.version" value="1.2"/>

    <target name="init-deps">
        <available property="deps.installed" value="true" file="${lib.dir}/flies-deps-${deps.version}" type="file"/>
    </target>

    <target name="download-deps" depends="init-deps, maven-deps" unless="deps.installed" description="Download jar dependencies">
        <echo message="Downloading library dependencies..."/>
    	<delete>
        	<fileset dir="${lib.dir}" includes="flies-deps-*" />
        </delete>
        <!-- non-Maven dependencies -->
        <get 
            src="http://download.icu-project.org/files/icu4j/4.0.1/icu4j-4_0_1.jar" 
            dest="${lib.dir}/icu4j.jar" 
            verbose="true" usetimestamp="true" />
        <get 
            src="http://www.cafeconleche.org/XOM/xom-1.2.jar" 
            dest="${lib.dir}/xom.jar" 
            verbose="true" usetimestamp="true" />
        <!-- apparently unused: nux.jar     1.6 -->
    	<touch file="${lib.dir}/flies-deps-${deps.version}" />
    </target>

<!--
    <target name="create-deps-archive" description="Create Zip archive of current dependencies">
	    <delete>
    		<fileset dir="${lib.dir}" includes="flies-deps-*"/>
  		</delete>
        <touch file="${lib.dir}/flies-deps-${deps.version}"/>
		<zip destfile="flies-deps-${deps.version}.zip" basedir="${lib.dir}"/>
    </target>
{'fraction_non_alphanumeric': 0.1966244002741604, 'fraction_numerical': 0.0028272789581905416, 'mean_word_length': 3.105874076679564, 'pattern_counts': {'":': 0, '<': 193, '<?xml version=': 2, '>': 191, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 9, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5464440', 'n_tokens_mistral': 3792, 'n_tokens_neox': 3555, 'n_words': 598}