<commit_before><?xml version="1.0" encoding="UTF-8"?>
<project default="clean" basedir="." name="mongodb-extension">
	<description>
    Build MongoDB Extension - Compile
  </description>


  <buildnumber file="build.number"/>
  <property file="build.properties"/>
  
  <property name="lib" location="source/java/libs"/>
  <property name="src" location="source/java/src"/>
  <property name="build" location="build"/>
  <property name="fld" location="${build}/flds"/>
  <property name="temp" location="temp"/>
  <property name="dist"  location="dist"/>
  
  
  <scriptdef name="replace" language="javascript">
     <attribute name="haystack" />
     <attribute name="needle" />
     <attribute name="repl" />
     <attribute name="property" />
     <![CDATA[
      var text = attributes.get("haystack");
      var needle = attributes.get("needle");
      var repl = attributes.get("repl");
      text=text.trim();

      var regex = new RegExp(needle,'g');
      text=text.replace(regex,repl);
      project.setProperty(attributes.get("property"), text);
     ]]>
  </scriptdef>

  <path id="classpath">
    <!-- use the loader project directly <pathelement location="${luceeLoader}" /> -->
    <fileset dir="${lib}">
      <include name="**/*.jar" />
    </fileset>
  </path>

  <target name="init">
    <!-- Create the time stamp -->
    <tstamp/>
    
    <delete dir="${temp}"/>
    <delete dir="${dist}"/>

    <!-- Create the build directory structure used by compile -->
    <mkdir dir="${temp}"/>
    <mkdir dir="${temp}/classes"/>
    <mkdir dir="${dist}/"/>


    <tstamp>
     <format property="NOW" pattern="yyyy-MM-dd HH:mm:ss" />
    </tstamp>
  </target>

  <target name="compile" depends="init"
        description="compile the source " >
    <!-- Compile Java source -->
    <javac srcdir="${src}" target="1.6" destdir="${temp}/classes" debug="true" debuglevel="lines,vars,source">
      <classpath refid="classpath" />
    </javac>

    <!-- Put everything in ${build} into .jar file -->
    <jar 
      jarfile="${dist}/extension/jars/mongodb-extension-${bundleversion}${build.number}.jar" basedir="${temp}/classes"  manifest="${src}/META-INF/MANIFEST.MF">
      <manifest>
        <attribute name="Bundle-Version" value="${bundleversion}${build.number}"/>
        <attribute name="Built-Date" value="${NOW}"/>
        <attribute name="Bundle-SymbolicName" value="${bundlename}"/>
      </manifest>
    </jar>
  </target>

  <target name="copyBase" depends="compile"
        description="compile the source " >

        <!-- copy the fld necessary -->
    <loadfile property="content1" srcFile="${fld}/mongodb.fld" />
    <replace haystack="${content1}" needle="{bundle-name}" repl="${bundlename}" property="content2"/>
    <replace haystack="${content2}" needle="{bundle-version}" repl="${bundleversion}${build.number}" property="content3"/>
    <echo message="${content3}" file="${dist}/extension/flds/mongodb.fld"/>

    <!-- copy the context necessary -->
    <copy todir="${dist}/extension/applications">
      <fileset dir="${build}/applications">
        <include name="**/*.*"/>
      </fileset>
    </copy>

    <!-- copy the jars necessary -->
    <copy todir="${dist}/extension/jars">
      <fileset dir="${lib}">
        <include name="**/*.jar"/>
        <exclude name="**/javax.servlet.jar"/>
        <exclude name="**/lucee.jar"/>
      </fileset>
    </copy>

  </target>






</project><commit_msg>Copy BIFs in build process to dist<commit_after><?xml version="1.0" encoding="UTF-8"?>
<project default="clean" basedir="." name="mongodb-extension">
	<description>
    Build MongoDB Extension - Compile
  </description>


  <buildnumber file="build.number"/>
  <property file="build.properties"/>
  
  <property name="lib" location="source/java/libs"/>
  <property name="src" location="source/java/src"/>
  <property name="build" location="build"/>
  <property name="fld" location="${build}/flds"/>
  <property name="temp" location="temp"/>
  <property name="dist"  location="dist"/>
  
  
  <scriptdef name="replace" language="javascript">
     <attribute name="haystack" />
     <attribute name="needle" />
     <attribute name="repl" />
     <attribute name="property" />
     <![CDATA[
      var text = attributes.get("haystack");
      var needle = attributes.get("needle");
      var repl = attributes.get("repl");
      text=text.trim();

      var regex = new RegExp(needle,'g');
      text=text.replace(regex,repl);
      project.setProperty(attributes.get("property"), text);
     ]]>
  </scriptdef>

  <path id="classpath">
    <!-- use the loader project directly <pathelement location="${luceeLoader}" /> -->
    <fileset dir="${lib}">
      <include name="**/*.jar" />
    </fileset>
  </path>

  <target name="init">
    <!-- Create the time stamp -->
    <tstamp/>
    
    <delete dir="${temp}"/>
    <delete dir="${dist}"/>

    <!-- Create the build directory structure used by compile -->
    <mkdir dir="${temp}"/>
    <mkdir dir="${temp}/classes"/>
    <mkdir dir="${dist}/"/>


    <tstamp>
     <format property="NOW" pattern="yyyy-MM-dd HH:mm:ss" />
    </tstamp>
  </target>

  <target name="compile" depends="init"
        description="compile the source " >
    <!-- Compile Java source -->
    <javac srcdir="${src}" target="1.6" destdir="${temp}/classes" debug="true" debuglevel="lines,vars,source">
      <classpath refid="classpath" />
    </javac>

    <!-- Put everything in ${build} into .jar file -->
    <jar 
      jarfile="${dist}/extension/jars/mongodb-extension-${bundleversion}${build.number}.jar" basedir="${temp}/classes"  manifest="${src}/META-INF/MANIFEST.MF">
      <manifest>
        <attribute name="Bundle-Version" value="${bundleversion}${build.number}"/>
        <attribute name="Built-Date" value="${NOW}"/>
        <attribute name="Bundle-SymbolicName" value="${bundlename}"/>
      </manifest>
    </jar>
  </target>

  <target name="copyBase" depends="compile"
        description="compile the source " >

        <!-- copy the fld necessary -->
    <loadfile property="content1" srcFile="${fld}/mongodb.fld" />
    <replace haystack="${content1}" needle="{bundle-name}" repl="${bundlename}" property="content2"/>
    <replace haystack="${content2}" needle="{bundle-version}" repl="${bundleversion}${build.number}" property="content3"/>
    <echo message="${content3}" file="${dist}/extension/flds/mongodb.fld"/>

    <!-- copy the context necessary -->
    <copy todir="${dist}/extension/applications">
      <fileset dir="${build}/applications">
        <include name="**/*.*"/>
      </fileset>
    </copy>

    <!-- copy the functions necessary -->
    <copy todir="${dist}/extension/functions">
      <fileset dir="${build}/functions">
        <include name="**/*.*"/>
      </fileset>
    </copy>

    <!-- copy the jars necessary -->
    <copy todir="${dist}/extension/jars">
      <fileset dir="${lib}">
        <include name="**/*.jar"/>
        <exclude name="**/javax.servlet.jar"/>
        <exclude name="**/lucee.jar"/>
      </fileset>
    </copy>

  </target>






</project>
{'fraction_non_alphanumeric': 0.20677966101694914, 'fraction_numerical': 0.0031073446327683617, 'mean_word_length': 3.2503001200480193, 'pattern_counts': {'":': 0, '<': 159, '<?xml version=': 2, '>': 159, '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': '1629730', 'n_tokens_mistral': 2198, 'n_tokens_neox': 2114, 'n_words': 437}