<commit_before><module>
  <depends module="util"/>
  <depends lib="xercesImpl"/>
  <compile test="yes"/>
  <test name="xerces" type="java"
	class="com.thaiopensource.datatype.xsd.regex.test.TestDriver">
    <arg value="com.thaiopensource.datatype.xsd.regex.xerces2.RegexEngineImpl"/>
    <arg value="mod/regex/test/regextest.xml"/>
  </test>
  <test name="java" type="java"
	class="com.thaiopensource.datatype.xsd.regex.test.TestDriver">
    <arg value="com.thaiopensource.datatype.xsd.regex.java.RegexEngineImpl"/>
    <arg value="mod/regex/test/regextest.xml"/>
  </test>
  <test name="naming" type="java"
	class="com.thaiopensource.datatype.xsd.regex.test.NameTest">
    <arg value="com.thaiopensource.datatype.xsd.regex.java.RegexEngineImpl"/>
  </test>
  <test name="hard" type="java"
	class="com.thaiopensource.datatype.xsd.regex.test.TestDriver">
    <arg value="com.thaiopensource.datatype.xsd.regex.java.RegexEngineImpl"/>
    <arg value="mod/regex/test/hardtest.xml"/>
  </test>
<!-- This takes about a minute to run, so we need to separate it into a separate target.
  <test name="category" type="java"
	class="com.thaiopensource.datatype.xsd.regex.test.CategoryTest">
    <arg value="com.thaiopensource.datatype.xsd.regex.java.RegexEngineImpl"/>
    <arg value="lib/UnicodeData-4.0.0.txt"/>
  </test>
-->
  <ant precompile="mod.regex.gen">
    <target name="mod.regex.gen" depends="mod.regex.check-gen" unless="mod.regex.gen-ok">
      <mkdir dir="${build.dir}/mod/regex/gensrc/main/com/thaiopensource/datatype/xsd/regex/java"/>
      <java classname="com.thaiopensource.datatype.xsd.regex.java.gen.NamingExceptionsGen"
	    fork="yes"
	    failonerror="yes">
	<arg value="com.thaiopensource.datatype.xsd.regex.java.NamingExceptions"/>
	<arg value="${build.dir}/mod/regex/gensrc/main"/>
	<classpath>
	  <pathelement location="${build.dir}/mod/regex-gen/classes/main"/>
	  <pathelement location="${build.dir}/mod/util/classes/main"/>
	</classpath>
      </java>
      <java classname="com.thaiopensource.datatype.xsd.regex.java.gen.CategoriesGen"
	    fork="yes"
	    failonerror="yes">
	<arg value="com.thaiopensource.datatype.xsd.regex.java.Categories"/>
	<arg value="${build.dir}/mod/regex/gensrc/main"/>
	<arg value="lib/UnicodeData-3.1.0.txt"/>
	<classpath>
	  <pathelement location="${build.dir}/mod/regex-gen/classes/main"/>
	  <pathelement location="${build.dir}/mod/util/classes/main"/>
	</classpath>
      </java>
    </target>
    
    <target name="mod.regex.check-gen" depends="mod.regex-gen.compile-main">
      <uptodate property="mod.regex.gen-ok"
		targetfile="${build.dir}/mod/regex/gensrc/main/com/thaiopensource/datatype/xsd/regex/java/Categories.java">
	<srcfiles dir="${build.dir}/mod/regex-gen/classes/main" includes="**/*.class"/>
      </uptodate>
    </target>
  </ant>
</module><commit_msg>Build a jar for the regex module.<commit_after><module>
  <depends module="util"/>
  <depends lib="xercesImpl"/>
  <compile test="yes"/>
  <test name="xerces" type="java"
	class="com.thaiopensource.datatype.xsd.regex.test.TestDriver">
    <arg value="com.thaiopensource.datatype.xsd.regex.xerces2.RegexEngineImpl"/>
    <arg value="mod/regex/test/regextest.xml"/>
  </test>
  <test name="java" type="java"
	class="com.thaiopensource.datatype.xsd.regex.test.TestDriver">
    <arg value="com.thaiopensource.datatype.xsd.regex.java.RegexEngineImpl"/>
    <arg value="mod/regex/test/regextest.xml"/>
  </test>
  <test name="naming" type="java"
	class="com.thaiopensource.datatype.xsd.regex.test.NameTest">
    <arg value="com.thaiopensource.datatype.xsd.regex.java.RegexEngineImpl"/>
  </test>
  <test name="hard" type="java"
	class="com.thaiopensource.datatype.xsd.regex.test.TestDriver">
    <arg value="com.thaiopensource.datatype.xsd.regex.java.RegexEngineImpl"/>
    <arg value="mod/regex/test/hardtest.xml"/>
  </test>
<!-- This takes about a minute to run, so we need to separate it into a separate target.
  <test name="category" type="java"
	class="com.thaiopensource.datatype.xsd.regex.test.CategoryTest">
    <arg value="com.thaiopensource.datatype.xsd.regex.java.RegexEngineImpl"/>
    <arg value="lib/UnicodeData-4.0.0.txt"/>
  </test>
-->
  <ant precompile="mod.regex.gen">
    <target name="mod.regex.gen" depends="mod.regex.check-gen" unless="mod.regex.gen-ok">
      <mkdir dir="${build.dir}/mod/regex/gensrc/main/com/thaiopensource/datatype/xsd/regex/java"/>
      <java classname="com.thaiopensource.datatype.xsd.regex.java.gen.NamingExceptionsGen"
	    fork="yes"
	    failonerror="yes">
	<arg value="com.thaiopensource.datatype.xsd.regex.java.NamingExceptions"/>
	<arg value="${build.dir}/mod/regex/gensrc/main"/>
	<classpath>
	  <pathelement location="${build.dir}/mod/regex-gen/classes/main"/>
	  <pathelement location="${build.dir}/mod/util/classes/main"/>
	</classpath>
      </java>
      <java classname="com.thaiopensource.datatype.xsd.regex.java.gen.CategoriesGen"
	    fork="yes"
	    failonerror="yes">
	<arg value="com.thaiopensource.datatype.xsd.regex.java.Categories"/>
	<arg value="${build.dir}/mod/regex/gensrc/main"/>
	<arg value="lib/UnicodeData-3.1.0.txt"/>
	<classpath>
	  <pathelement location="${build.dir}/mod/regex-gen/classes/main"/>
	  <pathelement location="${build.dir}/mod/util/classes/main"/>
	</classpath>
      </java>
    </target>
    
    <target name="mod.regex.check-gen" depends="mod.regex-gen.compile-main">
      <uptodate property="mod.regex.gen-ok"
		targetfile="${build.dir}/mod/regex/gensrc/main/com/thaiopensource/datatype/xsd/regex/java/Categories.java">
	<srcfiles dir="${build.dir}/mod/regex-gen/classes/main" includes="**/*.class"/>
      </uptodate>
    </target>
  </ant>
  <jar>
    <service type="com.thaiopensource.datatype.xsd.regex.RegexEngine">
      <provider classname="com.thaiopensource.datatype.xsd.regex.java.RegexEngineImpl"/>
      <provider classname="com.thaiopensource.datatype.xsd.regex.xerces2.RegexEngineImpl"/>
    </service>
  </jar>
</module>
{'fraction_non_alphanumeric': 0.18573825503355704, 'fraction_numerical': 0.0025167785234899327, 'mean_word_length': 4.2752212389380535, 'pattern_counts': {'":': 0, '<': 113, '<?xml version=': 0, '>': 113, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '3171113', 'n_tokens_mistral': 2164, 'n_tokens_neox': 2106, 'n_words': 256}