<commit_before>$(document).ready(function(){
  $('div.button').toggleClass('opacity-switch');
  $('#command-placeholder').toggleClass('opacity-switch')
  console.log("in the index.js file")
  $('body').keydown(function(event){
    console.log("in the keydown")
    if (event.which == 84){
      console.log("pressed t")
      $('#yago-drop-down').slideUp("slow");
      $('#commands').slideUp();
    }
    else if (event.which == 76) {
      console.log("pressed l")
      $('#yago-drop-down').slideDown("slow")
    }
    else if (event.which == 67) {
      console.log("pressed c")
      $('#commands').slideToggle()
      $('#command-placeholder').toggleClass('opacity-switch')
    }
    else if (event.which == 82) {
      console.log("pressed r")
      // $('.button').attr('visibility', 'visible');
      $('div.button').toggleClass('opacity-switch');
      // toggleAttr('.button', 'opacity', [0,1]);
    }

  }); //84 is T, 76 is L

// function toggleAttr(el, attribute, vals) {
//   if ($(el).attr(attribute) == vals[0]) {
//     $(el).attr(attribute, vals[1])
//   }
//   else if ($(el).attr(attribute) == vals[1]) {
//     $(el).attr(attribute, vals[0])
//   }
// };




<commit_msg>Fixed fringe cases for toggling c, t, and l<commit_after>$(document).ready(function(){
  $('div.button').toggleClass('opacity-switch');
  $('#command-placeholder').toggleClass('opacity-switch')
  console.log("in the index.js file")
  $('body').keydown(function(event){
    console.log("in the keydown")
    if (event.which == 84){
      console.log("pressed t")
      $('#yago-drop-down').slideUp("slow");
      $('#commands').slideUp();
      $('#command-placeholder').removeClass('opacity-switch');
    }
    else if (event.which == 76) {
      console.log("pressed l")
      $('#yago-drop-down').slideDown("slow");
      $('#commands').slideUp();
      $('#command-placeholder').removeClass('opacity-switch');
    }
    else if (event.which == 67) {
      console.log("pressed c")
      $('#commands').slideToggle()

      $('#command-placeholder').toggleClass('opacity-switch')
    }
    else if (event.which == 82) {
      console.log("pressed r")
      // $('.button').attr('visibility', 'visible');
      $('div.button').toggleClass('opacity-switch');
      // toggleAttr('.button', 'opacity', [0,1]);
    }

  }); //84 is T, 76 is L

// function toggleAttr(el, attribute, vals) {
//   if ($(el).attr(attribute) == vals[0]) {
//     $(el).attr(attribute, vals[1])
//   }
//   else if ($(el).attr(attribute) == vals[1]) {
//     $(el).attr(attribute, vals[0])
//   }
// };





{'fraction_non_alphanumeric': 0.23718944099378883, 'fraction_numerical': 0.013975155279503106, 'mean_word_length': 3.0646687697160884, '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': '1955865', 'n_tokens_mistral': 860, 'n_tokens_neox': 832, 'n_words': 143}