<commit_before>module Shoes
  class App < Qt::Application #:nodoc: all

    def initialize opts = {}, blk #:nodoc:
      super ARGV

      height = opts[:height] || 200
      width = opts[:width] || 400
      resizeable = opts[:resizable].nil? ? true : false

      @_main_window = Qt::Widget.new do
        self.layout = Shoes::Stack.new
        resize height, width
        @widgets = []
        unless resizeable
          setMaximumSize(height,width)
          setMinimumSize(height,width)
        end


        def self.paintEvent event
          painter = Qt::Painter.new self
          @widgets.each{|w| w.draw painter }
          painter.end
        end

        def add_widget widget
          @widgets << widget
        end

      end

      
      @_current_widget = @_main_window<commit_msg>Let's use the logo.<commit_after>module Shoes
  class App < Qt::Application #:nodoc: all

    def initialize opts = {}, blk #:nodoc:
      super ARGV

      
      set_window_icon(Qt::Icon.new "#{File.expand_path(File.dirname(__FILE__))}/../../static/blue_shoes.jpg")

      height = opts[:height] || 200
      width = opts[:width] || 400
      resizeable = opts[:resizable].nil? ? true : false

      @_main_window = Qt::Widget.new do
        self.layout = Shoes::Stack.new
        resize height, width
        @widgets = []
        unless resizeable
          setMaximumSize(height,width)
          setMinimumSize(height,width)
        end


        def self.paintEvent event
          painter = Qt::Painter.new self
          @widgets.each{|w| w.draw painter }
          painter.end
        end

        def add_widget widget
          @widgets << widget
        end

      end

      
      @_current_widget = @_main_window
{'fraction_non_alphanumeric': 0.10346820809248555, 'fraction_numerical': 0.006936416184971098, 'mean_word_length': 1.9289340101522843, 'pattern_counts': {'":': 0, '<': 9, '<?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': '6573457', 'n_tokens_mistral': 542, 'n_tokens_neox': 493, 'n_words': 120}