<commit_before>module RevealCK
  #
  # Public: A PresentationDSL defines the DSL behind a
  # presentation. It also knows how to load file containing the DSL.
  #
  class PresentationDSL
    attr_reader :author, :title, :theme, :transition

    def initialize
      @slides = []
    end

    def theme(theme)
      @theme = theme
    end

    def transition(transition)
      @transition = transition
    end

    def title(title)
      @title = title
    end

    def author(author)
      @author = author
    end

    def slide(template, variables = {})
      variables[:template] = template
      @slides << RevealCK::Slide.new(variables)
    end

    def contents_of(path)
      File.open(path).read<commit_msg>[rebuilding-with-rake] Rubocop now permits trivial accessors in DSL<commit_after>module RevealCK
  #
  # Public: A PresentationDSL defines the DSL behind a
  # presentation. It also knows how to load file containing the DSL.
  #
  class PresentationDSL
    attr_reader :author, :title, :theme, :transition

    def initialize
      @slides = []
    end

    # Rubocop doesn't like trivial accessors, but docile breaks if
    # trivial accessors are used.
    # rubocop:disable TrivialAccessors
    def theme(theme)
      @theme = theme
    end

    def transition(transition)
      @transition = transition
    end

    def title(title)
      @title = title
    end

    def author(author)
      @author = author
    end
    # rubocop:enable TrivialAccessors

    def slide(template, variables = {})
      variables[:template] = template
      @slides << RevealCK::Slide.new(variables)
    end

    def contents_of(path)
      File.open(path).read
{'fraction_non_alphanumeric': 0.0812274368231047, 'fraction_numerical': 0.0, 'mean_word_length': 2.6792035398230087, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4917897', 'n_tokens_mistral': 506, 'n_tokens_neox': 481, 'n_words': 149}