<commit_before><?xml version="1.0"?>

<!--
  Copyright 2011 The Apache Software Foundation

  Licensed to the Apache Software Foundation (ASF) under one
  or more contributor license agreements.  See the NOTICE file
  distributed with this work for additional information
  regarding copyright ownership.  The ASF licenses this file
  to you under the Apache License, Version 2.0 (the
  "License"); you may not use this file except in compliance
  with the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->

<project name="sqoop" default="jar-all"
    xmlns:artifact="urn:maven-artifact-ant"
    xmlns:ivy="antlib:org.apache.ivy.ant">

  <!-- load ant-contrib tasks to get the "if" task. -->
  <taskdef resource="net/sf/antcontrib/antcontrib.properties">
    <classpath>
      <pathelement location="${basedir}/lib/ant-contrib-1.0b3.jar"/>
    </classpath>
  </taskdef>

  <!-- Set default Hadoop version if not set -->
  <if>
    <isset property="hadoopversion" />
    <then>
      <echo message="Use Hadoop ${hadoopversion}" />
    </then>
    <else>
      <echo message="Use Hadoop 2.x by default" />
      <property name="hadoopversion" value="200" />
    </else>
  </if>

	<!-- Set variables per target hadoop version -->
  <if>
    <equals arg1="${hadoopversion}" arg2="20" />
    <then>
      <property name="hadoop.version" value="0.20.2-cdh3u1" />
      <property name="hbase.version" value="0.90.3-cdh3u1" />
      <property name="zookeeper.version" value="3.3.3-cdh3u1" />
      <property name="hadoop.version.full" value="0.20" />
      <property name="hcatalog.version" value="0.11.0" />
    </then>

    <elseif>
      <equals arg1="${hadoopversion}" arg2="23" />
      <then>
        <property name="hadoop.version" value="0.23.1" />
        <property name="hbase.version" value="0.92.0" />
        <property name="zookeeper.version" value="3.4.2" />
        <property name="hadoop.version.full" value="0.23" />
        <property name="hcatalog.version" value="0.11.0" />
      </then>
    </elseif>

    <elseif>
      <equals arg1="${hadoopversion}" arg2="100" />
      <then>
        <property name="hadoop.version" value="1.0.0" />
        <property name="hbase.version" value="0.92.0" />
        <property name="zookeeper.version" value="3.4.2" />
        <property name="hadoop.version.full" value="1.0.0" />
        <property name="hcatalog.version" value="0.11.0" />
      </then>
    </elseif>

    <elseif>
      <equals arg1="${hadoopversion}" arg2="200" />
      <then>
        <property name="hadoop.version" value="2.0.4-alpha" />
        <property name="hbase.version" value="0.94.2" />
        <property name="zookeeper.version" value="3.4.2" />
        <property name="hadoop.version.full" value="2.0.4-alpha" />
        <property name="hcatalog.version" value="0.11.0" />
      </then>
    </elseif>

    <else>
      <fail message="Unrecognized hadoopversion. Can only be 20, 23, 100 or 200." />
    </else>
  </if>

  <!-- Load system-wide and project-wide default properties set by
       the user, to avoid needing to override with -D. -->
  <property file="${user.home}/build.properties" />
  <property file="${basedir}/build.properties" />

  <!-- some basic properties -->
  <property environment="env"/>
  <property name="name" value="sqoop" />
  <property name="Name" value="Sqoop" />
  <property name="version" value="1.4.4-SNAPSHOT" />

  <!-- The last version released. -->
  <property name="oldversion" value="1.4.3" />
  <!-- The point when we branched for the previous release. -->
  <property name="prev.git.hash"
      value="166417fdb0afd3141c6fd0fdc50043b5e13c2a97" />

  <property name="artifact.name" value="${name}-${version}" />
  <property name="dest.jar" value="${artifact.name}.jar" />
  <property name="test.jar" value="${name}-test-${version}.jar" />
  <property name="git.hash" value="" /><commit_msg>Preparing for release 1.4.5 development<commit_after><?xml version="1.0"?>

<!--
  Copyright 2011 The Apache Software Foundation

  Licensed to the Apache Software Foundation (ASF) under one
  or more contributor license agreements.  See the NOTICE file
  distributed with this work for additional information
  regarding copyright ownership.  The ASF licenses this file
  to you under the Apache License, Version 2.0 (the
  "License"); you may not use this file except in compliance
  with the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->

<project name="sqoop" default="jar-all"
    xmlns:artifact="urn:maven-artifact-ant"
    xmlns:ivy="antlib:org.apache.ivy.ant">

  <!-- load ant-contrib tasks to get the "if" task. -->
  <taskdef resource="net/sf/antcontrib/antcontrib.properties">
    <classpath>
      <pathelement location="${basedir}/lib/ant-contrib-1.0b3.jar"/>
    </classpath>
  </taskdef>

  <!-- Set default Hadoop version if not set -->
  <if>
    <isset property="hadoopversion" />
    <then>
      <echo message="Use Hadoop ${hadoopversion}" />
    </then>
    <else>
      <echo message="Use Hadoop 2.x by default" />
      <property name="hadoopversion" value="200" />
    </else>
  </if>

	<!-- Set variables per target hadoop version -->
  <if>
    <equals arg1="${hadoopversion}" arg2="20" />
    <then>
      <property name="hadoop.version" value="0.20.2-cdh3u1" />
      <property name="hbase.version" value="0.90.3-cdh3u1" />
      <property name="zookeeper.version" value="3.3.3-cdh3u1" />
      <property name="hadoop.version.full" value="0.20" />
      <property name="hcatalog.version" value="0.11.0" />
    </then>

    <elseif>
      <equals arg1="${hadoopversion}" arg2="23" />
      <then>
        <property name="hadoop.version" value="0.23.1" />
        <property name="hbase.version" value="0.92.0" />
        <property name="zookeeper.version" value="3.4.2" />
        <property name="hadoop.version.full" value="0.23" />
        <property name="hcatalog.version" value="0.11.0" />
      </then>
    </elseif>

    <elseif>
      <equals arg1="${hadoopversion}" arg2="100" />
      <then>
        <property name="hadoop.version" value="1.0.0" />
        <property name="hbase.version" value="0.92.0" />
        <property name="zookeeper.version" value="3.4.2" />
        <property name="hadoop.version.full" value="1.0.0" />
        <property name="hcatalog.version" value="0.11.0" />
      </then>
    </elseif>

    <elseif>
      <equals arg1="${hadoopversion}" arg2="200" />
      <then>
        <property name="hadoop.version" value="2.0.4-alpha" />
        <property name="hbase.version" value="0.94.2" />
        <property name="zookeeper.version" value="3.4.2" />
        <property name="hadoop.version.full" value="2.0.4-alpha" />
        <property name="hcatalog.version" value="0.11.0" />
      </then>
    </elseif>

    <else>
      <fail message="Unrecognized hadoopversion. Can only be 20, 23, 100 or 200." />
    </else>
  </if>

  <!-- Load system-wide and project-wide default properties set by
       the user, to avoid needing to override with -D. -->
  <property file="${user.home}/build.properties" />
  <property file="${basedir}/build.properties" />

  <!-- some basic properties -->
  <property environment="env"/>
  <property name="name" value="sqoop" />
  <property name="Name" value="Sqoop" />
  <property name="version" value="1.4.5-SNAPSHOT" />

  <!-- The last version released. -->
  <property name="oldversion" value="1.4.4" />
  <!-- The point when we branched for the previous release. -->
  <property name="prev.git.hash"
      value="166417fdb0afd3141c6fd0fdc50043b5e13c2a97" />

  <property name="artifact.name" value="${name}-${version}" />
  <property name="dest.jar" value="${artifact.name}.jar" />
  <property name="test.jar" value="${name}-test-${version}.jar" />
  <property name="git.hash" value="" />
{'fraction_non_alphanumeric': 0.16505768777960914, 'fraction_numerical': 0.035907699552625384, 'mean_word_length': 3.062649450023912, 'pattern_counts': {'":': 0, '<': 163, '<?xml version=': 2, '>': 163, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 6}, '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': '5658913', 'n_tokens_mistral': 2798, 'n_tokens_neox': 2674, 'n_words': 686}