<commit_before>//
// Created by <NAME> Gelldur on 6/17/16.
//

#pragma once

#include <map>

#include <Component.h>
#include <bridge/NativeObject.h>

class NativeObject;

/**
 * Implementation is environment specific
 */
class Container : public Component
{
	using inherited = Component;
public:
	using InitType = std::initializer_list<NativeObject>;

	Container()
			: inherited()
	{
	}


	Container& add(NativeObject&& nativeObject);

	/**
	 * @return nullptr if element not found
	 */
	virtual NativeObject& get(const std::string& tag);

	size_t count() const
	{
		return _managed.size();
	}

	COMPONENT_TO_STRING(Container)

	static Container& getNullObject();

private:
	std::map<std::string, NativeObject> _managed;
};
<commit_msg>Remove bad documentation<commit_after>//
// Created by <NAME> Gelldur on 6/17/16.
//

#pragma once

#include <map>

#include <Component.h>
#include <bridge/NativeObject.h>

class NativeObject;

/**
 * Implementation is environment specific
 */
class Container : public Component
{
	using inherited = Component;
public:
	using InitType = std::initializer_list<NativeObject>;

	Container()
			: inherited()
	{
	}


	Container& add(NativeObject&& nativeObject);

	virtual NativeObject& get(const std::string& tag);

	size_t count() const
	{
		return _managed.size();
	}

	COMPONENT_TO_STRING(Container)

	static Container& getNullObject();

private:
	std::map<std::string, NativeObject> _managed;
};

{'fraction_non_alphanumeric': 0.1304044630404463, 'fraction_numerical': 0.00697350069735007, 'mean_word_length': 4.627450980392157, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '1749110', 'n_tokens_mistral': 485, 'n_tokens_neox': 454, 'n_words': 118}