<commit_before>#include <math.h>

#include "Constants.h"
#include "HeroStrategy.h"
#include "State.h"

void HeroStrategy::UpdateRange(State& state)
{
	lastState = &state;
}

double HeroStrategy::GetShowdownValue() const
{
	auto board = lastState->GetBoard().get();
	auto boardAsHand = board->GetBoardAsHand();
	auto holding = lastState->ToAct().GetHolding();

	return evaluator.evaluate(
		boardAsHand +
		omp::Hand(Constants::PowerTwoIndices[holding.Card1]) +
		omp::Hand(Constants::PowerTwoIndices[holding.Card2]));
}
<commit_msg>Replaced the return rvalue with an lvalue for clarity.<commit_after>#include <math.h>

#include "Constants.h"
#include "HeroStrategy.h"
#include "State.h"

void HeroStrategy::UpdateRange(State& state)
{
	lastState = &state;
}

double HeroStrategy::GetShowdownValue() const
{
	auto board = lastState->GetBoard().get();
	auto boardAsHand = board->GetBoardAsHand();
	auto holding = lastState->ToAct().GetHolding();
	omp::Hand card1 = Constants::PowerTwoIndices[holding.Card1];
	omp::Hand card2 = Constants::PowerTwoIndices[holding.Card2];
	double eval = evaluator.evaluate(boardAsHand + card1 + card2);

	return eval;
}

{'fraction_non_alphanumeric': 0.14165968147527241, 'fraction_numerical': 0.006705783738474434, 'mean_word_length': 5.091836734693878, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '7303759', 'n_tokens_mistral': 403, 'n_tokens_neox': 394, 'n_words': 76}