<commit_before>defmodule Serum.Template do
  @moduledoc "Defines a struct which stores a template and its information."

  @type t() :: %__MODULE__{
          type: type(),
          file: binary(),
          ast: Macro.t()
        }

  @type collection() :: %{optional(binary()) => t()}
  @type type() :: :template | :include

  defstruct type: :template, file: nil, ast: nil

  @spec new(Macro.t(), type(), binary()) :: t()
  def new(ast, type, path) do
    %__MODULE__{
      type: type,
      file: path,
      ast: ast
    }
  end
end<commit_msg>Add `:include_resolved?` key to Template struct<commit_after>defmodule Serum.Template do
  @moduledoc "Defines a struct which stores a template and its information."

  @type t() :: %__MODULE__{
          type: type(),
          file: binary(),
          ast: Macro.t(),
          include_resolved?: boolean()
        }

  @type collection() :: %{optional(binary()) => t()}
  @type type() :: :template | :include

  defstruct type: :template, file: nil, ast: nil, include_resolved?: false

  @spec new(Macro.t(), type(), binary()) :: t()
  def new(ast, type, path) do
    %__MODULE__{
      type: type,
      file: path,
      ast: ast,
      include_resolved?: false
    }
  end
end
{'fraction_non_alphanumeric': 0.15153970826580226, 'fraction_numerical': 0.0, 'mean_word_length': 2.7198795180722892, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5071577', 'n_tokens_mistral': 396, 'n_tokens_neox': 383, 'n_words': 124}