<commit_before><?xml version="1.0" encoding="ISO-8859-1"?>

<project name="jquery-email-address-munging-plugin" default="build" basedir=".">
    <property name="VERSION" value="0.2" />
    
    <property environment="env"/>
    <property name="BUILD_DIR" value="build" />
    <property name="DOCS_DIR" value="docs" />
    <property name="SOURCE_DIR" value="src" />
    <property name="YUI_COMPRESSOR" value="${env.YUI_COMPRESSOR}" />

    <target name="build" depends="clean, compile_haml, compile_scss, copy_bootstrap, bundle_javascript, compress_javascript, copy_misc_files, zip" />

    <target name="compile_haml">
        <echo>Compiling HTML Files From Haml...</echo>
        <apply executable="haml" dest="${BUILD_DIR}">
            <fileset dir="${DOCS_DIR}" includes="*.haml"/>
            <globmapper from="*.haml" to="*.htm"/>
            <srcfile/>
            <targetfile/>
        </apply>
        <echo>Haml Done</echo>
    </target>

    <target name="compile_scss">
        <echo>Compiling CSS Files From SCSS...</echo>
        <apply executable="sass" dest="${BUILD_DIR}">
            <fileset dir="${DOCS_DIR}" includes="*.scss"/>
            <globmapper from="*.scss" to="*.css"/>
            <srcfile/>
            <targetfile/>
        </apply>
        <echo>Sass Done</echo>
    </target>
    
    <target name="copy_bootstrap">
        <echo>Copying Bootstrap...</echo>
        <concat destfile="${BUILD_DIR}/bootstrap.min.css">
            <filelist dir="ext/bootstrap" files="bootstrap.min.css"/>
        </concat>
        <echo>Bootstrap Done</echo>
    </target>

    <target name="bundle_javascript">
        <echo>Bundle JavaScript Files...</echo>
        <concat destfile="${BUILD_DIR}/jquery.emailaddressmunging.js">
            <filelist dir="${SOURCE_DIR}/" files="jquery.emailaddressmunging.js"/>
        </concat><commit_msg>make things work on Windows<commit_after><?xml version="1.0" encoding="ISO-8859-1"?>

<project name="jquery-email-address-munging-plugin" default="build" basedir=".">
    <property name="VERSION" value="0.2" />
    
    <property environment="env"/>
    <property name="BUILD_DIR" value="build" />
    <property name="DOCS_DIR" value="docs" />
    <property name="SOURCE_DIR" value="src" />
    <property name="YUI_COMPRESSOR" value="${env.YUI_COMPRESSOR}" />

    <target name="build" depends="compile_haml, compile_scss, copy_bootstrap, bundle_javascript, compress_javascript, copy_misc_files, zip" />

    <target name="compile_haml">
        <echo>Compiling HTML Files From Haml...</echo>
        <apply executable="haml.bat" dest="${BUILD_DIR}" osfamily="Windows">
            <fileset dir="${DOCS_DIR}" includes="*.haml"/>
            <globmapper from="*.haml" to="*.htm"/>
            <srcfile/>
            <targetfile/>
        </apply>
        <apply executable="haml" dest="${BUILD_DIR}" osfamily="Unix">
            <fileset dir="${DOCS_DIR}" includes="*.haml"/>
            <globmapper from="*.haml" to="*.htm"/>
            <srcfile/>
            <targetfile/>
        </apply>
        <echo>Haml Done</echo>
    </target>

    <target name="compile_scss">
        <echo>Compiling CSS Files From SCSS...</echo>
        <apply executable="sass.bat" dest="${BUILD_DIR}" osfamily="Windows">
            <fileset dir="${DOCS_DIR}" includes="*.scss"/>
            <globmapper from="*.scss" to="*.css"/>
            <srcfile/>
            <targetfile/>
        </apply>
        <apply executable="sass" dest="${BUILD_DIR}" osfamily="Unix">
            <fileset dir="${DOCS_DIR}" includes="*.scss"/>
            <globmapper from="*.scss" to="*.css"/>
            <srcfile/>
            <targetfile/>
        </apply>
        <echo>Sass Done</echo>
    </target>
    
    <target name="copy_bootstrap">
        <echo>Copying Bootstrap...</echo>
        <concat destfile="${BUILD_DIR}/bootstrap.min.css">
            <filelist dir="ext/bootstrap" files="bootstrap.min.css"/>
        </concat>
        <echo>Bootstrap Done</echo>
    </target>

    <target name="bundle_javascript">
        <echo>Bundle JavaScript Files...</echo>
        <concat destfile="${BUILD_DIR}/jquery.emailaddressmunging.js">
            <filelist dir="${SOURCE_DIR}/" files="jquery.emailaddressmunging.js"/>
        </concat>
{'fraction_non_alphanumeric': 0.17928286852589642, 'fraction_numerical': 0.004218420435903445, 'mean_word_length': 2.6920415224913494, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 2, '>': 111, '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': '586844', 'n_tokens_mistral': 1315, 'n_tokens_neox': 1287, 'n_words': 234}