<commit_before>var ESVIJI = {};

ESVIJI.settings = {
  'debug': false,
  'board': {
    'width': 320,
    'height': 460
  },
  'pieces': ['piece1', 'piece2', 'piece3', 'piece4', 'piece5', 'piece6', 'piece7', 'piece8', 'piece9', 'piece10', 'piece11', 'piece12', 'piece13', 'piece14'],
  'rocks': ['rock'],
  'emptyId': 0,
  'rockId': -1,
  'launch': {
    'lives': 9,
    'score': 0,
    'level': 1
  },
  'turn': {
    'posX': 10,
    'dirX': -1,
    'posY': 8,
    'dirY': 0
  },
  'durationMove': 0.2,
  'durationMorph': 0.8
}

ESVIJI.game = (function() {
  var currentPieces = [],
    drawnCurrentPieces = [],
    validPieces = [],
    currentPiece = 0,
    drawnCurrentPiece = null,
    stackedAnimationToStart = 1,
    lastStackedAnimation = 0,
    currentPosX = 0,
    currentPosY = 0,
    currentDirX = -1,
    currentDirY = 0,
    dragged = false,
    moveCount = 0,
    cursorY = 0,
    cursorMinY = 0,
    cursorMaxY = 0,
    maxAvailablePieces = 0,
    nbPieces = 0,
    level, score, lives, scoreThisTurn = 0,
    playing = false;

  function init() {
    cursorMinY = yToSvg(1);
    cursorMaxY = yToSvg(13);
    maxAvailablePieces = ESVIJI.settings['pieces'].length;

    $('#main .start').on('click', startPlaying);
  }

  function startPlaying() {
    level = ESVIJI.settings['launch']['level'];
    score = ESVIJI.settings['launch']['score'];
    lives = ESVIJI.settings['launch']['lives'];
    $('#play').remove();
    if (drawnCurrentPiece !== null) {
      drawnCurrentPiece.remove();
    }
    $('#playPanel').clone().attr('id', 'play').appendTo('#board');
    $('.pauseButton').on('click', pause);
    //  $("#fullscreen").on("click", function() {
    //    fs = new Fullscreen($("#board"));
    //    fs.request();
    //  });
    nextLevel();
  }

  function nextLevel() {
    playing = true;
    drawScore();
    drawLevel();
    drawLives();
    nbPieces = Math.min(maxAvailablePieces, Math.floor(3 + (level / 3)));

    erasePieces();

    initPieces();
    drawPieces();

    getValidPieces();
    currentPiece = validPieces[Math.floor(Math.random() * validPieces.length)];
<commit_msg>hack end data for tests<commit_after>var ESVIJI = {};

ESVIJI.settings = {
  'debug': false,
  'board': {
    'width': 320,
    'height': 460
  },
  'pieces': ['piece1', 'piece2', 'piece3', 'piece4', 'piece5', 'piece6', 'piece7', 'piece8', 'piece9', 'piece10', 'piece11', 'piece12', 'piece13', 'piece14'],
  'rocks': ['rock'],
  'emptyId': 0,
  'rockId': -1,
  'launch': {
    'lives': 9,
    'score': 0,
    'level': 1
  },
  'turn': {
    'posX': 10,
    'dirX': -1,
    'posY': 8,
    'dirY': 0
  },
  'durationMove': 0.2,
  'durationMorph': 0.8
}

ESVIJI.game = (function() {
  var currentPieces = [],
    drawnCurrentPieces = [],
    validPieces = [],
    currentPiece = 0,
    drawnCurrentPiece = null,
    stackedAnimationToStart = 1,
    lastStackedAnimation = 0,
    currentPosX = 0,
    currentPosY = 0,
    currentDirX = -1,
    currentDirY = 0,
    dragged = false,
    moveCount = 0,
    cursorY = 0,
    cursorMinY = 0,
    cursorMaxY = 0,
    maxAvailablePieces = 0,
    nbPieces = 0,
    level, score, lives, scoreThisTurn = 0,
    playing = false;

  function init() {
    cursorMinY = yToSvg(1);
    cursorMaxY = yToSvg(13);
    maxAvailablePieces = ESVIJI.settings['pieces'].length;

    $('#main .start').on('click', startPlaying);
  }

  function startPlaying() {
    level = ESVIJI.settings['launch']['level'];
    score = ESVIJI.settings['launch']['score'];
    lives = ESVIJI.settings['launch']['lives'];
    $('#play').remove();
    if (drawnCurrentPiece !== null) {
      drawnCurrentPiece.remove();
    }
    $('#playPanel').clone().attr('id', 'play').appendTo('#board');
    $('.pauseButton').on('click', pause);
    //  $("#fullscreen").on("click", function() {
    //    fs = new Fullscreen($("#board"));
    //    fs.request();
    //  });
    nextLevel();
  }

  function nextLevel() {
    playing = true;
    drawScore();
    drawLevel();
    drawLives();
    nbPieces = Math.min(maxAvailablePieces, Math.floor(3 + (level / 3)));

    erasePieces();

    initPieces();

    // HACK
    // currentPieces[1][1] = 2;
    // currentPieces[2][1] = 3;
    // currentPieces[3][1] = 3;
    // currentPieces[1][2] = 2;
    // currentPieces[2][2] = 2;
    // currentPieces[3][2] = 2;
    // currentPieces[1][3] = 3;
    // currentPieces[2][3] = 3;
    // currentPieces[3][3] = 3;

    drawPieces();

    getValidPieces();
    currentPiece = validPieces[Math.floor(Math.random() * validPieces.length)];

    // HACK
    // currentPiece = 2;

{'fraction_non_alphanumeric': 0.20017482517482518, 'fraction_numerical': 0.03146853146853147, 'mean_word_length': 2.8722504230118444, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1611498', 'n_tokens_mistral': 1825, 'n_tokens_neox': 1705, 'n_words': 322}