<commit_before><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="im"%>
<%@ page import="java.lang.String" %>

<html:xhtml/>
<!-- queryClassSelect.jsp -->

<script type="text/javascript">
<!--
  // array of help texts built in the controller
  var helpMap = {${helpMap}};

  function showClassSelectHelp() {
      var i = document.queryClassSelectForm.className.selectedIndex;
      var fullSelectedClassName = document.queryClassSelectForm.className[i].value;
      var selectedClassName =
          fullSelectedClassName.substring(fullSelectedClassName.lastIndexOf('.')+1);
      var helpText = helpMap[selectedClassName];
      if (!helpText) {
          helpText = "no description available";
      }
      document.getElementById('queryClassSelect').innerHTML =
          selectedClassName + ":  " + helpText;
      document.getElementById('classSelectDiv').style.display = 'block';
  }

  function handleClassClick(e) {
      if (e.detail == 2) {
          $('queryClassForm').submit();
      }
  }

  window.onload = function() {
      var selector = $('queryClassSelector');
      addEvent(selector, 'click', handleClassClick);
  }<commit_msg>If the user clicks on the separator line in the class chooser, don't attempt to show a help message.<commit_after><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="im"%>
<%@ page import="java.lang.String" %>

<html:xhtml/>
<!-- queryClassSelect.jsp -->

<script type="text/javascript">
<!--
  // array of help texts built in the controller
  var helpMap = {${helpMap}};

  function showClassSelectHelp() {
      var i = document.queryClassSelectForm.className.selectedIndex;
      var fullSelectedClassName = document.queryClassSelectForm.className[i].value;
      var selectedClassName =
          fullSelectedClassName.substring(fullSelectedClassName.lastIndexOf('.')+1);
      if (selectedClassName.length > 0) {
          var helpText = helpMap[selectedClassName];
          document.getElementById('queryClassSelect').innerHTML =
              selectedClassName + ":  " + helpText;
          document.getElementById('classSelectDiv').style.display = 'block';
      } else {
          $('classSelectDiv').style.display='none';
      }
  }

  function handleClassClick(e) {
      if (e.detail == 2) {
          $('queryClassForm').submit();
      }
  }

  window.onload = function() {
      var selector = $('queryClassSelector');
      addEvent(selector, 'click', handleClassClick);
  }
{'fraction_non_alphanumeric': 0.16851368970013036, 'fraction_numerical': 0.0016297262059973925, 'mean_word_length': 3.5669642857142856, 'pattern_counts': {'":': 2, '<': 25, '<?xml version=': 0, '>': 24, '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': '2401716', 'n_tokens_mistral': 979, 'n_tokens_neox': 933, 'n_words': 167}