<commit_before>require "slim"
require "rodakase/view"

require "formalist_demo/container"
require "formalist_demo/page"

module FormalistDemo
  Container.register(:page, Page.new(Container.config))

  class View < Rodakase::View::Layout
    setting :root, Container.root.join("web/templates")
    setting :scope, Container[:page]
    setting :engine, :slim
    setting :name, "application"
  end
end
<commit_msg>Configure view formats on main view class<commit_after>require "slim"
require "rodakase/view"

require "formalist_demo/container"
require "formalist_demo/page"

module FormalistDemo
  Container.register(:page, Page.new(Container.config))

  class View < Rodakase::View::Layout
    setting :root, Container.root.join("web/templates")
    setting :scope, Container[:page]
    setting :formats, {html: :slim}
    setting :name, "application"
  end
end

{'fraction_non_alphanumeric': 0.1173054587688734, 'fraction_numerical': 0.0, 'mean_word_length': 5.338235294117647, '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': '2199120', 'n_tokens_mistral': 277, 'n_tokens_neox': 268, 'n_words': 65}