<commit_before>/*===================================================================

The Medical Imaging Interaction Toolkit (MITK)

Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.

This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty of MERCHANTABILITY or FITNESS FOR
A PARTICULAR PURPOSE.

See LICENSE.txt or http://www.mitk.org for details.

===================================================================*/

#include <mitkModelFitProviderBase.h>
#include <mitkExceptionMacro.h>

#include <mitkExtractTimeGrid.h>
#include <mitkModelFitInfo.h>

#include <usGetModuleContext.h>
#include <usModuleContext.h>
#include <usPrototypeServiceFactory.h>

namespace mitk
{
  template<class TModelFactory>
  class ModelFitProviderBase<TModelFactory>::Impl
  {
  public:
    Impl() : m_ReferenceFactory(TModelFactory::New())
    {
    };

    Impl(const Impl &other) = default;

    void SetRanking(int ranking)
    {
      m_Ranking = ranking;
    };

    int GetRanking() const
    {
      return m_Ranking;
    };

    us::ServiceRegistration<IModelFitProvider> m_Reg;
    int m_Ranking;
    using ModelFactoryType = TModelFactory;

    typename ModelFactoryType::Pointer m_ReferenceFactory;
  };

  template<class TModelFactory>
  ModelFitProviderBase<TModelFactory>::ModelFitProviderBase() : d()
  {
  }

  template<class TModelFactory>
  ModelFitProviderBase<TModelFactory>::~ModelFitProviderBase()
  {<commit_msg>Initialized m_Ranking<commit_after>/*===================================================================

The Medical Imaging Interaction Toolkit (MITK)

Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.

This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty of MERCHANTABILITY or FITNESS FOR
A PARTICULAR PURPOSE.

See LICENSE.txt or http://www.mitk.org for details.

===================================================================*/

#include <mitkModelFitProviderBase.h>
#include <mitkExceptionMacro.h>

#include <mitkExtractTimeGrid.h>
#include <mitkModelFitInfo.h>

#include <usGetModuleContext.h>
#include <usModuleContext.h>
#include <usPrototypeServiceFactory.h>

namespace mitk
{
  template<class TModelFactory>
  class ModelFitProviderBase<TModelFactory>::Impl
  {
  public:
    Impl() : m_Ranking(0), m_ReferenceFactory(TModelFactory::New())
    {
    };

    Impl(const Impl &other) = default;

    void SetRanking(int ranking)
    {
      m_Ranking = ranking;
    };

    int GetRanking() const
    {
      return m_Ranking;
    };

    us::ServiceRegistration<IModelFitProvider> m_Reg;
    int m_Ranking;
    using ModelFactoryType = TModelFactory;

    typename ModelFactoryType::Pointer m_ReferenceFactory;
  };

  template<class TModelFactory>
  ModelFitProviderBase<TModelFactory>::ModelFitProviderBase() : d()
  {
  }

  template<class TModelFactory>
  ModelFitProviderBase<TModelFactory>::~ModelFitProviderBase()
  {
{'fraction_non_alphanumeric': 0.17158792650918636, 'fraction_numerical': 0.00032808398950131233, 'mean_word_length': 5.1845841784989855, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2398254', 'n_tokens_mistral': 896, 'n_tokens_neox': 844, 'n_words': 206}