<commit_before>// $Id$
#if defined(_MSC_VER)
#pragma warning ( disable : 4786 )
#endif

#define MAIN
#include "otbCAIImageIO.h"
#include "itkExceptionObject.h"
#include <iostream>

int otbCAIImageIOTest(int argc, char* argv[])
{
  try
  {
  	otb::CAIImageIO::Pointer lCAIImageIO = otb::CAIImageIO::New();
        bool lCanRead = lCAIImageIO->CanReadFile(argv[1]);
        if ( lCanRead == false)
        {
                std::cerr << "Erreur otb::CAIImageIO : impossible d'ouvrir l'image "<<argv[1]<<" ("<<CAI_ERREUR<<")."<<std::endl;
                return EXIT_FAILURE;
        }
  }
  catch( itk::ExceptionObject & err ) 
  { 
    std::cerr << "Exception OTB attrappee dans exception ITK !" << std::endl; 
    std::cerr << err << std::endl; 
    return EXIT_FAILURE;
  } 
  catch( ... )
  {<commit_msg>nomsg<commit_after>// $Id$
#if defined(_MSC_VER)
#pragma warning ( disable : 4786 )
#endif

#define MAIN
#include "otbCAIImageIO.h"
#include "itkExceptionObject.h"
#include <iostream>

int otbCAIImageIOTestCanRead(int argc, char* argv[])
{
  try
  {
  	otb::CAIImageIO::Pointer lCAIImageIO = otb::CAIImageIO::New();
        bool lCanRead = lCAIImageIO->CanReadFile(argv[1]);
        if ( lCanRead == false)
        {
                std::cerr << "Erreur otb::CAIImageIO : impossible d'ouvrir l'image "<<argv[1]<<" ("<<CAI_ERREUR<<")."<<std::endl;
                return EXIT_FAILURE;
        }
  }
  catch( itk::ExceptionObject & err ) 
  { 
    std::cerr << "Exception OTB attrappee dans exception ITK !" << std::endl; 
    std::cerr << err << std::endl; 
    return EXIT_FAILURE;
  } 
  catch( ... )
  {
{'fraction_non_alphanumeric': 0.16263190564866542, 'fraction_numerical': 0.0074487895716946, 'mean_word_length': 3.122762148337596, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 7, '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': '4875622', 'n_tokens_mistral': 624, 'n_tokens_neox': 590, 'n_words': 118}