<commit_before><?xml version="1.0" encoding="UTF-8"?>

<!--
    | Exhibit 3.0 build tasks
     -->

<project name="exhibit3" basedir=".">

  <property name="tools" value="tools"/>
  <property name="src" value="src"/>
  <property name="tests" value="tests"/>
  <property name="lib" value="lib"/>
  <property name="build" value="build"/>
  <property name="docs" value="${build}/docs"/>
  <property name="demos" value="${build}/demos"/>
  <property name="bundle" value="${build}/bundle"/>
  <property name="node" value="${build}/node"/>
  <property name="demosSrc" value="demos"/>
  <property name="testsOutput" value="${build}/tests"/>
  <property name="instrument" value="${build}/instrument"/>
  <property name="coverage" value="${build}/coverage"/>
  <property name="dist" value="dist"/>

  <property name="modules" value=""/>
  <property name="lintfile" value=""/>

  <property name="jscoverage.dir" value="/usr/local/bin"/>
  <property name="jscoverage.port" value="9876"/>
  <property file="local.build.properties"/>

  <condition property="jscoverage.exists">
    <and>
      <resourceexists>
        <file file="${jscoverage.dir}/jscoverage-server"/>
      </resourceexists>
      <resourceexists>
        <file file="${jscoverage.dir}/jscoverage"/>
      </resourceexists>
    </and>
  </condition>

  <condition property="jscoverage.report.exists">
    <resourceexists>
      <file file="${lib}/jscoverage-report.js"/>
    </resourceexists>
  </condition>

  <taskdef
     name="yui-compressor"
     classname="net.noha.tools.ant.yuicompressor.tasks.YuiCompressorTask"
     classpath="${tools}/yuicompressor-ant/yui-compressor-ant-task.jar;${tools}/yuicompressor/yuicompressor.jar"
     />

  <taskdef
     name="jsdoctoolkit"
     classname="uk.co.darrenhurley.ant.tasks.JsDocToolkit"
     classpath="${tools}/jsdoc-toolkit-ant/jsdoc-toolkit-ant-task.jar;${tools}/rhino/js.jar"
     />

  <taskdef
     name="jslint"
     classname="com.googlecode.jslint4java.ant.JSLintTask"
     classpath="${tools}/jslint4java/jslint4java.jar"
     />





  <!-- Code compressor -->
  <target name="node" description="Combine source files as a Node module">
    <mkdir dir="${node}"/>

    <concat destfile="${node}/exhibit-api.js" force="no">
      <filelist dir="${src}/"
                files="node/exhibit.js"/>
      <filelist dir="${src}/"
                files="scripts/util/util.js"/>
      <fileset dir="${src}/">
        <exclude name="lib/*.js"/>
        <exclude name="exhibit-api.js"/>
        <exclude name="scripts/util/util.js"/>
        <include name="scripts/util/*.js"/>
        <include name="scripts/data/*.js"/>
        <include name="scripts/ui/*.js"/>
      </fileset>
      <filelist dir="${src}/"
                files="node/exhibit-post.js"/>
    </concat>
  </target>




  <!-- Code compressor -->
  <target name="bundle" description="Combine source files in the right order">
    <mkdir dir="${bundle}"/>

    <concat destfile="${bundle}/exhibit-scripted-bundle.js" force="no">
      <filelist dir="${src}/"
                files="exhibit-api.js"/>
      <filelist dir="${src}/"
                files="scripts/util/util.js"/>
      <fileset dir="${src}/">
        <exclude name="images/*"/>
        <exclude name="styles/*"/>
        <exclude name="extensions/*"/>
        <exclude name="locales/**/*"/>
        <exclude name="lib/*.js"/>
        <exclude name="scripts/node/*.js"/>
        <exclude name="exhibit-api.js"/>
        <exclude name="scripts/util/util.js"/>
        <include name="**/*.js"/>
      </fileset>
    </concat>
  </target>




  <!-- Code compressor -->
  <target name="compress" depends="bundle" description="Compress source files">
    <mkdir dir="${dist}"/>

    <yui-compressor
       munge="true"
       fromdir="${bundle}/"
       todir="${dist}/">
      <include name="*.js"/>
    </yui-compressor>
  </target>




  <!-- Demo builder -->
  <target name="demos" description="Build demos">
    <copy todir="${demos}">
      <fileset dir="${demosSrc}"/>
    </copy>
    <copy todir="${demos}/src">
      <fileset dir="${src}"/>
    </copy>
  </target>
<commit_msg>amend build target to compile CSS as well<commit_after><?xml version="1.0" encoding="UTF-8"?>

<!--
    | Exhibit 3.0 build tasks
     -->

<project name="exhibit3" basedir=".">

  <property name="tools" value="tools"/>
  <property name="src" value="src"/>
  <property name="tests" value="tests"/>
  <property name="lib" value="lib"/>
  <property name="build" value="build"/>
  <property name="docs" value="${build}/docs"/>
  <property name="demos" value="${build}/demos"/>
  <property name="bundle" value="${build}/bundle"/>
  <property name="node" value="${build}/node"/>
  <property name="demosSrc" value="demos"/>
  <property name="testsOutput" value="${build}/tests"/>
  <property name="instrument" value="${build}/instrument"/>
  <property name="coverage" value="${build}/coverage"/>
  <property name="dist" value="dist"/>

  <property name="modules" value=""/>
  <property name="lintfile" value=""/>

  <property name="jscoverage.dir" value="/usr/local/bin"/>
  <property name="jscoverage.port" value="9876"/>
  <property file="local.build.properties"/>

  <condition property="jscoverage.exists">
    <and>
      <resourceexists>
        <file file="${jscoverage.dir}/jscoverage-server"/>
      </resourceexists>
      <resourceexists>
        <file file="${jscoverage.dir}/jscoverage"/>
      </resourceexists>
    </and>
  </condition>

  <condition property="jscoverage.report.exists">
    <resourceexists>
      <file file="${lib}/jscoverage-report.js"/>
    </resourceexists>
  </condition>

  <taskdef
     name="yui-compressor"
     classname="net.noha.tools.ant.yuicompressor.tasks.YuiCompressorTask"
     classpath="${tools}/yuicompressor-ant/yui-compressor-ant-task.jar;${tools}/yuicompressor/yuicompressor.jar"
     />

  <taskdef
     name="jsdoctoolkit"
     classname="uk.co.darrenhurley.ant.tasks.JsDocToolkit"
     classpath="${tools}/jsdoc-toolkit-ant/jsdoc-toolkit-ant-task.jar;${tools}/rhino/js.jar"
     />

  <taskdef
     name="jslint"
     classname="com.googlecode.jslint4java.ant.JSLintTask"
     classpath="${tools}/jslint4java/jslint4java.jar"
     />





  <!-- Code compressor -->
  <target name="node" description="Combine source files as a Node module">
    <mkdir dir="${node}"/>

    <concat destfile="${node}/exhibit-api.js" force="no">
      <filelist dir="${src}/"
                files="node/exhibit.js"/>
      <filelist dir="${src}/"
                files="scripts/util/util.js"/>
      <fileset dir="${src}/">
        <exclude name="lib/*.js"/>
        <exclude name="exhibit-api.js"/>
        <exclude name="scripts/util/util.js"/>
        <include name="scripts/util/*.js"/>
        <include name="scripts/data/*.js"/>
        <include name="scripts/ui/*.js"/>
      </fileset>
      <filelist dir="${src}/"
                files="node/exhibit-post.js"/>
    </concat>
  </target>




  <!-- Code compressor -->
  <target name="bundle" description="Combine source files in the right order">
    <mkdir dir="${bundle}"/>

    <concat destfile="${bundle}/exhibit-scripted-bundle.js" force="no">
      <filelist dir="${src}/"
                files="exhibit-api.js"/>
      <filelist dir="${src}/"
                files="scripts/util/util.js"/>
      <fileset dir="${src}/">
        <exclude name="images/*"/>
        <exclude name="styles/*"/>
        <exclude name="extensions/**/*"/>
        <exclude name="locales/**/*"/>
        <exclude name="lib/*.js"/>
        <exclude name="scripts/node/*.js"/>
        <exclude name="exhibit-api.js"/>
        <exclude name="scripts/util/util.js"/>
        <include name="**/*.js"/>
      </fileset>
    </concat>

    <concat destfile="${bundle}/exhibit-scripted-bundle.css" force="no">
      <fileset dir="${src}/styles/">
        <include name="**/*.css"/>
      </fileset>
    </concat>
  </target>




  <!-- Code compressor -->
  <target name="compress" depends="bundle" description="Compress source files">
    <mkdir dir="${dist}"/>

    <yui-compressor
       munge="true"
       fromdir="${bundle}/"
       todir="${dist}/">
      <include name="*.js"/>
    </yui-compressor>

    <yui-compressor
       munge="true"
       fromdir="${bundle}/"
       todir="${dist}/">
      <include name="*.css"/>
    </yui-compressor>
  </target>




  <!-- Demo builder -->
  <target name="demos" description="Build demos">
    <copy todir="${demos}">
      <fileset dir="${demosSrc}"/>
    </copy>
    <copy todir="${demos}/src">
      <fileset dir="${src}"/>
    </copy>
  </target>

{'fraction_non_alphanumeric': 0.20747032813590877, 'fraction_numerical': 0.003025366534791715, 'mean_word_length': 2.931838975297347, 'pattern_counts': {'":': 0, '<': 195, '<?xml version=': 2, '>': 195, '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': '3555441', 'n_tokens_mistral': 2867, 'n_tokens_neox': 2729, 'n_words': 463}