<commit_before>#ifndef NAIVEBAYESIAN_H_
#define NAIVEBAYESIAN_H_

#include <vector>

#include "bayesian.h"

namespace baysian {

class NaiveBayesian : public Bayesian {
 public:
  void Train(char *);
  void Predict(char *);
  // calculate the probability of each choice
  // and choose the greatest one as our prediction
  NaiveBayesian(char *);
  // initialize all the information we need from training data
  ~NaiveBayesian();
  // release memory
 private:
  long double **probabilityTable;
};
<commit_msg>improve sequence<commit_after>#ifndef NAIVEBAYESIAN_H_
#define NAIVEBAYESIAN_H_

#include <vector>

#include "bayesian.h"

namespace baysian {

class NaiveBayesian : public Bayesian {
 public:
  NaiveBayesian(char *);
  // initialize all the information we need from training data
  ~NaiveBayesian();
  // release memory
  void Train(char *);
  void Predict(char *);
  // calculate the probability of each choice
  // and choose the greatest one as our prediction

 private:
  long double **probabilityTable;
};

{'fraction_non_alphanumeric': 0.09019607843137255, 'fraction_numerical': 0.0, 'mean_word_length': 4.345549738219895, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6837868', 'n_tokens_mistral': 325, 'n_tokens_neox': 301, 'n_words': 101}