<commit_before><?xml version="1.0" encoding="UTF-8"?>
<!-- ====================================================================== 
     28.05.2008 09:12:15                                                        

     jcouchdb    
     couchdb driver offering typed JSON conversion
                   
     shelmberger                                                                
     ====================================================================== -->
<project name="jcouchdb" default="jar">

    <property file="build.properties" />

    <property name="project.sources" location="src" />
    <property name="project.test.sources" location="test" />
    <property name="project.build" location="bin" />
    <property name="project.classes" location="${project.build}" />
    <property name="project.libs" location="lib" />

    <property name="project.reports" location="reports" />

    <description>
            couchdb driver offering typed JSON conversion
    </description>

    <target name="clean">
        <delete dir="${project.build}" />
    </target>

    <target name="mrproper" depends="clean">
        <delete>
            <fileset dir="${project.libs}">
                <include name="**/*.jar"/>
            </fileset>
        </delete>
    </target>

    <target name="init">
        <mkdir dir="${project.classes}" />

        <path id="compile.path">
            <fileset dir="${project.libs}/compile">
                <include name="*.jar" />
            </fileset>
        </path>

        <path id="test.path">
            <fileset dir="${project.libs}/test">
                <include name="*.jar" />
            </fileset>
            <path refid="compile.path" />
            <path location="${project.classes}" />
        </path>
    </target>

    <target name="compile" depends="init">
        <javac srcdir="${project.sources}" destdir="${project.classes}" source="1.5" target="1.5" debug="true" optimize="true" classpathref="compile.path" />

        <copy todir="${project.classes}">
            <fileset dir="${project.sources}">
                <include name="**/*.properties" />
                <include name="**/*.xml" />
            </fileset>
        </copy>
    </target>

    <target name="jar" depends="compile" description="Build jar file">
        <jar destfile="${project.build}/${ant.project.name}-${project.version}.jar">
            <metainf dir="${basedir}/res/META-INF" includes="**/*"/>
            <fileset dir="${project.classes}" includes="**/*" excludes="log4j.properties,**/*.jar" />
        </jar>
    </target>

    <target name="copy" depends="jar" description="copy jar file to ffcouch">
        <delete>
            <fileset dir="${basedir}/../ffcouch/WebContent/WEB-INF/lib/" includes="${ant.project.name}-*.jar"/>
        </delete> 
        <copy todir="${basedir}/../ffcouch/WebContent/WEB-INF/lib/">
            <fileset dir="${project.build}" includes="${ant.project.name}-${project.version}.jar"/>
        </copy>
    </target>
    
    <target name="test" depends="clean,compile" description="run unit tests">

        <mkdir dir="${project.reports}" />

        <javac srcdir="${project.test.sources}" destdir="${project.classes}" source="1.5" target="1.5" debug="true" optimize="true" classpathref="test.path" />

        <junit printsummary="yes" haltonfailure="yes">
            <classpath refid="test.path" />

            <formatter type="plain" />

            <batchtest fork="yes" todir="${project.reports}">
                <fileset dir="${project.test.sources}">
                    <include name="**/*TestCase.java" />
                </fileset>
            </batchtest>
        </junit>
    </target><commit_msg>include depedencies in source zip<commit_after><?xml version="1.0" encoding="UTF-8"?>
<!-- ====================================================================== 
     28.05.2008 09:12:15                                                        

     jcouchdb    
     couchdb driver offering typed JSON conversion
                   
     shelmberger                                                                
     ====================================================================== -->
<project name="jcouchdb" default="dist">

    <property file="build.properties" />

    <property name="project.sources" location="src" />
    <property name="project.test.sources" location="test" />
    <property name="project.build" location="bin" />
    <property name="project.classes" location="${project.build}" />
    <property name="project.libs" location="lib" />

    <property name="project.reports" location="reports" />

    <description>
            couchdb driver offering typed JSON conversion
    </description>

    <target name="clean">
        <delete dir="${project.build}" />
    </target>

    <target name="mrproper" depends="clean">
        <delete>
            <fileset dir="${project.libs}">
                <include name="**/*.jar"/>
            </fileset>
        </delete>
    </target>

    <target name="init">
        <mkdir dir="${project.classes}" />

        <path id="compile.path">
            <fileset dir="${project.libs}/compile">
                <include name="*.jar" />
            </fileset>
        </path>

        <path id="test.path">
            <fileset dir="${project.libs}/test">
                <include name="*.jar" />
            </fileset>
            <path refid="compile.path" />
            <path location="${project.classes}" />
        </path>
    </target>

    <target name="compile" depends="init">
        <javac srcdir="${project.sources}" destdir="${project.classes}" source="1.5" target="1.5" debug="true" optimize="true" classpathref="compile.path" />

        <copy todir="${project.classes}">
            <fileset dir="${project.sources}">
                <include name="**/*.properties" />
                <include name="**/*.xml" />
            </fileset>
        </copy>
    </target>

    <target name="dist" depends="compile" description="Create distribution files">
        <jar destfile="${project.build}/${ant.project.name}-${project.version}.jar">
            <fileset dir="${project.classes}" includes="**/*" excludes="log4j.properties,**/*.jar" />
        </jar>

        <zip destfile="${project.build}/${ant.project.name}-${project.version}-src.zip">
            <zipfileset prefix="${ant.project.name}-${project.version}/" dir="${basedir}">
                <include name="**/*"/>
                <exclude name="bin/**/*"/>
            </zipfileset>
        </zip>
    </target>
    
    <target name="test" depends="clean,compile" description="run unit tests">

        <mkdir dir="${project.reports}" />

        <javac srcdir="${project.test.sources}" destdir="${project.classes}" source="1.5" target="1.5" debug="true" optimize="true" classpathref="test.path" />

        <junit printsummary="yes" haltonfailure="yes">
            <classpath refid="test.path" />

            <formatter type="plain" />

            <batchtest fork="yes" todir="${project.reports}">
                <fileset dir="${project.test.sources}">
                    <include name="**/*TestCase.java" />
                </fileset>
            </batchtest>
        </junit>
    </target>
{'fraction_non_alphanumeric': 0.21391112337841567, 'fraction_numerical': 0.0071763731714049135, 'mean_word_length': 2.1481320590790616, 'pattern_counts': {'":': 0, '<': 146, '<?xml version=': 2, '>': 146, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1133351', 'n_tokens_mistral': 2006, 'n_tokens_neox': 1871, 'n_words': 347}