<commit_before>#!/bin/bash

function keypair {
	sx newkey > privatekey-$(date +%y-%m-%d-%s).txt
	cat privatekey-$(date +%y-%m-%d-%s).txt | sx addr > publickey-$(date +%y-%m-%d-%s).txt
}

function stealth {
	sx stealth-new > stealthkeys-$(date +%y-%m-%d-%s).txt
}

if zenity --question --text="Do you want to create a new keypair?"; then
	keypair
	if zenity --question --text="Do you want to generate a stealth address?"; then
		stealth
	else
		zenity --info --text="No problem."
	fi
	zenity --info --text="Done\!"
elif zenity --question --text="Do you want to generate a stealth address?"; then
	stealth
	zenity --info --text="Done. Enjoy your privacy\!"
else
	zenity --info --text="Thanks for using SX\!"
fi
<commit_msg>Update start.sh<commit_after>#!bin/bash

#Create a new keypair

function keypair {
	sx newkey > privatekey-$(date +%y-%m-%d-%s).txt
	cat privatekey-$(date +%y-%m-%d-%s).txt | sx addr > publickey-$(date +%y-%m-%d-%s).txt
}

#Create a new stealth address

function stealth {
	sx stealth-new > stealthkeys-$(date +%y-%m-%d-%s).txt
}

#Create a variable that is the output
# of the user's selection in the list
# dialog box.

OUT=$(zenity --list --checklist --text="Select an action from the list below" --title="SX Tools Menu" --column="Select" --column="Create" TRUE "New Address" FALSE "Stealth Address")

#Pseudo-menu based on Zenity's list dialog box

if [ "$OUT" == "New Address" ]; then
	keypair
elif [ "$OUT" == "Stealth Address" ]; then
	stealth
elif [ "$OUT" == "New Address|Stealth Address" ]; then
	keypair
	stealth
else
	zenity --info --text="Thanks for using SX\!"
fi

{'fraction_non_alphanumeric': 0.17573483427141964, 'fraction_numerical': 0.0, 'mean_word_length': 3.6511627906976742, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2704711', 'n_tokens_mistral': 591, 'n_tokens_neox': 563, 'n_words': 184}