<commit_before><?xml version="1.0"?>
<!--/*******************************************************************************
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
* which accompanies this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
* and the Eclipse Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
*   Ant naming conventions:
*   - regardless of the actual OS platform,'/' is the directory separator
*     (Ant will convert as appropriate).
*   - multi-word properties use periods '.'
*   - multi-word targets use hyphens '-'
*   - multi-word macros use underscores '_'
*   - multi-word macro attributes are concatinated
*     e.g. 'runpathref'
*   - multi-word tasks (taskdef) names are concatinated
*     e.g. 'validateconnection'
*   - OS environment variables are in ALLCAPS and have 'env' as a prefix
*     e.g. ${env.XXX}.
*   - Ant properties are lower case.
*
* Contributors:
*     egwin - initial API and implementation
#******************************************************************************/-->
<project
  name="eclipselink.utils.dbws.test"
  default="test"
  basedir="."
  >
  <condition property="is.java.version.16">
      <equals arg1="${ant.java.version}" arg2="1.6"/>
  </condition>
  <fail
    message="eclipselink.utils.dbws.test requires Java version 1.6 or higher. You are currently using Java version ${ant.java.version}."
    unless="is.java.version.16"
  />
  <!-- OS environment variables have 'env' as a prefix -->
  <property
    environment="env"
  />
  <!-- local property overrides -->
  <property
    file="${user.home}/build.properties"
  />
  <!-- local testing properties overrides -->
  <property
    file="${user.home}/test.properties"
  />
  <!-- find out where this build.xml file is -->
  <dirname
    property="eclipselink.utils.dbws.test"
    file="${ant.file.eclipselink.utils.dbws.test}"
  />
  <!-- properties checked into SVN -->
  <property
    file="${eclipselink.utils.dbws.test}/build.properties"
  />
  <!-- testing properties checked into SVN -->
  <property
    file="${eclipselink.utils.dbws.test}/test.properties"
  />
  <!-- Classpath used for compiling tests. -->
  <path
    id="compile.path"
    >
    <pathelement
      path="${junit.lib}"
    />
    <pathelement
      path="${eclipselink.jar.name}"
    />
    <pathelement
      path="${eclipselink.plugins}/${asm}"
    />
    <pathelement
      path="${eclipselink.utils.plugins}/${eclipselink.utils.dbws.depend}"
    />
    <pathelement
      path="${eclipselink.utils.dbws}/${eclipselink.utils.dbws.jlib}"
    />
    <fileset
      dir="${eclipselink.plugins}"
      includes="${eclipselink.dbws.core.depend}"
    />
  </path>
  <presetdef name="javac">
    <javac
      debug="${javac.debug}"
      debuglevel="${javac.debuglevel}"
      optimize="${javac.optimize}"
      source="1.6"
      deprecation="${javac.deprecation}"
      failonerror="true"
      includes="**/*.java"
      memoryMaximumSize="512m"
    />
  </presetdef>
  <presetdef
    name="DeleteDirQuietly"
    >
    <delete
      dir="_tmp_"
      quiet="true"
      failonerror="false"
    />
  </presetdef>
  <presetdef
    name="DeleteFileQuietly"
    >
    <delete
      file="_tmp_"
      quiet="true"
      failonerror="false"
    />
  </presetdef>
  <scriptdef
    name="toLower"
    language="javascript"
    manager="javax"
    >
    <attribute name="input"/>
    <attribute name="property"/>
    <![CDATA[
      // getting the value
      input = attributes.get("input");
      property = attributes.get("property");
      if (input == null || property == null) {
         self.fail("both 'input' and 'property' attributes must be set.");
      }
      lowercaseInput = input.toLowerCase();
      // put result into property - NB overwrites previous value! Not safe for <parallel> tasks
      project.setProperty(attributes.get("property"), lowercaseInput);
    ]]>
  </scriptdef>
  <!-- slightly complex way to do if-then-else in Ant without additional macros -->
  <target
    name="should-compile-common"
    depends="compile-common,dont-compile-common"
  />
  <target
    name="compile-common"
    unless="eclipselink.utils.dbws.common.available"
    depends="test-common-available"
    >
    <javac
      srcdir="${eclipselink.utils.dbws.test}/${src.dir}"
      destdir="${eclipselink.utils.dbws.test}/${classes.dir}"<commit_msg>force creation of dir if not existent.<commit_after><?xml version="1.0"?>
<!--/*******************************************************************************
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
* which accompanies this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
* and the Eclipse Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
*   Ant naming conventions:
*   - regardless of the actual OS platform,'/' is the directory separator
*     (Ant will convert as appropriate).
*   - multi-word properties use periods '.'
*   - multi-word targets use hyphens '-'
*   - multi-word macros use underscores '_'
*   - multi-word macro attributes are concatinated
*     e.g. 'runpathref'
*   - multi-word tasks (taskdef) names are concatinated
*     e.g. 'validateconnection'
*   - OS environment variables are in ALLCAPS and have 'env' as a prefix
*     e.g. ${env.XXX}.
*   - Ant properties are lower case.
*
* Contributors:
*     egwin - initial API and implementation
#******************************************************************************/-->
<project
  name="eclipselink.utils.dbws.test"
  default="test"
  basedir="."
  >
  <condition property="is.java.version.16">
      <equals arg1="${ant.java.version}" arg2="1.6"/>
  </condition>
  <fail
    message="eclipselink.utils.dbws.test requires Java version 1.6 or higher. You are currently using Java version ${ant.java.version}."
    unless="is.java.version.16"
  />
  <!-- OS environment variables have 'env' as a prefix -->
  <property
    environment="env"
  />
  <!-- local property overrides -->
  <property
    file="${user.home}/build.properties"
  />
  <!-- local testing properties overrides -->
  <property
    file="${user.home}/test.properties"
  />
  <!-- find out where this build.xml file is -->
  <dirname
    property="eclipselink.utils.dbws.test"
    file="${ant.file.eclipselink.utils.dbws.test}"
  />
  <!-- properties checked into SVN -->
  <property
    file="${eclipselink.utils.dbws.test}/build.properties"
  />
  <!-- testing properties checked into SVN -->
  <property
    file="${eclipselink.utils.dbws.test}/test.properties"
  />
  <!-- Classpath used for compiling tests. -->
  <path
    id="compile.path"
    >
    <pathelement
      path="${junit.lib}"
    />
    <pathelement
      path="${eclipselink.jar.name}"
    />
    <pathelement
      path="${eclipselink.plugins}/${asm}"
    />
    <pathelement
      path="${eclipselink.utils.plugins}/${eclipselink.utils.dbws.depend}"
    />
    <pathelement
      path="${eclipselink.utils.dbws}/${eclipselink.utils.dbws.jlib}"
    />
    <fileset
      dir="${eclipselink.plugins}"
      includes="${eclipselink.dbws.core.depend}"
    />
  </path>
  <presetdef name="javac">
    <javac
      debug="${javac.debug}"
      debuglevel="${javac.debuglevel}"
      optimize="${javac.optimize}"
      source="1.6"
      deprecation="${javac.deprecation}"
      failonerror="true"
      includes="**/*.java"
      memoryMaximumSize="512m"
    />
  </presetdef>
  <presetdef
    name="DeleteDirQuietly"
    >
    <delete
      dir="_tmp_"
      quiet="true"
      failonerror="false"
    />
  </presetdef>
  <presetdef
    name="DeleteFileQuietly"
    >
    <delete
      file="_tmp_"
      quiet="true"
      failonerror="false"
    />
  </presetdef>
  <scriptdef
    name="toLower"
    language="javascript"
    manager="javax"
    >
    <attribute name="input"/>
    <attribute name="property"/>
    <![CDATA[
      // getting the value
      input = attributes.get("input");
      property = attributes.get("property");
      if (input == null || property == null) {
         self.fail("both 'input' and 'property' attributes must be set.");
      }
      lowercaseInput = input.toLowerCase();
      // put result into property - NB overwrites previous value! Not safe for <parallel> tasks
      project.setProperty(attributes.get("property"), lowercaseInput);
    ]]>
  </scriptdef>
  <!-- slightly complex way to do if-then-else in Ant without additional macros -->
  <target
    name="should-compile-common"
    depends="compile-common,dont-compile-common"
  />
  <target
    name="compile-common"
    unless="eclipselink.utils.dbws.common.available"
    depends="test-common-available"
    >
    <mkdir dir="${eclipselink.utils.dbws.test}/${classes.dir}"/>
    <javac
      srcdir="${eclipselink.utils.dbws.test}/${src.dir}"
      destdir="${eclipselink.utils.dbws.test}/${classes.dir}"
{'fraction_non_alphanumeric': 0.1823721436343852, 'fraction_numerical': 0.00544069640914037, 'mean_word_length': 3.038224956063269, 'pattern_counts': {'":': 0, '<': 98, '<?xml version=': 2, '>': 96, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 4}, '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': '123137', 'n_tokens_mistral': 2851, 'n_tokens_neox': 2789, 'n_words': 611}