<commit_before>#include <pml_bcpm.hpp>

using namespace std;
using namespace pml;

// constants for bcpm
const int K = 10;
const int T = 100;
const int LAG = 10;

pair<Matrix,Vector> genData() {
  double c = 0.05;
  Vector alpha = Vector::ones(K);
  return  DirichletModel(c, alpha).generateData(T);
}

pair<Matrix,Vector> genDataPoisson() {
  double c = 0.05;
  return  GammaModel(c, 10.0, 1.0).generateData(T);
}

void save(const Matrix& obs, const Vector& cps, ForwardBackward& fb) {
  obs.saveTxt("/tmp/obs.txt");
  fb.cpp.saveTxt("/tmp/cpp.txt");
  fb.mean.saveTxt("/tmp/mean.txt");
  cps.saveTxt("/tmp/real_cps.txt");
}

void offline(const Matrix& obs, ForwardBackward& fb) {
  fb.smoothing(obs);
}
<commit_msg>two function deleted from testBCPM<commit_after>#include <pml_bcpm.hpp>

using namespace std;
using namespace pml;

// constants for bcpm
const int K = 10;
const int T = 100;
const int LAG = 10;

void save(const Matrix& obs, const Vector& cps, ForwardBackward& fb) {
  obs.saveTxt("/tmp/obs.txt");
  fb.cpp.saveTxt("/tmp/cpp.txt");
  fb.mean.saveTxt("/tmp/mean.txt");
  cps.saveTxt("/tmp/real_cps.txt");
}

void offline(const Matrix& obs, ForwardBackward& fb) {
  fb.smoothing(obs);
}

{'fraction_non_alphanumeric': 0.1605657237936772, 'fraction_numerical': 0.020798668885191347, 'mean_word_length': 4.323008849557522, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4578631', 'n_tokens_mistral': 503, 'n_tokens_neox': 460, 'n_words': 110}