<commit_before>/*
 * SerialSensorTest.cpp
 *
 *  Created on: 13 Sep 2015
 *      Author: jeremy
 */

#include "SensorTest.h"

#include <Source/Api/eXaDrumKit.h>

#include "../IO/SpiSensor.h"


using namespace eXaDrumKitApi;
using namespace std::chrono;

namespace Testing
{

	void SensorTest::RunTest()
	{

		std::string moduleLocation("/home/jeremy/Desktop/Prog/eXaDrums/eXaDrums/Data/");
		eXaDrumKit drumKit(moduleLocation.c_str());

		std::string kitLocation("Kits/default.xml");
		drumKit.LoadKit(kitLocation.c_str());

		// Create Sensor
		IO::Sensor sensor(0);

		// Add a trigger for drum id 0
		const int snareId = 0;
		drumKit.AddTrigger(snareId);

		// Start drum module
		drumKit.Start();

		int N = 500000;
<commit_msg>Changed Sensor to SpiSensor in the test function.<commit_after>/*
 * SerialSensorTest.cpp
 *
 *  Created on: 13 Sep 2015
 *      Author: jeremy
 */

#include "SensorTest.h"

#include <Source/Api/eXaDrumKit.h>

#include "../IO/SpiSensor.h"


using namespace eXaDrumKitApi;
using namespace std::chrono;

namespace Testing
{

	void SensorTest::RunTest()
	{

		std::string moduleLocation("/home/jeremy/Desktop/Prog/eXaDrums/eXaDrums/Data/");
		eXaDrumKit drumKit(moduleLocation.c_str());

		std::string kitLocation("Kits/default.xml");
		drumKit.LoadKit(kitLocation.c_str());

		// Create Sensor
		IO::SpiSensor sensor(0);

		// Add a trigger for drum id 0
		const int snareId = 0;
		drumKit.AddTrigger(snareId);

		// Start drum module
		drumKit.Start();

		int N = 500000;

{'fraction_non_alphanumeric': 0.13639387890884896, 'fraction_numerical': 0.01996007984031936, 'mean_word_length': 3.867313915857605, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '3194635', 'n_tokens_mistral': 625, 'n_tokens_neox': 563, 'n_words': 117}