<commit_before>#pragma once

#include <QMetaOrm/private.h>

#include <QSharedPointer>
#include <QSqlDatabase>

namespace QMetaOrm {

   /**
    * @brief The DatabaseFactory class
    */
   class QMETAORM_LIBRARY_API DatabaseFactory
   {
   public:
       typedef QSharedPointer<DatabaseFactory> Ptr;

   public:
       virtual ~DatabaseFactory() {}
       virtual QSqlDatabase createDatabase() const = 0;
       virtual QSqlDatabase createDatabase(const QString &name) const = 0;
   };
}<commit_msg>Simplified database factory interface<commit_after>#pragma once

#include <QMetaOrm/private.h>

#include <QSharedPointer>
#include <QSqlDatabase>

namespace QMetaOrm {

   /**
    * @brief The DatabaseFactory class
    */
   class QMETAORM_LIBRARY_API DatabaseFactory
   {
   public:
       typedef QSharedPointer<DatabaseFactory> Ptr;

   public:
       virtual ~DatabaseFactory() {}
       virtual QSqlDatabase createDatabase(const QString &name = QString()) const = 0;
   };
}
{'fraction_non_alphanumeric': 0.09304703476482618, 'fraction_numerical': 0.003067484662576687, 'mean_word_length': 3.6842105263157894, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '909646', 'n_tokens_mistral': 298, 'n_tokens_neox': 287, 'n_words': 71}