<commit_before>#ifndef STAN_SERVICES_SAMPLE_INIT_WINDOWED_ADAPT_HPP
#define STAN_SERVICES_SAMPLE_INIT_WINDOWED_ADAPT_HPP

#include <stan/interface_callbacks/writer/base_writer.hpp>
#include <stan/mcmc/base_mcmc.hpp>
#include <stan/services/arguments/categorical_argument.hpp>
#include <stan/math/prim/mat/fun/Eigen.hpp>
#include <stan/services/sample/init_adapt.hpp>
#include <ostream>

namespace stan {
  namespace services {
    namespace sample {

      template<class Sampler>
      bool
      init_windowed_adapt(stan::mcmc::base_mcmc* sampler,
                          stan::services::categorical_argument* adapt,
                          unsigned int num_warmup,
                          const Eigen::VectorXd& cont_params,
                          interface_callbacks::writer::base_writer& info_writer,
                          interface_callbacks::writer::base_writer& error_writer) {
        init_adapt<Sampler>(sampler, adapt, cont_params, info_writer, error_writer);

        unsigned int init_buffer
          = dynamic_cast<u_int_argument*>(adapt->arg("init_buffer"))->value();
        unsigned int term_buffer
          = dynamic_cast<u_int_argument*>(adapt->arg("term_buffer"))->value();<commit_msg>cpplint<commit_after>#ifndef STAN_SERVICES_SAMPLE_INIT_WINDOWED_ADAPT_HPP
#define STAN_SERVICES_SAMPLE_INIT_WINDOWED_ADAPT_HPP

#include <stan/interface_callbacks/writer/base_writer.hpp>
#include <stan/mcmc/base_mcmc.hpp>
#include <stan/services/arguments/categorical_argument.hpp>
#include <stan/math/prim/mat/fun/Eigen.hpp>
#include <stan/services/sample/init_adapt.hpp>
#include <ostream>

namespace stan {
  namespace services {
    namespace sample {

      template<class Sampler>
      bool
      init_windowed_adapt(stan::mcmc::base_mcmc* sampler,
                          stan::services::categorical_argument* adapt,
                          unsigned int num_warmup,
                          const Eigen::VectorXd& cont_params,
                          interface_callbacks::writer::base_writer& info_writer,
                      interface_callbacks::writer::base_writer& error_writer) {
        init_adapt<Sampler>(sampler, adapt, cont_params,
                            info_writer, error_writer);

        unsigned int init_buffer
          = dynamic_cast<u_int_argument*>(adapt->arg("init_buffer"))->value();
        unsigned int term_buffer
          = dynamic_cast<u_int_argument*>(adapt->arg("term_buffer"))->value();
{'fraction_non_alphanumeric': 0.1000813669650122, 'fraction_numerical': 0.0, 'mean_word_length': 3.1467116357504215, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 31, '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': '6606902', 'n_tokens_mistral': 760, 'n_tokens_neox': 733, 'n_words': 103}