<commit_before><!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Mocha Tests for Blockly</title>

    <link href="https://unpkg.com/mocha@5.2.0/mocha.css" rel="stylesheet" />
    <script src="../../blockly_uncompressed.js"></script>
    <script src="../../generators/dart.js"></script>
    <script src="../../generators/javascript.js"></script>
    <script src="../../generators/lua.js"></script>
    <script src="../../generators/php.js"></script>
    <script src="../../generators/python.js"></script>
    <script src="../../msg/messages.js"></script>
    <script src="../../blocks/procedures.js"></script>
  </head>
  <body>

    <div id="mocha"></div>
    <div id="failureCount" style="display:none" tests_failed="unset"></div>
    <script src="https://unpkg.com/chai/chai.js"></script>
    <script src="https://unpkg.com/mocha@5.2.0/mocha.js"></script>
    <script src="https://unpkg.com/sinon/pkg/sinon.js"></script>
    <script>
      mocha.setup({
        ui: 'tdd'
      });
    </script>

    <script src="test_helpers.js"></script>

    <script src="astnode_test.js"></script>
    <script src="block_test.js"></script>
    <script src="comment_test.js"></script>
    <script src="connection_db_test.js"></script>
    <script src="connection_test.js"></script>
    <script src="connection_db_test.js"></script>
    <script src="cursor_test.js"></script>
    <script src="dropdowndiv_test.js"></script>
    <script src="event_test.js"></script>
    <script src="extensions_test.js"></script>
    <script src="field_test.js"></script>
    <script src="field_angle_test.js"></script>
    <script src="field_checkbox_test.js"></script>
    <script src="field_colour_test.js"></script>
    <script src="field_date_test.js"></script>
    <script src="field_dropdown_test.js"></script>
    <script src="field_image_test.js"></script>
    <script src="field_label_test.js"></script>
    <script src="field_label_serializable_test.js"></script>
    <script src="field_number_test.js"></script>
    <script src="field_registry_test.js"></script>
    <script src="field_textinput_test.js"></script>
    <script src="field_variable_test.js"></script>
    <script src="generator_test.js"></script>
    <script src="gesture_test.js"></script>
    <script src="input_test.js"></script>
    <script src="json_test.js"></script>
    <script src="key_map_test.js"></script>
    <script src="metrics_test.js"></script>
    <script src="names_test.js"></script>
    <script src="navigation_modify_test.js"></script>
    <script src="navigation_test.js"></script>
    <script src="procedures_test.js"></script>
    <script src="theme_test.js"></script>
    <script src="toolbox_test.js"></script>
    <script src="trashcan_test.js"></script>
    <script src="utils_test.js"></script>
    <script src="variable_map_test.js"></script>
    <script src="variable_model_test.js"></script>
    <script src="variables_test.js"></script>
    <script src="widget_div_test.js"></script>
    <script src="workspace_test.js"></script>
    <!-- Disable workspace comment tests until we include them in our build. -->
    <!-- <script src="workspace_comment_test.js"></script> -->
    <script src="xml_procedures_test.js"></script>
    <script src="xml_test.js"></script>

    <div id="blocklyDiv"></div>
    <xml xmlns="https://developers.google.com/blockly/xml" id="toolbox-minimal" style="display: none">
      <block type="basic_block"></block>
    </xml>
    <xml xmlns="https://developers.google.com/blockly/xml" id="toolbox-incorrect" style="display: none">
      <block type="basic_block"></block>
      <category name="First">
        <block type="basic_block">
          <field name="TEXT">FirstCategory-FirstBlock</field>
        </block>
        <block type="basic_block">
          <field name="TEXT">FirstCategory-SecondBlock</field>
        </block>
      </category>
    </xml>

    <xml xmlns="https://developers.google.com/blockly/xml" id="toolbox-categories" style="display: none">
      <category name="First">
        <block type="basic_block">
          <field name="TEXT">FirstCategory-FirstBlock</field>
        </block>
        <block type="basic_block">
          <field name="TEXT">FirstCategory-SecondBlock</field>
        </block>
      </category>
      <category name="Second">
        <block type="basic_block">
          <field name="TEXT">SecondCategory-FirstBlock</field>
        </block>
      </category>
    </xml>

    <xml xmlns="https://developers.google.com/blockly/xml" id="toolbox-test" style="display: none">
      <category name="First" expanded="true" categorystyle="logic_category">
        <sep gap="-1"></sep>
        <button text="insert" callbackkey="insertConnectionRows"></button>
        <block type="basic_block">
          <field name="TEXT">FirstCategory-FirstBlock</field>
        </block>
        <block type="basic_block">
          <field name="TEXT">FirstCategory-SecondBlock</field>
        </block>
      </category>
      <category name="Second">
        <block type="basic_block">
          <field name="TEXT">SecondCategory-FirstBlock</field>
        </block>
      </category>
      <sep gap="-1"></sep>
      <category name="Variables" custom="VARIABLE"></category>
    </xml>
    <xml xmlns="https://developers.google.com/blockly/xml" id="toolbox-connections" style="display: none">
      <block type="stack_block"></block>
      <block type="row_block"></block>
    </xml>

    <script>
      mocha.run(function(failures) {
        var failureDiv = document.getElementById('failureCount');
        failureDiv.setAttribute('tests_failed', failures);
      });
    </script>
  </body>
</html>
<commit_msg>Enabling workspace comments test. (#3856)<commit_after><!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Mocha Tests for Blockly</title>

    <link href="https://unpkg.com/mocha@5.2.0/mocha.css" rel="stylesheet" />
    <script src="../../blockly_uncompressed.js"></script>
    <script src="../../generators/dart.js"></script>
    <script src="../../generators/javascript.js"></script>
    <script src="../../generators/lua.js"></script>
    <script src="../../generators/php.js"></script>
    <script src="../../generators/python.js"></script>
    <script src="../../msg/messages.js"></script>
    <script src="../../blocks/procedures.js"></script>
  </head>
  <body>

    <div id="mocha"></div>
    <div id="failureCount" style="display:none" tests_failed="unset"></div>
    <script src="https://unpkg.com/chai/chai.js"></script>
    <script src="https://unpkg.com/mocha@5.2.0/mocha.js"></script>
    <script src="https://unpkg.com/sinon/pkg/sinon.js"></script>
    <script>
      mocha.setup({
        ui: 'tdd'
      });
    </script>

    <script src="test_helpers.js"></script>

    <script src="astnode_test.js"></script>
    <script src="block_test.js"></script>
    <script src="comment_test.js"></script>
    <script src="connection_db_test.js"></script>
    <script src="connection_test.js"></script>
    <script src="connection_db_test.js"></script>
    <script src="cursor_test.js"></script>
    <script src="dropdowndiv_test.js"></script>
    <script src="event_test.js"></script>
    <script src="extensions_test.js"></script>
    <script src="field_test.js"></script>
    <script src="field_angle_test.js"></script>
    <script src="field_checkbox_test.js"></script>
    <script src="field_colour_test.js"></script>
    <script src="field_date_test.js"></script>
    <script src="field_dropdown_test.js"></script>
    <script src="field_image_test.js"></script>
    <script src="field_label_test.js"></script>
    <script src="field_label_serializable_test.js"></script>
    <script src="field_number_test.js"></script>
    <script src="field_registry_test.js"></script>
    <script src="field_textinput_test.js"></script>
    <script src="field_variable_test.js"></script>
    <script src="generator_test.js"></script>
    <script src="gesture_test.js"></script>
    <script src="input_test.js"></script>
    <script src="json_test.js"></script>
    <script src="key_map_test.js"></script>
    <script src="metrics_test.js"></script>
    <script src="names_test.js"></script>
    <script src="navigation_modify_test.js"></script>
    <script src="navigation_test.js"></script>
    <script src="procedures_test.js"></script>
    <script src="theme_test.js"></script>
    <script src="toolbox_test.js"></script>
    <script src="trashcan_test.js"></script>
    <script src="utils_test.js"></script>
    <script src="variable_map_test.js"></script>
    <script src="variable_model_test.js"></script>
    <script src="variables_test.js"></script>
    <script src="widget_div_test.js"></script>
    <script src="workspace_test.js"></script>
    <script src="workspace_comment_test.js"></script>
    <script src="xml_procedures_test.js"></script>
    <script src="xml_test.js"></script>

    <div id="blocklyDiv"></div>
    <xml xmlns="https://developers.google.com/blockly/xml" id="toolbox-minimal" style="display: none">
      <block type="basic_block"></block>
    </xml>
    <xml xmlns="https://developers.google.com/blockly/xml" id="toolbox-incorrect" style="display: none">
      <block type="basic_block"></block>
      <category name="First">
        <block type="basic_block">
          <field name="TEXT">FirstCategory-FirstBlock</field>
        </block>
        <block type="basic_block">
          <field name="TEXT">FirstCategory-SecondBlock</field>
        </block>
      </category>
    </xml>

    <xml xmlns="https://developers.google.com/blockly/xml" id="toolbox-categories" style="display: none">
      <category name="First">
        <block type="basic_block">
          <field name="TEXT">FirstCategory-FirstBlock</field>
        </block>
        <block type="basic_block">
          <field name="TEXT">FirstCategory-SecondBlock</field>
        </block>
      </category>
      <category name="Second">
        <block type="basic_block">
          <field name="TEXT">SecondCategory-FirstBlock</field>
        </block>
      </category>
    </xml>

    <xml xmlns="https://developers.google.com/blockly/xml" id="toolbox-test" style="display: none">
      <category name="First" expanded="true" categorystyle="logic_category">
        <sep gap="-1"></sep>
        <button text="insert" callbackkey="insertConnectionRows"></button>
        <block type="basic_block">
          <field name="TEXT">FirstCategory-FirstBlock</field>
        </block>
        <block type="basic_block">
          <field name="TEXT">FirstCategory-SecondBlock</field>
        </block>
      </category>
      <category name="Second">
        <block type="basic_block">
          <field name="TEXT">SecondCategory-FirstBlock</field>
        </block>
      </category>
      <sep gap="-1"></sep>
      <category name="Variables" custom="VARIABLE"></category>
    </xml>
    <xml xmlns="https://developers.google.com/blockly/xml" id="toolbox-connections" style="display: none">
      <block type="stack_block"></block>
      <block type="row_block"></block>
    </xml>

    <script>
      mocha.run(function(failures) {
        var failureDiv = document.getElementById('failureCount');
        failureDiv.setAttribute('tests_failed', failures);
      });
    </script>
  </body>
</html>

{'fraction_non_alphanumeric': 0.1935626884199326, 'fraction_numerical': 0.0019507004788082993, 'mean_word_length': 3.475793650793651, 'pattern_counts': {'":': 0, '<': 411, '<?xml version=': 0, '>': 411, 'https://': 18, 'lorem ipsum': 0, 'www.': 0, 'xml': 44}, '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': '80460', 'n_tokens_mistral': 3576, 'n_tokens_neox': 3519, 'n_words': 529}