<commit_before>class XrandrParser

  def initialize(xrOut)
    @xrOut = xrOut
  end

  def getMonitors
    
  end
end<commit_msg>Completed monitor parsing from Xrandr output<commit_after>require_relative "./display_info.rb"

class XrandrParser

  def initialize(xrOut)
    @xrOut = xrOut
  end

  def getMonitors
    monitors = Monitors.new
    @xrOut.each do |line|
      if line.include?(" connected ")
        monitorInfo = line.scan(/^(.*?) connected (\d+)x(\d+)\+(\d+)\+(\d+) \(/).at(0)
        monitors.addMonitor(monitorInfo[0], monitorInfo[3].to_i, monitorInfo[1].to_i, monitorInfo[4].to_i, monitorInfo[2].to_i)
      end
    end
  end
end

{'fraction_non_alphanumeric': 0.13734567901234568, 'fraction_numerical': 0.009259259259259259, 'mean_word_length': 3.2980132450331126, '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': '879211', 'n_tokens_mistral': 246, 'n_tokens_neox': 237, 'n_words': 48}