<commit_before><%
  if (type.compareTo("relationship") == 0 || type.compareTo("all") == 0)
  {
    Concept concept_curr = (Concept) request.getSession().getAttribute("concept");
    String scheme_curr = gov.nih.nci.evs.browser.utils.HTTPUtils.cleanXSS((String) request.getSession().getAttribute("dictionary"));
    String version_curr = null;
    String code_curr = gov.nih.nci.evs.browser.utils.HTTPUtils.cleanXSS((String) request.getSession().getAttribute("code"));
    String defaultSortOption = "source";

    Vector sort_option = new Vector();
    int num_tables = 6;
    String sort0 = null;
    String sort1 = null;
    String sort2 = null;
    String sort3 = null;
    String sort4 = null;
    String sort5 = null;

    for (int k=0; k<num_tables; k++) {
        sort_option.add(defaultSortOption);
    }
    for (int k=0; k<num_tables; k++) {
        String option = gov.nih.nci.evs.browser.utils.HTTPUtils.cleanXSS((String) request.getParameter("sort" + k));
        if (option != null) {
            sort_option.set(k, option);
        }
    }
    sort0 = (String) sort_option.elementAt(0);
    sort1 = (String) sort_option.elementAt(1);
    sort2 = (String) sort_option.elementAt(2);
    sort3 = (String) sort_option.elementAt(3);
    sort4 = (String) sort_option.elementAt(4);
    sort5 = (String) sort_option.elementAt(5);


    if (sort0 == null) sort0 = defaultSortOption;
    if (sort1 == null) sort1 = defaultSortOption;
    if (sort2 == null) sort2 = defaultSortOption;
    if (sort3 == null) sort3 = defaultSortOption;
    if (sort4 == null) sort4 = defaultSortOption;
    if (sort5 == null) sort5 = defaultSortOption;

    DataUtils util = new DataUtils();
    HashMap hmap = (HashMap) request.getSession().getAttribute("AssociationTargetHashMap");
    if (hmap == null) {
      hmap = util.getAssociationTargetHashMap(scheme_curr, version_curr, code_curr, sort_option);
    }
    Vector superconcept_vec = (Vector) hmap.get("Parent");
    Vector subconcept_vec = (Vector) hmap.get("Child");
    Vector broader_vec = (Vector) hmap.get("Broader");
    Vector narrower_vec = (Vector) hmap.get("Narrower");
    Vector sibling_vec = (Vector) hmap.get("Sibling");
    Vector other_vec = (Vector) hmap.get("Other");

    String label = "";
    String rel_value = "";

%>
<p class="textsubtitle-blue">Relationships with other NCI MetaThesaurus Concepts:</p>

<P/>
<TABLE BORDER="0" WIDTH="100%" bgcolor="#ffffff" cellpadding="5" cellspacing="0">
<TR>
<TD align="center"><b>
<A HREF="#Parent">Parent&nbsp;Concepts</A> |
<A HREF="#Child">Child&nbsp;Concepts</A> |
<A HREF="#Broader">Broader&nbsp;Concepts</A> |
<A HREF="#Narrower">Narrower&nbsp;Concepts</A> |
<A HREF="#Sibling">Sibling&nbsp;Concepts</A> |
<A HREF="#Other">Other&nbsp;Relationships</A>
</TD>
</TR>
</table>

  <p>
    <%
      label = "Parent Concepts:";
      rel_value = "Parent";
      if (superconcept_vec.size() <= 0)
      {
    %>
        <b><a name="Parent"><%=label%><a></b> <i>(none)</i>
    <%
      } else {
    %>
        <b><a name="Parent"><%=label%><a></b>
  <table class="dataTable" width=1000>
    <th class="dataTableHeader" scope="col" align="left">Relationship
        <a href="#" onclick="javascript:window.open('<%=request.getContextPath() %>/pages/rel_help_info.jsf',
    '_blank','top=100, left=100, height=740, width=780, status=no, menubar=no, resizable=yes, scrollbars=yes, toolbar=no, location=no, directories=no');"><commit_msg>Sub tabs now use a class from the style sheet.<commit_after><%
  if (type.compareTo("relationship") == 0 || type.compareTo("all") == 0)
  {
    Concept concept_curr = (Concept) request.getSession().getAttribute("concept");
    String scheme_curr = gov.nih.nci.evs.browser.utils.HTTPUtils.cleanXSS((String) request.getSession().getAttribute("dictionary"));
    String version_curr = null;
    String code_curr = gov.nih.nci.evs.browser.utils.HTTPUtils.cleanXSS((String) request.getSession().getAttribute("code"));
    String defaultSortOption = "source";

    Vector sort_option = new Vector();
    int num_tables = 6;
    String sort0 = null;
    String sort1 = null;
    String sort2 = null;
    String sort3 = null;
    String sort4 = null;
    String sort5 = null;

    for (int k=0; k<num_tables; k++) {
        sort_option.add(defaultSortOption);
    }
    for (int k=0; k<num_tables; k++) {
        String option = gov.nih.nci.evs.browser.utils.HTTPUtils.cleanXSS((String) request.getParameter("sort" + k));
        if (option != null) {
            sort_option.set(k, option);
        }
    }
    sort0 = (String) sort_option.elementAt(0);
    sort1 = (String) sort_option.elementAt(1);
    sort2 = (String) sort_option.elementAt(2);
    sort3 = (String) sort_option.elementAt(3);
    sort4 = (String) sort_option.elementAt(4);
    sort5 = (String) sort_option.elementAt(5);


    if (sort0 == null) sort0 = defaultSortOption;
    if (sort1 == null) sort1 = defaultSortOption;
    if (sort2 == null) sort2 = defaultSortOption;
    if (sort3 == null) sort3 = defaultSortOption;
    if (sort4 == null) sort4 = defaultSortOption;
    if (sort5 == null) sort5 = defaultSortOption;

    DataUtils util = new DataUtils();
    HashMap hmap = (HashMap) request.getSession().getAttribute("AssociationTargetHashMap");
    if (hmap == null) {
      hmap = util.getAssociationTargetHashMap(scheme_curr, version_curr, code_curr, sort_option);
    }
    Vector superconcept_vec = (Vector) hmap.get("Parent");
    Vector subconcept_vec = (Vector) hmap.get("Child");
    Vector broader_vec = (Vector) hmap.get("Broader");
    Vector narrower_vec = (Vector) hmap.get("Narrower");
    Vector sibling_vec = (Vector) hmap.get("Sibling");
    Vector other_vec = (Vector) hmap.get("Other");

    String label = "";
    String rel_value = "";

%>
<p class="textsubtitle-blue">Relationships with other NCI MetaThesaurus Concepts:</p>

<P/>
<TABLE BORDER="0" WIDTH="100%" bgcolor="#ffffff" cellpadding="5" cellspacing="0">
<TR>
<TD class="subtab" align="center"><b>
<A HREF="#Parent">Parents</A> |
<A HREF="#Child">Children</A> |
<A HREF="#Broader">Broader</A> |
<A HREF="#Narrower">Narrower</A> |
<A HREF="#Sibling">Siblings</A> |
<A HREF="#Other">Other</A>
</TD>
</TR>
</table>

  <p>
    <%
      label = "Parent Concepts:";
      rel_value = "Parent";
      if (superconcept_vec.size() <= 0)
      {
    %>
        <b><a name="Parent"><%=label%><a></b> <i>(none)</i>
    <%
      } else {
    %>
        <b><a name="Parent"><%=label%><a></b>
  <table class="dataTable" width=1000>
    <th class="dataTableHeader" scope="col" align="left">Relationship
        <a href="#" onclick="javascript:window.open('<%=request.getContextPath() %>/pages/rel_help_info.jsf',
    '_blank','top=100, left=100, height=740, width=780, status=no, menubar=no, resizable=yes, scrollbars=yes, toolbar=no, location=no, directories=no');">
{'fraction_non_alphanumeric': 0.1713951447791752, 'fraction_numerical': 0.016964024568587307, 'mean_word_length': 3.962989840348331, 'pattern_counts': {'":': 0, '<': 93, '<?xml version=': 0, '>': 87, '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': '2494239', 'n_tokens_mistral': 2405, 'n_tokens_neox': 2333, 'n_words': 471}