<commit_before>
#include <iostream>
#include <sstream>
#include <string>

#include "code.hh"



using namespace code::cmd;

std::string
code::compare_gt(
	const ISymbolTable::Entry& a,
	const ISymbolTable::Entry& b,
	const std::uint32_t offset)
{
	std::ostringstream machine_code;
	
	machine_code
			// ładowanie identyfikatorów do rejestrów do obliczeń
			<< LOAD << " " << a.current_addr << "\n"
			<< STORE << " " << 0 << "\n"
			<< LOAD << " " << b.current_addr << "\n"
			<< STORE << " " << 1 << "\n"
			// sprawdzanie warunku
			<< LOAD << " " << 0 << "\n"
			<< SUB << " " << 1 << "\n"
			<< JG << " " << offset + 9 << "\n"
			<< ZERO << "\n"
			<< JUMP << " " << offset + 10 << "\n"
			<< INC << "\n";
						
	return machine_code.str();
}
<commit_msg>Warunek GT to odwrócony LT.<commit_after>
#include <iostream>
#include <sstream>
#include <string>

#include "code.hh"



using namespace code::cmd;

std::string
code::compare_gt(
	const ISymbolTable::Entry& a,
	const ISymbolTable::Entry& b,
	const std::uint32_t offset)
{					
	return compare_lt(b, a, offset);
}

{'fraction_non_alphanumeric': 0.19944082013047532, 'fraction_numerical': 0.010251630941286114, 'mean_word_length': 3.3306451612903225, 'pattern_counts': {'":': 0, '<': 81, '<?xml version=': 0, '>': 9, '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': '4403213', 'n_tokens_mistral': 466, 'n_tokens_neox': 412, 'n_words': 97}