<commit_before>﻿using System;
using Terradue.OpenSearch.Schema;
using System.Collections.Specialized;
using System.Web;
using System.Linq;
using System.Runtime.Serialization;
using System.Xml.Serialization;
using System.Collections.Generic;


namespace Terradue.OpenSearch.Schema
{
    public partial class OpenSearchDescription
	{
        OpenSearchDescriptionUrl defaultUrl = null;

        public OpenSearchDescription(){
            ExtraNamespace.Add("", "http://a9.com/-/spec/opensearch/1.1/");
            ExtraNamespace.Add("param", "http://a9.com/-/spec/opensearch/extensions/parameters/1.0/");
        }

        [System.Xml.Serialization.XmlIgnore]
        public OpenSearchDescriptionUrl DefaultUrl {
            get {
                if (defaultUrl == null && Url.Count() > 0)
                    return Url[0];
                return defaultUrl;
            }
            set {
                defaultUrl = value;
            }
        }

        [System.Xml.Serialization.XmlIgnore]
        public string[] ContentTypes {
            get {
                return Url.Select<OpenSearchDescriptionUrl, string>(u => u.Type).ToArray(); 
            }
        }

        [System.Xml.Serialization.XmlIgnore]
        public OpenSearchUrl Originator { get; set; }


	}

    public partial class OpenSearchDescriptionUrl
    {

        public NameValueCollection GetIdentifierDictionary() {

            var nvc = HttpUtility.ParseQueryString(new Uri(this.Template).Query);
            return OpenSearchFactory.ReverseTemplateOpenSearchParameters(nvc);

        }


    }
}
<commit_msg>default url<commit_after>﻿using System;
using Terradue.OpenSearch.Schema;
using System.Collections.Specialized;
using System.Web;
using System.Linq;
using System.Runtime.Serialization;
using System.Xml.Serialization;
using System.Collections.Generic;


namespace Terradue.OpenSearch.Schema
{
    public partial class OpenSearchDescription
    {
        OpenSearchDescriptionUrl defaultUrl = null;

        public OpenSearchDescription()
        {
            ExtraNamespace.Add("", "http://a9.com/-/spec/opensearch/1.1/");
            ExtraNamespace.Add("param", "http://a9.com/-/spec/opensearch/extensions/parameters/1.0/");
        }

        [System.Xml.Serialization.XmlIgnore]
        public OpenSearchDescriptionUrl DefaultUrl
        {
            get
            {
                if (defaultUrl == null && Url.Count() > 0)
                    defaultUrl = Url.FirstOrDefault(u => u.Type == "application/xml");
                if (defaultUrl == null)
                    return Url.First();
                return defaultUrl;
            }
            set
            {
                defaultUrl = value;
            }
        }

        [System.Xml.Serialization.XmlIgnore]
        public string[] ContentTypes
        {
            get
            {
                return Url.Select<OpenSearchDescriptionUrl, string>(u => u.Type).ToArray();
            }
        }

        [System.Xml.Serialization.XmlIgnore]
        public OpenSearchUrl Originator { get; set; }


    }

    public partial class OpenSearchDescriptionUrl
    {

        public NameValueCollection GetIdentifierDictionary()
        {

            var nvc = HttpUtility.ParseQueryString(new Uri(this.Template).Query);
            return OpenSearchFactory.ReverseTemplateOpenSearchParameters(nvc);

        }


    }
}

{'fraction_non_alphanumeric': 0.09793510324483776, 'fraction_numerical': 0.004424778761061947, 'mean_word_length': 2.0088731144631766, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, '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': '4047426', 'n_tokens_mistral': 908, 'n_tokens_neox': 868, 'n_words': 160}