<commit_before>#include <iostream>
#include <fstream>

#include <itkImageFileReader.h>
#include <itkImageFileWriter.h>

#include <itkChangeLabelImageFilter.h>

int main(int argc, char* argv[])
{
  const char* infile = argv[1];
  const char* outfile = argv[2];
  const char* tablename = argv[3];

  typedef unsigned short PixelType;
  typedef itk::Image<PixelType, 3> ImageType;
  typedef itk::ImageFileReader<ImageType> ImageFileReaderType;
  typedef itk::ImageFileWriter<ImageType> ImageFileWriterType;

  typedef itk::ChangeLabelImageFilter<ImageType, ImageType> ChangeLabelType;

  ImageFileReaderType::Pointer reader = ImageFileReaderType::New();
  reader->SetFileName(infile);

  ChangeLabelType::Pointer labelchanger = ChangeLabelType::New();
  labelchanger->SetInput(reader->GetOutput());

  std::ifstream tablereader(tablename);
  do
    {<commit_msg>ENH: check command line parameters.<commit_after>#include <iostream>
#include <fstream>

#include <itkImageFileReader.h>
#include <itkImageFileWriter.h>

#include <itkChangeLabelImageFilter.h>

int main(int argc, char* argv[])
{
  if(argc != 4)
    {
    std::cerr << "Usage <infile> <outfile> <textfile>" << std::endl;
    return EXIT_FAILURE;
    }
  
  const char* infile = argv[1];
  const char* outfile = argv[2];
  const char* tablename = argv[3];

  typedef unsigned short PixelType;
  typedef itk::Image<PixelType, 3> ImageType;
  typedef itk::ImageFileReader<ImageType> ImageFileReaderType;
  typedef itk::ImageFileWriter<ImageType> ImageFileWriterType;

  typedef itk::ChangeLabelImageFilter<ImageType, ImageType> ChangeLabelType;

  ImageFileReaderType::Pointer reader = ImageFileReaderType::New();
  reader->SetFileName(infile);

  ChangeLabelType::Pointer labelchanger = ChangeLabelType::New();
  labelchanger->SetInput(reader->GetOutput());

  std::ifstream tablereader(tablename);
  do
    {
{'fraction_non_alphanumeric': 0.12332439678284182, 'fraction_numerical': 0.00482573726541555, 'mean_word_length': 6.232558139534884, 'pattern_counts': {'":': 0, '<': 28, '<?xml version=': 0, '>': 30, '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': '4461310', 'n_tokens_mistral': 614, 'n_tokens_neox': 596, 'n_words': 126}