<commit_before>$(function() {
  initInfoviewTableUI();
});
function initInfoviewTableUI() {
  $(".infoviewContainerTabs").find(".infoTableView").each(function() {
    src=$(this).closest(".tab-pane").attr("id");
    $(".infoviewContainerTabs").find(".nav.nav-tabs").find("a[href='#"+src+"']").attr("data-onshowncallback","loadInfoTableCallback");
  });
}

function loadInfoTableCallback(srcTag) {
  srcPane=$($(srcTag).attr("href"),".infoviewContainerTabs").find(".infoTableView");
  cmd=srcPane.data('cmd');
  if(typeof window[cmd]=='function') {
    window[cmd](srcPane);
  } else {
    $(srcPane).find("thead .filters").find("select,input").val("");
    loadInfoTable(srcPane);
  }
}
function loadInfoTableFirst(src) {
  if($(src).find("table.table tbody").children().length<=0) {
    loadInfoTable(src);
  }
}
function loadInfoTableInline(src) {
  loadInfoTable($(src).closest(".infoTableView"));
}
function loadInfoTable(src) {
  ui=$(src).data("ui");
  cmd="fetchGrid";
  if(ui=="single") {
    cmd="fetchSingle";
  }

  //$(src).find("table.table tbody").append("<tr><td colspan=1000 align=center><div class='ajaxloading ajaxloading5'></div></td></tr>");
  $(src).find("table.table tbody").html("<tr><td colspan=1000 align=center><div class='ajaxloading ajaxloading5'></div></td></tr>");

  lx=_service("infoviewTable",cmd,"table")+"&dtuid="+$(src).data("dtuid")+"&refid="+$(src).data("dcode");
  lx+="&page="+$(src).data("page");<commit_msg>Data Bug is Accordion UI fixed<commit_after>$(function() {
  initInfoviewTableUI();
});
function initInfoviewTableUI() {
  if($(".infoviewContainerTabs").length>0) {
    $(".infoviewContainerTabs").find(".infoTableView").each(function() {
      src=$(this).closest(".tab-pane").attr("id");
      $(".infoviewContainerTabs").find(".nav.nav-tabs").find("a[href='#"+src+"']").attr("data-onshowncallback","loadInfoTableCallback");
    });
  } else if($(".infoviewContainerAccordion").length>0) {
    $(".infoviewContainerAccordion").find(".infoTableView").each(function() {
        var src=$(this).closest(".panel-collapse").attr("id");

        $(".infoviewContainerAccordion").find(".panel-heading").find("a[href='#"+src+"']").attr("data-onshowncallback","loadInfoTableCallback");
    });
  }
  
}

function loadInfoTableCallback(srcTag) {
  srcPane=$($(srcTag).attr("href"),".infoviewContainer").find(".infoTableView");
  cmd=srcPane.data('cmd');
  if(typeof window[cmd]=='function') {
    window[cmd](srcPane);
  } else {
    $(srcPane).find("thead .filters").find("select,input").val("");
    loadInfoTable(srcPane);
  }
}
function loadInfoTableFirst(src) {
  if($(src).find("table.table tbody").children().length<=0) {
    loadInfoTable(src);
  }
}
function loadInfoTableInline(src) {
  loadInfoTable($(src).closest(".infoTableView"));
}
function loadInfoTable(src) {
  ui=$(src).data("ui");
  cmd="fetchGrid";
  if(ui=="single") {
    cmd="fetchSingle";
  }

  //$(src).find("table.table tbody").append("<tr><td colspan=1000 align=center><div class='ajaxloading ajaxloading5'></div></td></tr>");
  $(src).find("table.table tbody").html("<tr><td colspan=1000 align=center><div class='ajaxloading ajaxloading5'></div></td></tr>");

  lx=_service("infoviewTable",cmd,"table")+"&dtuid="+$(src).data("dtuid")+"&refid="+$(src).data("dcode");
  lx+="&page="+$(src).data("page");
{'fraction_non_alphanumeric': 0.2500752332229913, 'fraction_numerical': 0.0072223894071622025, 'mean_word_length': 6.419642857142857, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, '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': '3537864', 'n_tokens_mistral': 1159, 'n_tokens_neox': 1137, 'n_words': 103}