<commit_before>{% if page.header.published %}
{% block content %}
<div class="h5p-content-wrapper">
{{page.content}}
{% if displaypagetitle is defined %}
  {% if displaypagetitle %}
    <strong>{{page.title}}</strong><br>
  {% endif %}
{% endif %}
{% set h5pcontentid = page.header.hp5_content_id %}
  {% if h5pcontentid|contains('https') %}
    {% set h5pcontenturl = h5pcontentid %}
  {% else %}
    {% set h5pcontenturl = 'https://h5p.org/h5p/embed/' ~ h5pcontentid %}
  {% endif %}
    <iframe src="{{h5pcontenturl}}" width="400" height="300" frameborder="0" allowfullscreen="allowfullscreen"></iframe><script src="https://h5p.org/sites/all/modules/h5p/library/js/h5p-resizer.js" charset="UTF-8"></script><br><br>
</div>
{% endblock %}
{% endif %}
<commit_msg>Added support for H5P Content Root Path URL setting in site config (site.h5pembedrootpath) for H5P custom content pages.<commit_after>{% if page.header.published %}
{% block content %}
<div class="h5p-content-wrapper">
{{page.content}}
{% if displaypagetitle is defined %}
  {% if displaypagetitle %}
    <strong>{{page.title}}</strong><br>
  {% endif %}
{% endif %}
{% set h5pcontentid = page.header.hp5_content_id %}
  {% if h5pcontentid|contains('http') %}
    {% set h5pcontenturl = h5pcontentid %}
  {% else %}
    {% if config.site.h5pembedrootpath %}
      {% set h5pembedrootpath = config.site.h5pembedrootpath %}
    {% else %}
      {% set h5pembedrootpath = 'https://h5p.org/h5p/embed/' %}
    {% endif %}
    {% set h5pcontenturl = h5pembedrootpath ~ h5pcontentid %}
  {% endif %}
    <iframe src="{{h5pcontenturl}}" width="400" height="300" frameborder="0" allowfullscreen="allowfullscreen"></iframe><script src="https://h5p.org/sites/all/modules/h5p/library/js/h5p-resizer.js" charset="UTF-8"></script><br><br>
</div>
{% endblock %}
{% endif %}

{'fraction_non_alphanumeric': 0.19308831596269885, 'fraction_numerical': 0.02852441031267142, 'mean_word_length': 4.527272727272727, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 4, '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': '5425518', 'n_tokens_mistral': 729, 'n_tokens_neox': 635, 'n_words': 111}