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

Program:   Medical Imaging & Interaction Toolkit
Module:    $RCSfile$
Language:  C++
Date:      $Date$
Version:   $Revision$

Copyright (c) German Cancer Research Center, Division of Medical and
Biological Informatics. All rights reserved.
See MITKCopyright.txt or http://www.mitk.org/copyright.html for details.

This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.  See the above copyright notices for more information.

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


#include "mitkSurfaceToImageFilter.h"
#include "mitkGeometryClipImageFilter.h"
#include "mitkImageSliceSelector.h"

#include <fstream>

#include "mitkReferenceCountWatcher.h"

class TwoOutputsFilter : public mitk::SurfaceToImageFilter
{
public:
  mitkClassMacro(TwoOutputsFilter, SurfaceToImageFilter);
  itkNewMacro(Self);
protected:
  TwoOutputsFilter()
  {
    mitk::Image::Pointer output
      = static_cast<mitk::Image*>(this->MakeOutput(0).GetPointer()); 
    Superclass::SetNumberOfRequiredOutputs(2);
    Superclass::SetNthOutput(1, output.GetPointer());
  }

  virtual ~TwoOutputsFilter()
  {
  }
};

template <class FilterType, class InputType>
int runPipelineSmartPointerCorrectnessTestForFilterType(InputType::Pointer input)
{
  typename FilterType::Pointer filter;
  std::cout << "Testing " << typeid(FilterType).name() << "::New(): ";
  filter = FilterType::New();
  if (filter.IsNull()) 
  {
    std::cout<<"[FAILED]"<<std::endl;
     return EXIT_FAILURE;
  }
  else 
  {
    std::cout<<"[PASSED]"<<std::endl;
  } 

  std::cout << "Testing SetInput(" << typeid(FilterType).name() << "): ";
  filter->SetInput(input);
  std::cout<<"[PASSED]"<<std::endl;
  //std::cout << "Testing mitk::SurfaceToImageFilter::*TESTED_METHOD_DESCRIPTION: ";<commit_msg>FIX: missing typename<commit_after>/*=========================================================================

Program:   Medical Imaging & Interaction Toolkit
Module:    $RCSfile$
Language:  C++
Date:      $Date$
Version:   $Revision$

Copyright (c) German Cancer Research Center, Division of Medical and
Biological Informatics. All rights reserved.
See MITKCopyright.txt or http://www.mitk.org/copyright.html for details.

This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.  See the above copyright notices for more information.

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


#include "mitkSurfaceToImageFilter.h"
#include "mitkGeometryClipImageFilter.h"
#include "mitkImageSliceSelector.h"

#include <fstream>

#include "mitkReferenceCountWatcher.h"

class TwoOutputsFilter : public mitk::SurfaceToImageFilter
{
public:
  mitkClassMacro(TwoOutputsFilter, SurfaceToImageFilter);
  itkNewMacro(Self);
protected:
  TwoOutputsFilter()
  {
    mitk::Image::Pointer output
      = static_cast<mitk::Image*>(this->MakeOutput(0).GetPointer()); 
    Superclass::SetNumberOfRequiredOutputs(2);
    Superclass::SetNthOutput(1, output.GetPointer());
  }

  virtual ~TwoOutputsFilter()
  {
  }
};

template <class FilterType, class InputType>
int runPipelineSmartPointerCorrectnessTestForFilterType(typename InputType::Pointer input)
{
  typename FilterType::Pointer filter;
  std::cout << "Testing " << typeid(FilterType).name() << "::New(): ";
  filter = FilterType::New();
  if (filter.IsNull()) 
  {
    std::cout<<"[FAILED]"<<std::endl;
     return EXIT_FAILURE;
  }
  else 
  {
    std::cout<<"[PASSED]"<<std::endl;
  } 

  std::cout << "Testing SetInput(" << typeid(FilterType).name() << "): ";
  filter->SetInput(input);
  std::cout<<"[PASSED]"<<std::endl;
  //std::cout << "Testing mitk::SurfaceToImageFilter::*TESTED_METHOD_DESCRIPTION: ";
{'fraction_non_alphanumeric': 0.2004095213718966, 'fraction_numerical': 0.0015357051446122344, 'mean_word_length': 5.904593639575972, 'pattern_counts': {'":': 2, '<': 61, '<?xml version=': 0, '>': 13, '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': '3865442', 'n_tokens_mistral': 1182, 'n_tokens_neox': 1124, 'n_words': 251}