<commit_before><?xml version="1.0" encoding="UTF-8"?>
<!--
  Copyright 2011-2012 Terradue srl

  Licensed 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.
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
           targetNamespace="http://www.terradue.com/warhol/settings"
           xmlns="http://www.terradue.com/warhol/settings">

  <!-- ===== Main settings ===== -->

  <xs:complexType name="Settings">
    <xs:sequence>
      <xs:element name="storages" type="Storages" minOccurs="0" maxOccurs="1" />
      <xs:element name="catalogues" type="Catalogues" minOccurs="1" maxOccurs="1" />
    </xs:sequence>
  </xs:complexType>

  <!-- ===== Catalogues ===== -->

  <xs:complexType name="Catalogues">
    <xs:sequence>
      <xs:element name="catalogue" type="Catalogue" minOccurs="1" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="Catalogue">
    <xs:sequence>
      <xs:element name="id" type="xs:string" minOccurs="1" maxOccurs="1" />
      <xs:element name="description-url" type="xs:string" minOccurs="1" maxOccurs="1" />
      <xs:element name="connection-timeout" type="xs:unsignedInt" minOccurs="1" maxOccurs="1" />
    </xs:sequence>
  </xs:complexType>

  <!-- ===== Storages ===== -->

  <xs:complexType name="Storages">
    <xs:sequence>
      <xs:element name="local" type="LocalStorage" minOccurs="1" maxOccurs="1" />
      <xs:element name="remote" type="RemoteStorage" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>

  <!--
   | Local Storage
  -->
  <xs:complexType name="LocalStorage">
    <xs:sequence>
      <xs:element name="base-dir" type="xs:string" minOccurs="1" maxOccurs="1" />
    </xs:sequence>
  </xs:complexType>

  <!--
   | Remote Storage
  -->
  <xs:complexType name="RemoteStorage">
    <xs:sequence>
      <xs:element name="id" type="xs:string" minOccurs="1" maxOccurs="1" />
      <xs:element name="domain" minOccurs="1" maxOccurs="1" />
      <xs:element name="connection-timeout" type="xs:unsignedInt" minOccurs="1" maxOccurs="1" />
      <xs:element name="authentication" type="Authentication" minOccurs="0" maxOccurs="1" />
    </xs:sequence>
  </xs:complexType>

  <!-- ===== Authentication ===== -->

  <xs:complexType name="Authentication" />

  <!--
   | SSL Authentication
  -->
  <xs:complexType name="SslAuthentication">
    <xs:complexContent>
      <xs:extension base="Authentication">
        <xs:sequence>
          <xs:element name="proxy-certificate" type="xs:string" minOccurs="0" maxOccurs="1" /><commit_msg>added missing Http preferences in the model<commit_after><?xml version="1.0" encoding="UTF-8"?>
<!--
  Copyright 2011-2012 Terradue srl

  Licensed 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.
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
           targetNamespace="http://www.terradue.com/warhol/settings"
           xmlns="http://www.terradue.com/warhol/settings">

  <!-- ===== Main settings ===== -->

  <xs:complexType name="Settings">
    <xs:sequence>
      <xs:element name="storages" type="Storages" minOccurs="0" maxOccurs="1" />
      <xs:element name="catalogues" type="Catalogues" minOccurs="1" maxOccurs="1" />
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="DataSource">
    <xs:sequence>
      <xs:element name="http-settings" type="HttpSettings" minOccurs="1" maxOccurs="1" />
      <xs:element name="authentication" type="Authentication" minOccurs="1" maxOccurs="1" />
    </xs:sequence>
  </xs:complexType>

  <!-- ===== HTTP settings ===== -->

  <xs:complexType name="HttpSettings">
    <xs:sequence>
      <xs:element name="catalogue" type="Catalogue" minOccurs="1" maxOccurs="unbounded" />
      <xs:element name="connection-timeout" type="xs:unsignedShort" minOccurs="0" maxOccurs="1" default="2" />
      <xs:element name="allow-pooling-connection" type="xs:boolean" minOccurs="0" maxOccurs="1" default="true" />
      <xs:element name="follow-redirects" type="xs:boolean" minOccurs="0" maxOccurs="1" default="true" />
      <xs:element name="host-maximum-connection" type="xs:unsignedShort" minOccurs="0" maxOccurs="1" default="5" />
      <xs:element name="total-maximum-connection" type="xs:unsignedShort" minOccurs="0" maxOccurs="1" default="5" />
    </xs:sequence>
  </xs:complexType>

  <!-- ===== Catalogues ===== -->

  <xs:complexType name="Catalogues">
    <xs:sequence>
      <xs:element name="catalogue" type="Catalogue" minOccurs="1" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="Catalogue">
    <xs:complexContent>
      <xs:extension base="DataSource">
        <xs:sequence>
          <xs:element name="id" type="xs:string" minOccurs="1" maxOccurs="1" />
          <xs:element name="description-url" type="xs:string" minOccurs="1" maxOccurs="1" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>

  <!-- ===== Storages ===== -->

  <xs:complexType name="Storages">
    <xs:sequence>
      <xs:element name="local" type="LocalStorage" minOccurs="1" maxOccurs="1" />
      <xs:element name="remote" type="RemoteStorage" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>

  <!--
   | Local Storage
  -->
  <xs:complexType name="LocalStorage">
    <xs:sequence>
      <xs:element name="base-dir" type="xs:string" minOccurs="1" maxOccurs="1" />
    </xs:sequence>
  </xs:complexType>

  <!--
   | Remote Storage
  -->
  <xs:complexType name="RemoteStorage">
    <xs:complexContent>
      <xs:extension base="DataSource">
        <xs:sequence>
          <xs:element name="id" type="xs:string" minOccurs="1" maxOccurs="1" />
          <xs:element name="domain" minOccurs="1" maxOccurs="1" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>

  <!-- ===== Authentication ===== -->

  <xs:complexType name="Authentication" />

  <!--
   | SSL Authentication
  -->
  <xs:complexType name="SslAuthentication">
    <xs:complexContent>
      <xs:extension base="Authentication">
        <xs:sequence>
          <xs:element name="proxy-certificate" type="xs:string" minOccurs="0" maxOccurs="1" />
{'fraction_non_alphanumeric': 0.17637972194916443, 'fraction_numerical': 0.014604690352478585, 'mean_word_length': 3.894845360824742, 'pattern_counts': {'":': 0, '<': 131, '<?xml version=': 2, '>': 131, 'https://': 0, 'lorem ipsum': 0, 'www.': 8, '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': '228546', 'n_tokens_mistral': 2332, 'n_tokens_neox': 2274, 'n_words': 472}