<commit_before>#include <stan/mcmc/covar_adaptation.hpp>
#include <gtest/gtest.h>

TEST(McmcCovarAdaptation, learn_covariance) {

  const int n = 10;
  std::vector<double> q(n, 0.0);
  Eigen::MatrixXd covar(Eigen::MatrixXd::Zero(n, n));
  
  const int n_learn = 10;
  
  Eigen::MatrixXd target_covar(Eigen::MatrixXd::Identity(n, n));
  target_covar *= 5.0 / (n_learn + 5.0);
  
  stan::mcmc::covar_adaptation adapter(n);
  
  for (int i = 0; i < n_learn; ++i)
    adapter.learn_covariance(covar, q);
  
  for (int i = 0; i < n; ++i) {
    for (int j = 0; j < n; ++j) {<commit_msg>updating covar adaptation test<commit_after>#include <stan/mcmc/covar_adaptation.hpp>
#include <gtest/gtest.h>

TEST(McmcCovarAdaptation, learn_covariance) {

  const int n = 10;
  std::vector<double> q(n, 0.0);
  Eigen::MatrixXd covar(Eigen::MatrixXd::Zero(n, n));
  
  const int n_learn = 10;
  
  Eigen::MatrixXd target_covar(Eigen::MatrixXd::Identity(n, n));
  target_covar *= 5.0 / (n_learn + 5.0);
  
  stan::mcmc::covar_adaptation adapter(n, n);
  
  for (int i = 0; i < n_learn; ++i)
    adapter.learn_covariance(covar, q);
  
  for (int i = 0; i < n; ++i) {
    for (int j = 0; j < n; ++j) {
{'fraction_non_alphanumeric': 0.17372881355932204, 'fraction_numerical': 0.022033898305084745, 'mean_word_length': 3.900414937759336, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 9, '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': '3939910', 'n_tokens_mistral': 546, 'n_tokens_neox': 515, 'n_words': 108}