<commit_before>#include<iostream>
#include<cerrno>
#include<cstdlib>

using namespace std;

void die(int status_code, char* msg=NULL) {
  if(status_code >= 0){ //handle stuff that returns -1 instead of a valid FD
    return;
  }
  cout << "He's dead, Jim!" << endl;
  cout << "returned:" << status_code << endl;
  cout << errno <<endl;
  if (msg != NULL) {
    cout << msg << endl;
  }
  exit(1);
}
<commit_msg>die on any non zero value<commit_after>#include<iostream>
#include<cerrno>
#include<cstdlib>

using namespace std;

void die(int status_code, char* msg=NULL) {
  if(status_code == 0){
    return;
  }
  cout << "He's dead, Jim!" << endl;
  cout << "returned:" << status_code << endl;
  cout << errno <<endl;
  if (msg != NULL) {
    cout << msg << endl;
  }
  exit(1);
}

{'fraction_non_alphanumeric': 0.17285531370038412, 'fraction_numerical': 0.006402048655569782, 'mean_word_length': 3.682634730538922, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 10, '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': '5334074', 'n_tokens_mistral': 295, 'n_tokens_neox': 285, 'n_words': 81}