<commit_before>//= require active_admin/base
//= require jquery
//= require ./pagedown/Markdown.Converter.js
//= require ./pagedown/Markdown.Editor.js
//= require ./pagedown/Markdown.Sanitizer.js
//= require ./Markdown.Extra.js

$(document).ready(function(){
  // Clicking Articles link on dashboard > open up context menu
  $("a[href $= '/admin/articles']").attr("href","#");
  $("a[href $= '#']").click(function(e){
    $("a[href $= '#']").next().css({ "display": "block" });
  });

  var arrows = $(".guidearrow");
  if(arrows.length){
    setInterval(function(){
      for(var a=0;a<arrows.length;a++){
        $(arrows[a]).css({ "display": "inline" });
      }
    }, 250);
  }
});<commit_msg>[#37] Fix the JS function which hides the 'articles' admin page<commit_after>//= require active_admin/base
//= require jquery
//= require ./pagedown/Markdown.Converter.js
//= require ./pagedown/Markdown.Editor.js
//= require ./pagedown/Markdown.Sanitizer.js
//= require ./Markdown.Extra.js

$(document).ready(function(){

  // Prevent people from visiting the articles page
  $("a[href $= '/admin/articles']").addClass('articles_link');
  $(".articles_link").attr("href","#").click(function(e){
    e.preventDefaults();
  });

  var arrows = $(".guidearrow");
  if(arrows.length){
    setInterval(function(){
      for(var a=0;a<arrows.length;a++){
        $(arrows[a]).css({ "display": "inline" });
      }
    }, 250);
  }
});
{'fraction_non_alphanumeric': 0.22791023842917252, 'fraction_numerical': 0.0070126227208976155, 'mean_word_length': 3.6482084690553744, 'pattern_counts': {'":': 3, '<': 5, '<?xml version=': 0, '>': 4, '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': '2217904', 'n_tokens_mistral': 505, 'n_tokens_neox': 473, 'n_words': 88}