<commit_before>#include <iostream>
#include "yaml-cpp/yaml.h"

int main()
{
  YAML::Node config = YAML::LoadFile("config.yaml");
  return 0;
}<commit_msg>Trying to figure out why YAML node doesn't parse<commit_after>#include <iostream>
#include "yaml-cpp/yaml.h"

int main()
{
  YAML::Node node = YAML::Load("token: value");
  switch (node.Type()){
    case YAML::NodeType::Null: 
      std::cout << "Type is Null\n"; 
    case YAML::NodeType::Scalar: 
      std::cout << "Type is Scalar\n"; 
    case YAML::NodeType::Sequence:
      std::cout << "Type is Sequence\n"; 
    case YAML::NodeType::Map:
      std::cout << "Type is Map\n";
    case YAML::NodeType::Undefined:
      std::cout << "Type is Undefined\n";
    default: 
      std::cout << "ohnoes\n";  //node.Type() hits default case; expect Map
  } 
  std::cout << node << std::endl;
  std::cout << node["token"].as<std::string>() << std::endl; //segfault

  return 0;
}
{'fraction_non_alphanumeric': 0.1883745963401507, 'fraction_numerical': 0.002152852529601722, 'mean_word_length': 3.603960396039604, 'pattern_counts': {'":': 0, '<': 26, '<?xml version=': 0, '>': 6, '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': '5644309', 'n_tokens_mistral': 350, 'n_tokens_neox': 324, 'n_words': 79}