<commit_before>/**
 * \file
 * \brief SignalsCatchingTestCase class implementation
 *
 * \author Copyright (C) 2015-2017 <NAME> http://www.distortec.com http://www.freddiechopin.info
 *
 * \par License
 * This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
 * distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

#include "SignalsCatchingTestCase.hpp"

#include "distortos/distortosConfiguration.h"

/// configuration required by SignalsCatchingTestCase
#define SIGNALS_CATCHING_TEST_CASE_ENABLED CONFIG_MAIN_THREAD_QUEUED_SIGNALS >= 8 && \
		CONFIG_MAIN_THREAD_SIGNAL_ACTIONS >= 8

#if SIGNALS_CATCHING_TEST_CASE_ENABLED == 1

#include "SequenceAsserter.hpp"

#include "distortos/DynamicThread.hpp"
#include "distortos/StaticSoftwareTimer.hpp"
#include "distortos/statistics.hpp"
#include "distortos/ThisThread.hpp"
#include "distortos/ThisThread-Signals.hpp"

#include "estd/ContiguousRange.hpp"

#include <cerrno>

#endif	// SIGNALS_CATCHING_TEST_CASE_ENABLED == 1

namespace distortos
{<commit_msg>Disable SignalsCatchingTestCase if signals are disabled<commit_after>/**
 * \file
 * \brief SignalsCatchingTestCase class implementation
 *
 * \author Copyright (C) 2015-2017 <NAME> http://www.distortec.com http://www.freddiechopin.info
 *
 * \par License
 * This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
 * distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

#include "SignalsCatchingTestCase.hpp"

#include "distortos/distortosConfiguration.h"

/// configuration required by SignalsCatchingTestCase
#define SIGNALS_CATCHING_TEST_CASE_ENABLED CONFIG_SIGNALS_ENABLE == 1 && CONFIG_MAIN_THREAD_QUEUED_SIGNALS >= 8 && \
		CONFIG_MAIN_THREAD_SIGNAL_ACTIONS >= 8

#if SIGNALS_CATCHING_TEST_CASE_ENABLED == 1

#include "SequenceAsserter.hpp"

#include "distortos/DynamicThread.hpp"
#include "distortos/StaticSoftwareTimer.hpp"
#include "distortos/statistics.hpp"
#include "distortos/ThisThread.hpp"
#include "distortos/ThisThread-Signals.hpp"

#include "estd/ContiguousRange.hpp"

#include <cerrno>

#endif	// SIGNALS_CATCHING_TEST_CASE_ENABLED == 1

namespace distortos
{
{'fraction_non_alphanumeric': 0.10433244916003537, 'fraction_numerical': 0.014588859416445624, 'mean_word_length': 5.32122905027933, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '4656541', 'n_tokens_mistral': 800, 'n_tokens_neox': 759, 'n_words': 181}