<commit_before>#!usr/bin/env ruby

require File.dirname(File.expand_path(__FILE__))+'/../lib/rawline'

puts "*** Rawline Editor Test Shell ***"
puts " * Press CTRL+X to exit"
puts " * Press CTRL+G to clear command history"<commit_msg>Update examples/rawline_shell with Highline patch.<commit_after>#!usr/bin/env ruby

require File.dirname(File.expand_path(__FILE__))+'/../lib/rawline'
require 'io/console'

require 'highline/system_extensions'
module HighLine::SystemExtensions
	def get_character( input = STDIN )
		input.raw do
	  	input.getbyte
		end
  end
end

puts "*** Rawline Editor Test Shell ***"
puts " * Press CTRL+X to exit"
puts " * Press CTRL+G to clear command history"
{'fraction_non_alphanumeric': 0.13030746705710103, 'fraction_numerical': 0.0, 'mean_word_length': 4.947826086956522, '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': '4118562', 'n_tokens_mistral': 241, 'n_tokens_neox': 231, 'n_words': 61}