<commit_before><?php
/**
 * Expose the schema definitions for syndication MRSS, bulk upload XML and other schema types. 
 * 
 * @service schema
 * @package api
 * @subpackage services
 */
class SchemaService extends KalturaBaseService 
{
	/**
	 * Serves the requested XSD according to the type and name. 
	 * 
	 * @action serve
	 * @param KalturaSchemaType $type  
	 * @param string $name
	 * @return file 
	 */
	function serveAction($type, $name = null)
	{
		$ns = 'http://' . kConf::get('www_host') . "/$type";
		if($name)
			$ns .= "/$name";
			
		$xsd = new SimpleXMLElement('<schema/>', null, null, 'http://www.w3.org/2001/XMLSchema');
		$xsd->addAttribute('targetNamespace', $ns);
		$xsd->addAttribute('xmlns:xs', 'http://www.w3.org/2001/XMLSchema');
		<commit_msg>partner is not required<commit_after><?php
/**
 * Expose the schema definitions for syndication MRSS, bulk upload XML and other schema types. 
 * 
 * @service schema
 * @package api
 * @subpackage services
 */
class SchemaService extends KalturaBaseService 
{
	protected function partnerRequired($actionName)
	{
		return false;
	}
	
	/**
	 * Serves the requested XSD according to the type and name. 
	 * 
	 * @action serve
	 * @param KalturaSchemaType $type  
	 * @param string $name
	 * @return file 
	 */
	function serveAction($type, $name = null)
	{
		$ns = 'http://' . kConf::get('www_host') . "/$type";
		if($name)
			$ns .= "/$name";
			
		$xsd = new SimpleXMLElement('<schema/>', null, null, 'http://www.w3.org/2001/XMLSchema');
		$xsd->addAttribute('targetNamespace', $ns);
		$xsd->addAttribute('xmlns:xs', 'http://www.w3.org/2001/XMLSchema');
		
{'fraction_non_alphanumeric': 0.16123076923076923, 'fraction_numerical': 0.012307692307692308, 'mean_word_length': 3.6193181818181817, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 2}, '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': '7536461', 'n_tokens_mistral': 591, 'n_tokens_neox': 524, 'n_words': 140}