<commit_before>#include <babylon/samples/samples_index.h>
#include <babylon/core/logging.h>

#ifdef _WIN32
#include <process.h>
#endif

namespace BABYLON {
namespace impl {

void spawnScreenshots(const std::string & exeName, bool skipFailing)
{
  BABYLON::Samples::SamplesIndex samplesIndex;
  auto samples = samplesIndex.getSampleNames();
  for (auto sample : samples)
  {
    BABYLON_LOG_INFO("ScreenshotAllSamples", sample);
    auto does_fail = samplesIndex.doesSampleFail(sample);
    if (does_fail && skipFailing) {
      BABYLON_LOG_INFO("ScreenshotAllSamples", "Skipping failing ", sample, ": ", SampleFailureReason_Str(does_fail.value()));
    }
    else
      _spawnl(P_WAIT, exeName.c_str(), exeName.c_str(), "-s", sample.c_str(), "-p", NULL);
  }
}

} // namespace impl
} // namespace BABYLON<commit_msg>spawnScreenshots is not yet implmented on *nixes<commit_after>#include <babylon/samples/samples_index.h>
#include <babylon/core/logging.h>
#include <iostream>

#ifdef _WIN32
#include <process.h>
#endif

namespace BABYLON {
namespace impl {

#ifdef _WIN32
void spawnScreenshots(const std::string & exeName, bool skipFailing)
{
  BABYLON::Samples::SamplesIndex samplesIndex;
  auto samples = samplesIndex.getSampleNames();
  for (auto sample : samples)
  {
    BABYLON_LOG_INFO("ScreenshotAllSamples", sample);
    auto does_fail = samplesIndex.doesSampleFail(sample);
    if (does_fail && skipFailing) {
      BABYLON_LOG_INFO("ScreenshotAllSamples", "Skipping failing ", sample, ": ", SampleFailureReason_Str(does_fail.value()));
    }
    else
      _spawnl(P_WAIT, exeName.c_str(), exeName.c_str(), "-s", sample.c_str(), "-p", NULL);
  }
}
#else

#pragma message("spawnScreenshots is not yet implmented on *nixes")

void spawnScreenshots(const std::string & , bool)
{
  std::cerr << "spawnScreenshots is not yet implmented on *nixes";
}
#endif

} // namespace impl
} // namespace BABYLON
{'fraction_non_alphanumeric': 0.13280839895013125, 'fraction_numerical': 0.0031496062992125984, 'mean_word_length': 5.031645569620253, 'pattern_counts': {'":': 2, '<': 12, '<?xml version=': 0, '>': 10, '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': '6874334', 'n_tokens_mistral': 702, 'n_tokens_neox': 656, 'n_words': 137}