<commit_before>#include <ncurses.h>
#include "class_contents.hh"

contents::contents(std::vector<std::string>* cont)
    : cont(cont),
      y(0),
      x(0),
      desired_x(0),
      waiting_for_desired(false) {
    getmaxyx(stdscr,max_y,max_x);
}
contents::contents(long y, long x)
    : cont(new std::vector<std::string>()),
      y(y),
      x(x),
      desired_x(0),
      waiting_for_desired(false) {
    getmaxyx(stdscr,max_y,max_x);
}
contents::~contents() {
    if(this->cont) delete this->cont;
}


contents::contents(const contents& other)
    : cont(other.cont),
      y(other.y),
      x(other.x),
      desired_x(other.desired_x),
      max_y(other.max_y),
      max_x(other.max_x),
      waiting_for_desired(other.waiting_for_desired) { }<commit_msg>Fixed ``class_contents.cc'' to initialize ``y_offset''<commit_after>#include <ncurses.h>
#include "class_contents.hh"

contents::contents(std::vector<std::string>* cont)
    : cont(cont),
      y(0),
      x(0),
      desired_x(0),
      y_offset(0),
      waiting_for_desired(false) {
    getmaxyx(stdscr,max_y,max_x);
}
contents::contents(long y, long x)
    : cont(new std::vector<std::string>()),
      y(y),
      x(x),
      desired_x(0),
      y_offset(0),
      waiting_for_desired(false) {
    getmaxyx(stdscr,max_y,max_x);
}
contents::~contents() {
    if(this->cont) delete this->cont;
}


contents::contents(const contents& other)
    : cont(other.cont),
      y(other.y),
      x(other.x),
      desired_x(other.desired_x),
      max_y(other.max_y),
      max_x(other.max_x),
      waiting_for_desired(other.waiting_for_desired) { }
{'fraction_non_alphanumeric': 0.16821849782743636, 'fraction_numerical': 0.006207324643078833, 'mean_word_length': 3.5027932960893855, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, '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': '5248137', 'n_tokens_mistral': 625, 'n_tokens_neox': 632, 'n_words': 80}