<commit_before>//
// Copyright (c) 2013 <NAME>
// See LICENSE for more information.
//

#ifndef MLK_SIGNALS_SLOTS_GLOBAL_HANDLER_H
#define MLK_SIGNALS_SLOTS_GLOBAL_HANDLER_H


#include "signal.h"
#include "slot.h"

#include <mlk/containers/container_utl.h>

#include <algorithm>
#include <iostream>
#include <map>
#include <memory>
#include <vector>


namespace mlk
{
	namespace internal
	{
		class global_signal_handler
		{
			// a signal can have one or more slots
			// every slot of "signal" is called, when "signal" is called
			std::map<signal, std::vector<std::shared_ptr<basic_slot>>> m_content;
			int m_current_uid{1};
			std::vector<int> m_linked_uids;

		public:
			static global_signal_handler& instance()
			{
				static global_signal_handler instance;
				return instance;
			}

			template<typename T><commit_msg>removed unused vector<commit_after>//
// Copyright (c) 2013 <NAME>
// See LICENSE for more information.
//

#ifndef MLK_SIGNALS_SLOTS_GLOBAL_HANDLER_H
#define MLK_SIGNALS_SLOTS_GLOBAL_HANDLER_H


#include "signal.h"
#include "slot.h"

#include <mlk/containers/container_utl.h>

#include <algorithm>
#include <iostream>
#include <map>
#include <memory>
#include <vector>


namespace mlk
{
	namespace internal
	{
		class global_signal_handler
		{
			// a signal can have one or more slots
			// every slot of "signal" is called, when "signal" is called
			std::map<signal, std::vector<std::shared_ptr<basic_slot>>> m_content;
			int m_current_uid{1};

		public:
			static global_signal_handler& instance()
			{
				static global_signal_handler instance;
				return instance;
			}

			template<typename T>
{'fraction_non_alphanumeric': 0.10852237890864501, 'fraction_numerical': 0.0061312078479460455, 'mean_word_length': 4.44, 'pattern_counts': {'":': 0, '<': 26, '<?xml version=': 0, '>': 26, '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': '6529117', 'n_tokens_mistral': 631, 'n_tokens_neox': 567, 'n_words': 143}