<commit_before>#pragma once

#include <vector>
#include <algorithm>

namespace cilantro {
    template <class ModelEstimatorT, class ModelParamsT, typename ResidualScalarT>
    class RandomSampleConsensusBase {
    public:
        RandomSampleConsensusBase(size_t sample_size,
                                  size_t inlier_count_thresh,
                                  size_t max_iter,
                                  ResidualScalarT inlier_dist_thresh,
                                  bool re_estimate = true)
                : sample_size_(sample_size),
                  inlier_count_thresh_(inlier_count_thresh),
                  max_iter_(max_iter),
                  inlier_dist_thresh_(inlier_dist_thresh),
                  re_estimate_(re_estimate),
                  iteration_count_(0)
        {}

        inline size_t getSampleSize() const { return sample_size_; }

        inline ModelEstimatorT& setSampleSize(size_t sample_size) {
            sample_size_ = sample_size;
            return *static_cast<ModelEstimatorT*>(this);
        }

        inline size_t getTargetInlierCount() const { return inlier_count_thresh_; }

        inline ModelEstimatorT& setTargetInlierCount(size_t inlier_count_thres) {
            inlier_count_thresh_ = inlier_count_thres;<commit_msg>Added missing #include<commit_after>#pragma once

#include <vector>
#include <algorithm>
#include <random>

namespace cilantro {
    template <class ModelEstimatorT, class ModelParamsT, typename ResidualScalarT>
    class RandomSampleConsensusBase {
    public:
        RandomSampleConsensusBase(size_t sample_size,
                                  size_t inlier_count_thresh,
                                  size_t max_iter,
                                  ResidualScalarT inlier_dist_thresh,
                                  bool re_estimate = true)
                : sample_size_(sample_size),
                  inlier_count_thresh_(inlier_count_thresh),
                  max_iter_(max_iter),
                  inlier_dist_thresh_(inlier_dist_thresh),
                  re_estimate_(re_estimate),
                  iteration_count_(0)
        {}

        inline size_t getSampleSize() const { return sample_size_; }

        inline ModelEstimatorT& setSampleSize(size_t sample_size) {
            sample_size_ = sample_size;
            return *static_cast<ModelEstimatorT*>(this);
        }

        inline size_t getTargetInlierCount() const { return inlier_count_thresh_; }

        inline ModelEstimatorT& setTargetInlierCount(size_t inlier_count_thres) {
            inlier_count_thresh_ = inlier_count_thres;
{'fraction_non_alphanumeric': 0.05799313239221671, 'fraction_numerical': 0.0007630675314765357, 'mean_word_length': 2.05950991831972, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1057271', 'n_tokens_mistral': 770, 'n_tokens_neox': 706, 'n_words': 125}