<commit_before>module PagesCore
  module Templates
    class TemplateConfiguration
      attr_reader :template_name

      class << self
        def all_blocks
          (all_templates.map { |t| configured_block_names(t) } +
           all_templates.map { |t| enabled_block_names(t) }).flatten.compact.uniq
        end

        def all_templates<commit_msg>Include default blocks in TemplateConfiguration#all_blocks<commit_after>module PagesCore
  module Templates
    class TemplateConfiguration
      attr_reader :template_name

      class << self
        def all_blocks
          (config.get(:default, :blocks).keys +
           all_templates.map { |t| configured_block_names(t) } +
           all_templates.map { |t| enabled_block_names(t) }).flatten.compact.uniq
        end

        def all_templates
{'fraction_non_alphanumeric': 0.07558859975216853, 'fraction_numerical': 0.0, 'mean_word_length': 2.7934272300469485, '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': '6713995', 'n_tokens_mistral': 229, 'n_tokens_neox': 220, 'n_words': 49}