<commit_before><?xml version="1.0" encoding="UTF-8"?>

<!-- $This file is distributed under the terms of the license in /doc/license.txt$ -->

<!-- ====================================================================== 
     Build script for the Vitro core webapp. 
     
     This can be used on its own, or invoked from a Product build script.
     ====================================================================== -->

<project name="vitroCore" default="describe">
	<property environment="env" />

	<!-- We must be using a suitable version of Java. -->
	<fail>
		<condition>
			<not>
				<or>
					<equals arg1="1.7" arg2="${ant.java.version}" />
					<equals arg1="1.8" arg2="${ant.java.version}" />
				</or>
			</not>
		</condition>
		The Vitro build script requires Java 7 or later.
		Java system property java.version = ${java.version}
		Java system property java.home = ${java.home}
		JAVA_HOME environment variable = ${env.JAVA_HOME}
	</fail>

	<!-- We must be using a suitable version of Ant. -->
	<fail>
		<condition>
			<not>
				<antversion atleast="1.8" />
			</not>
		</condition>
		The Vitro build script requires Ant 1.8 or later.
		Ant property ant.version = ${ant.version}
		Ant property ant.home = ${ant.home}
		ANT_HOME environment variable = ${env.ANT_HOME}
	</fail>

	<!-- A product script will override appbase.dir, but not corebase.dir -->
	<dirname property="corebase.dir" file="${ant.file.vitroCore}" />
	<property name="appbase.dir" location="${corebase.dir}" />

	<property name="build.properties.file" location="config/build.properties" />

	<property name="build.dir" location=".build" />

	<property name="buildtools.dir" location="${corebase.dir}/../utilities/buildutils" />
	<property name="buildtools.source.dir" location="${buildtools.dir}/src" />
	<property name="buildtools.lib.dir" location="${buildtools.dir}/lib" />
	<property name="buildtools.compiled.dir" location="${build.dir}/buildTools" />

	<property name="main.build.dir" location="${build.dir}/main"/>
	<property name="main.webapp.dir" location="${main.build.dir}/webapp" />
	<property name="main.webinf.dir" location="${main.webapp.dir}/WEB-INF" />
	<property name="main.compiled.dir" location="${main.webinf.dir}/classes" />
	<property name="main.resources.dir" location="${main.webinf.dir}/resources" />
	<property name="main.revisioninfo.file" location="${main.resources.dir}/revisionInfo.txt" />

	<property name="unittests.compiled.dir" location="${main.build.dir}/testClasses" />

	<property name="solr.template.dir" location="${corebase.dir}/../solr" />
	<property name="solr.template.context.file" location="${solr.template.dir}/template.context.xml" />

	<property name="solr.build.dir" location="${build.dir}/solr" />
	<property name="solr.webapp.dir" location="${solr.build.dir}/webapp" />
	<property name="solr.homeimage.dir" location="${solr.build.dir}/homeimage" />

    <property name="solr.lib.dir" location="${solr.template.dir}/solrjClientLibs" />

	<property name="distribution.dir" location="${build.dir}/distribution" />
	<property name="distribution.tar.gz.file" location="${build.dir}/distribution.tar.gz" />

	<property name="option.javac.deprecation" value="true" />

	<!-- - - - - - - - - - - - - - - - - - 
          target: buildProperties                      
         - - - - - - - - - - - - - - - - - -->
	<target name="buildProperties">
		<fail message="You must create a &quot;${build.properties.file}&quot; file.">
			<condition>
				<not>
					<available file="${build.properties.file}" />
				</not>
			</condition>
		</fail>

		<property file="${build.properties.file}" />

		<fail unless="webapp.name" message="${build.properties.file} must contain a value for webapp.name" />
		<property name="solr.app.name" value="${webapp.name}solr" />
	</target><commit_msg>Removed unused build.xml property.<commit_after><?xml version="1.0" encoding="UTF-8"?>

<!-- $This file is distributed under the terms of the license in /doc/license.txt$ -->

<!-- ====================================================================== 
     Build script for the Vitro core webapp. 
     
     This can be used on its own, or invoked from a Product build script.
     ====================================================================== -->

<project name="vitroCore" default="describe">
	<property environment="env" />

	<!-- We must be using a suitable version of Java. -->
	<fail>
		<condition>
			<not>
				<or>
					<equals arg1="1.7" arg2="${ant.java.version}" />
					<equals arg1="1.8" arg2="${ant.java.version}" />
				</or>
			</not>
		</condition>
		The Vitro build script requires Java 7 or later.
		Java system property java.version = ${java.version}
		Java system property java.home = ${java.home}
		JAVA_HOME environment variable = ${env.JAVA_HOME}
	</fail>

	<!-- We must be using a suitable version of Ant. -->
	<fail>
		<condition>
			<not>
				<antversion atleast="1.8" />
			</not>
		</condition>
		The Vitro build script requires Ant 1.8 or later.
		Ant property ant.version = ${ant.version}
		Ant property ant.home = ${ant.home}
		ANT_HOME environment variable = ${env.ANT_HOME}
	</fail>

	<!-- A product script will override appbase.dir, but not corebase.dir -->
	<dirname property="corebase.dir" file="${ant.file.vitroCore}" />
	<property name="appbase.dir" location="${corebase.dir}" />

	<property name="build.properties.file" location="config/build.properties" />

	<property name="build.dir" location=".build" />

	<property name="buildtools.dir" location="${corebase.dir}/../utilities/buildutils" />
	<property name="buildtools.source.dir" location="${buildtools.dir}/src" />
	<property name="buildtools.lib.dir" location="${buildtools.dir}/lib" />
	<property name="buildtools.compiled.dir" location="${build.dir}/buildTools" />

	<property name="main.build.dir" location="${build.dir}/main"/>
	<property name="main.webapp.dir" location="${main.build.dir}/webapp" />
	<property name="main.webinf.dir" location="${main.webapp.dir}/WEB-INF" />
	<property name="main.compiled.dir" location="${main.webinf.dir}/classes" />
	<property name="main.resources.dir" location="${main.webinf.dir}/resources" />
	<property name="main.revisioninfo.file" location="${main.resources.dir}/revisionInfo.txt" />

	<property name="unittests.compiled.dir" location="${main.build.dir}/testClasses" />

	<property name="solr.template.dir" location="${corebase.dir}/../solr" />
	<property name="solr.template.context.file" location="${solr.template.dir}/template.context.xml" />

	<property name="solr.build.dir" location="${build.dir}/solr" />
	<property name="solr.webapp.dir" location="${solr.build.dir}/webapp" />
	<property name="solr.homeimage.dir" location="${solr.build.dir}/homeimage" />

	<property name="distribution.dir" location="${build.dir}/distribution" />
	<property name="distribution.tar.gz.file" location="${build.dir}/distribution.tar.gz" />

	<property name="option.javac.deprecation" value="true" />

	<!-- - - - - - - - - - - - - - - - - - 
          target: buildProperties                      
         - - - - - - - - - - - - - - - - - -->
	<target name="buildProperties">
		<fail message="You must create a &quot;${build.properties.file}&quot; file.">
			<condition>
				<not>
					<available file="${build.properties.file}" />
				</not>
			</condition>
		</fail>

		<property file="${build.properties.file}" />

		<fail unless="webapp.name" message="${build.properties.file} must contain a value for webapp.name" />
		<property name="solr.app.name" value="${webapp.name}solr" />
	</target>
{'fraction_non_alphanumeric': 0.2226195205932989, 'fraction_numerical': 0.004237849291484572, 'mean_word_length': 3.807129217059198, 'pattern_counts': {'":': 0, '<': 126, '<?xml version=': 2, '>': 126, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 5}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '460524', 'n_tokens_mistral': 2511, 'n_tokens_neox': 2305, 'n_words': 477}