<commit_before>$(document).ready(function() 
  {

  $ (".project").each(function(i) {
    //console.log("TEST!");
    //console.log(this);
    $(this).click(function() {
      // $(element.id).css("test", "test");
      // targeted = element.target.id
      // targeted_id = targeted.split("-");
      clickedButton = $(this).attr("id");
      clickedButtonId = ("#").concat(clickedButton)
      clickedButtonElement = (".").concat(clickedButton)
      clickedButtonActual = ("pick-").concat(clickedButton);

      console.log("CLICKED:");
      console.log(clickedButton);

      clickedButtonElement = (".").concat(clickedButton)
      if($(clickedButtonId).is(':visible')) {
        $(clickedButtonElement).fadeToggle("fast", "swing", function() {
          $(clickedButtonElement).css("display", "inline-block");
        });
      }
      else {
        $(clickedButtonElement).fadeToggle("fast", "swing");
      }

      console.log("DONE:");
      console.log(clickedButtonElement);

      clickedButtonActual = ("pick-").concat(clickedButton);
      $(clickedButtonActual).toggleClass("btn-success");
      console.log("DONE:");
      console.log(clickedButtonActual)
    });
  });

  /*
  $(".pick-addition").click(function()
    {
      $(".addition").fadeToggle("fast", "swing", function () {
        $(".addition").css("display", "inline-block");
      });<commit_msg>Add basic js using fadetoggle to show projects in sidebar<commit_after>$(document).ready(function() 
  {

  $ (".project").each(function(i) {
    //console.log("TEST!");
    //console.log(this);
    $(this).click(function() {
      // $(element.id).css("test", "test");
      // targeted = element.target.id
      // targeted_id = targeted.split("-");
      clickedButton = $(this).attr("id");
      clickedButtonId = ("#").concat(clickedButton)
      clickedButtonElement = (".").concat(clickedButton)
      clickedButtonActual = ("pick-").concat(clickedButton);

      console.log("CLICKED:");
      console.log(clickedButton);

      if(!$(clickedButtonElement).is(':visible')) {
        $(clickedButtonElement).fadeToggle("fast", "swing", function() {
          $(clickedButtonElement).css("display", "inline-block");
        });
        console.log("IS VISIBLE, TURNING OFF")
      }
      else {
        $(clickedButtonElement).fadeToggle("fast", "swing");
        console.log("IS INVISIBLE, TURNING OFF")
      }

      $(clickedButtonActual).toggleClass("btn-success");
      console.log("DONE:");
      console.log(clickedButtonActual)
    });
  });

  /*
  $(".pick-addition").click(function()
    {
      $(".addition").fadeToggle("fast", "swing", function () {
        $(".addition").css("display", "inline-block");
      });
{'fraction_non_alphanumeric': 0.20508100147275404, 'fraction_numerical': 0.0, 'mean_word_length': 3.0491803278688523, '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': '7370024', 'n_tokens_mistral': 836, 'n_tokens_neox': 816, 'n_words': 101}