<commit_before><%def name="genBlock(block)">
  <%doc>Only display Child from a node named /ParentBlock/Child </%doc>
  <li><a><b>${block['name'].split('/')[-1]}</b></a>
    <ul>
      % if block['description'] != '':
        <li><div><a><b>Description: ${block['description']}</b></a></div></li>
      % endif
      % if type in block and block['type'] != None:
        <Li><div class="required"><a>type = ${block['type']}</a></div></li>
      % endif

      <%doc>Generate parameters, required ones are red</%doc>
      % if block['parameters'] != None:
        % for param in block['parameters']:
          <li class="
            % if param['required'] == True:
              required
            % endif
            "><a>${param['name']}</a>
              <ul>
                % if param['default'] != None:
                  <li><a>Default: ${param['default']}</a></li>
                % endif
                <li><a>Description: ${param['description']}</a></li>
              </ul>
          </li>
        % endfor
      % endif

      <%doc>Recursively generate sub blocks</%doc>
      % if block['subblocks'] != None:
        % for block in block['subblocks']:
          ${genBlock( block )}
        % endfor
      % endif
    </ul>
  </li>
</%def>

<html>
<head>
  <title>${project} Input File Syntax</title>

  <link rel="stylesheet" href="static/themes/default/style.css" />

  <!-- based off of http://www.jstree.com/documentation/core -->
  <script type="text/javascript" src="static/jquery.min.js"></script>
  <script type="text/javascript" src="static/jstree.min.js"></script><commit_msg>HTML escape all values when generating syntax HTML<commit_after><%def name="genBlock(block)">
  <%doc>Only display Child from a node named /ParentBlock/Child </%doc>
  <li><a><b>${block['name'].split('/')[-1]|h}</b></a>
    <ul>
      % if block['description'] != '':
        <li><div><a><b>Description: ${block['description']|h}</b></a></div></li>
      % endif
      % if type in block and block['type'] != None:
        <Li><div class="required"><a>type = ${block['type']|h}</a></div></li>
      % endif

      <%doc>Generate parameters, required ones are red</%doc>
      % if block['parameters'] != None:
        % for param in block['parameters']:
          <li class="
            % if param['required'] == True:
              required
            % endif
            "><a>${param['name']|h}</a>
              <ul>
                % if param['default'] != None:
                  <li><a>Default: ${param['default']|h}</a></li>
                % endif
                <li><a>Description: ${param['description']|h}</a></li>
              </ul>
          </li>
        % endfor
      % endif

      <%doc>Recursively generate sub blocks</%doc>
      % if block['subblocks'] != None:
        % for block in block['subblocks']:
          ${genBlock( block )}
        % endfor
      % endif
    </ul>
  </li>
</%def>

<html>
<head>
  <title>${project} Input File Syntax</title>

  <link rel="stylesheet" href="static/themes/default/style.css" />

  <!-- based off of http://www.jstree.com/documentation/core -->
  <script type="text/javascript" src="static/jquery.min.js"></script>
  <script type="text/javascript" src="static/jstree.min.js"></script>
{'fraction_non_alphanumeric': 0.20706605222734256, 'fraction_numerical': 0.0006144393241167435, 'mean_word_length': 2.2888888888888888, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 111, 'https://': 0, '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': '3508681', 'n_tokens_mistral': 1041, 'n_tokens_neox': 998, 'n_words': 206}