<commit_before>#include <boost/program_options.hpp>
#include <boost/filesystem.hpp>
#include <primesense_slam/primesense_slam.h>

using namespace std;
using namespace g2o;
using namespace clams;

int main(int argc, char** argv)
{
  namespace bpo = boost::program_options;
  namespace bfs = boost::filesystem;
  bpo::options_description opts_desc("Allowed options");
  bpo::positional_options_description p;

  string workspace;
  opts_desc.add_options()
    ("help,h", "produce help message")
    ("workspace", bpo::value(&workspace)->required(), "CLAMS workspace.")
    ("max-loopclosures", bpo::value<int>())
    ;

  p.add("workspace", 1);
  
  bpo::variables_map opts;
  bpo::store(bpo::command_line_parser(argc, argv).options(opts_desc).positional(p).run(), opts);
  bool badargs = false;
  try { bpo::notify(opts); }
  catch(...) { badargs = true; }
  if(opts.count("help") || badargs) {
    cout << "Usage: " << bfs::basename(argv[0]) << "[OPTS] CLAMS_WORKSPACE" << endl;
    cout << "  This program will run slam on all sequences in CLAMS_WORKSPACE/sequences/." << endl;
    cout << "  Results will be placed in CLAMS_WORKSPACE/slam_results/." << endl;
    cout << endl;
    cout << opts_desc << endl;
    return 1;
  }

  string sequences_path = workspace + "/sequences";
  string results_path = workspace + "/slam_results";
  if(!bfs::exists(results_path))
    bfs::create_directory(results_path);

  // -- Get sequence names in order.
  vector<string> sseq_names;
  bfs::directory_iterator it(sequences_path), eod;<commit_msg>Adding space.<commit_after>#include <boost/program_options.hpp>
#include <boost/filesystem.hpp>
#include <primesense_slam/primesense_slam.h>

using namespace std;
using namespace g2o;
using namespace clams;

int main(int argc, char** argv)
{
  namespace bpo = boost::program_options;
  namespace bfs = boost::filesystem;
  bpo::options_description opts_desc("Allowed options");
  bpo::positional_options_description p;

  string workspace;
  opts_desc.add_options()
    ("help,h", "produce help message")
    ("workspace", bpo::value(&workspace)->required(), "CLAMS workspace.")
    ("max-loopclosures", bpo::value<int>())
    ;

  p.add("workspace", 1);
  
  bpo::variables_map opts;
  bpo::store(bpo::command_line_parser(argc, argv).options(opts_desc).positional(p).run(), opts);
  bool badargs = false;
  try { bpo::notify(opts); }
  catch(...) { badargs = true; }
  if(opts.count("help") || badargs) {
    cout << "Usage: " << bfs::basename(argv[0]) << " [OPTS] CLAMS_WORKSPACE" << endl;
    cout << "  This program will run slam on all sequences in CLAMS_WORKSPACE/sequences/." << endl;
    cout << "  Results will be placed in CLAMS_WORKSPACE/slam_results/." << endl;
    cout << endl;
    cout << opts_desc << endl;
    return 1;
  }

  string sequences_path = workspace + "/sequences";
  string results_path = workspace + "/slam_results";
  if(!bfs::exists(results_path))
    bfs::create_directory(results_path);

  // -- Get sequence names in order.
  vector<string> sseq_names;
  bfs::directory_iterator it(sequences_path), eod;
{'fraction_non_alphanumeric': 0.1538211382113821, 'fraction_numerical': 0.0026016260162601626, 'mean_word_length': 4.613138686131387, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 15, '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': '6880174', 'n_tokens_mistral': 1050, 'n_tokens_neox': 1029, 'n_words': 228}