<commit_before>#include <iostream>
#include <vector>

#include "Benchmark.hpp"
#include "BenchmarkRunner.hpp"

using namespace mach5;

class SelectionSortBenchmark : public Benchmark {
public:
	virtual void code();
};

void SelectionSortBenchmark::code() {
	std::cout << "Running..." << std::endl;
	std::vector<int> num = {0, 9, 8, 7, 6, 5, 4, 3, 2, 1};
	int tam = num.size();
	for (int i = 0; i < (tam-1); i++) {
		int min = i;
		for (int j = (i+1); j < tam; j++) {
			if(num[j] < num[min]) {
				min = j;
			}
		}
		if (i != min) {
			int swap = num[i];
			num[i] = num[min];
			num[min] = swap;
		}
	}
}

int main() {
	BenchmarkRunnerPtr runner = BenchmarkRunnerPtr(new BenchmarkRunner());
	runner->addBenchmark(BenchmarkPtr(new SelectionSortBenchmark()));
	runner->runAll();
}<commit_msg>Adds another test<commit_after>#include <iostream>
#include <vector>
#include <algorithm>

#include "Benchmark.hpp"
#include "BenchmarkRunner.hpp"

using namespace mach5;

class SelectionSortBenchmark : public Benchmark {
public:
	virtual void code();
};

void SelectionSortBenchmark::code() {
	std::cout << "Running SelectionSortBenchmark..." << std::endl;
	std::vector<int> num = {0, 9, 8, 7, 6, 5, 4, 3, 2, 1};
	int tam = num.size();
	for (int i = 0; i < (tam-1); i++) {
		int min = i;
		for (int j = (i+1); j < tam; j++) {
			if(num[j] < num[min]) {
				min = j;
			}
		}
		if (i != min) {
			int swap = num[i];
			num[i] = num[min];
			num[min] = swap;
		}
	}
}

class SortBenchmark : public Benchmark {
public:
	virtual void code();
};

void SortBenchmark::code() {
	std::cout << "Running SortBenchmark..." << std::endl;
	std::vector<int> num = {0, 9, 8, 7, 6, 5, 4, 3, 2, 1};
	std::sort(num.begin(), num.end());
}

int main() {
	BenchmarkRunnerPtr runner = BenchmarkRunnerPtr(new BenchmarkRunner());
	runner->addBenchmark(BenchmarkPtr(new SelectionSortBenchmark()));
	runner->addBenchmark(BenchmarkPtr(new SortBenchmark()));
	runner->runAll();
}
{'fraction_non_alphanumeric': 0.19084362139917696, 'fraction_numerical': 0.01954732510288066, 'mean_word_length': 4.1319261213720315, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 16, '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': '2797322', 'n_tokens_mistral': 830, 'n_tokens_neox': 756, 'n_words': 193}