<commit_before><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="Generator" content="">
<link rel="icon" type="image/x-icon" href="data:image/x-icon;base64,AAABAAEAEBAQAAEABAAoAQAAFgAAACgAAAAQAAAAIAAAAAEABAAAAAAAAAIAAAAAAAAAAAAAEAAAAAAAAAAAAAAAJEBoACtnfgA5cYYAERsiAEx2lAAbKkQAcazBACZCVwAcM1cAK0ucAAMDBQAnQncASG+FABkoVQAyWmgA6f8SgvH/Ij99+GLyIinyJfn/Yi//KSLzUy9iZogpIld3/4JVVTkid7vyUjNVNVJEAGOZ6Z7pXwAABpmZkRiLAAAGiJZpmGAAAEEt3SXdxAAATC7o/u3EAAC8MRZpjasAAAY1VVVTYAAABKqqqqpAAAAADKqq4AAAAAAAv4sAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMADAADgAwAA4AcAAOAHAADgBwAAwAcAAOAHAADgDwAA8A8AAPg/AAD+fwAA">
<link rel="stylesheet" type="text/css" href="log.css" media="all">
<link rel="stylesheet" type="text/css" href="common.css" media="all">
<link rel="stylesheet" type="text/css" href="print.css" media="print">
<script type="text/javascript" src="lib/jquery.min.js"></script>
<script type="text/javascript" src="lib/jquery.tmpl.min.js"></script>
<script type="text/javascript" src="view.js"></script>
<script type="text/javascript" src="util.js"></script>
<style type="text/css">
    #header_div {
        height: 4em;
        width: auto;
    }
</style>
<!-- JS MODEL --><script type="text/javascript" src="testdata/testdoc.js"></script>
<title></title>
</head>
<body>
<div id="javascript_disabled">
  <h1>Opening test suite documentation failed</h1>
  <ul>
    <li>Verify that you have <b>JavaScript enabled</b> in your browser.</li>
    <li>Make sure you are using a <b>modern enough browser</b>. Firefox 3.5, IE 8, or equivalent is required, newer browsers are recommended.</li>
    <li>Check are there messages in your browser's <b>JavaScript error log</b>. Please report the problem if you suspect you have encountered a bug.</li>
  </ul>
</div>
<script type="text/javascript">
    // Not using jQuery here for speed and to support ancient browsers.
    document.getElementById('javascript_disabled').style.display = 'none';
</script>

<div class="header" id="header_div"></div>

<script type="text/javascript">
$(document).ready(function(){
    parseTemplates();
    createGenerated(window.testdoc.generated, window.testdoc.generatedMillis).appendTo($('#header_div'))
    setTitle(window.testdoc.title, window.testdoc.suite.name);
    addSuite(window.testdoc.suite, 'body');
    expandElement(window.testdoc.suite.id);
});

function parseTemplates() {
    $('script[type="text/x-jquery-tmpl"]').map(function (idx, elem) {
        $.template(elem.id, elem.text);
    });
}

function setTitle(givenTitle, suiteName) {
    document.title = givenTitle ? givenTitle : 'Documentation for ' + suiteName;
    $.tmpl('<h1>' + document.title + '</h1>').appendTo($('#header_div'));
}

function addSuite(suite, parent_locator) {
    $.tmpl('suiteTemplate', suite).appendTo($(parent_locator));
    addKeywords(suite);
    addSuites(suite);
    addTests(suite);
}

function addSuites(suite) {
    $.map(suite.suites, function (s, _) {
        addSuite(s, '#' + suite.id + '_children');
    });
}

function addTests(suite) {
    $.map(suite.tests, function (test, _) {
        $.tmpl('testTemplate', test).appendTo($('#' + suite.id + '_children'));
        addKeywords(test);
    });
}

function addKeywords(parent) {
    $.map(parent.keywords, function (kw, _) {
            $.tmpl('keywordTemplate', kw).appendTo($('#' + parent.id + '_children'));
    });
}

function toggleElement(elementId) {
    var childElement = $("#"+elementId+"_children");
    childElement.toggle(100, function () {
        var foldingButton = $('#'+elementId+'_foldingbutton');
        foldingButton.text(foldingButton.text() == '+' ? '-' : '+');
    });
}

function expandElement(elementId) {
    var childElement = $("#" + elementId + "_children");
    childElement.show();
    $('#'+elementId+'_foldingbutton').text('-');
    return childElement;
}

function expandAllChildren(elementId) {
    var elem = expandElement(elementId);
    var childrenToClick = elem.find('[class="expandall"]');
    for (var i = 0; i < childrenToClick.length; i++) {
        childrenToClick[i].click();
    }
}

// For complete cross-browser experience..
// http://www.quirksmode.org/js/events_order.html
function stopPropagation(event) {
    var event = event || window.event;
    event.cancelBubble = true;
    if (event.stopPropagation)
        event.stopPropagation();
}
</script>

<script type="text/x-jquery-tmpl" id="suiteTemplate">
  <div id="${id}" class="suite">
    <div id="${id}_elementheader" class="elementheader"
         onclick="toggleElement('${id}');" title="${fullName}">
      <div id="${id}_foldingbutton" class="foldingbutton">+</div>
      <span class="not_run">TEST&nbsp;SUITE:</span>
      <span class="name">${name}</span>
        <a class="expandall" href="javascript:expandAllChildren('${id}')"
           onclick="stopPropagation(event);">Expand All</a>
    </div>
    <div id="${id}_children" style="display: none;">
      <table class="metadata">
        <tr>
          <th>Full Name:</th>
          <td>${fullName}</td>
        </tr>
        {{if doc}}
        <tr>
          <th>Documentation:</th>
          <td>{{html doc}}</td>
        </tr>
        {{/if}}
        {{each metadata}}
        <tr>
          <th>${$value[0]}:</th>
          <td>{{html $value[1]}}</td>
        </tr>
        {{/each}}
        {{if source}}
        <tr>
          <th>Source:</th>
          {{if relativeSource}}
          <td><a href="${relativeSource}">${source}</a></td>
          {{else}}
          <td>${source}</td>
          {{/if}}
        </tr>
        {{/if}}
        <tr>
          <th>Number of Tests:</th>
          <td>${numberOfTests}</td>
        </tr>
      </table>
    </div>
  </div>
</script>

<script type="text/x-jquery-tmpl" id="testTemplate">
  <div id="${id}" class="test">
    <div id="${id}_elementheader" onclick="toggleElement('${id}');"
         class="elementheader" title="${fullName}">
      <div id="${id}_foldingbutton" class="foldingbutton">+</div>
      <span class="not_run">TEST&nbsp;CASE: </span>
      <span class="name">${name}</span>
        <a class="expandall" href="javascript:expandAllChildren('${id}')"
           onclick="stopPropagation(event);">Expand All</a>
    </div>
    <div id="${id}_children" style="display: none;">
      <table class="metadata">
        <tr>
          <th>Full Name:</th>
          <td>${fullName}</td>
        </tr>
        {{if doc}}
        <tr>
          <th>Documentation:</th>
          <td>{{html doc}}</td>
        </tr>
        {{/if}}
        {{if tags.length}}
        <tr>
          <th>Tags:</th>
          <td>${tags.join(', ')}</td>
        </tr>
        {{/if}}
        {{if timeout}}
        <tr>
          <th>Timeout:</th>
          <td>${timeout}</td>
        </tr>
        {{/if}}
      </table>
    </div>
  </div>
</script>

<script type="text/x-jquery-tmpl" id="keywordTemplate">
  <div class="elementheader" style="cursor: auto;">
    <div class="keyword">
      <span class="not_run">${type}: </span>
      <span class="name">${name}</span>
      <span class="arg">${arguments}</span>
    </div>
  </div>
</script>

</body>
</html>
<commit_msg>testdoc.html: indentation<commit_after><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="Generator" content="">
<link rel="icon" type="image/x-icon" href="data:image/x-icon;base64,AAABAAEAEBAQAAEABAAoAQAAFgAAACgAAAAQAAAAIAAAAAEABAAAAAAAAAIAAAAAAAAAAAAAEAAAAAAAAAAAAAAAJEBoACtnfgA5cYYAERsiAEx2lAAbKkQAcazBACZCVwAcM1cAK0ucAAMDBQAnQncASG+FABkoVQAyWmgA6f8SgvH/Ij99+GLyIinyJfn/Yi//KSLzUy9iZogpIld3/4JVVTkid7vyUjNVNVJEAGOZ6Z7pXwAABpmZkRiLAAAGiJZpmGAAAEEt3SXdxAAATC7o/u3EAAC8MRZpjasAAAY1VVVTYAAABKqqqqpAAAAADKqq4AAAAAAAv4sAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMADAADgAwAA4AcAAOAHAADgBwAAwAcAAOAHAADgDwAA8A8AAPg/AAD+fwAA">
<link rel="stylesheet" type="text/css" href="log.css" media="all">
<link rel="stylesheet" type="text/css" href="common.css" media="all">
<link rel="stylesheet" type="text/css" href="print.css" media="print">
<script type="text/javascript" src="lib/jquery.min.js"></script>
<script type="text/javascript" src="lib/jquery.tmpl.min.js"></script>
<script type="text/javascript" src="view.js"></script>
<script type="text/javascript" src="util.js"></script>
<style type="text/css" media="all">
#header_div {
  height: 4em;
  width: auto;
}
</style>
<!-- JS MODEL --><script type="text/javascript" src="testdata/testdoc.js"></script>
<title></title>
</head>
<body>
<div id="javascript_disabled">
  <h1>Opening test suite documentation failed</h1>
  <ul>
    <li>Verify that you have <b>JavaScript enabled</b> in your browser.</li>
    <li>Make sure you are using a <b>modern enough browser</b>. Firefox 3.5, IE 8, or equivalent is required, newer browsers are recommended.</li>
    <li>Check are there messages in your browser's <b>JavaScript error log</b>. Please report the problem if you suspect you have encountered a bug.</li>
  </ul>
</div>
<script type="text/javascript">
    // Not using jQuery here for speed and to support ancient browsers.
    document.getElementById('javascript_disabled').style.display = 'none';
</script>

<div class="header" id="header_div"></div>

<script type="text/javascript">
$(document).ready(function(){
    parseTemplates();
    createGenerated(window.testdoc.generated, window.testdoc.generatedMillis).appendTo($('#header_div'))
    setTitle(window.testdoc.title, window.testdoc.suite.name);
    addSuite(window.testdoc.suite, 'body');
    expandElement(window.testdoc.suite.id);
});

function parseTemplates() {
    $('script[type="text/x-jquery-tmpl"]').map(function (idx, elem) {
        $.template(elem.id, elem.text);
    });
}

function setTitle(givenTitle, suiteName) {
    document.title = givenTitle ? givenTitle : 'Documentation for ' + suiteName;
    $.tmpl('<h1>' + document.title + '</h1>').appendTo($('#header_div'));
}

function addSuite(suite, parent_locator) {
    $.tmpl('suiteTemplate', suite).appendTo($(parent_locator));
    addKeywords(suite);
    addSuites(suite);
    addTests(suite);
}

function addSuites(suite) {
    $.map(suite.suites, function (s, _) {
        addSuite(s, '#' + suite.id + '_children');
    });
}

function addTests(suite) {
    $.map(suite.tests, function (test, _) {
        $.tmpl('testTemplate', test).appendTo($('#' + suite.id + '_children'));
        addKeywords(test);
    });
}

function addKeywords(parent) {
    $.map(parent.keywords, function (kw, _) {
        $.tmpl('keywordTemplate', kw).appendTo($('#' + parent.id + '_children'));
    });
}

function toggleElement(elementId) {
    var childElement = $("#"+elementId+"_children");
    childElement.toggle(100, function () {
        var foldingButton = $('#'+elementId+'_foldingbutton');
        foldingButton.text(foldingButton.text() == '+' ? '-' : '+');
    });
}

function expandElement(elementId) {
    var childElement = $("#" + elementId + "_children");
    childElement.show();
    $('#'+elementId+'_foldingbutton').text('-');
    return childElement;
}

function expandAllChildren(elementId) {
    var elem = expandElement(elementId);
    var childrenToClick = elem.find('[class="expandall"]');
    for (var i = 0; i < childrenToClick.length; i++) {
        childrenToClick[i].click();
    }
}

// For complete cross-browser experience..
// http://www.quirksmode.org/js/events_order.html
function stopPropagation(event) {
    var event = event || window.event;
    event.cancelBubble = true;
    if (event.stopPropagation)
        event.stopPropagation();
}
</script>

<script type="text/x-jquery-tmpl" id="suiteTemplate">
  <div id="${id}" class="suite">
    <div id="${id}_elementheader" class="elementheader"
         onclick="toggleElement('${id}');" title="${fullName}">
      <div id="${id}_foldingbutton" class="foldingbutton">+</div>
      <span class="not_run">TEST&nbsp;SUITE:</span>
      <span class="name">${name}</span>
        <a class="expandall" href="javascript:expandAllChildren('${id}')"
           onclick="stopPropagation(event);">Expand All</a>
    </div>
    <div id="${id}_children" style="display: none;">
      <table class="metadata">
        <tr>
          <th>Full Name:</th>
          <td>${fullName}</td>
        </tr>
        {{if doc}}
        <tr>
          <th>Documentation:</th>
          <td>{{html doc}}</td>
        </tr>
        {{/if}}
        {{each metadata}}
        <tr>
          <th>${$value[0]}:</th>
          <td>{{html $value[1]}}</td>
        </tr>
        {{/each}}
        {{if source}}
        <tr>
          <th>Source:</th>
          {{if relativeSource}}
          <td><a href="${relativeSource}">${source}</a></td>
          {{else}}
          <td>${source}</td>
          {{/if}}
        </tr>
        {{/if}}
        <tr>
          <th>Number of Tests:</th>
          <td>${numberOfTests}</td>
        </tr>
      </table>
    </div>
  </div>
</script>

<script type="text/x-jquery-tmpl" id="testTemplate">
  <div id="${id}" class="test">
    <div id="${id}_elementheader" onclick="toggleElement('${id}');"
         class="elementheader" title="${fullName}">
      <div id="${id}_foldingbutton" class="foldingbutton">+</div>
      <span class="not_run">TEST&nbsp;CASE: </span>
      <span class="name">${name}</span>
        <a class="expandall" href="javascript:expandAllChildren('${id}')"
           onclick="stopPropagation(event);">Expand All</a>
    </div>
    <div id="${id}_children" style="display: none;">
      <table class="metadata">
        <tr>
          <th>Full Name:</th>
          <td>${fullName}</td>
        </tr>
        {{if doc}}
        <tr>
          <th>Documentation:</th>
          <td>{{html doc}}</td>
        </tr>
        {{/if}}
        {{if tags.length}}
        <tr>
          <th>Tags:</th>
          <td>${tags.join(', ')}</td>
        </tr>
        {{/if}}
        {{if timeout}}
        <tr>
          <th>Timeout:</th>
          <td>${timeout}</td>
        </tr>
        {{/if}}
      </table>
    </div>
  </div>
</script>

<script type="text/x-jquery-tmpl" id="keywordTemplate">
  <div class="elementheader" style="cursor: auto;">
    <div class="keyword">
      <span class="not_run">${type}: </span>
      <span class="name">${name}</span>
      <span class="arg">${arguments}</span>
    </div>
  </div>
</script>

</body>
</html>

{'fraction_non_alphanumeric': 0.19446324624340056, 'fraction_numerical': 0.006497901719236496, 'mean_word_length': 3.4476219145093316, 'pattern_counts': {'":': 0, '<': 331, '<?xml version=': 0, '>': 329, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 10, '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': '4918346', 'n_tokens_mistral': 5105, 'n_tokens_neox': 5026, 'n_words': 864}