<commit_before># -*- coding: utf-8 -*-

require_relative 'container'

module Domain

  ##
  # A single slide of the presentation
  class Slide < Container

    attr_accessor :title, :id, :number, :skip

    ##
    # Create a new instance
    # @param [String] id slide id
    # @param [String] title title of the slide
    # @param [Fixnum] number number of slide
    # @param [Boolean] skip indicates a hidden slide
    def initialize(id, title, number, skip)
      super()
      @title, @id, @number, @skip = title, id, number, skip
    end

    ##
    # Create a digest of the content
    # @return [String] a digest of the slide
    def digest
      digest = ''
      digest << @title << ' '
      digest << super
      digest
    end

    ##
    # Render the Slide
    # @param [Rendering::Renderer] renderer to be used
    def render(renderer)
      return  if @skip

      if renderer.handles_animation?
        (0...max_order + 1).each do |order|
          renderer.slide_start(@title, @number, @id, contains_code?)
          @elements.each { |e| e.render(renderer) if !e.order.nil? && e.order <= order }
          renderer.slide_end
        end
      else
        renderer.slide_start(@title, @number, @id, contains_code?)
        @elements.each { |e| e.render(renderer) }
        renderer.slide_end
      end
    end<commit_msg>Additional blank to obey coding standard.<commit_after># -*- coding: utf-8 -*-

require_relative 'container'

module Domain

  ##
  # A single slide of the presentation
  class Slide < Container

    attr_accessor :title, :id, :number, :skip

    ##
    # Create a new instance
    # @param [String] id slide id
    # @param [String] title title of the slide
    # @param [Fixnum] number number of slide
    # @param [Boolean] skip indicates a hidden slide
    def initialize(id, title, number, skip)
      super()
      @title, @id, @number, @skip = title, id, number, skip
    end

    ##
    # Create a digest of the content
    # @return [String] a digest of the slide
    def digest
      digest = ''
      digest << @title << ' '
      digest << super
      digest
    end

    ##
    # Render the Slide
    # @param [Rendering::Renderer] renderer to be used
    def render(renderer)
      return  if @skip

      if renderer.handles_animation?
        (0...max_order + 1).each do |order|
          renderer.slide_start(@title, @number, @id, contains_code?)
          @elements.each { |e| e.render(renderer)  if !e.order.nil? && e.order <= order }
          renderer.slide_end
        end
      else
        renderer.slide_start(@title, @number, @id, contains_code?)
        @elements.each { |e| e.render(renderer) }
        renderer.slide_end
      end
    end
{'fraction_non_alphanumeric': 0.11349353049907579, 'fraction_numerical': 0.0022181146025878, 'mean_word_length': 2.3161764705882355, 'pattern_counts': {'":': 0, '<': 19, '<?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': '1037711', 'n_tokens_mistral': 830, 'n_tokens_neox': 822, 'n_words': 266}