<commit_before>
import db
listSteps = ["Init","Choose Type", "Choose Establish", "Send Location"]
def step(chat_id):
	stp = db.getStep(chat_id)
	i = stp['step']
	return listSteps[i]
	
def nextStep(chat_id):
	i = db.getStep(chat_id)
	if i < len(listSteps)-1:
		db.setStep(chat_id, i+1)
		
def stepBack(chat_id):
	i = db.getStep(chat_id)
	if i != 0:
		i -= 1
		db.setStep(chat_id, i)
		return listSteps[i]
	else:
		return False<commit_msg>Fixed back option<commit_after>
import db
listSteps = ["Init","Choose Type", "Choose Establish", "Send Location"]
def step(chat_id):
	stp = db.getStep(chat_id)
	i = stp['step']
	return listSteps[i]
	
def nextStep(chat_id):
	stp = db.getStep(chat_id)
	i = stp['step']
	if i < len(listSteps)-1:
		db.setStep(chat_id, i+1)
		
def stepBack(chat_id):
	stp = db.getStep(chat_id)
	i = stp['step']
	if i != 0:
		i -= 1
		db.setStep(chat_id, i)
		return listSteps[i]
	else:
		return False
{'fraction_non_alphanumeric': 0.1572052401746725, 'fraction_numerical': 0.008733624454148471, 'mean_word_length': 4.362573099415204, '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': '1126749', 'n_tokens_mistral': 421, 'n_tokens_neox': 396, 'n_words': 91}