<commit_before>#ifndef HYBRID_AUTOMATON_DESCRIPTION_TREE_NODE_H_
#define HYBRID_AUTOMATON_DESCRIPTION_TREE_NODE_H_

#include <string>

// FIXME remove
#include <iostream>

namespace ha {

	class DescriptionTreeNode {

	protected:

	private:  

	public:
		
		// Override these in the implementation class (i.e. DescriptionTreeNodeTinyXML)
		virtual std::string getAttribute(const std::string& field_name) const = 0;
		virtual const DescriptionTreeNode& getChildNode(const std::string& field_name) const = 0;

		//Implement these helper functions here (internally they call getAttribute)
		virtual bool getAttributeBool(const std::string& field_name, bool default_value)
		{
			std::string val = getAttribute(field_name);
			if (!val.empty())
			{
				if (val == "true")
				{
					return true;
				}
				else if (val == "false")
				{
					return false;
				}
			}
			return default_value;
		}

	};

}

#endif
<commit_msg>Repaired hybrid_automaton_rlab package. Removed changed interfaces of DescriptionTreeNode for incoming commit by Arne<commit_after>#ifndef HYBRID_AUTOMATON_DESCRIPTION_TREE_NODE_H_
#define HYBRID_AUTOMATON_DESCRIPTION_TREE_NODE_H_

#include <string>

// FIXME remove
#include <iostream>

namespace ha {

	class DescriptionTreeNode {

	protected:

	private:  

	public:
		


	};

}

#endif

{'fraction_non_alphanumeric': 0.08625954198473282, 'fraction_numerical': 0.0015267175572519084, 'mean_word_length': 4.3076923076923075, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6262951', 'n_tokens_mistral': 490, 'n_tokens_neox': 429, 'n_words': 105}