<commit_before>/*
 * Copyright (C) 2017 <NAME>
 *
 * This file is subject to the terms and conditions of the MIT License.
 * See the file LICENSE in the top level directory for more details.
 */

/**
 * @ingroup    conveyor_belt
 * @{
 *
 * @brief      Test function declaration of the ConveyorBelt component
 *
 * @author     <NAME> <<EMAIL>>
 */

#include "TestConveyorBeltHal.h"
#include "ConveyorBeltService.h"
#include "ConveyorBeltState.h"

#include <iostream>
#include <thread>
#include <chrono>

void TestConveyorBeltHal::startTest() {


	// NOTE: Make sure your thread has permissions before using this!


	ConveyorBeltService service;

	std::cout<<"[TestConveyorBeltHal] Start."<<std::endl;

	std::cout<<"[TestConveyorBeltHal] Run a configured routine."<<std::endl;

	service.ConveyorBeltChangeState(RIGHTFAST);
	std::this_thread::sleep_for(std::chrono::milliseconds(2000)); // 2 seconds.

	service.ConveyorBeltChangeState(STOP);
	std::this_thread::sleep_for(std::chrono::milliseconds(2000)); // 2 seconds.

	service.ConveyorBeltChangeState(LEFTSLOW);
	std::this_thread::sleep_for(std::chrono::milliseconds(2000)); // 2 seconds.

	service.ConveyorBeltChangeState(RIGHTFAST);
	std::this_thread::sleep_for(std::chrono::milliseconds(2000)); // 2 seconds.

	service.ConveyorBeltChangeState(RIGHTSLOW);
	std::this_thread::sleep_for(std::chrono::milliseconds(2000)); // 2 seconds.

	service.ConveyorBeltChangeState(LEFTFAST);
	std::this_thread::sleep_for(std::chrono::milliseconds(2000)); // 2 seconds.

	service.ConveyorBeltChangeState(STOP);

	std::cout<<"[TestConveyorBeltHal] Test done."<<std::endl;
}

/** @} */<commit_msg>Minor fix in the test of the conveyor belt<commit_after>/*
 * Copyright (C) 2017 <NAME>
 *
 * This file is subject to the terms and conditions of the MIT License.
 * See the file LICENSE in the top level directory for more details.
 */

/**
 * @ingroup    conveyor_belt
 * @{
 *
 * @brief      Test function declaration of the ConveyorBelt component
 *
 * @author     <NAME> <<EMAIL>>
 */

#include "TestConveyorBeltHal.h"
#include "ConveyorBeltService.h"
#include "ConveyorBeltState.h"

#include <iostream>
#include <thread>
#include <chrono>

void TestConveyorBeltHal::startTest() {


	// NOTE: Make sure your thread has permissions before using this!


	ConveyorBeltService conveyorBelt;

	std::cout<<"[TestConveyorBeltHal] Start."<<std::endl;

	std::cout<<"[TestConveyorBeltHal] Run a configured routine."<<std::endl;

	conveyorBelt.changeState(RIGHTFAST);
	std::this_thread::sleep_for(std::chrono::milliseconds(2000)); // 2 seconds.

	conveyorBelt.changeState(STOP);
	std::this_thread::sleep_for(std::chrono::milliseconds(2000)); // 2 seconds.

	conveyorBelt.changeState(LEFTSLOW);
	std::this_thread::sleep_for(std::chrono::milliseconds(2000)); // 2 seconds.

	conveyorBelt.changeState(RIGHTFAST);
	std::this_thread::sleep_for(std::chrono::milliseconds(2000)); // 2 seconds.

	conveyorBelt.changeState(RIGHTSLOW);
	std::this_thread::sleep_for(std::chrono::milliseconds(2000)); // 2 seconds.

	conveyorBelt.changeState(LEFTFAST);
	std::this_thread::sleep_for(std::chrono::milliseconds(2000)); // 2 seconds.

	conveyorBelt.changeState(STOP);

	std::cout<<"[TestConveyorBeltHal] Test done."<<std::endl;
}

/** @} */
{'fraction_non_alphanumeric': 0.1502000615574023, 'fraction_numerical': 0.020929516774392122, 'mean_word_length': 5.900212314225053, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 17, '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': '816143', 'n_tokens_mistral': 1197, 'n_tokens_neox': 1104, 'n_words': 216}