<commit_before>{# 
  kitFramework::Basic

  @author Team phpManufaktur <<EMAIL>>
  @link https://kit2.phpmanufaktur.de
  @link https://github.com/phpManufaktur/kitFramework/wiki  
  @copyright 2013 <NAME> <<EMAIL>>
  @license MIT License (MIT) http://www.opensource.org/licenses/MIT
#}
<!DOCTYPE html>
<html>
  {% spaceless %}
  <head>
    {% block head %}
      {% if (basic.frame is defined and basic.frame.redirect.active) %}
        {# catch the iframe content into the CMS if the URL is executed external #}
        <script type="text/javascript">
          if (top.location == self.location) {
            document.location.replace("{{ basic.cms.page_url }}{% if basic.frame.redirect.route|length > 0 %}?redirect={{ basic.frame.redirect.route }}{% endif %}");
          }
        </script>
      {% endif %}
      {% if not basic.page.cache %}  
        <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
        <meta http-equiv="Pragma" content="no-cache" />
        <meta http-equiv="Expires" content="0" />  
      {% endif %}
      <title>{% block title %}{{ basic.page.title|default('') }}{% endblock title %}</title>
      <meta http-equiv="Content-Type" content="text/html; charset={{ basic.page.charset|default('UTF-8') }}"/>
      <meta name="robots" content="{% block robots %}{{ basic.page.robots|default('index,follow') }}{% endblock %}" />
      <meta name="description" content="{% block description %}{{ basic.page.description|default('') }}{% endblock %}" />
      <meta name="keywords" content="{% block keywords %}{{ basic.page.keywords|default('') }}{% endblock %}" />
      {% block stylesheet %}
        <link rel="stylesheet" type="text/css" href="{{ MANUFAKTUR_URL }}/Basic/Template/default/kitcommand/css/kitcommand.css" media="screen, projection" />
      {% endblock stylesheet %}
      {% block jquery %}
        <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
      {% endblock jquery %}
    {% endblock head %}
  </head>
  <body>
    <div {% block iframe_content_attribute %}class="iframe_content"{% endblock iframe_content_attribute %}>
      {% block content %}
        {% if basic.message|length > 0 %}
          <div class="iframe_content message">{{ basic.message }}</div>
        {% endif %}
      {% endblock content %}
    </div>
    {% block footer %}
      {% if basic.frame is defined and basic.frame.auto %}
        <script type="text/javascript">
          if (typeof 'jQuery' !== 'undefined') {
            $(document).ready(function() {
              {# setting the iFrame height dynamically by the height of the inbounded document #}
              var content_height = $('.iframe_content').height() + {{ basic.frame.add|default(20) }} + {{ iframe_add_height|default(0) }} + "px";
              parent.document.getElementById("{{ basic.frame.id }}").style.height = content_height;
              {% if basic.frame.scroll_to_id|length > 0 %}
                document.getElementById('{{ basic.frame.scroll_to_id }}').scrollIntoView(true);
              {% endif %}
            });
          }
        </script>
      {% endif %}
    {% endblock footer %}
    {% block tracking %}
      {% if basic.page is defined and basic.page.tracking|length > 0 %}
        <!-- tracking code from /kit2/config/tracking.htt -->
        {{ basic.page.tracking }}
      {% endif %}
    {% endblock tracking %}
  </body><commit_msg>improved setting the iFrame height: get the ID of the frame dynamically to prevent problems if the browser go back button is used and a new iFrame ID was generated<commit_after>{# 
  kitFramework::Basic

  @author Team phpManufaktur <<EMAIL>>
  @link https://kit2.phpmanufaktur.de
  @link https://github.com/phpManufaktur/kitFramework/wiki  
  @copyright 2013 <NAME> <<EMAIL>@phpmanufaktur.de>
  @license MIT License (MIT) http://www.opensource.org/licenses/MIT
#}
<!DOCTYPE html>
<html>
  {% spaceless %}
  <head>
    {% block head %}
      {% if (basic.frame is defined and basic.frame.redirect.active) %}
        {# catch the iframe content into the CMS if the URL is executed external #}
        <script type="text/javascript">
          if (top.location == self.location) { alert('xx');
            document.location.replace("{{ basic.cms.page_url }}{% if basic.frame.redirect.route|length > 0 %}?redirect={{ basic.frame.redirect.route }}{% endif %}");
          }
        </script>
      {% endif %}
      {% if not basic.page.cache %}  
        <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
        <meta http-equiv="Pragma" content="no-cache" />
        <meta http-equiv="Expires" content="0" />  
      {% endif %}
      <title>{% block title %}{{ basic.page.title|default('') }}{% endblock title %}</title>
      <meta http-equiv="Content-Type" content="text/html; charset={{ basic.page.charset|default('UTF-8') }}"/>
      <meta name="robots" content="{% block robots %}{{ basic.page.robots|default('index,follow') }}{% endblock %}" />
      <meta name="description" content="{% block description %}{{ basic.page.description|default('') }}{% endblock %}" />
      <meta name="keywords" content="{% block keywords %}{{ basic.page.keywords|default('') }}{% endblock %}" />
      {% block stylesheet %}
        <link rel="stylesheet" type="text/css" href="{{ MANUFAKTUR_URL }}/Basic/Template/default/kitcommand/css/kitcommand.css" media="screen, projection" />
      {% endblock stylesheet %}
      {% block jquery %}
        <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
      {% endblock jquery %}
    {% endblock head %}
  </head>
  <body>
    <div {% block iframe_content_attribute %}class="iframe_content"{% endblock iframe_content_attribute %}>
      {% block content %}
        {% if basic.message|length > 0 %}
          <div class="iframe_content message">{{ basic.message }}</div>
        {% endif %}
      {% endblock content %}
    </div>
    {% block footer %}
      {% if basic.frame is defined and basic.frame.auto %}
        <script type="text/javascript">
          if (typeof 'jQuery' !== 'undefined') {
            $(document).ready(function() {
              {# setting the iFrame height dynamically by the height of the inbounded document #}
              var frame_id = window.frameElement.getAttribute('id');
              var content_height = $('.iframe_content').height() + {{ basic.frame.add|default(20) }} + {{ iframe_add_height|default(0) }} + "px";
              parent.document.getElementById(frame_id).style.height = content_height;
              {% if basic.frame.scroll_to_id|length > 0 %}
                document.getElementById('{{ basic.frame.scroll_to_id }}').scrollIntoView(true);
              {% endif %}
            });
          }
        </script>
      {% endif %}
    {% endblock footer %}
    {% block tracking %}
      {% if basic.page is defined and basic.page.tracking|length > 0 %}
        <!-- tracking code from /kit2/config/tracking.htt -->
        {{ basic.page.tracking }}
      {% endif %}
    {% endblock tracking %}
  </body>
{'fraction_non_alphanumeric': 0.17144455320934135, 'fraction_numerical': 0.005034260942525521, 'mean_word_length': 2.8245989304812835, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 75, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, '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': '814547', 'n_tokens_mistral': 2277, 'n_tokens_neox': 2060, 'n_words': 464}