<commit_before>//
// Created by Caleb on 4/13/17.
//

#include "record.h"
#include "../control.h"

using namespace std;
using namespace cv;

Record::Record(Control *control) {
//  file = FileStorage("some_name.ext", cv::FileStorage::WRITE);
//  c = cv::VideoCapture();
  control_ptr = control;
//  cv::VideoWriter output_cap("some_file",
//                             control_ptr->image.get(CV_CAP_PROP_FOURCC),
//                             input_cap.get(CV_CAP_PROP_FPS),
//                             cv::Size(input_cap.get(CV_CAP_PROP_FRAME_WIDTH),
//                                      input_cap.get(CV_CAP_PROP_FRAME_HEIGHT)));
//  printf("before thing\n");
  v = cv::VideoWriter("caleb_file.avi", CV_FOURCC('M', 'J', 'P', 'G'), 25,
                      Size(640, 360), true);
//  printf("writing %dx%d\n", control_ptr->image.cols, control_ptr->image.rows);
//  printf("after thing\n");
//  printf("%d\n", (bool) v.isOpened());
}

void Record::run() {
//  printf("writing %dx%d\n", control_ptr->image.cols, control_ptr->image.rows);
  if (control_ptr->image.empty())
    return;
  v.write(control_ptr->image);
//  imshow("test", control_ptr->image);
//  v << control_ptr->image;
}

void Record::close() {


}<commit_msg>renaming the default recording file<commit_after>//
// Created by Caleb on 4/13/17.
//

#include "record.h"
#include "../control.h"

using namespace std;
using namespace cv;

Record::Record(Control *control) {
//  file = FileStorage("some_name.ext", cv::FileStorage::WRITE);
//  c = cv::VideoCapture();
  control_ptr = control;
//  cv::VideoWriter output_cap("some_file",
//                             control_ptr->image.get(CV_CAP_PROP_FOURCC),
//                             input_cap.get(CV_CAP_PROP_FPS),
//                             cv::Size(input_cap.get(CV_CAP_PROP_FRAME_WIDTH),
//                                      input_cap.get(CV_CAP_PROP_FRAME_HEIGHT)));
//  printf("before thing\n");
  v = cv::VideoWriter("new_testing_file.avi", CV_FOURCC('M', 'J', 'P', 'G'), 25,
                      Size(640, 360), true);
//  printf("writing %dx%d\n", control_ptr->image.cols, control_ptr->image.rows);
//  printf("after thing\n");
//  printf("%d\n", (bool) v.isOpened());
}

void Record::run() {
//  printf("writing %dx%d\n", control_ptr->image.cols, control_ptr->image.rows);
  if (control_ptr->image.empty())
    return;
  v.write(control_ptr->image);
//  imshow("test", control_ptr->image);
//  v << control_ptr->image;
}

void Record::close() {


}
{'fraction_non_alphanumeric': 0.18780096308186195, 'fraction_numerical': 0.01043338683788122, 'mean_word_length': 2.6933333333333334, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4984259', 'n_tokens_mistral': 876, 'n_tokens_neox': 845, 'n_words': 140}