<commit_before><?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="create_run_jar" name="Create Runnable Jar for Project sqlParser with libraries in sub-folder">
    <!--this file was originally created by the jar export wizard but subsequently modified to simplify properties and eliminate
       environment dependences.  It assumes the layout of the qcert working directory as organized for git -->
    <property name="dest" value="../bin"/>
    <target name="create_run_jar">
        <jar destfile="${dest}/sqlparser.jar">
            <manifest>
                <attribute name="Main-Class" value="org.qcert.sql.SQL2Sexp"/>
                <attribute name="Class-Path" value=". sqlparser_lib/antlr4-runtime-4.5.3.jar sqlparser_lib/guava-19.0.jar sqlparser_lib/presto-parser-0.152.3.jar sqlparser_lib/slice-0.7.jar"/>
            </manifest>
            <fileset dir="bin"/>
        </jar>
        <delete dir="${dest}/sqlparser_lib"/>
        <mkdir dir="${dest}/sqlparser_lib"/>
        <copy file="lib/antlr4-runtime-4.5.3.jar" todir="${dest}/sqlparser_lib"/>
        <copy file="lib/guava-19.0.jar" todir="${dest}/sqlparser_lib"/>
        <copy file="lib/presto-parser-0.152.3.jar" todir="${dest}/sqlparser_lib"/>
        <copy file="lib/slice-0.7.jar" todir="${dest}/sqlparser_lib"/>
    </target>
</project><commit_msg>Expand export script to encompass export service.<commit_after><?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="all" name="Export artifacts from sqlParser project to bin">
    <!--this file was originally created by the jar export wizard but subsequently modified to simplify properties and eliminate
       environment dependences.  It assumes the layout of the qcert working directory as organized for git -->

	<property name="dest" value="../bin"/>
	
	<target name="all" depends="create_run_jar,create_server_jar"/>

	<target name="create_run_jar">
        <jar destfile="${dest}/sqlparser.jar">
            <manifest>
                <attribute name="Main-Class" value="org.qcert.sql.SQL2Sexp"/>
                <attribute name="Class-Path" value=". sqlparser_lib/antlr4-runtime-4.5.3.jar sqlparser_lib/guava-19.0.jar sqlparser_lib/presto-parser-0.152.3.jar sqlparser_lib/slice-0.7.jar"/>
            </manifest>
            <fileset dir="bin"/>
        </jar>
        <delete dir="${dest}/sqlparser_lib"/>
        <mkdir dir="${dest}/sqlparser_lib"/>
        <copy file="lib/antlr4-runtime-4.5.3.jar" todir="${dest}/sqlparser_lib"/>
        <copy file="lib/guava-19.0.jar" todir="${dest}/sqlparser_lib"/>
        <copy file="lib/presto-parser-0.152.3.jar" todir="${dest}/sqlparser_lib"/>
        <copy file="lib/slice-0.7.jar" todir="${dest}/sqlparser_lib"/>
    </target>

	<target name="create_server_jar">
		<delete dir="staging"/>
		<mkdir dir="staging"/>
        <jar destfile="staging/encodeService.jar">
            <manifest>
                <attribute name="Main-Class" value="org.qcert.sql.EncodingService"/>
                <attribute name="Class-Path" 
                	value=". encoding_lib/antlr4-runtime-4.5.3.jar encoding_lib/guava-19.0.jar encoding_lib/presto-parser-0.152.3.jar encoding_lib/slice-0.7.jar encoding_lib/nanohttpd-2.3.1.jar"/>
            </manifest>
            <fileset dir="bin"/>
        </jar>
        <mkdir dir="staging/encoding_lib"/>
        <copy file="lib/antlr4-runtime-4.5.3.jar" todir="staging/encoding_lib"/>
        <copy file="lib/guava-19.0.jar" todir="staging/encoding_lib"/>
        <copy file="lib/presto-parser-0.152.3.jar" todir="staging/encoding_lib"/>
        <copy file="lib/slice-0.7.jar" todir="staging/encoding_lib"/>
        <copy file="lib/nanohttpd-2.3.1.jar" todir="staging/encoding_lib"/>
		<delete file="${dest}/encodingService.zip"/>
		<zip destfile="${dest}/encodingService.zip">
			<fileset dir="staging"/>
		</zip>
		<delete dir="staging"/>
    </target>
</project>
{'fraction_non_alphanumeric': 0.16704980842911876, 'fraction_numerical': 0.025031928480204343, 'mean_word_length': 3.0664589823468327, 'pattern_counts': {'":': 0, '<': 66, '<?xml version=': 2, '>': 66, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '471342', 'n_tokens_mistral': 1288, 'n_tokens_neox': 1232, 'n_words': 234}