<commit_before>$(document).ready(function() {
  var deck = new Deck();
  deck.populateDeck();
  game = new Game(deck);
  game.startGame();

  count = 0;
  $(".cell").on("click", function(e){
    e.preventDefault();
    if(count < 1) {
      $('.clicked').html("").removeClass('clicked');
      $(this).addClass("clicked");
      firstVal = $(this).attr("value");
      $(this).html(firstVal);
      count++;
    } else {
      $(this).addClass("clicked");
      var secondVal = $(this).attr("value");
      $(this).html(secondVal);
      if (game.compareCards(firstVal,secondVal)){
        $('.clicked').removeClass('clicked').addClass('matched').css('background-color', 'red');
      }
      count = 0;
    }
   if($('.matched').length == 20) {
    alert("Game Over!");
    $('.matched').removeClass('matched').html('').css('background-color', 'white');
    }
  })
});<commit_msg>add location.reload() to refresh board<commit_after>$(document).ready(function() {
  var deck = new Deck();
  deck.populateDeck();
  game = new Game(deck);
  game.startGame();

  count = 0;
  $(".cell").on("click", function(e){
    e.preventDefault();
    if(count < 1) {
      $('.clicked').html("").removeClass('clicked');
      $(this).addClass("clicked");
      firstVal = $(this).attr("value");
      $(this).html(firstVal);
      count++;
    } else {
      $(this).addClass("clicked");
      var secondVal = $(this).attr("value");
      $(this).html(secondVal);
      if (game.compareCards(firstVal,secondVal)){
        $('.clicked').removeClass('clicked').addClass('matched').css('background-color', 'red');
      }
      count = 0;
    }
   if($('.matched').length == 20) {
    alert("Game Over!");
    $('.matched').removeClass('matched').html('').css('background-color', 'white');
    location.reload();
    }
  })
});

{'fraction_non_alphanumeric': 0.23799006073992268, 'fraction_numerical': 0.005521811154058531, 'mean_word_length': 3.263529411764706, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6465074', 'n_tokens_mistral': 579, 'n_tokens_neox': 574, 'n_words': 87}