<commit_before><?xml version="1.0" standalone="no"?>
<!DOCTYPE s1 SYSTEM "./dtd/document.dtd">

<s1 title="Features">
	<s2 title="Setting Features">
        <anchor name="features"/>
		<p>To set a feature on either org.apache.xerces.parsers.SAXParser or 
		org.apache.xerces.parsers.DOMParser, you should use the SAX2 
		method <code>setFeature(String,boolean)</code>. To query a
		feature, use the SAX2 method <code>getFeature(String)</code>.</p>
		<p>For example, to turn on validation:</p>
<source>SAXParser p=new SAXParser();
try {
  p.setFeature("http://xml.org/sax/features/validation", true);
} catch (SAXException e) {
  System.out.println("error in setting up parser feature");
}</source>
	</s2>
	
	<s2 title="General Features">
		<anchor name="validation"/>
		<p>http://xml.org/sax/features/validation</p>
		<table>
			<tr><th>True:</th>		<td>Validate the document.</td></tr>
			<tr><th>False:</th>		<td>Do not validate the document.</td></tr>
			<tr><th>Default:</th>	<td>false</td></tr>
			<tr><th>Access:</th>	<td>(parsing) read-only; (not parsing) read/write</td></tr>
			<tr><th>Note:</th>		<td>If this feature is set to true, the document must specify a grammar. 
					   				If this feature is set to false, the document may specify a grammar 
					  				and that grammar will be parsed but no validation of the document 
					   				contents will be performed.</td></tr>
			<tr><th>See:</th>		<td><link anchor="dynamic">http://apache.org/xml/features/validation/dynamic</link>
									<br/><link anchor="namespaces">http://xml.org/sax/features/namespaces</link></td></tr>
		</table>
		
		<anchor name="external-general-entities"/>
		<p>http://xml.org/sax/features/external-general-entities</p>
		<table>
			<tr><th>True:</th>		<td>Include external general (text) entities.</td></tr>
			<tr><th>False:</th>		<td>Do not include external general entities.</td></tr>
			<tr><th>Default:</th>	<td>true</td></tr>
			<tr><th>Access:</th>	<td>(parsing) read-only; (not parsing) read/write</td></tr>
			<tr><th>See:</th>
				<td><link anchor="external-parameter-entities">http://xml.org/sax/features/external-parameter-entities</link></td></tr>
		</table>
		
		<anchor name="external-parameter-entities"/>
		<p>http://xml.org/sax/features/external-parameter-entities</p>
		<table>
			<tr><th>True:</th>		<td>Include external parameter entities and the external DTD subset.</td></tr>
			<tr><th>False:</th>		<td>Do not include external parameter entities or the external DTD subset.</td></tr>
			<tr><th>Default:</th>	<td>true</td></tr>
			<tr><th>Access:</th>	<td>(parsing) read-only; (not parsing) read/write</td></tr>
			<tr><th>See:</th>
				<td><link anchor="external-parameter-entities">http://xml.org/sax/features/external-parameter-entities</link></td></tr>
		</table>
		
		<anchor name="namespaces"/>
		<p>http://xml.org/sax/features/namespaces</p>
		<table>
			<tr><th>True:</th>		<td>Perform namespace processing: prefixes will be stripped off element and 
					  				 attribute names and replaced with the corresponding namespace URIs. By 
					  				 default, the two will simply be concatenated, but the namespace-sep core 
					  				 property allows the application to specify a delimiter string for 
					  				 separating the URI part and the local part.</td></tr>
			<tr><th>False:</th>		<td>Do not perform namespace processing.</td></tr>
			<tr><th>Default:</th>	<td>true</td></tr>
			<tr><th>Access:</th>	<td>(parsing) read-only; (not parsing) read/write</td></tr>
			<tr><th>Note:</th>		<td>If the validation feature is set to true, then the document must contain 
   									a grammar that supports the use of namespaces.</td></tr>
			<tr><th>See:</th>		<td><link anchor="validation">http://xml.org/sax/features/validation</link>
									<br/><link idref="properties" anchor="namespace-sep">http://xml.org/sax/properties/namespace-sep</link></td></tr>
		</table>
		
		<anchor name="schema"/>
		<p>http://apache.org/xml/features/validation/schema</p>
		<table>
			<tr><th>True:</th>		<td>Turn on XML Schema support.</td></tr>
			<tr><th>False:</th>		<td>Turn off XML Schema support.</td></tr>
			<tr><th>Default:</th>	<td>true</td></tr>
		</table>

		<anchor name="dynamic"/>
		<p>http://apache.org/xml/features/validation/dynamic</p>
		<table>
			<tr><th>True:</th>		<td>The parser will validate the document only if a grammar is specified.</td></tr>
			<tr><th>False:</th>		<td>Validation is determined by the state of the 
					  					<link anchor="validation">http://xml.org/sax/features/validation</link> feature.</td></tr>
			<tr><th>Default:</th>	<td>false</td></tr>
			<tr><th>See:</th>		<td><link anchor="validation">http://xml.org/sax/features/validation</link></td></tr>
		</table>
		
		<anchor name="warn-on-duplicate-attdef"/>
		<p>http://apache.org/xml/features/validation/warn-on-duplicate-attdef</p>
		<table>
			<tr><th>True:</th><td>Warn on duplicate attribute declaration.</td></tr>
			<tr><th>False:</th><td>Do not warn on duplicate attribute declaration.</td></tr>
			<tr><th>Default:</th><td>true</td></tr>
		</table>
		
		<anchor name="warn-on-undeclared-elemdef"/>
		<p>http://apache.org/xml/features/validation/warn-on-undeclared-elemdef</p>
		<table>
			<tr><th>True:</th>		<td>Warn if element referenced in content model is not declared.</td></tr>
			<tr><th>False:</th>		<td>Do not warn if element referenced in content model is not declared.</td></tr>
			<tr><th>Default:</th>	<td>true</td></tr>
		</table>
		<commit_msg>added info about the new schema checking feature<commit_after><?xml version="1.0" standalone="no"?>
<!DOCTYPE s1 SYSTEM "./dtd/document.dtd">

<s1 title="Features">
	<s2 title="Setting Features">
        <anchor name="features"/>
		<p>To set a feature on either org.apache.xerces.parsers.SAXParser or 
		org.apache.xerces.parsers.DOMParser, you should use the SAX2 
		method <code>setFeature(String,boolean)</code>. To query a
		feature, use the SAX2 method <code>getFeature(String)</code>.</p>
		<p>For example, to turn on validation:</p>
<source>SAXParser p=new SAXParser();
try {
  p.setFeature("http://xml.org/sax/features/validation", true);
} catch (SAXException e) {
  System.out.println("error in setting up parser feature");
}</source>
	</s2>
	
	<s2 title="General Features">
		<anchor name="validation"/>
		<p>http://xml.org/sax/features/validation</p>
		<table>
			<tr><th>True:</th>		<td>Validate the document.</td></tr>
			<tr><th>False:</th>		<td>Do not validate the document.</td></tr>
			<tr><th>Default:</th>	<td>false</td></tr>
			<tr><th>Access:</th>	<td>(parsing) read-only; (not parsing) read/write</td></tr>
			<tr><th>Note:</th>		<td>If this feature is set to true, the document must specify a grammar. 
					   				If this feature is set to false, the document may specify a grammar 
					  				and that grammar will be parsed but no validation of the document 
					   				contents will be performed.</td></tr>
			<tr><th>See:</th>		<td><link anchor="dynamic">http://apache.org/xml/features/validation/dynamic</link>
									<br/><link anchor="namespaces">http://xml.org/sax/features/namespaces</link></td></tr>
		</table>
		
		<anchor name="external-general-entities"/>
		<p>http://xml.org/sax/features/external-general-entities</p>
		<table>
			<tr><th>True:</th>		<td>Include external general (text) entities.</td></tr>
			<tr><th>False:</th>		<td>Do not include external general entities.</td></tr>
			<tr><th>Default:</th>	<td>true</td></tr>
			<tr><th>Access:</th>	<td>(parsing) read-only; (not parsing) read/write</td></tr>
			<tr><th>See:</th>
				<td><link anchor="external-parameter-entities">http://xml.org/sax/features/external-parameter-entities</link></td></tr>
		</table>
		
		<anchor name="external-parameter-entities"/>
		<p>http://xml.org/sax/features/external-parameter-entities</p>
		<table>
			<tr><th>True:</th>		<td>Include external parameter entities and the external DTD subset.</td></tr>
			<tr><th>False:</th>		<td>Do not include external parameter entities or the external DTD subset.</td></tr>
			<tr><th>Default:</th>	<td>true</td></tr>
			<tr><th>Access:</th>	<td>(parsing) read-only; (not parsing) read/write</td></tr>
			<tr><th>See:</th>
				<td><link anchor="external-parameter-entities">http://xml.org/sax/features/external-parameter-entities</link></td></tr>
		</table>
		
		<anchor name="namespaces"/>
		<p>http://xml.org/sax/features/namespaces</p>
		<table>
			<tr><th>True:</th>		<td>Perform namespace processing: prefixes will be stripped off element and 
					  				 attribute names and replaced with the corresponding namespace URIs. By 
					  				 default, the two will simply be concatenated, but the namespace-sep core 
					  				 property allows the application to specify a delimiter string for 
					  				 separating the URI part and the local part.</td></tr>
			<tr><th>False:</th>		<td>Do not perform namespace processing.</td></tr>
			<tr><th>Default:</th>	<td>true</td></tr>
			<tr><th>Access:</th>	<td>(parsing) read-only; (not parsing) read/write</td></tr>
			<tr><th>Note:</th>		<td>If the validation feature is set to true, then the document must contain 
   									a grammar that supports the use of namespaces.</td></tr>
			<tr><th>See:</th>		<td><link anchor="validation">http://xml.org/sax/features/validation</link>
									<br/><link idref="properties" anchor="namespace-sep">http://xml.org/sax/properties/namespace-sep</link></td></tr>
		</table>
		
		<anchor name="schema"/>
		<p>http://apache.org/xml/features/validation/schema</p>
		<table>
			<tr><th>True:</th>		<td>Turn on XML Schema support.</td></tr>
			<tr><th>False:</th>		<td>Turn off XML Schema support.</td></tr>
			<tr><th>Default:</th>	<td>true</td></tr>
		</table>

		<anchor name="schema-full-checking"/>
		<p>http://apache.org/xml/features/validation/schema-full-checking</p>
		<table>
			<tr><th>True:</th>		<td>Enable full schema constraint checking, including checking which may be time-consuming or memory intensive.  Currently, particle unique attribution constraint checking and particle derivation resriction checking are controlled by this option.</td></tr>
			<tr><th>False:</th>		<td>Disable full constraint checking.</td></tr>
			<tr><th>Default:</th>	<td>false</td></tr>
		</table>

		<anchor name="dynamic"/>
		<p>http://apache.org/xml/features/validation/dynamic</p>
		<table>
			<tr><th>True:</th>		<td>The parser will validate the document only if a grammar is specified.</td></tr>
			<tr><th>False:</th>		<td>Validation is determined by the state of the 
					  					<link anchor="validation">http://xml.org/sax/features/validation</link> feature.</td></tr>
			<tr><th>Default:</th>	<td>false</td></tr>
			<tr><th>See:</th>		<td><link anchor="validation">http://xml.org/sax/features/validation</link></td></tr>
		</table>
		
		<anchor name="warn-on-duplicate-attdef"/>
		<p>http://apache.org/xml/features/validation/warn-on-duplicate-attdef</p>
		<table>
			<tr><th>True:</th><td>Warn on duplicate attribute declaration.</td></tr>
			<tr><th>False:</th><td>Do not warn on duplicate attribute declaration.</td></tr>
			<tr><th>Default:</th><td>true</td></tr>
		</table>
		
		<anchor name="warn-on-undeclared-elemdef"/>
		<p>http://apache.org/xml/features/validation/warn-on-undeclared-elemdef</p>
		<table>
			<tr><th>True:</th>		<td>Warn if element referenced in content model is not declared.</td></tr>
			<tr><th>False:</th>		<td>Do not warn if element referenced in content model is not declared.</td></tr>
			<tr><th>Default:</th>	<td>true</td></tr>
		</table>
		
{'fraction_non_alphanumeric': 0.19562955254942768, 'fraction_numerical': 0.0015608740894901144, 'mean_word_length': 3.9434204886412343, 'pattern_counts': {'":': 0, '<': 596, '<?xml version=': 2, '>': 596, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 37}, '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': '3345899', 'n_tokens_mistral': 4401, 'n_tokens_neox': 3914, 'n_words': 856}