<commit_before><?xml version="1.0" encoding="UTF-8"?>
<project name="Build Web Tier" basedir="." default="all">

	<property environment="env" />
    <property name="component.distribution.dir" value="${distribution.base.dir}" />
	<property name="component.distribution.path" value="${distribution.base.path}" />
	<property name="component.packaged.file" value="${component.name}-${component.version}.${component.package.extension}" />
	<property name="application.packaged.file" value="${application.name}-${component.version}.${application.package.extension}" />
	<property name="application.deployed.file" value="${application.name}.${application.package.extension}" />
	<property name="application.url" value="${appserver.url}/${application.name}" />
	
	<patternset id="source.files">
		<include name="**/*.java" />
	</patternset>
	
	<patternset id="source.resources">
		<include name="**/*.xml" />
		<include name="**/*.xsd" />
		<include name="**/*.properties" />
		<include name="**/*.java.template" />
		<exclude name="**/*.copyarea.db" />
	</patternset>
	
	<path id="processpuzzle.development.classpath">
		<fileset dir="${common.dependent.library.path}/DevelopmentLibraries">
			<include name="**/*.jar" />
			<exclude name="**/*.copyarea.db" />
		</fileset>
	</path>
	
	<path id="processpuzzle.production.classpath">
		<fileset dir="${common.dependent.library.path}/ProductionLibraries">
			<include name="**/*.jar" />
			<exclude name="**/*.copyarea.db" />
		</fileset>
	</path>
	
	<path id="processpuzzle.distribution.classpath">
		<fileset dir="${common.dependent.library.path}/Distribution/ProcessPuzzle">
			<include name="**/*.jar" />
			<exclude name="**/*.copyarea.db" />
		</fileset>
	</path>
	
	<path id="cobertura.classpath">
		<fileset dir="${cobertura.dir}">
			<include name="cobertura-2.0.3.jar" />
			<include name="lib/**/*.jar" />
			<exclude name="**/*.copyarea.db" />
		</fileset>
	</path>

	<path id="fitnesse.classpath">
		<fileset dir="${fitnesse.root.dir}">
			<include name="fitnesse.jar" />
			<include name="**/lib/*.jar" />
			<exclude name="**/*.copyarea.db" />
		</fileset>
		<fileset dir="${project.library.dir}">
			<include name="**/*.jar" />
			<exclude name="**/*.copyarea.db" />
		</fileset>
	</path>
	
	<path id="findbugs.classpath">
		<fileset dir="${findbugs.root.dir}">
			<include name="lib/findbugs-ant.jar" />
			<exclude name="**/*.copyarea.db" />
		</fileset>
	</path>

	<path id="pmd.classpath">
		<fileset dir="${pmd.root.dir}">
			<include name="lib/**/*.jar" />
			<exclude name="**/*.copyarea.db" />
		</fileset>
	</path>
	
   <path id="catalina-ant-classpath">
      <fileset dir="${appserver.dir}">
         <include name="bin/tomcat-juli.jar" />
         <include name="lib/catalina-ant.jar" />
         <include name="lib/jasper.jar" />
         <include name="lib/servlet-api.jar" />
         <include name="lib/tomcat-coyote.jar" />
         <include name="lib/tomcat-util.jar" />
         <exclude name="**/*.copyarea.db" />
      </fileset>
   </path>
   
   <path id="yui.compressor.classpath">
      <fileset dir="${yui.compressor.root.dir}">
         <include name="build/yuicompressor-2.4.7.jar" />
         <include name="lib/*.jar" />
         <exclude name="**/*.copyarea.db" />
      </fileset>
   </path>
   
	<path id="compile.production.classpath">
		<path refid="processpuzzle.production.classpath"/>
		<path refid="processpuzzle.development.classpath"/>
		<path refid="project.auxiliary.classpath"/>
	</path>
	
	<path id="compile.test.classpath">
		<path refid="compile.production.classpath"/>
		<pathelement location="${project.production.classes.dir}" />
	</path>

	<taskdef classpathref="cobertura.classpath" resource="tasks.properties" />
	<taskdef name="findbugs" classpathref="findbugs.classpath" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" />
	<taskdef name="pmd" classpathref="pmd.classpath" classname="net.sourceforge.pmd.ant.PMDTask" />
   <taskdef resource="org/apache/catalina/ant/catalina.tasks" classpathref="catalina-ant-classpath" />
	<taskdef name="catalina-start" classname="org.apache.catalina.ant.StartTask" classpathref="catalina-ant-classpath"/>
   <taskdef name="catalina-stop" classname="org.apache.catalina.ant.StopTask" classpathref="catalina-ant-classpath"/>


	<!-- Web Tier Build -->
	<import file="init.build.xml"/>
	<import file="install.library.build.xml"/>
	<import file="compile.build.xml"/>
   <import file="component.packaging.build.xml"/>
	<import file="component.test.build.xml"/>
	<import file="application.packaging.build.xml"/>
	<import file="start-stop-tomcat.xml"/>
	<import file="undeploy.build.xml"/>
	<import file="deploy.build.xml"/>
	<import file="server.availability.build.xml"/>
	<import file="javascript.test.build.xml"/>
	<import file="javascript.archive.build.xml"/>
	<import file="application.test.build.xml"/>
	<import file="analyse.build.xml"/>
	<import file="application.distribution.build.xml"/>
		
	<target name="all" depends="distribute" />
		
	<target name="init" depends="component.initializing.init" description="Initializes build environment." />
	<target name="install" depends="init, install.library.install" description="Installs app's dependent libraries." />
	<target name="compile" depends="install, component.compiling.compile" description="Compiles sources." />
	<target name="java.archive" depends="compile, component.packaging.package" description="Package java component." />
	<target name="application.packaging" depends="java.archive, application.packaging.package" description="Package web application." />
	<target name="undeploy" depends="application.packaging, application.undeploy.undeploy" description="Undeploy previous version." />
	<target name="deploy" depends="undeploy, application.deploy.deploy" description="Deploy web application." />
	<target name="server.availability" depends="deploy, server.availability.check" description="Checks if application is available on server." />
	<target name="javascript.test" depends="server.availability, javascript.testing.test" description="Test JavaScrips." />
	<target name="javascript.archive" depends="javascript.test, javascript.archive.archive" description="Concatenates and compressies JavaScrips." />
	<target name="application.test" depends="javascript.archive, application.testing.test" description="Test the complete, deployed application." /><commit_msg>Include Ivy resolve.<commit_after><?xml version="1.0" encoding="UTF-8"?>
<project name="Build Web Tier" basedir="." default="all">

	<property environment="env" />
   <property name="component.distribution.dir" value="${distribution.base.dir}" />
	<property name="component.distribution.path" value="${distribution.base.path}" />
	<property name="component.packaged.file" value="${component.name}-${component.version}.${component.package.extension}" />
	<property name="application.packaged.file" value="${application.name}-${component.version}.${application.package.extension}" />
	<property name="application.deployed.file" value="${application.name}.${application.package.extension}" />
	<property name="application.url" value="${appserver.url}/${application.name}" />
	
	<patternset id="source.files">
		<include name="**/*.java" />
	</patternset>
	
	<patternset id="source.resources">
		<include name="**/*.xml" />
		<include name="**/*.xsd" />
		<include name="**/*.properties" />
		<include name="**/*.java.template" />
		<exclude name="**/*.copyarea.db" />
	</patternset>
	
	<path id="project.auxiliary.classpath">
		<fileset dir="${project.library.dir}">
			<include name="**/*.jar" />
		</fileset>
	</path>

	<path id="processpuzzle.development.classpath">
		<fileset dir="${common.dependent.library.path}/DevelopmentLibraries">
			<include name="**/*.jar" />
			<exclude name="**/*.copyarea.db" />
		</fileset>
	</path>
	
	<path id="processpuzzle.production.classpath">
		<fileset dir="${common.dependent.library.path}/ProductionLibraries">
			<include name="**/*.jar" />
			<exclude name="**/*.copyarea.db" />
		</fileset>
	</path>
	
	<path id="processpuzzle.distribution.classpath">
		<fileset dir="${common.dependent.library.path}/Distribution/ProcessPuzzle">
			<include name="**/*.jar" />
			<exclude name="**/*.copyarea.db" />
		</fileset>
	</path>
	
	<path id="cobertura.classpath">
		<fileset dir="${cobertura.root.dir}">
			<include name="cobertura-2.0.3.jar" />
			<include name="lib/**/*.jar" />
			<exclude name="**/*.copyarea.db" />
		</fileset>
	</path>

	<path id="fitnesse.classpath">
		<fileset dir="${fitnesse.root.dir}">
			<include name="fitnesse.jar" />
			<include name="**/lib/*.jar" />
			<exclude name="**/*.copyarea.db" />
		</fileset>
		<fileset dir="${project.library.dir}">
			<include name="**/*.jar" />
			<exclude name="**/*.copyarea.db" />
		</fileset>
	</path>
	
	<path id="findbugs.classpath">
		<fileset dir="${findbugs.root.dir}">
			<include name="lib/findbugs-ant.jar" />
			<exclude name="**/*.copyarea.db" />
		</fileset>
	</path>

	<path id="pmd.classpath">
		<fileset dir="${pmd.root.dir}">
			<include name="lib/**/*.jar" />
			<exclude name="**/*.copyarea.db" />
		</fileset>
	</path>
	
   <path id="catalina-ant-classpath">
      <fileset dir="${appserver.dir}">
         <include name="bin/tomcat-juli.jar" />
         <include name="lib/catalina-ant.jar" />
         <include name="lib/jasper.jar" />
         <include name="lib/servlet-api.jar" />
         <include name="lib/tomcat-coyote.jar" />
         <include name="lib/tomcat-util.jar" />
         <exclude name="**/*.copyarea.db" />
      </fileset>
   </path>
   
   <path id="yui.compressor.classpath">
      <fileset dir="${yui.compressor.root.dir}">
         <include name="build/yuicompressor-2.4.7.jar" />
         <include name="lib/*.jar" />
         <exclude name="**/*.copyarea.db" />
      </fileset>
   </path>
   
	<path id="compile.production.classpath">
		<path refid="processpuzzle.production.classpath"/>
		<path refid="project.auxiliary.classpath"/>
	</path>
	
	<path id="compile.test.classpath">
		<path refid="compile.production.classpath"/>
		<pathelement location="${project.production.classes.dir}" />
	</path>

	<taskdef classpathref="cobertura.classpath" resource="tasks.properties" />
	<taskdef name="findbugs" classpathref="findbugs.classpath" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" />
	<taskdef name="pmd" classpathref="pmd.classpath" classname="net.sourceforge.pmd.ant.PMDTask" />
   <taskdef resource="org/apache/catalina/ant/catalina.tasks" classpathref="catalina-ant-classpath" />
	<taskdef name="catalina-start" classname="org.apache.catalina.ant.StartTask" classpathref="catalina-ant-classpath"/>
   <taskdef name="catalina-stop" classname="org.apache.catalina.ant.StopTask" classpathref="catalina-ant-classpath"/>


	<!-- Web Tier Build -->
	<import file="init.build.xml"/>
	<import file="install.library.build.xml"/>
   <import file="resolve.libraries.build.xml"/>
	<import file="compile.build.xml"/>
   <import file="component.packaging.build.xml"/>
	<import file="component.test.build.xml"/>
	<import file="application.packaging.build.xml"/>
	<import file="start-stop-tomcat.xml"/>
	<import file="undeploy.build.xml"/>
	<import file="deploy.build.xml"/>
	<import file="server.availability.build.xml"/>
	<import file="javascript.test.build.xml"/>
	<import file="javascript.archive.build.xml"/>
	<import file="application.test.build.xml"/>
	<import file="analyse.build.xml"/>
	<import file="application.distribution.build.xml"/>
		
	<target name="all" depends="distribute" />
		
	<target name="init" depends="component.initializing.init" description="Initializes build environment." />
   <target name="resolve" depends="init, component.resolve.resolve" description="Fetches dependent libraries." />
	<target name="install" depends="resolve, install.library.install" description="Installs app's dependent libraries." />
	<target name="compile" depends="install, component.compiling.compile" description="Compiles sources." />
	<target name="java.archive" depends="compile, component.packaging.package" description="Package java component." />
	<target name="application.packaging" depends="java.archive, application.packaging.package" description="Package web application." />
	<target name="undeploy" depends="application.packaging, application.undeploy.undeploy" description="Undeploy previous version." />
	<target name="deploy" depends="undeploy, application.deploy.deploy" description="Deploy web application." />
	<target name="server.availability" depends="deploy, server.availability.check" description="Checks if application is available on server." />
	<target name="javascript.test" depends="server.availability, javascript.testing.test" description="Test JavaScrips." />
	<target name="javascript.archive" depends="javascript.test, javascript.archive.archive" description="Concatenates and compressies JavaScrips." />
	<target name="application.test" depends="javascript.archive, application.testing.test" description="Test the complete, deployed application." />
{'fraction_non_alphanumeric': 0.19780472827755605, 'fraction_numerical': 0.001381639545594105, 'mean_word_length': 4.642702468601126, 'pattern_counts': {'":': 0, '<': 265, '<?xml version=': 2, '>': 265, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 35}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '520907', 'n_tokens_mistral': 4429, 'n_tokens_neox': 4088, 'n_words': 649}