<commit_before># encoding: utf-8

module Nanoc3::CLI::Commands

  class CreateSite < Cri::Command

    DEFAULT_RULES = <<EOS
#!/usr/bin/env ruby

compile '/stylesheet/' do
  # don’t filter or layout
end

compile '*' do
  filter :erb
  layout 'default'
end

route '/stylesheet/' do
  '/style.css'
end

route '*' do
  item.identifier + 'index.html'
end

layout '*', :erb
EOS

    DEFAULT_ITEM = <<EOS<commit_msg>added some helpful tips to the default Rules file<commit_after># encoding: utf-8

module Nanoc3::CLI::Commands

  class CreateSite < Cri::Command

    DEFAULT_RULES = <<EOS
#!/usr/bin/env ruby

# A few helpful tips about the Rules file:
#
# * The order of rules is important: for each item, only the first matching
#   rule is applied.
#
# * Item identifiers start and end with a slash (e.g. “/about/” for the file
#   “content/about.html”). To select all children, grandchildren, … of an
#   item, use the pattern “/about/*/”; “/about/*” will also select the parent,
#   because “*” matches zero or more characters.

compile '/stylesheet/' do
  # don’t filter or layout
end

compile '*' do
  filter :erb
  layout 'default'
end

route '/stylesheet/' do
  '/style.css'
end

route '*' do
  item.identifier + 'index.html'
end

layout '*', :erb
EOS

    DEFAULT_ITEM = <<EOS
{'fraction_non_alphanumeric': 0.12734375, 'fraction_numerical': 0.003125, 'mean_word_length': 3.4634146341463414, 'pattern_counts': {'":': 0, '<': 13, '<?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': '6186680', 'n_tokens_mistral': 451, 'n_tokens_neox': 429, 'n_words': 154}