<commit_before>#!/usr/bin/env ruby
if $0 == "bin/c9.rb"
  $LOAD_PATH.unshift "../channel9/lib"
  $LOAD_PATH.unshift "lib"
end

require 'channel9'
require 'channel9/loader/ruby'

debug = ARGV.include?("-d")
ARGV.delete("-d")
print = ARGV.include?("-p")
ARGV.delete("-p")

loader = Channel9::Loader::Ruby.new(debug)
stream = loader.compile(ARGV[0])
if (print)
  puts stream.to_json
else
  context = Channel9::Context.new(loader.env, stream)
  global_self = loader.env.special_channel[:global_self]
  context.channel_send(loader.env, global_self, Channel9::CleanExitChannel)
end<commit_msg>Multiple debug levels.<commit_after>#!/usr/bin/env ruby
if $0 == "bin/c9.rb"
  $LOAD_PATH.unshift "../channel9/lib"
  $LOAD_PATH.unshift "lib"
end

require 'channel9'
require 'channel9/loader/ruby'

debug = ARGV.include?("-d")
ARGV.delete("-d")
debug = ARGV.include?("-dd") ? :detail : debug
ARGV.delete("-dd")
print = ARGV.include?("-p")
ARGV.delete("-p")

loader = Channel9::Loader::Ruby.new(debug)
stream = loader.compile(ARGV[0])
if (print)
  puts stream.to_json
else
  context = Channel9::Context.new(loader.env, stream)
  global_self = loader.env.special_channel[:global_self]
  context.channel_send(loader.env, global_self, Channel9::CleanExitChannel)
end
{'fraction_non_alphanumeric': 0.1745396317053643, 'fraction_numerical': 0.014411529223378704, 'mean_word_length': 5.443298969072165, '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': '6141569', 'n_tokens_mistral': 474, 'n_tokens_neox': 470, 'n_words': 82}