<commit_before><%@page language="java" contentType="text/html"
	import="java.io.File,
		java.util.LinkedList,org.opennms.core.resource.Vault,org.opennms.web.acegisecurity.Authentication,org.opennms.web.navigate.NavBarEntry"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>

<%
                if (request.getAttribute("navBar") == null) {
                String mapEnableLocation = Vault.getHomeDir()
                        + File.separator + "etc" + File.separator
                        + "map.enable";
                File mapEnableFile = new File(mapEnableLocation);

                String vulnEnableLocation = Vault.getHomeDir()
                        + File.separator + "etc" + File.separator
                        + "vulnerabilities.enable";
                File vulnEnableFile = new File(vulnEnableLocation);

                LinkedList navBar = new LinkedList();
                navBar.add(new NavBarEntry("nodelist",
                                           "element/nodelist.jsp",
                                           "Node List"));
                navBar.add(new NavBarEntry("element", "element/index.jsp",
                                           "Search"));
                navBar.add(new NavBarEntry("outages", "outage/index.jsp",
                                           "Outages"));
                navBar.add(new NavBarEntry("pathOutage",
                                           "pathOutage/index.jsp",
                                           "Path Outages"));
                navBar.add(new NavBarEntry("event", "event/index.jsp",
                                           "Events"));
                navBar.add(new NavBarEntry("alarm", "alarm/index.jsp",
                                           "Alarms"));
                navBar.add(new NavBarEntry("notification",
                                           "notification/index.jsp",
                                           "Notification"));
                navBar.add(new NavBarEntry("asset", "asset/index.jsp",
                                           "Assets"));
                //navBar.add(new NavBarEntry("security", "security.jsp", "Security"));
                navBar.add(new NavBarEntry("report", "report/index.jsp",
                                           "Reports"));
                navBar.add(new NavBarEntry("chart", "charts/index.jsp",
                                           "Charts"));
                if (mapEnableFile.exists()) {
                    navBar.add(new NavBarEntry("vulnerability",
                                               "vulnerability/index.jsp",
                                               "Vulnerabilities"));
                }
                if (mapEnableFile.exists()) {
                    navBar.add(new NavBarEntry("map", "map/index.jsp", "Map"));
                }
                if (request.isUserInRole(Authentication.ADMIN_ROLE)) {
                    navBar.add(new NavBarEntry("admin", "admin/index.jsp",
                                               "Admin"));
                }
                navBar.add(new NavBarEntry("help", "help/index.jsp", "Help"));

                request.setAttribute("navBar", navBar);
                request.setAttribute("location",
                                     request.getParameter("location"));
            }
%>

<div class="navbar">
<ul><commit_msg>Navbar correctly finding vulnscand, all taken  through ArsDigita. So - previous commit changed stuff, but this should correct the spaces.<commit_after><%@page language="java" contentType="text/html"
	import="java.io.File,java.util.LinkedList,org.opennms.core.resource.Vault,org.opennms.web.acegisecurity.Authentication,org.opennms.web.navigate.NavBarEntry"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>

<%
                if (request.getAttribute("navBar") == null) {
                String mapEnableLocation = Vault.getHomeDir()
                        + File.separator + "etc" + File.separator
                        + "map.enable";
                File mapEnableFile = new File(mapEnableLocation);

                String vulnEnableLocation = Vault.getHomeDir()
                        + File.separator + "etc" + File.separator
                        + "vulnerabilities.enable";
                File vulnEnableFile = new File(vulnEnableLocation);

                LinkedList navBar = new LinkedList();
                navBar.add(new NavBarEntry("nodelist",
                                           "element/nodelist.jsp",
                                           "Node List"));
                navBar.add(new NavBarEntry("element", "element/index.jsp",
                                           "Search"));
                navBar.add(new NavBarEntry("outages", "outage/index.jsp",
                                           "Outages"));
                navBar.add(new NavBarEntry("pathOutage",
                                           "pathOutage/index.jsp",
                                           "Path Outages"));
                navBar.add(new NavBarEntry("event", "event/index.jsp",
                                           "Events"));
                navBar.add(new NavBarEntry("alarm", "alarm/index.jsp",
                                           "Alarms"));
                navBar.add(new NavBarEntry("notification",
                                           "notification/index.jsp",
                                           "Notification"));
                navBar.add(new NavBarEntry("asset", "asset/index.jsp",
                                           "Assets"));
                //navBar.add(new NavBarEntry("security", "security.jsp", "Security"));
                navBar.add(new NavBarEntry("report", "report/index.jsp",
                                           "Reports"));
                navBar.add(new NavBarEntry("chart", "charts/index.jsp",
                                           "Charts"));
                if (vulnEnableFile.exists()) {
                    navBar.add(new NavBarEntry("vulnerability",
                                               "vulnerability/index.jsp",
                                               "Vulnerabilities"));
                }
                if (mapEnableFile.exists()) {
                    navBar.add(new NavBarEntry("map", "map/index.jsp", "Map"));
                }
                if (request.isUserInRole(Authentication.ADMIN_ROLE)) {
                    navBar.add(new NavBarEntry("admin", "admin/index.jsp",
                                               "Admin"));
                }
                navBar.add(new NavBarEntry("help", "help/index.jsp", "Help"));

                request.setAttribute("navBar", navBar);
                request.setAttribute("location",
                                     request.getParameter("location"));
            }
%>

<div class="navbar">
<ul>
{'fraction_non_alphanumeric': 0.1183406113537118, 'fraction_numerical': 0.0, 'mean_word_length': 1.2015379685998078, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 66, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3101688', 'n_tokens_mistral': 1623, 'n_tokens_neox': 1535, 'n_words': 240}