<commit_before>{#
  * @overview Macros for Hero and featured Hero modules
  * @module Hero
#}

{#
  * Renders a Hero or featured Hero module.
  * @param {string} heading - Heading text content
  * @param {string} [content] - Subheading text content
  * @param {string} [background_path] - Background image imgix path
  * @param {boolean} [featured=false] - Setting to display a large featured hero
  * @param {string} [imgix_class=imgix-fluid--nocss] - Class name for custom imgix.js fluid targeting/manipulations
  * @param {string} [class] - Class name for style or JS targeting
  * @param {string} [id] - ID for JS targeting
  *
  * todo: If no content, use a caller() block
#}
{% macro hero(heading, content=null, background_path=null, featured=false, imgix_class='imgix-fluid--nocss', class=null, id=null) %}
<header class="hero{% if featured %} hero--featured{% endif %} {{ imgix_class }}{% if class %} {{ class }}{% endif %}"{% if id %} id="{{ id }}"{% endif %}{% if background_path %} data-src="https://casper.imgix.net/{{ background_path }}"{% endif %}>
  <h1 class="hero-heading">{{ heading }}</h1>
  {% if content %}
  <h2 class="hero-subheading">{{ content }}</h2>
  {% endif %}
</header>
{% endmacro %}<commit_msg>Update Hero macro to accept caller<commit_after>{#
  * @overview Macros for Hero and featured Hero modules
  * @module Hero
#}

{#
  * Renders a Hero or featured Hero module.
  * @param {string} heading - Heading text content
  * @param {string} [content] - Subheading text content
  * @param {string} [background_path] - Background image imgix path
  * @param {boolean} [featured=false] - Setting to display a large featured hero
  * @param {string} [imgix_class=imgix-fluid--nocss] - Class name for custom imgix.js fluid targeting/manipulations
  * @param {string} [class] - Class name for style or JS targeting
  * @param {string} [id] - ID for JS targeting
#}
{% macro hero(heading, content=null, background_path=null, featured=false, imgix_class='imgix-fluid--nocss', class=null, id=null) %}
<header class="hero{% if featured %} hero--featured{% endif %} {{ imgix_class }}{% if class %} {{ class }}{% endif %}"{% if id %} id="{{ id }}"{% endif %}{% if background_path %} data-src="https://casper.imgix.net/{{ background_path }}"{% endif %}>
  <h1 class="hero-heading">{{ heading }}</h1>
  {% if content %}
  <h2 class="hero-subheading">{{ content }}</h2>
  {% else %}
  {{ caller() }}
  {% endif %}
</header>
{% endmacro %}
{'fraction_non_alphanumeric': 0.1718940936863544, 'fraction_numerical': 0.003258655804480652, 'mean_word_length': 4.339130434782609, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 2, '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': '7359498', 'n_tokens_mistral': 840, 'n_tokens_neox': 781, 'n_words': 247}