<commit_before>#! /usr/bin/ruby

class Top_menu

	ATT = "7"
	LOAD_FILE = "bin/test.bin mini"
#	LOAD_FILE = "bin/Read_SubGHz.bin"
#	LOAD_FILE = "bin/test_debug.bin mini"
#	LOAD_FILE = "bin/test_FIRST.bin mini"
#	LOAD_FILE = "bin/test_for_BP3596A.bin Rev3"
#	LOAD_FILE = "bin/test_for_BP3596A.bin Rev3"

	def self.telec_menu
		Dir.chdir "./TELEC-T245"
		while 1
			print("====================== TELEC MENU =======================\n")
			p = Dir.glob("*")
			p.sort.each{|d| puts "" + d + "\n" }
			print("99.exit\n")
			print("=========================================================\n")
			print("input number => ")
			input = gets().to_s

			if input == "99\n" then
				Dir.chdir "./.."
				break
			elsif input == "\n" then
				p "ignore input"
			else
				p p.sort[input.to_i]
				com = "./" + p.sort[input.to_i]
				system(com)
			end
		end
	end
<commit_msg>Update menu in rf_test<commit_after>#! /usr/bin/ruby

class Top_menu

	ATT = "7"
	LOAD_FILE = "bin/test.bin mini"

	def self.telec_menu
		Dir.chdir "./TELEC-T245"
		while 1
			print("====================== TELEC MENU =======================\n")
			p = Dir.glob("*")
			p.sort.each{|d| puts "" + d + "\n" }
			print("99.exit\n")
			print("=========================================================\n")
			print("input number => ")
			input = gets().to_s

			if input == "99\n" then
				Dir.chdir "./.."
				break
			elsif input == "\n" then
				p "ignore input"
			else
				p p.sort[input.to_i]
				com = "./" + p.sort[input.to_i]
				system(com)
			end
		end
	end

{'fraction_non_alphanumeric': 0.2898360655737705, 'fraction_numerical': 0.018360655737704918, 'mean_word_length': 2.994764397905759, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '865421', 'n_tokens_mistral': 708, 'n_tokens_neox': 581, 'n_words': 123}