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

<!--
 * See the NOTICE file distributed with this work for additional
 * information regarding copyright ownership.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>org.xwiki.platform</groupId>
    <artifactId>xwiki-platform-search-solr</artifactId>
    <version>6.0-SNAPSHOT</version>
  </parent>
  <artifactId>xwiki-platform-search-solr-api</artifactId>
  <name>XWiki Platform - Search - Solr - API</name>
  <description>Solr engine management: configuration, indexing, listeners, script service, etc. This module does not handle the search queries</description>
  <properties>
    <!-- Name to display by the Extension Manager -->
    <xwiki.extension.name>Solr Search API</xwiki.extension.name>
    <xwiki.jacoco.instructionRatio>0.48</xwiki.jacoco.instructionRatio>
  </properties>
  <dependencies>
    <!-- Solr -->
    <dependency>
      <groupId>org.apache.solr</groupId>
      <artifactId>solr-solrj</artifactId>
      <version>${solr.version}</version>
      <exclusions>
        <!-- Solr is using an old version of Woodstox but we need the newer version which is used by our Cache
             module -->
        <exclusion>
          <groupId>org.codehaus.woodstox</groupId>
          <artifactId>wstx-asl</artifactId>
        </exclusion>
        <!-- XWiki uses SLF4J for logging. -->
        <exclusion>
          <groupId>log4j</groupId>
          <artifactId>log4j</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
    <!-- Solr is using an old version of Woodstox but we need the newer version which is used by our Cache module -->
    <dependency>
      <groupId>org.codehaus.woodstox</groupId>
      <artifactId>woodstox-core-asl</artifactId>
      <exclusions>
        <!-- Already part of Java SE 6 -->
        <exclusion>
          <artifactId>stax-api</artifactId>
          <groupId>javax.xml.stream</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <!-- Embedded Solr instance. -->
    <dependency>
      <groupId>org.apache.solr</groupId>
      <artifactId>solr-core</artifactId>
    </dependency>
    <!-- Solr core depends on a different version of Restlet (than our Rest module) which we exclude and thus we need to
      pull the right version here. -->
    <dependency>
      <groupId>org.restlet.jse</groupId>
      <artifactId>org.restlet</artifactId>
    </dependency>
    <dependency>
      <groupId>org.restlet.jee</groupId>
      <artifactId>org.restlet.ext.servlet</artifactId>
    </dependency>
    <dependency>
      <groupId>org.apache.solr</groupId>
      <artifactId>solr-cell</artifactId>
      <version>${solr.version}</version>
      <exclusions>
        <!-- XWiki uses SLF4J for logging. -->
        <exclusion>
          <groupId>log4j</groupId>
          <artifactId>log4j</artifactId>
        </exclusion>
      </exclusions>
    </dependency>

    <!-- Apache Commons -->
    <dependency>
      <groupId>org.apache.commons</groupId>
      <artifactId>commons-lang3</artifactId>
    </dependency>

    <!-- Apache xalan used for Solr's internal XML operations. -->
    <dependency>
      <groupId>xalan</groupId><commit_msg>XWIKI-8911: Upgrade to Apache Lucene and Solr 4.7.0 * Fix duplicate classes in transitive dependencies.<commit_after><?xml version="1.0" encoding="UTF-8"?>

<!--
 * See the NOTICE file distributed with this work for additional
 * information regarding copyright ownership.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>org.xwiki.platform</groupId>
    <artifactId>xwiki-platform-search-solr</artifactId>
    <version>6.0-SNAPSHOT</version>
  </parent>
  <artifactId>xwiki-platform-search-solr-api</artifactId>
  <name>XWiki Platform - Search - Solr - API</name>
  <description>Solr engine management: configuration, indexing, listeners, script service, etc. This module does not handle the search queries</description>
  <properties>
    <!-- Name to display by the Extension Manager -->
    <xwiki.extension.name>Solr Search API</xwiki.extension.name>
    <xwiki.jacoco.instructionRatio>0.48</xwiki.jacoco.instructionRatio>
  </properties>
  <dependencies>
    <!-- Solr -->
    <dependency>
      <groupId>org.apache.solr</groupId>
      <artifactId>solr-solrj</artifactId>
      <version>${solr.version}</version>
      <exclusions>
        <!-- Solr is using an old version of Woodstox but we need the newer version which is used by our Cache
             module -->
        <exclusion>
          <groupId>org.codehaus.woodstox</groupId>
          <artifactId>wstx-asl</artifactId>
        </exclusion>
        <!-- XWiki uses SLF4J for logging. -->
        <exclusion>
          <groupId>log4j</groupId>
          <artifactId>log4j</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
    <!-- Solr is using an old version of Woodstox but we need the newer version which is used by our Cache module -->
    <dependency>
      <groupId>org.codehaus.woodstox</groupId>
      <artifactId>woodstox-core-asl</artifactId>
      <exclusions>
        <!-- Already part of Java SE 6 -->
        <exclusion>
          <artifactId>stax-api</artifactId>
          <groupId>javax.xml.stream</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <!-- Embedded Solr instance. -->
    <dependency>
      <groupId>org.apache.solr</groupId>
      <artifactId>solr-core</artifactId>
    </dependency>
    <!-- Solr core depends on a different version of Restlet (than our Rest module) which we exclude and thus we need to
      pull the right version here. -->
    <dependency>
      <groupId>org.restlet.jse</groupId>
      <artifactId>org.restlet</artifactId>
    </dependency>
    <dependency>
      <groupId>org.restlet.jee</groupId>
      <artifactId>org.restlet.ext.servlet</artifactId>
    </dependency>
    <dependency>
      <groupId>org.apache.solr</groupId>
      <artifactId>solr-cell</artifactId>
      <version>${solr.version}</version>
      <exclusions>
        <!-- Solr is using an old version of Woodstox but we need the newer version which is used by our Cache
             module -->
        <exclusion>
          <groupId>org.codehaus.woodstox</groupId>
          <artifactId>wstx-asl</artifactId>
        </exclusion>
        <!-- We use a newer version of jdom that has a different group/artefact id. -->
        <exclusion>
          <groupId>jdom</groupId>
          <artifactId>jdom</artifactId>
        </exclusion>
        <!-- Our REST module uses a different version of Restlet. -->
        <exclusion>
          <groupId>org.restlet.jee</groupId>
          <artifactId>org.restlet</artifactId>
        </exclusion>
        <!-- The wrong asm artifact is pulled as transitive dependency. -->
        <exclusion>
          <groupId>asm</groupId>
          <artifactId>asm</artifactId>
        </exclusion>
        <!-- Solr Cell depends on bcprov-jdk15 1.45 but some XWiki extensions (such as the CRaSH integration)
          require bcprov-jdk16, thus we exclude it and add a dependency on it just after to the latest version -->
        <exclusion>
          <groupId>org.bouncycastle</groupId>
          <artifactId>bcprov-jdk15</artifactId>
        </exclusion>
        <!-- Solr Cell depends on bcmail-jdk15 1.45 but some XWiki extensions (such as the CRaSH integration)
          require bcmail-jdk16, thus we exclude it and add a dependency on it just after to the latest version -->
        <exclusion>
          <groupId>org.bouncycastle</groupId>
          <artifactId>bcmail-jdk15</artifactId>
        </exclusion>
        <!-- XWiki uses SLF4J for logging. -->
        <exclusion>
          <groupId>log4j</groupId>
          <artifactId>log4j</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
    <!-- Use the right version of jdom (we excluded the wrong version above) -->
    <dependency>
      <groupId>org.jdom</groupId>
      <artifactId>jdom</artifactId>
    </dependency>
    <!-- Use the right asm artifact (we excluded the wrong version above). -->
    <dependency>
      <groupId>org.ow2.asm</groupId>
      <artifactId>asm</artifactId>
    </dependency>
     <!-- Replace a runtime transitive dependency of solr-cell because it includes old bcprov/bcmail classes. -->
    <dependency>
      <groupId>org.bouncycastle</groupId>
      <artifactId>bcprov-jdk15on</artifactId>
    </dependency>
    <dependency>
      <groupId>org.bouncycastle</groupId>
      <artifactId>bcmail-jdk15on</artifactId>
    </dependency>

    <!-- Apache Commons -->
    <dependency>
      <groupId>org.apache.commons</groupId>
      <artifactId>commons-lang3</artifactId>
    </dependency>

    <!-- Apache xalan used for Solr's internal XML operations. -->
    <dependency>
      <groupId>xalan</groupId>
{'fraction_non_alphanumeric': 0.12214166201896264, 'fraction_numerical': 0.011340397843465327, 'mean_word_length': 2.764520643806858, 'pattern_counts': {'":': 0, '<': 304, '<?xml version=': 2, '>': 304, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 8}, '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': '146283', 'n_tokens_mistral': 3415, 'n_tokens_neox': 3057, 'n_words': 882}