<commit_before><?xml version="1.0" encoding="UTF-8"?>
<!--
/*
 * $Id$
 * 
 * Copyright (c) OSGi Alliance (2011, 2012). All Rights Reserved.
 * 
 * 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.
 */
-->
<schema xmlns="http://www.w3.org/2001/XMLSchema" 
	xmlns:repo="http://www.osgi.org/xmlns/repository/v1.0.0"
	targetNamespace="http://www.osgi.org/xmlns/repository/v1.0.0"
	elementFormDefault="unqualified" 
	attributeFormDefault="unqualified"
	version="1.0.0">
	
	<element name="repository" type="repo:Trepository" />
	<complexType name="Trepository">
		<sequence>
			<choice minOccurs="0" maxOccurs="unbounded">
				<element name="resource" type="repo:Tresource" />
				<element name="referral" type="repo:Treferral" />
			</choice>
			<!-- It is non-deterministic, per W3C XML Schema 1.0: 
			http://www.w3.org/TR/xmlschema-1/#cos-nonambig
			to use name space="##any" below. -->
			<any namespace="##other" processContents="lax" minOccurs="0"
				maxOccurs="unbounded" />
		</sequence>
		<attribute name="name" type="string">
			<annotation>
				<documentation xml:lang="en">
					The name of the repository. The name may contain
					spaces and punctuation.
				</documentation>
			</annotation>
		</attribute>
		<attribute name="increment" type="long">
			<annotation>
				<documentation xml:lang="en">
					An indication of when the repository was last changed. Client's can
					check if a
					repository has been updated by checking this increment value.
				</documentation>
			</annotation>
		</attribute>
		<anyAttribute />
	</complexType>

	<complexType name="Tresource">
		<annotation>
			<documentation xml:lang="en">
				Describes a general resource with
				requirements and capabilities.
			</documentation>
		</annotation>
		<sequence>
			<element name="requirement" type="repo:Trequirement" minOccurs="0" maxOccurs="unbounded"/>
			<element name="capability" type="repo:Tcapability" minOccurs="1" maxOccurs="unbounded"/>
			<!-- It is non-deterministic, per W3C XML Schema 1.0: 
			http://www.w3.org/TR/xmlschema-1/#cos-nonambig
			to use name space="##any" below. -->
			<any namespace="##other" processContents="lax" minOccurs="0"
				maxOccurs="unbounded" />
		</sequence>
		<attribute name="location" type="string">
			<annotation>
				<documentation xml:lang="en">
					The location of the actual resource. Either a URL or a
					location relative to the location of the repository XML file.
				</documentation>
			</annotation>
		</attribute>
		<attribute name="sourceLocation" type="string">
			<annotation>
				<documentation xml:lang="en">
					The location of the source code archive for this resource.
					Either a URL or a location relative to the location of the
					repository XML file.
				</documentation>
			</annotation>
		</attribute>
		<anyAttribute />
	</complexType>

	<complexType name="Treferral"><commit_msg>Adjust repo schema for recent spec changes<commit_after><?xml version="1.0" encoding="UTF-8"?>
<!--
/*
 * $Id$
 * 
 * Copyright (c) OSGi Alliance (2011, 2012). All Rights Reserved.
 * 
 * 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.
 */
-->
<schema xmlns="http://www.w3.org/2001/XMLSchema" 
	xmlns:repo="http://www.osgi.org/xmlns/repository/v1.0.0"
	targetNamespace="http://www.osgi.org/xmlns/repository/v1.0.0"
	elementFormDefault="unqualified" 
	attributeFormDefault="unqualified"
	version="1.0.0">
	
	<element name="repository" type="repo:Trepository" />
	<complexType name="Trepository">
		<sequence>
			<choice minOccurs="0" maxOccurs="unbounded">
				<element name="resource" type="repo:Tresource" />
				<element name="referral" type="repo:Treferral" />
			</choice>
			<!-- It is non-deterministic, per W3C XML Schema 1.0: 
			http://www.w3.org/TR/xmlschema-1/#cos-nonambig
			to use name space="##any" below. -->
			<any namespace="##other" processContents="lax" minOccurs="0"
				maxOccurs="unbounded" />
		</sequence>
		<attribute name="name" type="string">
			<annotation>
				<documentation xml:lang="en">
					The name of the repository. The name may contain
					spaces and punctuation.
				</documentation>
			</annotation>
		</attribute>
		<attribute name="increment" type="long">
			<annotation>
				<documentation xml:lang="en">
					An indication of when the repository was last changed. Client's can
					check if a
					repository has been updated by checking this increment value.
				</documentation>
			</annotation>
		</attribute>
		<anyAttribute />
	</complexType>

	<complexType name="Tresource">
		<annotation>
			<documentation xml:lang="en">
				Describes a general resource with
				requirements and capabilities.
			</documentation>
		</annotation>
		<sequence>
			<element name="requirement" type="repo:Trequirement" minOccurs="0" maxOccurs="unbounded"/>
			<element name="capability" type="repo:Tcapability" minOccurs="1" maxOccurs="unbounded"/>
			<!-- It is non-deterministic, per W3C XML Schema 1.0: 
			http://www.w3.org/TR/xmlschema-1/#cos-nonambig
			to use name space="##any" below. -->
			<any namespace="##other" processContents="lax" minOccurs="0"
				maxOccurs="unbounded" />
		</sequence>
		<anyAttribute />
	</complexType>

	<complexType name="Treferral">
{'fraction_non_alphanumeric': 0.13637836086815677, 'fraction_numerical': 0.014253320375769355, 'mean_word_length': 3.893026941362916, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 2, '>': 97, 'https://': 0, 'lorem ipsum': 0, 'www.': 12, 'xml': 22}, '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': '4318008', 'n_tokens_mistral': 2174, 'n_tokens_neox': 1844, 'n_words': 547}