<commit_before>require 'ore/template/exceptions/invalid_template'

require 'yaml'
require 'find'

module Ore
  module Template
    #
    # Represents a template directory and the static files, ERb files
    # and sub-directories within it.
    #
    class Directory

      # The template configuration file
      CONFIG_FILE = 'template.yml'

      # Files or directory names to ignore
      IGNORE = ['.git', CONFIG_FILE]

      # The known markup languages and file extensions
      MARKUPS = {
        :markdown => %w[.md .markdown],
        :textile  => %w[.tt .textile],
        :rdoc     => %w[.rdoc]
      }

      # The path of the template directory
      attr_reader :path

      # The directories within the template directory
      attr_reader :directories<commit_msg>Wording.<commit_after>require 'ore/template/exceptions/invalid_template'

require 'yaml'
require 'find'

module Ore
  module Template
    #
    # Represents a template directory and the static files, `.erb` files
    # and sub-directories within it.
    #
    class Directory

      # The template configuration file
      CONFIG_FILE = 'template.yml'

      # Files or directory names to ignore
      IGNORE = ['.git', CONFIG_FILE]

      # The known markup languages and file extensions
      MARKUPS = {
        :markdown => %w[.md .markdown],
        :textile  => %w[.tt .textile],
        :rdoc     => %w[.rdoc]
      }

      # The path of the template directory
      attr_reader :path

      # The directories within the template directory
      attr_reader :directories
{'fraction_non_alphanumeric': 0.08600770218228498, 'fraction_numerical': 0.0, 'mean_word_length': 2.4415011037527594, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '2987208', 'n_tokens_mistral': 461, 'n_tokens_neox': 432, 'n_words': 145}