<commit_before><project name="spoofax-jsglr" default="jar">
	
    <property name="lib.dir" value="lib" />
    <property name="build.dir" value="target" />
    <property name="src.dir" value="src" />

    <property file="version.properties" />

    <path id="lib.path.id">
        <fileset dir="${lib.dir}" />
    </path>

	<target name="download" description="--> download external dependencies">
		<get src="http://search.maven.org/remotecontent?filepath=junit/junit/4.10/junit-4.10.jar" dest="lib/" usetimestamp="true" />
	</target>
		
    <target name="compile" description="--> compile the project">
        <mkdir dir="${build.dir}/classes" />
        <javac srcdir="${src.dir}" destdir="${build.dir}/classes" classpathref="lib.path.id">
            <exclude name="org/spoofax/client/JSGLREntryPoint.java" />
            <exclude name="org/spoofax/jsglr/shared/RemoteParseTableService.java" />
            <exclude name="org/spoofax/jsglr/shared/RemoteParseTableServiceAsync.java" />
            <exclude name="org/spoofax/jsglr/server/RemoteParseTableServiceImpl.java" />
        </javac>
    </target>

   <target name="install" depends="jar" description="--> install the project into prefix">
        <mkdir dir="${prefix}/bin" />
        <mkdir dir="${prefix}/share/java" />

        <copy todir="${prefix}/share/java">
            <fileset dir="${lib.dir}/" />
        </copy>

        <copy file="${build.dir}/${jarname}-${version}.jar" todir="${prefix}/share/java" />

        <copy file="jsglr" todir="${prefix}/bin" />
        <chmod perm="a+x" file="${prefix}/bin/jsglr" />
   </target>

   <target name="dist" description="--> create the dist tarball">
       <tar destfile="${build.dir}/${jarname}-${version}.tar">
           <tarfileset prefix="${jarname}-${version}/" dir="." includes="src/"/>
           <!-- THIS IS 3VIL! Should be removed once the deps are properly packaged -->
           <tarfileset prefix="${jarname}-${version}/" dir="." includes="lib/"/>
           <tarfileset prefix="${jarname}-${version}/" dir=".">
             <include name="*.xml" />
             <include name="*.properties" />
             <include name="build/*.xml" />
             <include name="build/*.properties" />
             <include name="jsglr" />
             <include name="jsglr-prof" />
           </tarfileset>
           <tarfileset prefix="${jarname}-${version}/" dir="." includes="INSTALL README AUTHORS LICENSE"/>
           <tarfileset prefix="${jarname}-${version}/" dir="." includes="META-INF/" />
       </tar>
       <gzip zipfile="${build.dir}/${jarname}-${version}.tar.gz" src="${build.dir}/${jarname}-${version}.tar"/>
   </target>

   <target name="jar" depends="compile">
        <jar destfile="${build.dir}/${jarname}-${version}.jar" basedir="${build.dir}/classes" />
    </target>

   <target name="check" depends="jar"/>
   <target name="bundle-ctree" />

</project><commit_msg>Added bindist target, where javadoc and source code is included into a tarball along with the compiled jars.<commit_after><project name="spoofax-jsglr" default="jar">
	
    <property name="lib.dir" value="lib" />
    <property name="build.dir" value="target" />
    <property name="src.dir" value="src" />

    <property file="version.properties" />

    <path id="lib.path.id">
        <fileset dir="${lib.dir}" />
    </path>

	<target name="download" description="--> download external dependencies">
		<get src="http://search.maven.org/remotecontent?filepath=junit/junit/4.10/junit-4.10.jar" dest="lib/" usetimestamp="true" />
	</target>
		
    <target name="compile" description="--> compile the project">
        <mkdir dir="${build.dir}/classes" />
        <javac srcdir="${src.dir}" destdir="${build.dir}/classes" classpathref="lib.path.id">
            <exclude name="org/spoofax/client/JSGLREntryPoint.java" />
            <exclude name="org/spoofax/jsglr/shared/RemoteParseTableService.java" />
            <exclude name="org/spoofax/jsglr/shared/RemoteParseTableServiceAsync.java" />
            <exclude name="org/spoofax/jsglr/server/RemoteParseTableServiceImpl.java" />
        </javac>
    </target>

   <target name="install" depends="jar" description="--> install the project into prefix">
        <mkdir dir="${prefix}/bin" />
        <mkdir dir="${prefix}/share/java" />

        <copy todir="${prefix}/share/java">
            <fileset dir="${lib.dir}/" />
        </copy>

        <copy file="${build.dir}/${jarname}-${version}.jar" todir="${prefix}/share/java" />

        <copy file="jsglr" todir="${prefix}/bin" />
        <chmod perm="a+x" file="${prefix}/bin/jsglr" />
   </target>

   <target name="dist" description="--> create the source dist tarball">
       <tar destfile="${build.dir}/${jarname}-${version}.tar">
           <tarfileset prefix="${jarname}-${version}/" dir="." includes="src/"/>
           <!-- THIS IS 3VIL! Should be removed once the deps are properly packaged -->
           <tarfileset prefix="${jarname}-${version}/" dir="." includes="lib/"/>
           <tarfileset prefix="${jarname}-${version}/" dir=".">
             <include name="*.xml" />
             <include name="*.properties" />
             <include name="build/*.xml" />
             <include name="build/*.properties" />
             <include name="jsglr" />
             <include name="jsglr-prof" />
           </tarfileset>
           <tarfileset prefix="${jarname}-${version}/" dir="." includes="INSTALL README AUTHORS LICENSE"/>
           <tarfileset prefix="${jarname}-${version}/" dir="." includes="META-INF/" />
       </tar>
       <gzip zipfile="${build.dir}/${jarname}-${version}.tar.gz" src="${build.dir}/${jarname}-${version}.tar"/>
   </target>

  <target name="bindist" depends="dist,jar" description="--> create the binary dist tarball">
       <javadoc sourcepath="src/" destdir="target/doc"/>
       <jar destfile="${build.dir}/${jarname}-${version}-javadoc.jar" basedir="${build.dir}/doc" />
       <jar destfile="${build.dir}/${jarname}-${version}-sources.jar" basedir="src/" />
       <tar destfile="${build.dir}/${jarname}-${version}-bin.tar">
           <tarfileset prefix="${jarname}-${version}/" dir="${build.dir}" includes="${jarname}-${version}.jar"/>
           <tarfileset prefix="${jarname}-${version}/" dir="${build.dir}" includes="${jarname}-${version}-sources.jar"/>
           <tarfileset prefix="${jarname}-${version}/" dir="${build.dir}" includes="${jarname}-${version}-javadoc.jar"/>
           <tarfileset prefix="${jarname}-${version}/" dir="." includes="INSTALL AUTHORS README LICENSE"/>
       </tar>
       <gzip zipfile="${build.dir}/${jarname}-${version}-bin.tar.gz" src="${build.dir}/${jarname}-${version}-bin.tar"/>
   </target>

   <target name="jar" depends="compile">
        <jar destfile="${build.dir}/${jarname}-${version}.jar" basedir="${build.dir}/classes" />
    </target>

   <target name="check" depends="jar"/>
   <target name="bundle-ctree" />

</project>
{'fraction_non_alphanumeric': 0.21393607831845668, 'fraction_numerical': 0.0020155485171321624, 'mean_word_length': 3.022582513028373, 'pattern_counts': {'":': 0, '<': 123, '<?xml version=': 0, '>': 132, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7367990', 'n_tokens_mistral': 2150, 'n_tokens_neox': 2075, 'n_words': 369}