<commit_before><!-- This ant project includes the following tasks:
        - all (default) : compiles all tests, translates resources
        - compile : compiles all tests
        - process.resource : translates login info in resources into run directory
        - test : runs LRG
        - test.lrg : runs LRG
        - test.srg : runs SRG

        It requires some configuration of the build.properties and test.properties to run.
    -->
<project name="Eclipse Persistence Services Testing" default="all" basedir=".">

    <!-- Allows tools.jar to be relative to JAVA_HOME. -->
    <property environment="env"/>

    <!-- Allows a user to overide certain user specific properties. -->
    <property file="${user.home}/build.properties"/>
    <property file="${user.home}/test.properties"/>
    <property file="${eclipselink.core.test}/build.properties"/>
    <property file="${eclipselink.core.test}/${test.properties}"/>

    <!-- Classpath used for compiling tests, also used in running tests. -->
    <path id="compile.path">
        <pathelement path="${eclipselink.core.lib}/eclipselink-antlr.jar"/>
        <pathelement path="${eclipselink.core.lib}/eclipselink-asm.jar"/>
        <pathelement path="${junit.lib}"/>
        <fileset
            dir="${eclipselink.core.lib}"
            includes="${eclipselink.core.depend}"/>
        <pathelement path="${eclipselink.core}/${classes.dir}"/>
    </path>

    <!-- Default ant target, compiles and translates resources, does not run tests. -->
    <target name="all" depends="clean, compile, process.resource" description="build EclipseLink jar"/>

    <!-- Compiles all tests. --> 
    <target name="compile" depends="" description="compile EclipseLink core tests">  
        <mkdir dir="${eclipselink.core.test}/${classes.dir}"/>
        <javac srcdir="${eclipselink.core.test}/${src.dir}" 
               destdir="${eclipselink.core.test}/${classes.dir}"
               includes="org/eclipse/persistence/**, deprecated/**"
               debug="${javac.debug}" 
               optimize="${javac.optimize}"
               source="1.5" 
               deprecation="${javac.deprecation}"
               failonerror="true"
               memoryMaximumSize="512m"
               fork="true">
            <classpath>
                <path refid="compile.path"/>
            </classpath>
        </javac>
    </target>

    <!-- Translates the login information in the resources into the run directory. -->
    <target name="process.resource">
        <filter token="dbUser" value="${db.user}"/>
        <filter token="dbPassword" value="${db.pwd}"/>
        <filter token="driverClass" value="${db.driver}"/>
        <filter token="dbURL" value="${db.url}"/>
        <filter token="loglevel" value="${logging.level}"/>
        <filter token="boolvalue" value="${logging.boolvalue}"/>
        <filter token="dbPlatform" value="${db.platform}"/>
        <copy todir="${eclipselink.core.test}/${run.dir}" filtering="true">
            <fileset dir="${eclipselink.core.test}/${resource.dir}"
                excludes="**/Employee_utf16.xml, **/NLSJapaneseMWIntegrationTestEmployeeProject.xml"/>
         </copy>
         <copy todir="${eclipselink.core.test}/${run.dir}" filtering="true" encoding="UTF-16">
            <fileset dir="${eclipselink.core.test}/${resource.dir}" includes="**/Employee_utf16.xml"/>
         </copy>
          <copy todir="${eclipselink.core.test}/${run.dir}" filtering="true" encoding="Shift_JIS">
            <fileset dir="${eclipselink.core.test}/${resource.dir}" includes="**/NLSJapaneseMWIntegrationTestEmployeeProject.xml"/>
         </copy>
    </target>

    <target name="clean" description="Clean the build">
        <delete includeEmptyDirs="true" failonerror="false">
            <fileset dir="${eclipselink.core.test}/${classes.dir}"/>
        </delete>
    </target>

    <!-- Testing -->

    <!-- Classpath used for running tests. -->
    <path id="run.classpath">
        <pathelement path="${eclipselink.core.test}/${classes.dir}"/>
        <pathelement path="${eclipselink.core.test}/${run.dir}"/>
        <path refid="compile.path"/>
        <pathelement path="${eclipselink.core}/${resource.dir}"/>
        <!-- Currently the Oracle extensions are included to allow running Oracle extensions tests from here. -->
        <pathelement path="${eclipselink.extension.oracle}/${classes.dir}"/>
        <pathelement path="${eclipselink.extension.oracle}/eclipselink-extension-oracle.jar"/>
        <pathelement path="${jdbc.driver.jar}"/>
        <pathelement path="${tools.jar}"/>
    </path>

    <!-- Runs the test using the PromptTestRunner -->
    <target name="test.prompt-runner" depends="process.resource">
        <java   classname="org.eclipse.persistence.testing.framework.PromptTestRunner"
             fork="true"
             maxmemory="512m"
             failonerror="true"
             dir="${run.dir}">
            <jvmarg value="-Djava.security.policy=${eclipselink.core.test}/resource/java.policy.allpermissions"/>
            <arg value="pfile=${eclipselink.core.test}/${core.test.properties}" />
            <arg value="testmodel=org.eclipse.persistence.testing.tests.TestRunModel" />
            <arg value="regressionlog=${eclipselink.core.test}/${core.test.regression.log}" />

            <classpath>
                <path refid="run.classpath"/>
            </classpath>
        </java>
    </target>

    <!-- Default test target, runs LRG (TestRunModel). -->
    <target name="test">
        <antcall target="test.lrg" inheritRefs="true"/>
    </target>

    <!-- Runs SRG (SRGTestModel). -->
    <target name="test.srg">
        <property name="test.class" value="org.eclipse.persistence.testing.tests.SRGTestModel"/>
        <antcall target="run.test" inheritRefs="true"/>
    </target>

    <!-- Runs LRG (TestRunModel). -->
    <target name="test.lrg">
        <property name="test.class" value="org.eclipse.persistence.testing.tests.TestRunModel"/>
        <antcall target="run.test" inheritRefs="true"/>
    </target>

    <!-- Generic target for running tests. -->
    <target name="run.test">
        <echo>Running test with ${test.properties} on ${db.url}</echo>
        <mkdir dir="${eclipselink.core.test}/${run.dir}"/>
        <mkdir dir="${eclipselink.core.test}/${report.dir}"/>
        <junit printsummary="yes" haltonfailure="yes" failureproperty="junit.failed" fork="yes" showoutput="true" maxmemory="512m" dir="${run.dir}">
            <jvmarg value="-Declipselink.logging.level=${logging.level}"/>
            <jvmarg value="-Dtest.properties=${test.properties.run}"/>
            <classpath>
                <path refid="run.classpath"/>
            </classpath>
            <formatter type="xml"/>
            <test name="${test.class}" haltonfailure="no" outfile="${eclipselink.core.test}/${report.dir}/test-results">
            </test>
        </junit>
        <junitreport todir="${eclipselink.core.test}/${report.dir}">
            <fileset dir="${eclipselink.core.test}/${report.dir}">
                <include name="test-results.xml"/>
            </fileset>
            <report format="noframes" todir="${eclipselink.core.test}/${report.dir}"/>
        </junitreport>
        <fail message="Some of the junit tests failed.  See the ${report.dir}/junit-noframes.html file for details." if="junit.failed"/>
    </target>

</project><commit_msg>fully qualify run directory<commit_after><!-- This ant project includes the following tasks:
        - all (default) : compiles all tests, translates resources
        - compile : compiles all tests
        - process.resource : translates login info in resources into run directory
        - test : runs LRG
        - test.lrg : runs LRG
        - test.srg : runs SRG

        It requires some configuration of the build.properties and test.properties to run.
    -->
<project name="Eclipse Persistence Services Testing" default="all" basedir=".">

    <!-- Allows tools.jar to be relative to JAVA_HOME. -->
    <property environment="env"/>

    <!-- Allows a user to overide certain user specific properties. -->
    <property file="${user.home}/build.properties"/>
    <property file="${user.home}/test.properties"/>
    <property file="${eclipselink.core.test}/build.properties"/>
    <property file="${eclipselink.core.test}/${test.properties}"/>

    <!-- Classpath used for compiling tests, also used in running tests. -->
    <path id="compile.path">
        <pathelement path="${eclipselink.core.lib}/eclipselink-antlr.jar"/>
        <pathelement path="${eclipselink.core.lib}/eclipselink-asm.jar"/>
        <pathelement path="${junit.lib}"/>
        <fileset
            dir="${eclipselink.core.lib}"
            includes="${eclipselink.core.depend}"/>
        <pathelement path="${eclipselink.core}/${classes.dir}"/>
    </path>

    <!-- Default ant target, compiles and translates resources, does not run tests. -->
    <target name="all" depends="clean, compile, process.resource" description="build EclipseLink jar"/>

    <!-- Compiles all tests. --> 
    <target name="compile" depends="" description="compile EclipseLink core tests">  
        <mkdir dir="${eclipselink.core.test}/${classes.dir}"/>
        <javac srcdir="${eclipselink.core.test}/${src.dir}" 
               destdir="${eclipselink.core.test}/${classes.dir}"
               includes="org/eclipse/persistence/**, deprecated/**"
               debug="${javac.debug}" 
               optimize="${javac.optimize}"
               source="1.5" 
               deprecation="${javac.deprecation}"
               failonerror="true"
               memoryMaximumSize="512m"
               fork="true">
            <classpath>
                <path refid="compile.path"/>
            </classpath>
        </javac>
    </target>

    <!-- Translates the login information in the resources into the run directory. -->
    <target name="process.resource">
        <filter token="dbUser" value="${db.user}"/>
        <filter token="dbPassword" value="${db.pwd}"/>
        <filter token="driverClass" value="${db.driver}"/>
        <filter token="dbURL" value="${db.url}"/>
        <filter token="loglevel" value="${logging.level}"/>
        <filter token="boolvalue" value="${logging.boolvalue}"/>
        <filter token="dbPlatform" value="${db.platform}"/>
        <copy todir="${eclipselink.core.test}/${run.dir}" filtering="true">
            <fileset dir="${eclipselink.core.test}/${resource.dir}"
                excludes="**/Employee_utf16.xml, **/NLSJapaneseMWIntegrationTestEmployeeProject.xml"/>
         </copy>
         <copy todir="${eclipselink.core.test}/${run.dir}" filtering="true" encoding="UTF-16">
            <fileset dir="${eclipselink.core.test}/${resource.dir}" includes="**/Employee_utf16.xml"/>
         </copy>
          <copy todir="${eclipselink.core.test}/${run.dir}" filtering="true" encoding="Shift_JIS">
            <fileset dir="${eclipselink.core.test}/${resource.dir}" includes="**/NLSJapaneseMWIntegrationTestEmployeeProject.xml"/>
         </copy>
    </target>

    <target name="clean" description="Clean the build">
        <delete includeEmptyDirs="true" failonerror="false">
            <fileset dir="${eclipselink.core.test}/${classes.dir}"/>
        </delete>
    </target>

    <!-- Testing -->

    <!-- Classpath used for running tests. -->
    <path id="run.classpath">
        <pathelement path="${eclipselink.core.test}/${classes.dir}"/>
        <pathelement path="${eclipselink.core.test}/${run.dir}"/>
        <path refid="compile.path"/>
        <pathelement path="${eclipselink.core}/${resource.dir}"/>
        <!-- Currently the Oracle extensions are included to allow running Oracle extensions tests from here. -->
        <pathelement path="${eclipselink.extension.oracle}/${classes.dir}"/>
        <pathelement path="${eclipselink.extension.oracle}/eclipselink-extension-oracle.jar"/>
        <pathelement path="${jdbc.driver.jar}"/>
        <pathelement path="${tools.jar}"/>
    </path>

    <!-- Runs the test using the PromptTestRunner -->
    <target name="test.prompt-runner" depends="process.resource">
        <java   classname="org.eclipse.persistence.testing.framework.PromptTestRunner"
             fork="true"
             maxmemory="512m"
             failonerror="true"
             dir="${run.dir}">
            <jvmarg value="-Djava.security.policy=${eclipselink.core.test}/resource/java.policy.allpermissions"/>
            <arg value="pfile=${eclipselink.core.test}/${core.test.properties}" />
            <arg value="testmodel=org.eclipse.persistence.testing.tests.TestRunModel" />
            <arg value="regressionlog=${eclipselink.core.test}/${core.test.regression.log}" />

            <classpath>
                <path refid="run.classpath"/>
            </classpath>
        </java>
    </target>

    <!-- Default test target, runs LRG (TestRunModel). -->
    <target name="test">
        <antcall target="test.lrg" inheritRefs="true"/>
    </target>

    <!-- Runs SRG (SRGTestModel). -->
    <target name="test.srg">
        <property name="test.class" value="org.eclipse.persistence.testing.tests.SRGTestModel"/>
        <antcall target="run.test" inheritRefs="true"/>
    </target>

    <!-- Runs LRG (TestRunModel). -->
    <target name="test.lrg">
        <property name="test.class" value="org.eclipse.persistence.testing.tests.TestRunModel"/>
        <antcall target="run.test" inheritRefs="true"/>
    </target>

    <!-- Generic target for running tests. -->
    <target name="run.test">
        <echo>Running test with ${test.properties} on ${db.url}</echo>
        <mkdir dir="${eclipselink.core.test}/${run.dir}"/>
        <mkdir dir="${eclipselink.core.test}/${report.dir}"/>
        <junit printsummary="yes" haltonfailure="yes" failureproperty="junit.failed" fork="yes" showoutput="true" maxmemory="512m" dir="${eclipselink.core.test}/${run.dir}">
            <jvmarg value="-Declipselink.logging.level=${logging.level}"/>
            <jvmarg value="-Dtest.properties=${test.properties.run}"/>
            <classpath>
                <path refid="run.classpath"/>
            </classpath>
            <formatter type="xml"/>
            <test name="${test.class}" haltonfailure="no" outfile="${eclipselink.core.test}/${report.dir}/test-results">
            </test>
        </junit>
        <junitreport todir="${eclipselink.core.test}/${report.dir}">
            <fileset dir="${eclipselink.core.test}/${report.dir}">
                <include name="test-results.xml"/>
            </fileset>
            <report format="noframes" todir="${eclipselink.core.test}/${report.dir}"/>
        </junitreport>
        <fail message="Some of the junit tests failed.  See the ${report.dir}/junit-noframes.html file for details." if="junit.failed"/>
    </target>

</project>
{'fraction_non_alphanumeric': 0.17097179097575477, 'fraction_numerical': 0.002246151813437273, 'mean_word_length': 2.4920415224913497, 'pattern_counts': {'":': 0, '<': 235, '<?xml version=': 0, '>': 235, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 12}, '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': '357890', 'n_tokens_mistral': 4517, 'n_tokens_neox': 4218, 'n_words': 796}