<commit_before>#include "calc.h"
#include <stdexcept>
#include <sstream>

int calc(int a, int b, char operator_symbol) {
	switch (operator_symbol) {
		case '*': return a*b;
		case '/':
			if (b == 0) throw std::domain_error{"division by zero"};
			return a/b;
		case '+': return a+b;
		case '-': return a-b;
		case '%': return a%b;
	}
	throw std::invalid_argument{"invalid operator"};
}
<commit_msg>get rid of unnecessary #include<commit_after>#include "calc.h"
#include <stdexcept>

int calc(int a, int b, char operator_symbol) {
	switch (operator_symbol) {
		case '*': return a*b;
		case '/':
			if (b == 0) throw std::domain_error{"division by zero"};
			return a/b;
		case '+': return a+b;
		case '-': return a-b;
		case '%': return a%b;
	}
	throw std::invalid_argument{"invalid operator"};
}

{'fraction_non_alphanumeric': 0.17565872020075282, 'fraction_numerical': 0.002509410288582183, 'mean_word_length': 4.215686274509804, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '1728774', 'n_tokens_mistral': 319, 'n_tokens_neox': 288, 'n_words': 82}