<commit_before>package rational

import (
	"math/big"

	"github.com/alex-ant/gomath/misc"
)

// Simplify simplifies the rational number by dividing it's numerator and
// denominator by the GCD.
func (ev *Rational) Simplify() {
	currentNumerator := ev.numerator
	currentDenominator := ev.denominator<commit_msg>removing both numerator and denominator negatives while simplifying the rational<commit_after>package rational

import (
	"math/big"

	"github.com/alex-ant/gomath/misc"
)

// Simplify simplifies the rational number by dividing it's numerator and
// denominator by the GCD.
func (ev *Rational) Simplify() {
	currentNumerator := ev.numerator
	currentDenominator := ev.denominator

	if currentNumerator < 0 && currentDenominator < 0 {
		ev.numerator *= -1
		ev.denominator *= -1
	}
{'fraction_non_alphanumeric': 0.10152284263959391, 'fraction_numerical': 0.005076142131979695, 'mean_word_length': 4.5174825174825175, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '716837', 'n_tokens_mistral': 273, 'n_tokens_neox': 247, 'n_words': 71}