<commit_before>require '/Users/Albert/Repos/Scripts/ruby/lib/utilities.rb'
require 'rubygems'
require 'appscript'

# Display list of system commands that can be run.
systemEvenets = Appscript.app('System Events')
systemEvenets.methods.each { |method| puts method }
<commit_msg>Moved handy code into RS file (for now).<commit_after>require '/Users/Albert/Repos/Scripts/ruby/lib/utilities.rb'
require 'rubygems'
require 'appscript'

include Appscript

# Display list of system commands that can be run.
systemEvenets = Appscript.app('System Events')
systemEvenets.methods.each { |method| puts method }

# This is how you would run Command + K (in Terminal)
app('System Events').key_code(40, :using => [:command_down])

{'fraction_non_alphanumeric': 0.11592178770949721, 'fraction_numerical': 0.002793296089385475, 'mean_word_length': 5.577981651376147, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '6393385', 'n_tokens_mistral': 228, 'n_tokens_neox': 222, 'n_words': 67}