<commit_before>﻿using System;
using Terradue.OpenSearch.Result;
using System.Collections.Specialized;

namespace Terradue.OpenSearch {
    public interface IAtomizable {

        AtomItem ToAtomItem(NameValueCollection parameters);

    }
}
<commit_msg>GetOpenSearchParameters in IAtomizable<commit_after>﻿//
//  IAtomizable.cs
//
//  Author:
//       <NAME> <<EMAIL>>
//
//  Copyright (c) 2014 Terradue

using System;
using Terradue.OpenSearch.Result;
using System.Collections.Specialized;

namespace Terradue.OpenSearch {

    /// <summary>
    /// Interface to implement a class as an item in a generic or heterogeneous OpenSearchable entity.
    /// </summary>
    public interface IAtomizable {

        /// <summary>
        /// Transform the objec in its Atom item representation.
        /// </summary>
        /// <returns>The atom item. null if does not correspond to the parameters</returns>
        /// <param name="parameters">Parameters to filter the items the search</param>
        AtomItem ToAtomItem(NameValueCollection parameters);

        /// <summary>
        /// Get the OpenSearch parameters applicable to the item.
        /// </summary>
        /// It should be ued by the generic OpenSearchable entity that use the object implementing IAtomizable
        /// to build all the OpenSearch parameters of the search template. Due to the atom nature
        /// of the item, the content type is not a parameter and should be considered as "application/atom+xml"
        /// <returns>The open search parameters.</returns>
        NameValueCollection GetOpenSearchParameters();

    }
}

{'fraction_non_alphanumeric': 0.09583074051026758, 'fraction_numerical': 0.002489110143123833, 'mean_word_length': 2.7746478873239435, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 18, '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': '1919254', 'n_tokens_mistral': 425, 'n_tokens_neox': 411, 'n_words': 147}