<commit_before><?xml version="1.0" encoding="UTF-8"?>
<project name="SAIBABML"  default="compile">
  <property name="src" location="src"/>
  <property name="build" location="build"/>
  <property name="dist"  location="dist"/>
   
   <!-- Settings for JUnit testing -->
   <property name="test.dir"               value="test"  />
   <property name="test.src.dir"           value="${test.dir}/src/" />
   <property name="test.lib.dir"           value="${test.dir}/lib/" />
   <property name="test.resource.dir"      value="${test.dir}/resource/" />
   <property name="test.report.dir"        value="${test.dir}/report" />
   <property name="build.test.classes.dir" location="test/build/classes" />
   <property name="build.test.results.dir" location="test/build/results" />
   <property name="junit.include"          value="**/*Test.class"/>
   <property name="junit.exclude"          value="**/Abstract*.class"/>

 <path id="javac-classpath">
	<pathelement path="${classpath}"/>
      <fileset dir="lib">
        <include name="**/*.jar"/>
      </fileset>
   </path>
<path id="javac-test-classpath">
      <path refid="javac-classpath"/>
	    <pathelement path="${build}"/>
	    <fileset dir="${test.lib.dir}">
        <include name="**/*.jar"/>
      </fileset>
   </path>
<target name="compile-tests" depends="compile">       
      <mkdir dir="${build.test.classes.dir}"/>
      <mkdir dir="${test.src.dir}"/>
      <javac srcdir="${test.src.dir}" 
             destdir="${build.test.classes.dir}" 
             includeAntRuntime="false"
             debug="true"
             deprecation="on"
             source="1.6"
             target="1.6"             
      >                
      <classpath refid="javac-test-classpath"/>
      </javac> 
   </target>   
 <path id="junit-test-run-classpath">
      <path refid="javac-test-classpath"/>
      <pathelement location="${build.test.classes.dir}"/>
      <pathelement location="${resource.dir}"/>
      <pathelement location="${test.resource.dir}"/>
      <pathelement path="${resource.path}"/> 
      <pathelement path="${test.resource.path}"/>   
   </path> 
   <target name="-junit" depends="compile-tests"  >
      <delete dir="${build.test.results.dir}" failonerror="false" quiet="true"/>
      <mkdir dir="${build.test.results.dir}"/>
      <junit printsummary="false" 
           haltonfailure="false"
           fork="yes"  forkmode="perTest"  timeout="1000000"
           errorProperty="test.failed"
           failureProperty="test.failed">
      
         <classpath refid="junit-test-run-classpath"/>
         <sysproperty key="shared.project.root" path="${shared.project.root}"/> 
         <sysproperty key="java.library.path" path="${test.library.path}"/> 
         <formatter type="brief" usefile="false"/>
         <formatter type="xml"/>
         <batchtest todir="${build.test.results.dir}" >
            <fileset dir="${build.test.classes.dir}" >
		    <exclude name="**/*$*.class"/>   
	<include name="${junit.include}"/>
               <exclude name="${junit.exclude}"/>	    
            </fileset>
         </batchtest>
      </junit>
       
      
   </target>
   
   <target name="junit" depends="-junit" description="Run all JUnit tests">
      <fail if="test.failed">
         JUnit test(s) failed.<commit_msg>added unit test target for ci build<commit_after><?xml version="1.0" encoding="UTF-8"?>
<project name="SAIBABML"  default="compile">
  <property name="src" location="src"/>
  <property name="build" location="build"/>
  <property name="dist"  location="dist"/>
   
   <!-- Settings for JUnit testing -->
   <property name="test.dir"               value="test"  />
   <property name="test.src.dir"           value="${test.dir}/src/" />
   <property name="test.lib.dir"           value="${test.dir}/lib/" />
   <property name="test.resource.dir"      value="${test.dir}/resource/" />
   <property name="test.report.dir"        value="${test.dir}/report" />
   <property name="build.test.classes.dir" location="test/build/classes" />
   <property name="build.test.results.dir" location="test/build/results" />
   <property name="junit.include"          value="**/*Test.class"/>
   <property name="junit.exclude"          value="**/Abstract*.class"/>

 <path id="javac-classpath">
	<pathelement path="${classpath}"/>
      <fileset dir="lib">
        <include name="**/*.jar"/>
      </fileset>
   </path>
<path id="javac-test-classpath">
      <path refid="javac-classpath"/>
	    <pathelement path="${build}"/>
	    <fileset dir="${test.lib.dir}">
        <include name="**/*.jar"/>
      </fileset>
   </path>
<target name="compile-tests" depends="compile">       
      <mkdir dir="${build.test.classes.dir}"/>
      <mkdir dir="${test.src.dir}"/>
      <javac srcdir="${test.src.dir}" 
             destdir="${build.test.classes.dir}" 
             includeAntRuntime="false"
             debug="true"
             deprecation="on"
             source="1.6"
             target="1.6"             
      >                
      <classpath refid="javac-test-classpath"/>
      </javac> 
   </target>   
 <path id="junit-test-run-classpath">
      <path refid="javac-test-classpath"/>
      <pathelement location="${build.test.classes.dir}"/>
      <pathelement location="${resource.dir}"/>
      <pathelement location="${test.resource.dir}"/>
      <pathelement path="${resource.path}"/> 
      <pathelement path="${test.resource.path}"/>   
   </path> 
   
   
   <target name="-junit" depends="compile-tests"  >
      <delete dir="${build.test.results.dir}" failonerror="false" quiet="true"/>
      <mkdir dir="${build.test.results.dir}"/>
      <junit printsummary="false" 
           haltonfailure="false"
           fork="yes"  forkmode="perTest"  timeout="1000000"
           errorProperty="test.failed"
           failureProperty="test.failed">
      
         <classpath refid="junit-test-run-classpath"/>
         <sysproperty key="shared.project.root" path="${shared.project.root}"/> 
         <sysproperty key="java.library.path" path="${test.library.path}"/> 
         <formatter type="brief" usefile="false"/>
         <formatter type="xml"/>
         <batchtest todir="${build.test.results.dir}" >
            <fileset dir="${build.test.classes.dir}" >
		    <exclude name="**/*$*.class"/>   
	<include name="${junit.include}"/>
               <exclude name="${junit.exclude}"/>	    
            </fileset>
         </batchtest>
      </junit>
       
      
   </target>
   
   <target name="junit-nofail" depends="-junit" description="Run all JUnit tests, do not fail on test failure"/>      
   
   <target name="junit" depends="-junit" description="Run all JUnit tests">
      <fail if="test.failed">
         JUnit test(s) failed.
{'fraction_non_alphanumeric': 0.1930553494583766, 'fraction_numerical': 0.004154919127466983, 'mean_word_length': 2.4922279792746114, 'pattern_counts': {'":': 0, '<': 130, '<?xml version=': 2, '>': 130, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '6901133', 'n_tokens_mistral': 2056, 'n_tokens_neox': 2007, 'n_words': 334}