<commit_before>(defrule ShowMainMenu

=>
	(printout t "- Infering relations about:" crlf)
	(printout t "      11- cousins " crlf)
	(printout t "      12- Nephews" crlf)
	(printout t "      13- Nieces" crlf)
	(printout t "      14- Uncle" crlf)
	(printout t "      15- Aunt" crlf)
	(printout t "      16- Grandfather" crlf)
	(printout t "      17- Grandmother" crlf)
	(printout t "- Familly knowledge base" crlf)
	(printout t "      21- Display a familly member by name" crlf)
	(printout t "      22- Display a familly member by parent" crlf)
	(printout t "      23- Add family member" crlf)
	(printout t "      24- Remove family member" crlf)
	(printout t "- Modify family member properties" crlf)
	(printout t "      31- Modify familly member name" crlf)
	(printout t "      32- Modify familly member gender" crlf)
	(printout t "      33- Modify familly member birthyear" crlf)
	(printout t "      34- Modify familly member height" crlf)
	(printout t "      35- Modify familly member parents" crlf)
	(printout t "      36- Modify familly member siblings" crlf)
	(printout t "      37- Modify familly member spouse" crlf)
	(printout t "- Search familly members by properties" crlf)
	(printout t "      41- Show all individuals that match a combination of properties familly knowledge base" crlf)

	(bind ?selectedOption (read))

	(assert(Selected ?selectedOption))
)

(defrule GetQueryData<commit_msg>added loop to get back to the main menu after the user chooses an option and finishes it<commit_after>(defrule ShowMainMenu
	(not (Selected ?))
=>
	(printout t "- Infering relations about:" crlf)
	(printout t "      11- cousins " crlf)
	(printout t "      12- Nephews" crlf)
	(printout t "      13- Nieces" crlf)
	(printout t "      14- Uncle" crlf)
	(printout t "      15- Aunt" crlf)
	(printout t "      16- Grandfather" crlf)
	(printout t "      17- Grandmother" crlf)
	(printout t "- Familly knowledge base" crlf)
	(printout t "      21- Display a familly member by name" crlf)
	(printout t "      22- Display a familly member by parent" crlf)
	(printout t "      23- Add family member" crlf)
	(printout t "      24- Remove family member" crlf)
	(printout t "- Modify family member properties" crlf)
	(printout t "      31- Modify familly member name" crlf)
	(printout t "      32- Modify familly member gender" crlf)
	(printout t "      33- Modify familly member birthyear" crlf)
	(printout t "      34- Modify familly member height" crlf)
	(printout t "      35- Modify familly member parents" crlf)
	(printout t "      36- Modify familly member siblings" crlf)
	(printout t "      37- Modify familly member spouse" crlf)
	(printout t "- Search familly members by properties" crlf)
	(printout t "      41- Show all individuals that match a combination of properties familly knowledge base" crlf)

	(bind ?selectedOption (read))

	(assert(Selected ?selectedOption))
)

(defrule ClearSelected
	(declare (salience -10000))

	?selectedIndex <- (Selected ?)
=>
	(retract ?selectedIndex)
)

(defrule GetQueryData
{'fraction_non_alphanumeric': 0.0965814802522403, 'fraction_numerical': 0.026883504812479257, 'mean_word_length': 3.078484438430311, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, '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': '5140856', 'n_tokens_mistral': 1094, 'n_tokens_neox': 996, 'n_words': 381}