<commit_before>#include <iostream>
#include "../src/LinkedList.h"

using namespace std;

int main() {
  LinkedList* list = new LinkedList();
  list->add(1);
  list->add(13);
  list->add(3);
  cout << list->toString() << endl << endl;

  // Test invalid removal 
  bool invalid = list->remove(3);
  cout << "This should be false: " << invalid << endl;
  cout << list->toString() << endl;

  // Test valid removal 
  bool valid = list->remove(1);
  cout << "This should be true: " << valid << endl;
  cout << list->toString() << endl;

  // Test removal of first
  valid = list->remove(0);
  cout << "This should be true: " << valid << endl;
  cout << list->toString() << endl;

  // Restore
  list = new LinkedList();
  list->add(1);
  list->add(13);
  list->add(3);

  // Test indexOf
  int index = list->indexOf(13);
  cout << "This should be 1: " << index << endl;
  index = list->indexOf(2);
  cout << "This should be -1: " << index << endl;
}<commit_msg>Clean up valid tests<commit_after>#include <iostream>
#include "../src/LinkedList.h"

using namespace std;

int main() {
  LinkedList* list = new LinkedList();
  list->add(1);
  list->add(13);
  list->add(3);
  cout << list->toString() << endl << endl;

  // Test invalid removal 
  bool valid = list->remove(3);
  cout << "This should be false: " << valid << endl;
  cout << list->toString() << endl;

  // Test valid removal 
  valid = list->remove(1);
  cout << "This should be true: " << valid << endl;
  cout << list->toString() << endl;

  // Test removal of first
  valid = list->remove(0);
  cout << "This should be true: " << valid << endl;
  cout << list->toString() << endl;

  // Restore
  list = new LinkedList();
  list->add(1);
  list->add(13);
  list->add(3);

  // Test indexOf
  int index = list->indexOf(13);
  cout << "This should be 1: " << index << endl;
  index = list->indexOf(2);
  cout << "This should be -1: " << index << endl;
}
{'fraction_non_alphanumeric': 0.19540229885057472, 'fraction_numerical': 0.01671891327063741, 'mean_word_length': 3.1006423982869378, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 35, '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': '4857744', 'n_tokens_mistral': 657, 'n_tokens_neox': 633, 'n_words': 194}