<commit_before>(function() {
  var requestAnimationFrame = window.requestAnimationFrame || window.mozRequestAnimationFrame ||
                              window.webkitRequestAnimationFrame || window.msRequestAnimationFrame;
  window.requestAnimationFrame = requestAnimationFrame;
})();

function step()
{
  var ctx = step.ctx;
  ctx.clearRect(0,0,ctx.canvas.width,ctx.canvas.height);

  step.land.draw(ctx);

  requestAnimationFrame(step);
}

function init()
{
  var canvas;
  var ctx;
  var land;

  canvas = document.getElementById("wave-sim");
  ctx    = canvas.getContext("2d");
  land   = new Land();

  step.ctx  = ctx;
  step.land = land;

  // start animation
  requestAnimationFrame(step);
}

<commit_msg>Add another island<commit_after>(function() {
  var requestAnimationFrame = window.requestAnimationFrame || window.mozRequestAnimationFrame ||
                              window.webkitRequestAnimationFrame || window.msRequestAnimationFrame;
  window.requestAnimationFrame = requestAnimationFrame;
})();

function step()
{
  var ctx = step.ctx;
  var i   = 0;
  var len = step.lands.length;

  ctx.clearRect(0,0,ctx.canvas.width,ctx.canvas.height);

  for(;i<len;i++){
    step.lands[i].draw(ctx);
  }

  requestAnimationFrame(step);
}

function init()
{
  var canvas;
  var ctx;
  var land;
  var land2;


  canvas       = document.getElementById("wave-sim");
  ctx          = canvas.getContext("2d");
  land         = new Land();
  land2        = new Land();
  land2.x      = land.x+150;
  land2.y      = land.y-80;
  land2.width  = 50;
  land2.height = 50;

  step.ctx     = ctx;
  step.lands   = [];
  step.lands.push(land);
  step.lands.push(land2);

  // start animation
  requestAnimationFrame(step);
}


{'fraction_non_alphanumeric': 0.13310185185185186, 'fraction_numerical': 0.013310185185185185, 'mean_word_length': 3.0874704491725766, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 3, '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': '2525967', 'n_tokens_mistral': 564, 'n_tokens_neox': 542, 'n_words': 101}