<commit_before>$(document).ready(function(){
  var $this = $(this);
  var matches = [];
  var $cards = $(".card.col6");


    $("div.card").on("click", function(event) {
      if (!$(this).hasClass("disabled") ){
        $(this).addClass("chosen");
        $(this).find(".value").fadeOut();
        $(this).find(".question").fadeIn();
        matches.push($(this).find(".answer").text().trim());
        
        if (matches[0]===matches[1]){
          $cards.filter(".disabled").addClass("played")
          $(this).addClass("played")
          //$cards.filter(".disabled").removeClass("disabled").removeClass("question")
          matches.pop()
          matches.pop()
          alert("you got a match!")
        }
        else if(matches.length===2 && matches[0] !== matches[1]){
          $(this).addClass("disabled");
          //$cards.filter(".disabled").find(".question").fadeOut()
          alert(2)
          $cards.filter(".disabled").removeClass("chosen")
          
          // $cards.filter(".disabled").find(".value").fadeIn()
          //.setInterval(10000);
          // $cards.filter(".disabled").find(".question").fadeOut();
          // $cards.filter(".disabled").removeClass("disabled")
          matches.pop()
          matches.pop()
          alert("you didn't get a match")
          setTimeout(function(){
            $cards.filter(".disabled").removeClass("disabled").find(".question").fadeOut()
            .addClass("value");

          }, 1000)
        }
        else  {
          $(this).addClass("disabled");
          alert("1")
        }
        // else if(matches.length === 3){
        //   $cards.filter(".disabled").find(".value").fadeIn();
        //   $cards.filter(".disabled").find(".question").fadeOut();
        //   $cards.filter(".disabled").removeClass("disabled")
        //   matches.pop()
        //   matches.pop()
        //   matches.pop()
          //.find(".question")
          //.fadeOut().addClass("value").fadeIn().removeClass(".question");
        // }
        // else
        //   alert("other" + matches.length)
        // else {
        //   $(this).find(".question").fadeOut();
        //    $(this).siblings().not(".cat-card").removeClass("disabled");
        // }
      
         
    <commit_msg>it works<commit_after>$(document).ready(function(){
  var $this = $(this);
  var matches = [];
  var $cards = $(".card.col6");


    $("div.card").on("click", function(event) {
      if (!$(this).hasClass("disabled") ){
        $(this).addClass("chosen");
        $(this).find(".value").fadeOut();
        $(this).find(".question").fadeIn();
        matches.push($(this).find(".answer").text().trim());
        
        if (matches[0]===matches[1]){
          $cards.filter(".disabled").addClass("played")
          $(this).addClass("played")
          //$cards.filter(".disabled").removeClass("disabled").removeClass("question")
          matches.pop()
          matches.pop()
          alert("you got a match!")
        }
        else if(matches.length===2 && matches[0] !== matches[1]){
          $(this).addClass("disabled");
          //$cards.filter(".disabled").find(".question").fadeOut()
          alert(2)
          $cards.filter(".disabled").removeClass("chosen")
          
          // $cards.filter(".disabled").find(".value").fadeIn()
          //.setInterval(10000);
          // $cards.filter(".disabled").find(".question").fadeOut();
          // $cards.filter(".disabled").removeClass("disabled")
          matches.pop()
          matches.pop()
          alert("you didn't get a match")
          setTimeout(function(){
            $cards.filter(".disabled").find(".question").fadeOut()
            $cards.filter(".disabled").find(".value").fadeIn()
            $cards.filter(".disabled").removeClass("disabled")
            

          }, 1500)
        }
        else  {
          $(this).addClass("disabled");
        }
        // else if(matches.length === 3){
        //   $cards.filter(".disabled").find(".value").fadeIn();
        //   $cards.filter(".disabled").find(".question").fadeOut();
        //   $cards.filter(".disabled").removeClass("disabled")
        //   matches.pop()
        //   matches.pop()
        //   matches.pop()
          //.find(".question")
          //.fadeOut().addClass("value").fadeIn().removeClass(".question");
        // }
        // else
        //   alert("other" + matches.length)
        // else {
        //   $(this).find(".question").fadeOut();
        //    $(this).siblings().not(".cat-card").removeClass("disabled");
        // }
      
         
    
{'fraction_non_alphanumeric': 0.22365262928212962, 'fraction_numerical': 0.007636919048658084, 'mean_word_length': 1.929073482428115, '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': '2047132', 'n_tokens_mistral': 1273, 'n_tokens_neox': 1237, 'n_words': 143}