<commit_before><?xml version = "1.0" encoding="ISO-8859-1" ?>
<!-- 
 * OpenWMS, the open Warehouse Management System
 * 
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
-->
<project xmlns:ivy="antlib:org.apache.ivy.ant" name="OpenWMS-Services" default="nightly" basedir=".">
    <tstamp>
        <format property="TODAY" pattern="yyyy-MM-dd HH:mm:ss 'GMT'Z" />
    </tstamp>

    <property environment="env" />
    <property file="build.properties" />

    <path id="class.path">
        <fileset dir="${openwms_common.dist.dir}">
            <include name="*.jar" />
        </fileset>
        <fileset dir="${deps.dir}/build">
            <include name="*.jar" />
        </fileset>
    </path>

    <target name="deps">
        <echo message="************************************************" />
        <echo message="Resolve dependencies..." />
        <echo message="************************************************" />
        <path id="ivy.path">
			<fileset dir="${lib.dir}/ivy" includes="**/*.jar" />
		</path>
        <taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant" classpathref="ivy.path" />
        <ivy:configure file="${ivy.settings.file}" />
        <ivy:resolve file="${ivy.dep.file}" conf="build, test" />
        <ivy:retrieve pattern="${deps.dir}/[conf]/[artifact]-[revision].[ext]"/>
    </target>

    <target name="deps-clean">
        <echo message="************************************************" />
        <echo message="Clear dependencies..." />
        <echo message="************************************************" />
        <delete>
            <fileset dir="${deps.test.dir}">
                <include name="**/*" />
            </fileset>
        </delete>
        <delete>
            <fileset dir="${deps.build.dir}">
                <include name="**/*" />
            </fileset>
        </delete>
        <antcall target="deps" />
    </target>

    <target name="initialize">
        <echo message="************************************************" />
        <echo message="Remove and create directories..." />
        <echo message="************************************************" />
        <mkdir dir="${dist.dir}" />
        <mkdir dir="${build.main.dir}" />
    </target>

    <target name="compile" depends="initialize">
        <echo message="************************************************" />
        <echo message="Compile sources in ${src.dir}..." />
        <echo message="************************************************" />
        <javac destdir="${build.main.dir}" classpathref="class.path" debug="on" deprecation="on">
            <src path="${src.dir}" />
        </javac>
    </target>

    <target name="jar">
        <echo message="************************************************" />
        <echo message="Create jar file ${dist.dir}/${jar.file}..." />
        <echo message="************************************************" />
        <jar destfile="${dist.dir}/${jar.file}">
            <fileset dir="${build.main.dir}" />
            <manifest>
                <attribute name="Main-Class" value="" />
                <attribute name="Class-Path" value="." />
            </manifest>
        </jar>
    </target>

    <target name="jar-osgi">
        <echo message="************************************************" />
        <echo message="Create OSGi compliant jar file ${dist.dir}/${osgi-jar.file}..." />
        <echo message="************************************************" />
        <jar destfile="${dist.dir}/${osgi-jar.file}" manifest="${src.meta-inf.dir}/MANIFEST.MF">
            <fileset dir="${build.main.dir}" />
        </jar>
    </target>

    <target name="clean">
        <echo message="************************************************" />
        <echo message="Clean" />
        <echo message="************************************************" />
        <delete dir="${build.main.dir}" />
    </target>

    <target name="build-commons">
        <echo message="************************************************" />
        <echo message="Building commons project" />
        <echo message="************************************************" />
        <ant antfile="${openwms_common.dir}/build.xml" inheritall="false" target="nightly"/>
    </target>
    <target name="build" depends="clean, deps, initialize, compile, jar">
        <echo message="************************************************" />
        <echo message="Building..." />
        <echo message="************************************************" />
    </target>
    <target name="build-osgi" depends="clean, initialize, compile, jar-osgi">
        <echo message="************************************************" />
        <echo message="Building OSGi bundle..." />
        <echo message="************************************************" />
    </target>
    
    <target name="check">
        <property name="home_var" value="$${env.OPENWMS_COMMON}"></property>
        <condition property="home-set">
            <not>
		<equals arg1="${home_var}" arg2="${env.OPENWMS_COMMON}"/>
	    </not>
        </condition>
    </target>

    <target name="usage" depends="check" unless="home-set">
        <echo message="*************************************************************************************" />
        <echo message="Environment variable OPENWMS_COMMON must point to the main OpenWMS checkout directory" />
        <echo message="" />
        <echo message="( try: export OPENWMS_COMMON=../../ )" />
        <echo message="*************************************************************************************" />
        <fail/>
    </target>
    
    <target name="nightly" depends="build-commons, build, build-osgi">
        <echo message="************************************************" />
        <echo message="Building nightly build" />
        <echo message="************************************************" />
    </target>

    <target name="all">
        <antcall target="usage, nightly" />
    </target>
    
</project><commit_msg>Corrected build file<commit_after><?xml version = "1.0" encoding="ISO-8859-1" ?>
<!-- 
 * OpenWMS, the open Warehouse Management System
 * 
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
-->
<project xmlns:ivy="antlib:org.apache.ivy.ant" name="OpenWMS-Services" default="all" basedir=".">
    <tstamp>
        <format property="TODAY" pattern="yyyy-MM-dd HH:mm:ss 'GMT'Z" />
    </tstamp>

    <property environment="env" />
    <property file="build.properties" />

    <path id="class.path">
        <fileset dir="${openwms_common.dist.dir}">
            <include name="*.jar" />
        </fileset>
        <fileset dir="${deps.dir}/build">
            <include name="*.jar" />
        </fileset>
    </path>

    <target name="deps">
        <echo message="************************************************" />
        <echo message="Resolve dependencies..." />
        <echo message="************************************************" />
        <path id="ivy.path">
			<fileset dir="${lib.dir}/ivy" includes="**/*.jar" />
		</path>
        <taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant" classpathref="ivy.path" />
        <ivy:configure file="${ivy.settings.file}" />
        <ivy:resolve file="${ivy.dep.file}" conf="build, test" />
        <ivy:retrieve pattern="${deps.dir}/[conf]/[artifact]-[revision].[ext]"/>
    </target>

    <target name="deps-clean">
        <echo message="************************************************" />
        <echo message="Clear dependencies..." />
        <echo message="************************************************" />
        <delete>
            <fileset dir="${deps.test.dir}">
                <include name="**/*" />
            </fileset>
        </delete>
        <delete>
            <fileset dir="${deps.build.dir}">
                <include name="**/*" />
            </fileset>
        </delete>
        <antcall target="deps" />
    </target>

    <target name="initialize">
        <echo message="************************************************" />
        <echo message="Remove and create directories..." />
        <echo message="************************************************" />
        <mkdir dir="${dist.dir}" />
        <mkdir dir="${build.main.dir}" />
    </target>

    <target name="compile" depends="initialize">
        <echo message="************************************************" />
        <echo message="Compile sources in ${src.dir}..." />
        <echo message="************************************************" />
        <javac destdir="${build.main.dir}" classpathref="class.path" debug="on" deprecation="on">
            <src path="${src.dir}" />
        </javac>
    </target>

    <target name="jar">
        <echo message="************************************************" />
        <echo message="Create jar file ${dist.dir}/${jar.file}..." />
        <echo message="************************************************" />
        <jar destfile="${dist.dir}/${jar.file}">
            <fileset dir="${build.main.dir}" />
            <manifest>
                <attribute name="Main-Class" value="" />
                <attribute name="Class-Path" value="." />
            </manifest>
        </jar>
    </target>

    <target name="jar-osgi">
        <echo message="************************************************" />
        <echo message="Create OSGi compliant jar file ${dist.dir}/${osgi-jar.file}..." />
        <echo message="************************************************" />
        <jar destfile="${dist.dir}/${osgi-jar.file}" manifest="${src.meta-inf.dir}/MANIFEST.MF">
            <fileset dir="${build.main.dir}" />
        </jar>
    </target>

    <target name="clean">
        <echo message="************************************************" />
        <echo message="Clean" />
        <echo message="************************************************" />
        <delete dir="${build.main.dir}" />
    </target>

    <target name="build-commons">
        <echo message="************************************************" />
        <echo message="Building commons project" />
        <echo message="************************************************" />
        <ant antfile="${openwms_common.dir}/build.xml" inheritall="false" target="all"/>
    </target>
    <target name="build" depends="clean, deps, initialize, compile, jar">
        <echo message="************************************************" />
        <echo message="Building..." />
        <echo message="************************************************" />
    </target>
    <target name="build-osgi" depends="clean, initialize, compile, jar-osgi">
        <echo message="************************************************" />
        <echo message="Building OSGi bundle..." />
        <echo message="************************************************" />
    </target>
    
    <target name="check">
        <property name="home_var" value="$${env.OPENWMS_COMMON}"></property>
        <condition property="home-set">
            <not>
		<equals arg1="${home_var}" arg2="${env.OPENWMS_COMMON}"/>
	    </not>
        </condition>
    </target>

    <target name="usage" depends="check" unless="home-set">
        <echo message="*************************************************************************************" />
        <echo message="Environment variable OPENWMS_COMMON must point to the main OpenWMS checkout directory" />
        <echo message="" />
        <echo message="( try: export OPENWMS_COMMON=../../ )" />
        <echo message="*************************************************************************************" />
        <fail/>
    </target>
    
    <target name="nightly" depends="build-commons, build, build-osgi">
        <echo message="************************************************" />
        <echo message="Building nightly build" />
        <echo message="************************************************" />
    </target>

    <target name="all">
        <antcall target="usage" />
        <antcall target="nightly" />
    </target>
    
</project>
{'fraction_non_alphanumeric': 0.3519557550496954, 'fraction_numerical': 0.0014427701186277653, 'mean_word_length': 2.703472840605521, 'pattern_counts': {'":': 0, '<': 258, '<?xml version=': 0, '>': 258, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, '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': '819928', 'n_tokens_mistral': 3381, 'n_tokens_neox': 3074, 'n_words': 610}