<commit_before>using NDatabase.Odb.Impl.Main;

namespace NDatabase.Odb
{
    /// <summary>
    ///   The NDatabase Factory to open new instance of local odb.
    /// </summary>
    public static class OdbFactory
    {
        /// <summary>
        ///   Open a ODB database instance with a given name
        /// </summary>
        /// <param name="fileName"> The ODB database name </param>
        /// <returns> A local ODB implementation </returns>
        public static IOdb Open(string fileName)
        {
            return Impl.Main.Odb.GetInstance(fileName);
        }
    }
}<commit_msg>Improve usability of ODBFactory<commit_after>namespace NDatabase.Odb
{
    /// <summary>
    ///   The NDatabase Factory to open new instance of local odb.
    /// </summary>
    public static class OdbFactory
    {
        private static string _last;

        /// <summary>
        ///   Open a ODB database instance with a given name
        /// </summary>
        /// <param name="fileName"> The ODB database name </param>
        /// <returns> A local ODB implementation </returns>
        public static IOdb Open(string fileName)
        {
            _last = fileName;
            return Impl.Main.Odb.GetInstance(fileName);
        }

        /// <summary>
        ///   Open a ODB database instance with a last given name
        /// </summary>
        /// <returns> A local ODB implementation </returns>
        public static IOdb OpenLast()
        {
            return Impl.Main.Odb.GetInstance(_last);
        }
    }
}
{'fraction_non_alphanumeric': 0.11198428290766209, 'fraction_numerical': 0.0, 'mean_word_length': 1.7581227436823104, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '7281602', 'n_tokens_mistral': 413, 'n_tokens_neox': 414, 'n_words': 133}