<commit_before>#ifndef __STAN__COMMON__RECORDER__VALUES_HPP__
#define __STAN__COMMON__RECORDER__VALUES_HPP__

#include <ostream>
#include <string>
#include <stdexcept>
#include <vector>

namespace stan {
  namespace common {
    namespace recorder {
      
      template <class InternalVector>
      class values {
      private:
        size_t m_;
        size_t N_;
        size_t M_;
        std::vector<InternalVector> x_;

      public:

        values(const size_t N,
               const size_t M) 
          : m_(0), N_(N), M_(M) {
          for (size_t n = 0; n < N_; n++)
            x_.push_back(InternalVector(M_));
        }

        values(const std::vector<InternalVector>& x)<commit_msg>reserve the size of values vector of the sampling recorder<commit_after>#ifndef __STAN__COMMON__RECORDER__VALUES_HPP__
#define __STAN__COMMON__RECORDER__VALUES_HPP__

#include <ostream>
#include <string>
#include <stdexcept>
#include <vector>

namespace stan {
  namespace common {
    namespace recorder {
      
      template <class InternalVector>
      class values {
      private:
        size_t m_;
        size_t N_;
        size_t M_;
        std::vector<InternalVector> x_;

      public:

        values(const size_t N,
               const size_t M) 
          : m_(0), N_(N), M_(M) {
          x_.reserve(N_);
          for (size_t n = 0; n < N_; n++)
            x_.push_back(InternalVector(M_));
        }

        values(const std::vector<InternalVector>& x)
{'fraction_non_alphanumeric': 0.09465855307640297, 'fraction_numerical': 0.002704530087897228, 'mean_word_length': 2.3789954337899544, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 17, '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': '4651507', 'n_tokens_mistral': 481, 'n_tokens_neox': 464, 'n_words': 115}