<commit_before><html>
<head>
  <meta charset="utf-8">
  <title>Blockly Demo: RTL</title>
  <script type="text/javascript" src="../blockly_compressed.js"></script>
  <script type="text/javascript" src="../../language/en/_messages.js"></script>
  <script type="text/javascript" src="../../language/en/control.js"></script>
  <script type="text/javascript" src="../../language/en/logic.js"></script>
  <script type="text/javascript" src="../../language/en/math.js"></script>
  <script type="text/javascript" src="../../language/en/text.js"></script>
  <script type="text/javascript" src="../../language/en/lists.js"></script>
  <script type="text/javascript" src="../../language/en/variables.js"></script>
  <script type="text/javascript" src="../../language/en/procedures.js"></script>
  <style>
    body {
      background-color: white;
      font-family: sans-serif;
    }
    h1 {
      font-weight: normal;
      font-size: 140%;
    }
    #svgDiv {
      height: 600px;
      width: 800px;
      border: 1px solid #ccc;
    }
  </style>
  <script>
    function init() {
      Blockly.inject(document.getElementById('svgDiv'), {path: '../../', rtl: true});
      Blockly.Xml.domToWorkspace(Blockly.mainWorkspace, document.getElementById('startBlocks'));
      //window.onbeforeunload = function() {
      //  return 'Leaving this page will result in the loss of your work.';
      //};
    }
  </script>
</head>
<body onload="init()">
  <h1><a href="http://code.google.com/p/google-blockly/">Blockly</a> &gt;
    <a href="../index.html">Demos</a> &gt; Right-to-Left</h1>

  <div id="svgDiv"></div>

  <xml id="startBlocks" style="display: none">
    <block type="controls_if" inline="false" x="-100" y="50">
      <value i="0">
        <block type="logic_compare" inline="true">
          <value i="0">
            <block type="variables_get">
              <title i="1">item</title>
            </block>
          </value>
          <value i="1" label="&gt;">
            <block type="math_number">
              <title i="0">256</title>
            </block>
          </value>
        </block>
      </value>
      <statement i="0">
        <block type="variables_set" inline="false">
          <title i="1">item</title>
          <value i="0">
            <block type="math_number">
              <title i="0">0</title>
            </block>
          </value>
          <next>
            <block type="text_print" inline="false">
              <value i="0">
                <block type="text">
                  <title i="1">Game Over</title>
                </block>
              </value>
            </block>
          </next>
        </block>
      </statement>
    </block>
  </xml>
</body>
</html><commit_msg>Fix RTL demo with new XML.<commit_after><html>
<head>
  <meta charset="utf-8">
  <title>Blockly Demo: RTL</title>
  <script type="text/javascript" src="../blockly_compressed.js"></script>
  <script type="text/javascript" src="../../language/en/_messages.js"></script>
  <script type="text/javascript" src="../../language/en/control.js"></script>
  <script type="text/javascript" src="../../language/en/logic.js"></script>
  <script type="text/javascript" src="../../language/en/math.js"></script>
  <script type="text/javascript" src="../../language/en/text.js"></script>
  <script type="text/javascript" src="../../language/en/lists.js"></script>
  <script type="text/javascript" src="../../language/en/variables.js"></script>
  <script type="text/javascript" src="../../language/en/procedures.js"></script>
  <style>
    body {
      background-color: white;
      font-family: sans-serif;
    }
    h1 {
      font-weight: normal;
      font-size: 140%;
    }
    #svgDiv {
      height: 600px;
      width: 800px;
      border: 1px solid #ccc;
    }
  </style>
  <script>
    function init() {
      Blockly.inject(document.getElementById('svgDiv'), {path: '../../', rtl: true});
      Blockly.Xml.domToWorkspace(Blockly.mainWorkspace, document.getElementById('startBlocks'));
      //window.onbeforeunload = function() {
      //  return 'Leaving this page will result in the loss of your work.';
      //};
    }
  </script>
</head>
<body onload="init()">
  <h1><a href="http://code.google.com/p/google-blockly/">Blockly</a> &gt;
    <a href="../index.html">Demos</a> &gt; Right-to-Left</h1>

  <div id="svgDiv"></div>

  <xml id="startBlocks" style="display: none">
    <block type="controls_if" inline="false" x="-100" y="50">
      <value name="IF0">
        <block type="logic_compare" inline="true">
          <value name="A">
            <block type="variables_get">
              <title i="1">item</title>
            </block>
          </value>
          <value name="B" label="&gt;">
            <block type="math_number">
              <title i="0">256</title>
            </block>
          </value>
        </block>
      </value>
      <statement name="DO0">
        <block type="variables_set" inline="false">
          <title i="1">item</title>
          <value name="VALUE">
            <block type="math_number">
              <title i="0">0</title>
            </block>
          </value>
          <next>
            <block type="text_print" inline="false">
              <value name="TEXT">
                <block type="text">
                  <title i="1">Game Over</title>
                </block>
              </value>
            </block>
          </next>
        </block>
      </statement>
    </block>
  </xml>
</body>
</html>
{'fraction_non_alphanumeric': 0.2022984312294783, 'fraction_numerical': 0.011674571324334184, 'mean_word_length': 2.1859384079023823, 'pattern_counts': {'":': 0, '<': 165, '<?xml version=': 0, '>': 165, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '617128', 'n_tokens_mistral': 1742, 'n_tokens_neox': 1695, 'n_words': 324}