<commit_before>require "forwardable"

module Blinkie
  module Drawing
    module Layout

      class Horizontal

        extend Forwardable
        include Enumerable

        def initialize(elements = [])
          @elements = elements
        end

        #todo are these needed?
        def_delegators :@elements,
           :"<<",
           :"[]",
           :each

        def update
          @elements.each(&:update)
        end

        def draw(left, top)
          @elements.each do |element|
            element.draw(left, top)
            left += element.width
          end
        end

        def width
          @elements.map(&:width).inject(0, &:+)
        end

        def height
          @elements.max(&:height)
        end

      end

    end
  end
end<commit_msg>Remove dead code<commit_after>module Blinkie
  module Drawing
    module Layout

      class Horizontal

        extend Forwardable

        def initialize(elements = [])
          @elements = elements
        end

        def update
          @elements.each(&:update)
        end

        def draw(left, top)
          @elements.each do |element|
            element.draw(left, top)
            left += element.width
          end
        end

        def width
          @elements.map(&:width).inject(0, &:+)
        end

        def height
          @elements.max(&:height)
        end

      end

    end
  end
end
{'fraction_non_alphanumeric': 0.08404558404558404, 'fraction_numerical': 0.0014245014245014246, 'mean_word_length': 1.369308600337268, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2965437', 'n_tokens_mistral': 394, 'n_tokens_neox': 366, 'n_words': 98}