<commit_before><script src="lib/qunit.js"></script>
<link href="lib/qunit.css" rel="stylesheet">
<script src="lib/jquery.js"></script>
<script src="../jquery-turtle.js"></script>
<body>
<div id="qunit"></div>
<script>
eval($.turtle());
module("Input/Output test.");
asyncTest("Draws a square changing speed along the way.", function() {
  var w = write('hello!');
  equal($('div').last().text(), 'hello!');
  type('AWESOME');
  equal($('pre').last().text(), 'AWESOME');
  var t = table([[1,2,3]]);
  var td = $('td');
  equal(td.length, 3);
  equal(td.eq(0).text(), "1");
  equal(td.eq(1).text(), "2");
  equal(td.eq(2).text(), "3");
  var clicked = 0;
  setTimeout(function() {
    $('input').val('Amy').change();
  }, 1);
  var b;
  var r = read('name?', function(t) {
    equal(t, 'Amy');
    setTimeout(function() {
      $('button').click();
    }, 1);
    b = button('click me!', function() {
      equal(equal($('button').last().text(), 'click me!'));
      equal(clicked++, 0);
      mutate();
    });
  });
  function mutate() {
    equal(clicked, 1);
    w.text('goodbye!');
    equal($('div').last().text(), 'goodbye!');
    equal($('pre').last().text(), 'AWESOME');
    t.cell(0, 1).text('middle');
    equal(td.eq(1).text(), "middle");
    equal(r.text(), 'name?\xa0Amy');
    equal(b.parent('body').length, 1);
    b.remove();
    equal(b.parent('body').length, 0);<commit_msg>Fix test.<commit_after><script src="lib/qunit.js"></script>
<link href="lib/qunit.css" rel="stylesheet">
<script src="lib/jquery.js"></script>
<script src="../jquery-turtle.js"></script>
<body>
<div id="qunit"></div>
<script>
eval($.turtle());
module("Input/Output test.");
asyncTest("Draws a square changing speed along the way.", function() {
  var w = write('hello!');
  equal($('div').last().text(), 'hello!');
  type('AWESOME');
  equal($('pre').last().text(), 'AWESOME');
  var t = table([[1,2,3]]);
  var td = $('td');
  equal(td.length, 3);
  equal(td.eq(0).text(), "1");
  equal(td.eq(1).text(), "2");
  equal(td.eq(2).text(), "3");
  var clicked = 0;
  setTimeout(function() {
    $('input').val('Amy');
    $('button').click();
  }, 1);
  var b, r2;
  var r = read('name?', function(t) {
    equal(t, 'Amy');
    setTimeout(function() {
      $('input').val('34');
      var e = jQuery.Event("keydown");
      e.which = 13; // Enter.
      $('input').trigger(e);
      $('button').click();
    }, 1);
    r2 = readnum('count?', function(c) {
      equal(c, 34);
    });
    b = button('click me!', function() {
      equal(equal($('button').last().text(), 'click me!'));
      equal(clicked++, 0);
      mutate();
    });
  });
  function mutate() {
    equal(clicked, 1);
    w.text('goodbye!');
    equal($('div').last().text(), 'goodbye!');
    equal($('pre').last().text(), 'AWESOME');
    t.cell(0, 1).text('middle');
    equal(td.eq(1).text(), "middle");
    equal(r.text(), 'name?\xa0Amy');
    equal(b.parent('body').length, 1);
    b.remove();
    equal(b.parent('body').length, 0);
{'fraction_non_alphanumeric': 0.2809889742733044, 'fraction_numerical': 0.01670564650851988, 'mean_word_length': 3.7001569858712715, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '7422826', 'n_tokens_mistral': 1140, 'n_tokens_neox': 1106, 'n_words': 203}