<commit_before>#include <string>
#include <iostream>
#include <fstream>
#include <iomanip>
#include <vector>
#include <cstdlib>
#include <boost/filesystem.hpp>
#include <boost/timer.hpp>
#include <boost/foreach.hpp>
#include <boost/ptr_container/ptr_vector.hpp>
#include <boost/program_options.hpp>
#include <boost/make_shared.hpp>
#include <opencv2/opencv.hpp>

#include "kinect_view.h"
#include "kinect_calibration.h"

using namespace kinect_merge;
using kinect_capture::CHerreraCalibration;
namespace po = boost::program_options;

#ifdef DEBUG
void print_matrix(const cv::Mat &m) {
    for(int i = 0; i < m.rows; i++) {
        for(int j = 0; j < m.cols; j++) {
            std::cout << m.at<float>(i, j) << " ";
        }
        std::cout << std::endl;
    }
}
#endif

static void print_usage(std::string program_name, po::options_description desc) {
    std::cerr << "Usage: " << program_name << " [options] capture_dir output_file" << std::endl;
    std::cerr << desc << std::endl;
}

static void parse_options(int argc, const char **argv, po::variables_map &vm) {
    po::options_description desc;
    desc.add_options()
        ("help,h",              "display this help and exit")
        ("covscalexy,sxy",      boost::program_options::value<float>()->default_value(DEFAULT_COVARIANCE_SCALE_XY),
                                "scale factor for measurement x- and y-variances")
        ("covscalez,sz",        boost::program_options::value<float>()->default_value(DEFAULT_COVARIANCE_SCALE_Z),
                                "scale factor for measurement z-variance")
        ("connectivity,c",      boost::program_options::value<std::string>(),
                                "OpenCV YAML file containing the view connectivity matrix C")
        ("debug,d",             "output debug files")
        ("capture_dir",         "directory to read the capture data from")
        ("output_file",         "PLY file to write the resulting point cloud to");
<commit_msg>Removed short option flags for covariance scaling.<commit_after>#include <string>
#include <iostream>
#include <fstream>
#include <iomanip>
#include <vector>
#include <cstdlib>
#include <boost/filesystem.hpp>
#include <boost/timer.hpp>
#include <boost/foreach.hpp>
#include <boost/ptr_container/ptr_vector.hpp>
#include <boost/program_options.hpp>
#include <boost/make_shared.hpp>
#include <opencv2/opencv.hpp>

#include "kinect_view.h"
#include "kinect_calibration.h"

using namespace kinect_merge;
using kinect_capture::CHerreraCalibration;
namespace po = boost::program_options;

#ifdef DEBUG
void print_matrix(const cv::Mat &m) {
    for(int i = 0; i < m.rows; i++) {
        for(int j = 0; j < m.cols; j++) {
            std::cout << m.at<float>(i, j) << " ";
        }
        std::cout << std::endl;
    }
}
#endif

static void print_usage(std::string program_name, po::options_description desc) {
    std::cerr << "Usage: " << program_name << " [options] capture_dir output_file" << std::endl;
    std::cerr << desc << std::endl;
}

static void parse_options(int argc, const char **argv, po::variables_map &vm) {
    po::options_description desc;
    desc.add_options()
        ("help,h",              "display this help and exit")
        ("connectivity,c",      boost::program_options::value<std::string>(),
                                "OpenCV YAML file containing the view connectivity matrix C")
        ("debug,d",             "output debug files")
        ("covscalexy",          boost::program_options::value<float>()->default_value(DEFAULT_COVARIANCE_SCALE_XY),
                                "scale factor for measurement x- and y-variances")
        ("covscalez",           boost::program_options::value<float>()->default_value(DEFAULT_COVARIANCE_SCALE_Z),
                                "scale factor for measurement z-variance")
        ("capture_dir",         "directory to read the capture data from")
        ("output_file",         "PLY file to write the resulting point cloud to");

{'fraction_non_alphanumeric': 0.13762847831536726, 'fraction_numerical': 0.0015041363750313362, 'mean_word_length': 3.1519250780437043, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 41, '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': '3058834', 'n_tokens_mistral': 1239, 'n_tokens_neox': 1226, 'n_words': 296}