<commit_before><project name="Minify JavaScript/CSS files" default="usage">
    <property name="file.closurecompiler" location="${basedir}/closurecompiler/compiler.jar" />
    <property name="file.yuicompressor" location="${basedir}/yuicompressor/yuicompressor-2.4.7.jar" />
    <property name="src" location="${basedir}/src" />

    <target name="minify">
        <echo message="Minifying JavaScript files..." />
        <apply executable="java" dir="${src}" relative="true" failonerror="true" type="file" verbose="true">
            <env key="LANG" value="en_US.UTF-8" />
            <arg value="-jar" />
            <arg file="${file.closurecompiler}" />
            <arg value="--js" />
            <srcfile/>
            <arg value="--js_output_file" />
            <targetfile/>
            <fileset dir="${src}">
                <include name="**/*.js" />
                <exclude name="**/*.min.js" />
                <exclude name="node_modules/**" />
                <exclude name="bower_components/**" />
                <!-- present: exclude those *.js which has a corresponding *.min.js in same directory -->
                <present targetdir="${src}" present="srconly">
                    <mapper type="glob" from="*.js" to="*.min.js" />
                </present>
            </fileset>
            <mapper type="glob" from="*.js" to="*.min.js" />
        </apply>
        <echo message="Minifying CSS files..." />
        <apply executable="java" dir="${src}" relative="true" failonerror="true" type="file" verbose="true">
            <env key="LANG" value="en_US.UTF-8" />
            <arg value="-jar" />
            <arg file="${file.yuicompressor}" />
            <srcfile/>
            <arg line="--type css" />
            <arg line="--charset utf-8" />
            <arg value="-o" />
            <targetfile/>
            <fileset dir="${src}">
                <include name="**/*.css" />
                <exclude name="**/*.min.css" />
                <exclude name="node_modules/**" />
                <exclude name="bower_components/**" />
                <!-- present: exclude those *.css which has a corresponding *.min.css in same directory -->
                <present targetdir="${src}" present="srconly">
                    <mapper type="glob" from="*.css" to="*.min.css" />
                </present>
            </fileset>
            <mapper type="glob" from="*.css" to="*.min.css" />
        </apply>
    </target>

    <target name="usage" description=": Information on how to use this Ant script">
        <echo message="ant -Dsrc=&quot;Home directory of your source files&quot; minify" />
    </target>
</project>
<commit_msg>Speed up: applied recommened JVM options and ant parallel task<commit_after><project name="Minify JavaScript/CSS files" default="usage">
    <property name="file.closurecompiler" location="${basedir}/closurecompiler/compiler.jar" />
    <property name="file.yuicompressor" location="${basedir}/yuicompressor/yuicompressor-2.4.7.jar" />
    <property name="src" location="${basedir}/src" />

    <target name="minify">
        <echo message="Minifying JavaScript and CSS files..." />
        <parallel threadsPerProcessor="1" failonany="true">
            <apply executable="java" dir="${src}" relative="true" failonerror="true" type="file" verbose="true">
                <env key="LANG" value="en_US.UTF-8" />
                <!-- Recommended JVM command line options, see https://github.com/google/closure-compiler/wiki/FAQ#what-are-the-recommended-java-vm-command-line-options -->
                <arg value="-server" />
                <arg value="-XX:+TieredCompilation" />
                <arg value="-jar" />
                <arg file="${file.closurecompiler}" />
                <arg value="--js" />
                <srcfile/>
                <arg value="--js_output_file" />
                <targetfile/>
                <fileset dir="${src}">
                    <include name="**/*.js" />
                    <exclude name="**/*.min.js" />
                    <exclude name="node_modules/**" />
                    <exclude name="bower_components/**" />
                    <!-- present: exclude those *.js which has a corresponding *.min.js in same directory -->
                    <present targetdir="${src}" present="srconly">
                        <mapper type="glob" from="*.js" to="*.min.js" />
                    </present>
                </fileset>
                <mapper type="glob" from="*.js" to="*.min.js" />
            </apply>
            <apply executable="java" dir="${src}" relative="true" failonerror="true" type="file" verbose="true">
                <env key="LANG" value="en_US.UTF-8" />
                <arg value="-jar" />
                <arg file="${file.yuicompressor}" />
                <srcfile/>
                <arg line="--type css" />
                <arg line="--charset utf-8" />
                <arg value="-o" />
                <targetfile/>
                <fileset dir="${src}">
                    <include name="**/*.css" />
                    <exclude name="**/*.min.css" />
                    <exclude name="node_modules/**" />
                    <exclude name="bower_components/**" />
                    <!-- present: exclude those *.css which has a corresponding *.min.css in same directory -->
                    <present targetdir="${src}" present="srconly">
                        <mapper type="glob" from="*.css" to="*.min.css" />
                    </present>
                </fileset>
                <mapper type="glob" from="*.css" to="*.min.css" />
            </apply>
        </parallel>
    </target>

    <target name="usage" description=": Information on how to use this Ant script">
        <echo message="ant -Dsrc=&quot;Home directory of your source files&quot; minify" />
    </target>
</project>

{'fraction_non_alphanumeric': 0.1781383432963279, 'fraction_numerical': 0.0022203245089666953, 'mean_word_length': 1.7845934379457917, 'pattern_counts': {'":': 2, '<': 113, '<?xml version=': 0, '>': 113, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '6973123', 'n_tokens_mistral': 1667, 'n_tokens_neox': 1564, 'n_words': 348}