<commit_before>//display elements in collection in firebug
//TODO: fix sorting
jQuery.fn.debug = jQuery.fn.dbg = function () {
  var elements = $.makeArray(this);
  return elements.sort(
    function(a,b){
      if (a.toString() < b.toString()) return -1;
      if (a.toString() > b.toString()) return 1;
      return 0;
      });
};


$(function() {

  //anchor received from url (or empty string)
  var anchor = document.location.hash
  
  // Set focus on login text input for login
  $("input#login,input#user_login").focus();

  // Set zebra style for data tables
  $('table.data tbody tr:nth-child(even)').addClass('even_row');

  // Set info messages dissapear after 5 seconds
  $('#flash').animate({opacity: 1.0}, 5000).hide('slow')
  
  // highlights temporary and anchor for story or task
  if (anchor != "" && anchor.match(/^#(task|story)_[0-9]+$/)) {
    var originalBG = $(anchor).css("background-color"); 
    var highlightBG = "#ffe822";
    $.scrollTo(anchor, 1000, {offset:-150});
    $(anchor).effect("pulsate",{},100).effect("highlight",{},3000);
  }


  //Toggle stories view
  $('#toggle_stories').bind("click", 
    function(e){
      if ($('#toggle_stories a strong').text() == "Expand Stories") {
        $('.agile_tasks').show();
        $('#toggle_stories a strong').text("Collapse Stories");
      } else {
        $('.agile_tasks').hide();
        $('#toggle_stories a strong').text("Expand Stories");<commit_msg>removed blink from anchors<commit_after>//display elements in collection in firebug
//TODO: fix sorting
jQuery.fn.debug = jQuery.fn.dbg = function () {
  var elements = $.makeArray(this);
  return elements.sort(
    function(a,b){
      if (a.toString() < b.toString()) return -1;
      if (a.toString() > b.toString()) return 1;
      return 0;
      });
};


$(function() {

  //anchor received from url (or empty string)
  var anchor = document.location.hash
  
  // Set focus on login text input for login
  $("input#login,input#user_login").focus();

  // Set zebra style for data tables
  $('table.data tbody tr:nth-child(even)').addClass('even_row');

  // Set info messages dissapear after 5 seconds
  $('#flash').animate({opacity: 1.0}, 5000).hide('slow')
  
  // highlights temporary and anchor for story or task
  if (anchor != "" && anchor.match(/^#(task|story)_[0-9]+$/)) {
    var originalBG = $(anchor).css("background-color"); 
    var highlightBG = "#ffe822";
    $.scrollTo(anchor, 1000, {offset:-150});
    $(anchor).animate({opacity: 1},500, 
      function(){
        $(anchor).effect("highlight",{},3000);
      });
  }


  //Toggle stories view
  $('#toggle_stories').bind("click", 
    function(e){
      if ($('#toggle_stories a strong').text() == "Expand Stories") {
        $('.agile_tasks').show();
        $('#toggle_stories a strong').text("Collapse Stories");
      } else {
        $('.agile_tasks').hide();
        $('#toggle_stories a strong').text("Expand Stories");
{'fraction_non_alphanumeric': 0.1893913634818089, 'fraction_numerical': 0.020061203672220335, 'mean_word_length': 3.294890510948905, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6939401', 'n_tokens_mistral': 969, 'n_tokens_neox': 897, 'n_words': 229}