<commit_before>
class Mcir::Action::Screen < Mcir::Action
  @name = "screen"
  @desc = "capture screenshot of guest OS"

  def setup!
    @config = { capture: 1, interval: 1 }
    register_options
  end

  def register_options act = self
    @mcir.opt do
      on("-c", "--capture N", Integer, desc_def("number of screens to take", 1)) {|n| act.config[:capture] = n }
      on("-i", "--interval", Float, desc_def("capture interval in seconds", 1)) {|n| act.config[:interval] = n }
    end
  end

  def call instance, args
    @instance = instance
    while true
      @instance.capture_screenshot!
      @config[:capture] -= 1
      @config[:capture] > 0 ? sleep(1) : return
    end
  end
end<commit_msg>Indicate screens<commit_after>
class Mcir::Action::Screen < Mcir::Action
  @name = "screen"
  @desc = "capture screenshot of guest OS"

  def setup!
    @config = { capture: 1, interval: 1 }
    register_options
  end

  def register_options act = self
    @mcir.opt do
      on("-c", "--capture N", Integer, desc_def("number of screens to take", 1)) {|n| act.config[:capture] = n }
      on("-i", "--interval", Float, desc_def("capture interval in seconds", 1)) {|n| act.config[:interval] = n }
    end
  end

  def call instance, args
    @instance = instance
    while true
      @instance.capture_screenshot!
      print "."
      @config[:capture] -= 1
      @config[:capture] > 0 ? sleep(1) : return
    end
  end
end
{'fraction_non_alphanumeric': 0.14505956552207427, 'fraction_numerical': 0.009810791871058164, 'mean_word_length': 2.977715877437326, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2204716', 'n_tokens_mistral': 476, 'n_tokens_neox': 458, 'n_words': 143}