<commit_before>include base.vars.BaseVars

include git.util.GitUtil

include language.util.LanguageUtil

include logger.Logger

include string.util.StringUtil
include string.validator.StringValidator

GitRebaseUtil(){
	abort(){
		Logger logProgressMsg "terminating_previous_rebase_process"

		cd ${buildDir}

		git rebase --abort

		Logger logCompletedMsg
	}

	amend(){
		Logger logProgressMsg "amending_the_previous_commit"

		cd ${buildDir}

		git commit --amend

		Logger logCompletedMsg
	}

	cont(){
		Logger logProgressMsg "continuing_the_current_rebase_process"

		cd ${buildDir}

		git rebase --continue

		Logger logCompletedMsg
	}

	default(){
		cd ${buildDir}

		local curBranch=$(GitUtil getCurBranch)

		Logger logProgressMsg "rebasing_${curBranch}_against_${branch}_HEAD"

		git pull --rebase upstream ${branch}

		Logger logCompletedMsg
	}

	start(){
		local value=$(StringUtil returnOption ${2})

		local _message=(
			rebasing_the_last_${value}_
			$(LanguageUtil togglePlurality ${value} commit commits)
		)

		Logger logProgressMsg "$(StringUtil join _message)"

		cd ${buildDir}

		git rebase -i head~${value}

		Logger logCompletedMsg
	}

	local branch=$(BaseVars returnBranch ${@})
	local buildDir=$(BaseVars returnBuildDir ${branch})

	$@
}<commit_msg>Update variable<commit_after>include base.vars.BaseVars

include git.util.GitUtil

include language.util.LanguageUtil

include logger.Logger

include string.util.StringUtil
include string.validator.StringValidator

GitRebaseUtil(){
	abort(){
		Logger logProgressMsg "terminating_previous_rebase_process"

		cd ${buildDir}

		git rebase --abort

		Logger logCompletedMsg
	}

	amend(){
		Logger logProgressMsg "amending_the_previous_commit"

		cd ${buildDir}

		git commit --amend

		Logger logCompletedMsg
	}

	cont(){
		Logger logProgressMsg "continuing_the_current_rebase_process"

		cd ${buildDir}

		git rebase --continue

		Logger logCompletedMsg
	}

	default(){
		cd ${buildDir}

		local curBranch=$(GitUtil getCurBranch)

		Logger logProgressMsg "rebasing_${curBranch}_against_${branch}_HEAD"

		git pull --rebase upstream ${branch}

		Logger logCompletedMsg
	}

	start(){
		local value=$(StringUtil returnOption ${1})

		local _message=(
			rebasing_the_last_${value}_
			$(LanguageUtil togglePlurality ${value} commit commits)
		)

		Logger logProgressMsg "$(StringUtil join _message)"

		cd ${buildDir}

		git rebase -i head~${value}

		Logger logCompletedMsg
	}

	local branch=$(BaseVars returnBranch ${@})
	local buildDir=$(BaseVars returnBuildDir ${branch})

	$@
}
{'fraction_non_alphanumeric': 0.1003921568627451, 'fraction_numerical': 0.000784313725490196, 'mean_word_length': 4.797727272727273, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1985741', 'n_tokens_mistral': 892, 'n_tokens_neox': 792, 'n_words': 191}