<commit_before><?xml version="1.0" encoding="UTF-8"?>
<project name="listo" default="compile.main">

    <!-- can be overridden at the command line with -Dversion= -->
    <property name="version" value="snapshot"/>

    <path id="compile.classpath">
        <pathelement location="lib/asm/asm-all-3.2.jar"/>
        <pathelement location="lib/google-collect/google-collect-1.0.jar"/>
        <pathelement location="lib/testng/testng-5.10-jdk15.jar"/>
        <pathelement location="lib/annotations.jar"/>
    </path>

    <taskdef name="javacn" classname="org.parboiled.ant.Javacn" classpath="lib/javacn-1.0.1.jar;lib/asm/asm-all-3.2.jar;"/>
    <taskdef resource="testngtasks" classpath="lib/testng/testng-5.10-jdk15.jar;"/>
    <taskdef name="jarjar" classname="com.tonicsystems.jarjar.JarJarTask" classpath="lib/jarjar-issue-21.jar;"/>
    <taskdef resource="proguard/ant/task.properties" classpath="lib/proguard.jar;"/>

    <target name="clean" description="Remove all generated files">
        <delete dir="build"/>
    </target>

    <target name="compile.main" description="Compile main sources">
        <mkdir dir="build/main"/>
        <javacn debug="on" destdir="build/main" source="1.5" target="1.5" encoding="utf8">
            <src location="src"/>
            <classpath refid="compile.classpath"/>
            <compilerarg line="-Xlint:all -Xlint:-serial"/>
        </javacn>
    </target>

    <target name="compile.examples" depends="compile.main" description="Compile example sources">
        <mkdir dir="build/examples"/>
        <javacn debug="on" destdir="build/examples" source="1.5" target="1.5" encoding="utf8">
            <src location="examples"/>
            <classpath refid="compile.classpath"/>
            <classpath location="build/main"/>
            <compilerarg line="-Xlint:all -Xlint:-serial"/>
        </javacn>
    </target>

    <target name="compile.tests" depends="compile.examples" description="Compile test sources">
        <mkdir dir="build/tests"/>
        <javacn debug="on" destdir="build/tests" source="1.5" target="1.5" encoding="utf8">
            <src location="test"/>
            <classpath refid="compile.classpath"/>
            <classpath location="build/main"/>
            <classpath location="build/examples"/>
            <compilerarg line="-Xlint:all -Xlint:-serial"/>
        </javacn>
        <copy toDir="build/tests">
            <fileset dir="test" includes="res/**"/>
        </copy>
    </target>

    <target name="test" depends="compile.tests" description="Run all tests">
        <testng parallel="true" suitename="All Tests" outputdir="test-output" haltonfailure="true">
            <classfileset dir="build/tests" includes="**/*Test.class"/>
            <classpath refid="compile.classpath"/>
            <classpath location="build/main"/>
            <classpath location="build/examples"/>
            <classpath location="build/tests"/>
        </testng>
    </target>

    <target name="javadoc" description="Builds javadoc">
        <mkdir dir="build/javadoc"/>
        <javadoc destdir="build/javadoc" windowtitle="parboiled ${version} API">
            <packageset dir="src" defaultexcludes="yes">
                <include name="org/parboiled/**"/>
                <exclude name="org/parboiled/asm/**"/>
                <exclude name="org/parboiled/matchers/**"/>
                <exclude name="org/parboiled/MatcherContext*"/>
            </packageset>
            <classpath refid="compile.classpath"/>
            <link href="http://java.sun.com/javase/6/docs/api"/>
        </javadoc>
    </target>

    <target name="manifest">
        <copy file="LICENSE" todir="build/manifest/META-INF"/>
        <copy file="NOTICE" todir="build/manifest/META-INF"/>
        <manifest file="build/manifest/META-INF/MANIFEST.MF">
            <attribute name="Built-By" value="${user.name}"/>
            <attribute name="Specification-Title" value="parboiled"/>
            <attribute name="Specification-Version" value="${version}"/>
            <attribute name="Specification-Vendor" value="parboiled.org"/>
            <attribute name="Implementation-Title" value="parboiled"/>
            <attribute name="Implementation-Version" value="${version}"/>
            <attribute name="Implementation-Vendor" value="parboiled.org"/>
            <attribute name="Bundle-License" value="http://www.apache.org/licenses/LICENSE-2.0.txt"/>
            <attribute name="Bundle-Version" value="${version}"/>
            <attribute name="Bundle-Description"
                       value="parboiled, a Java 1.5+ library providing a light-weight and easy-to-use, yet powerful PEG parsing facility"/>
            <attribute name="Bundle-Name" value="parboiled"/>
            <attribute name="Bundle-DocURL" value="http://www.parboiled.org"/>
            <attribute name="Bundle-Vendor" value="parboiled.org"/>
            <attribute name="Bundle-SymbolicName" value="org.parboiled"/>
        </manifest>
    </target>

    <target name="jar" depends="compile.main, manifest" description="Build main library JAR">
        <jarjar destfile="build/parboiled-${version}.full.jar" manifest="build/manifest/META-INF/MANIFEST.MF">
            <fileset dir="build/main"/>
            <fileset dir="build/manifest"/>
            <zipfileset src="lib/asm/asm-all-3.2.jar"/>
            <zipfileset src="lib/google-collect/google-collect-1.0.jar"
                        excludes="com/google/common/collect/package-info.class"/>
            <rule pattern="org.objectweb.asm.**" result="org.parboiled.asm.@1"/>
            <rule pattern="com.google.common.**" result="org.parboiled.google.@1"/>
        </jarjar>
        <proguard>
            -libraryjars "${java.home}/lib/rt.jar"
            -libraryjars "lib/annotations.jar"
            -libraryjars "lib/google-collect/jsr305.jar"
            -injars "build/parboiled-${version}.full.jar"
            -outjars "build/parboiled-${version}.jar"

            -keep public class !org.parboiled.asm.**, !org.parboiled.google.**, org.parboiled.** { public protected *; }
            -keep class org.parboiled.google.base.Predicate { *; } 

            -keepclassmembers class java.lang.ClassLoader { java.lang.Class findLoadedClass(java.lang.String); }
            -keepclassmembers class org.parboiled.google.base.FinalizableReference { void finalizeReferent(); }
            -keepclassmembers class org.parboiled.google.base.internal.Finalizer { java.lang.ref.ReferenceQueue startFinalizer(java.lang.Class, java.lang.Object); }
            -keepclassmembers enum * { public static **[] values(); public static ** valueOf(java.lang.String); }

            -dontoptimize
            -dontobfuscate
        </proguard>
    </target>

    <target name="testjar" depends="compile.tests, jar" description="Run all tests against the library jar">
        <testng verbose="2" parallel="true" suitename="All Tests" outputdir="test-output" haltonfailure="true">
            <classfileset dir="build/tests" includes="**/*Test.class">
                <exclude name="org/parboiled/transform/**"/>
                <exclude name="org/parboiled/support/ParseTreeUtilsTest.class"/>
            </classfileset>
            <classpath location="build/parboiled-${version}.jar"/>
            <classpath location="build/examples"/>
            <classpath location="build/tests"/>
            <classpath location="lib/asm/asm-util-3.2.jar"/>
        </testng>
    </target>

    <target name="jar.source" depends="manifest" description="Create a JAR with main sources">
        <zip destfile="build/parboiled-${version}-src.jar">
            <fileset dir="src"/>
            <fileset dir="build/manifest"/>
        </zip>
    </target>

    <target name="jar.examples" depends="compile.examples" description="Creates JARs for examples">
        <jar destfile="build/parboiled-${version}-examples.jar">
            <fileset dir="build/examples"/>
        </jar>
        <zip destfile="build/parboiled-${version}-examples-src.jar">
            <fileset dir="examples"/>
        </zip>
    </target>

    <target name="jar.javadoc" depends="javadoc" description="Creates a JAR containing javadocs">
        <zip destfile="build/parboiled-${version}-javadoc.jar">
            <fileset dir="build/javadoc"/>
        </zip>
    </target>

    <target name="dist" depends="clean, test, jar, jar.source, jar.javadoc"
            description="Compiles, tests and jars everything">
    </target>

    <target name="run-example-abc" depends="compile.examples" description="Run the Abc example">
        <java classname="org.parboiled.examples.abc.Main" fork="true">
            <classpath refid="compile.classpath"/>
            <classpath location="build/main"/>
            <classpath location="build/examples"/>
        </java>
    </target>

    <target name="run-example-calc" depends="compile.examples" description="Run the Calculator example">
        <java classname="org.parboiled.examples.calculator.Main" fork="true">
            <classpath refid="compile.classpath"/>
            <classpath location="build/main"/>
            <classpath location="build/examples"/>
        </java>
    </target>

    <target name="run-example-calc2" depends="compile.examples" description="Run the Calculator2 example">
        <java classname="org.parboiled.examples.calculator2.Main" fork="true">
            <classpath refid="compile.classpath"/>
            <classpath location="build/main"/>
            <classpath location="build/examples"/>
        </java>
    </target>

    <target name="run-example-calc3" depends="compile.examples" description="Run the Calculator3 example">
        <java classname="org.parboiled.examples.calculator3.Main" fork="true">
            <classpath refid="compile.classpath"/>
            <classpath location="build/main"/>
            <classpath location="build/examples"/>
        </java>
    </target>

    <target name="run-example-rpn" depends="compile.examples" description="Run the RPN example">
        <java classname="org.parboiled.examples.rpn.Main" fork="true">
            <classpath refid="compile.classpath"/>
            <classpath location="build/main"/>
            <classpath location="build/examples"/>
        </java>
    </target>

    <target name="run-example-time" depends="compile.examples" description="Run the Time example">
        <java classname="org.parboiled.examples.time.Main" fork="true">
            <classpath refid="compile.classpath"/>
            <classpath location="build/main"/>
            <classpath location="build/examples"/>
        </java>
    </target>

    <target name="run-example-java" depends="compile.examples" description="Run the Java example">
        <java classname="org.parboiled.examples.java.Main" fork="true">
            <classpath refid="compile.classpath"/>
            <classpath location="build/main"/>
            <classpath location="build/examples"/>
        </java>
    </target>


</project><commit_msg>Fixed proguard build step on non-Windows platforms<commit_after><?xml version="1.0" encoding="UTF-8"?>
<project name="listo" default="compile.main">

    <!-- can be overridden at the command line with -Dversion= -->
    <property name="version" value="snapshot"/>

    <path id="compile.classpath">
        <pathelement location="lib/asm/asm-all-3.2.jar"/>
        <pathelement location="lib/google-collect/google-collect-1.0.jar"/>
        <pathelement location="lib/testng/testng-5.10-jdk15.jar"/>
        <pathelement location="lib/annotations.jar"/>
    </path>

    <taskdef name="javacn" classname="org.parboiled.ant.Javacn"
             classpath="lib/javacn-1.0.1.jar;lib/asm/asm-all-3.2.jar;"/>
    <taskdef resource="testngtasks" classpath="lib/testng/testng-5.10-jdk15.jar;"/>
    <taskdef name="jarjar" classname="com.tonicsystems.jarjar.JarJarTask" classpath="lib/jarjar-issue-21.jar;"/>
    <taskdef resource="proguard/ant/task.properties" classpath="lib/proguard.jar;"/>

    <target name="clean" description="Remove all generated files">
        <delete dir="build"/>
    </target>

    <target name="compile.main" description="Compile main sources">
        <mkdir dir="build/main"/>
        <javacn debug="on" destdir="build/main" source="1.5" target="1.5" encoding="utf8">
            <src location="src"/>
            <classpath refid="compile.classpath"/>
            <compilerarg line="-Xlint:all -Xlint:-serial"/>
        </javacn>
    </target>

    <target name="compile.examples" depends="compile.main" description="Compile example sources">
        <mkdir dir="build/examples"/>
        <javacn debug="on" destdir="build/examples" source="1.5" target="1.5" encoding="utf8">
            <src location="examples"/>
            <classpath refid="compile.classpath"/>
            <classpath location="build/main"/>
            <compilerarg line="-Xlint:all -Xlint:-serial"/>
        </javacn>
    </target>

    <target name="compile.tests" depends="compile.examples" description="Compile test sources">
        <mkdir dir="build/tests"/>
        <javacn debug="on" destdir="build/tests" source="1.5" target="1.5" encoding="utf8">
            <src location="test"/>
            <classpath refid="compile.classpath"/>
            <classpath location="build/main"/>
            <classpath location="build/examples"/>
            <compilerarg line="-Xlint:all -Xlint:-serial"/>
        </javacn>
        <copy toDir="build/tests">
            <fileset dir="test" includes="res/**"/>
        </copy>
    </target>

    <target name="test" depends="compile.tests" description="Run all tests">
        <testng parallel="true" suitename="All Tests" outputdir="test-output" haltonfailure="true">
            <classfileset dir="build/tests" includes="**/*Test.class"/>
            <classpath refid="compile.classpath"/>
            <classpath location="build/main"/>
            <classpath location="build/examples"/>
            <classpath location="build/tests"/>
        </testng>
    </target>

    <target name="javadoc" description="Builds javadoc">
        <mkdir dir="build/javadoc"/>
        <javadoc destdir="build/javadoc" windowtitle="parboiled ${version} API">
            <packageset dir="src" defaultexcludes="yes">
                <include name="org/parboiled/**"/>
                <exclude name="org/parboiled/asm/**"/>
                <exclude name="org/parboiled/matchers/**"/>
                <exclude name="org/parboiled/MatcherContext*"/>
            </packageset>
            <classpath refid="compile.classpath"/>
            <link href="http://java.sun.com/javase/6/docs/api"/>
        </javadoc>
    </target>

    <target name="manifest">
        <copy file="LICENSE" todir="build/manifest/META-INF"/>
        <copy file="NOTICE" todir="build/manifest/META-INF"/>
        <manifest file="build/manifest/META-INF/MANIFEST.MF">
            <attribute name="Built-By" value="${user.name}"/>
            <attribute name="Specification-Title" value="parboiled"/>
            <attribute name="Specification-Version" value="${version}"/>
            <attribute name="Specification-Vendor" value="parboiled.org"/>
            <attribute name="Implementation-Title" value="parboiled"/>
            <attribute name="Implementation-Version" value="${version}"/>
            <attribute name="Implementation-Vendor" value="parboiled.org"/>
            <attribute name="Bundle-License" value="http://www.apache.org/licenses/LICENSE-2.0.txt"/>
            <attribute name="Bundle-Version" value="${version}"/>
            <attribute name="Bundle-Description"
                       value="parboiled, a Java 1.5+ library providing a light-weight and easy-to-use, yet powerful PEG parsing facility"/>
            <attribute name="Bundle-Name" value="parboiled"/>
            <attribute name="Bundle-DocURL" value="http://www.parboiled.org"/>
            <attribute name="Bundle-Vendor" value="parboiled.org"/>
            <attribute name="Bundle-SymbolicName" value="org.parboiled"/>
        </manifest>
    </target>

    <target name="jar" depends="compile.main, manifest" description="Build main library JAR">
        <jarjar destfile="build/parboiled-${version}.full.jar" manifest="build/manifest/META-INF/MANIFEST.MF">
            <fileset dir="build/main"/>
            <fileset dir="build/manifest"/>
            <zipfileset src="lib/asm/asm-all-3.2.jar"/>
            <zipfileset src="lib/google-collect/google-collect-1.0.jar"
                        excludes="com/google/common/collect/package-info.class"/>
            <rule pattern="org.objectweb.asm.**" result="org.parboiled.asm.@1"/>
            <rule pattern="com.google.common.**" result="org.parboiled.google.@1"/>
        </jarjar>

        <!-- default Java 1.5 runtime JARs, change if you have a special setup -->

        <!-- WINDOWS -->
        <condition property="jdk.lib.1.5" value="${java.home}/lib/rt.jar">
            <os family="windows"/>
        </condition>

        <!-- OSX -->
        <condition property="jdk.lib.1.5"
                   value="/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Classes/classes.jar">
            <and>
                <os family="mac"/>
                <os family="unix"/>
            </and>
        </condition>

        <!-- UNIX -->
        <condition property="jdk.lib.1.5" value="${java.home}/lib/rt.jar">
            <and>
                <not>
                    <os family="mac"/>
                </not>
                <os family="unix"/>
            </and>
        </condition>
        
        <proguard>
            -libraryjars "${jdk.lib.1.5}"
            -libraryjars "lib/annotations.jar"
            -libraryjars "lib/google-collect/jsr305.jar"
            -injars "build/parboiled-${version}.full.jar"
            -outjars "build/parboiled-${version}.jar"

            -keep public class !org.parboiled.asm.**, !org.parboiled.google.**, org.parboiled.** { public protected *; }
            -keep class org.parboiled.google.base.Predicate { *; }

            -keepclassmembers class java.lang.ClassLoader { java.lang.Class findLoadedClass(java.lang.String); }
            -keepclassmembers class org.parboiled.google.base.FinalizableReference { void finalizeReferent(); }
            -keepclassmembers class org.parboiled.google.base.internal.Finalizer { java.lang.ref.ReferenceQueue
            startFinalizer(java.lang.Class, java.lang.Object); }
            -keepclassmembers enum * { public static **[] values(); public static ** valueOf(java.lang.String); }

            -dontoptimize
            -dontobfuscate
        </proguard>
    </target>

    <target name="testjar" depends="compile.tests, jar" description="Run all tests against the library jar">
        <testng verbose="2" parallel="true" suitename="All Tests" outputdir="test-output" haltonfailure="true">
            <classfileset dir="build/tests" includes="**/*Test.class">
                <exclude name="org/parboiled/transform/**"/>
                <exclude name="org/parboiled/support/ParseTreeUtilsTest.class"/>
            </classfileset>
            <classpath location="build/parboiled-${version}.jar"/>
            <classpath location="build/examples"/>
            <classpath location="build/tests"/>
            <classpath location="lib/asm/asm-util-3.2.jar"/>
        </testng>
    </target>

    <target name="jar.source" depends="manifest" description="Create a JAR with main sources">
        <zip destfile="build/parboiled-${version}-src.jar">
            <fileset dir="src"/>
            <fileset dir="build/manifest"/>
        </zip>
    </target>

    <target name="jar.examples" depends="compile.examples" description="Creates JARs for examples">
        <jar destfile="build/parboiled-${version}-examples.jar">
            <fileset dir="build/examples"/>
        </jar>
        <zip destfile="build/parboiled-${version}-examples-src.jar">
            <fileset dir="examples"/>
        </zip>
    </target>

    <target name="jar.javadoc" depends="javadoc" description="Creates a JAR containing javadocs">
        <zip destfile="build/parboiled-${version}-javadoc.jar">
            <fileset dir="build/javadoc"/>
        </zip>
    </target>

    <target name="dist" depends="clean, test, jar, jar.source, jar.javadoc"
            description="Compiles, tests and jars everything">
    </target>

    <target name="run-example-abc" depends="compile.examples" description="Run the Abc example">
        <java classname="org.parboiled.examples.abc.Main" fork="true">
            <classpath refid="compile.classpath"/>
            <classpath location="build/main"/>
            <classpath location="build/examples"/>
        </java>
    </target>

    <target name="run-example-calc" depends="compile.examples" description="Run the Calculator example">
        <java classname="org.parboiled.examples.calculator.Main" fork="true">
            <classpath refid="compile.classpath"/>
            <classpath location="build/main"/>
            <classpath location="build/examples"/>
        </java>
    </target>

    <target name="run-example-calc2" depends="compile.examples" description="Run the Calculator2 example">
        <java classname="org.parboiled.examples.calculator2.Main" fork="true">
            <classpath refid="compile.classpath"/>
            <classpath location="build/main"/>
            <classpath location="build/examples"/>
        </java>
    </target>

    <target name="run-example-calc3" depends="compile.examples" description="Run the Calculator3 example">
        <java classname="org.parboiled.examples.calculator3.Main" fork="true">
            <classpath refid="compile.classpath"/>
            <classpath location="build/main"/>
            <classpath location="build/examples"/>
        </java>
    </target>

    <target name="run-example-rpn" depends="compile.examples" description="Run the RPN example">
        <java classname="org.parboiled.examples.rpn.Main" fork="true">
            <classpath refid="compile.classpath"/>
            <classpath location="build/main"/>
            <classpath location="build/examples"/>
        </java>
    </target>

    <target name="run-example-time" depends="compile.examples" description="Run the Time example">
        <java classname="org.parboiled.examples.time.Main" fork="true">
            <classpath refid="compile.classpath"/>
            <classpath location="build/main"/>
            <classpath location="build/examples"/>
        </java>
    </target>

    <target name="run-example-java" depends="compile.examples" description="Run the Java example">
        <java classname="org.parboiled.examples.java.Main" fork="true">
            <classpath refid="compile.classpath"/>
            <classpath location="build/main"/>
            <classpath location="build/examples"/>
        </java>
    </target>


</project>
{'fraction_non_alphanumeric': 0.16004202416389424, 'fraction_numerical': 0.005953423218350551, 'mean_word_length': 2.6135716545397027, 'pattern_counts': {'":': 0, '<': 392, '<?xml version=': 2, '>': 392, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '1390265', 'n_tokens_mistral': 6738, 'n_tokens_neox': 6462, 'n_words': 1160}