<commit_before><%@page session="false" import="org.opencms.jsp.CmsJspActionElement, org.opencms.workplace.CmsWorkplace"%>
<%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms"%><%
  CmsJspActionElement jsp = new CmsJspActionElement(pageContext, request, response);
  pageContext.setAttribute("cms", jsp);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <script type="text/javascript" src="<%=CmsWorkplace.getResourceUri("editors/sitemap/lib/jquery-1.3.2.js")%>"></script>
    <script type="text/javascript" src="<%=CmsWorkplace.getResourceUri("editors/sitemap/lib/jquery-ui-1.8a1.js")%>"></script>
    <script type="text/javascript" src="<%=CmsWorkplace.getResourceUri("editors/sitemap/lib/json2.js")%>"></script>
    <script type="text/javascript" src="<%=CmsWorkplace.getResourceUri("editors/sitemap/lib/jquery.jHelperTip.1.0.js")%>" ></script>
    <script type="text/javascript" src="<%=CmsWorkplace.getResourceUri("editors/sitemap/js/cms.directinput.js")%>"></script>
    <script type="text/javascript">
      var cms = {
         data: {
            "EDITOR_URL": "<cms:link>%(link.weak:/system/workplace/editors/editor.jsp:8973b380-11b7-11db-91cd-fdbae480bac9)</cms:link>",
            "SERVER_URL": "<cms:link>%(link.weak:/system/workplace/editors/sitemap/server.jsp:b848e330-c865-11de-a457-ab20365f6268)</cms:link>",
            "CURRENT_URI": "${cms.requestContext.uri}",
            "LOCALE": "${cms.requestContext.locale}"
         },
         html: {},
         messages: {},
         publish: {},
         sitemap: {}
      };
    </script>
    <script type="text/javascript" src="<cms:link>%(link.weak:/system/workplace/editors/sitemap/cms.messages.jsp:b829e977-c865-11de-a457-ab20365f6268)</cms:link>"></script>
    <script type="text/javascript" src="<%=CmsWorkplace.getResourceUri("editors/sitemap/js/cms.html.js")%>"></script>
    <script type="text/javascript" src="<%=CmsWorkplace.getResourceUri("editors/sitemap/js/cms.data.js")%>"></script>
    <script type="text/javascript" src="<%=CmsWorkplace.getResourceUri("editors/sitemap/js/cms.publish.js")%>"></script>
    <script type="text/javascript" src="<%=CmsWorkplace.getResourceUri("editors/sitemap/js/cms.sitemap.js")%>"></script>
    <script type="text/javascript">
      $(document).ready(function() {
         cms.sitemap.initSitemap();
      });
    </script>
    <title>Sitemap demo</title>
    <link rel="stylesheet" type="text/css" media="screen" href="<%=CmsWorkplace.getResourceUri("editors/sitemap/css/custom-theme/jquery-ui-1.7.2.custom.css")%>" />
    <link rel="stylesheet" type="text/css" media="screen" href="<%=CmsWorkplace.getResourceUri("editors/sitemap/css/sitemap.css")%>" />
  </head>
  <body>
    <div id="cms-main">
      <h1 class="cms-headline">Sitemap-Editor</h1>
      <div class="cms-box ui-corner-all">
        <ul id="cms-sitemap">
        </ul>
        <div class="cms-clearer">
        </div>
      </div>
    </div>
  </body>
</html><commit_msg>- added missing sitemap url constant and corrected initialization<commit_after><%@page session="false" import="org.opencms.jsp.CmsJspActionElement, org.opencms.workplace.CmsWorkplace"%>
<%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms"%><%
  CmsJspActionElement jsp = new CmsJspActionElement(pageContext, request, response);
  pageContext.setAttribute("cms", jsp);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <script type="text/javascript" src="<%=CmsWorkplace.getResourceUri("editors/sitemap/lib/jquery-1.3.2.js")%>"></script>
    <script type="text/javascript" src="<%=CmsWorkplace.getResourceUri("editors/sitemap/lib/jquery-ui-1.8a1.js")%>"></script>
    <script type="text/javascript" src="<%=CmsWorkplace.getResourceUri("editors/sitemap/lib/json2.js")%>"></script>
    <script type="text/javascript" src="<%=CmsWorkplace.getResourceUri("editors/sitemap/lib/jquery.jHelperTip.1.0.js")%>" ></script>
    <script type="text/javascript" src="<%=CmsWorkplace.getResourceUri("editors/sitemap/js/cms.directinput.js")%>"></script>
    <script type="text/javascript">
      var cms = {
         data: {
            "EDITOR_URL": "<cms:link>%(link.weak:/system/workplace/editors/editor.jsp:8973b380-11b7-11db-91cd-fdbae480bac9)</cms:link>",
            "SERVER_URL": "<cms:link>%(link.weak:/system/workplace/editors/sitemap/server.jsp:b848e330-c865-11de-a457-ab20365f6268)</cms:link>",
            "CURRENT_URI": "${cms.requestContext.uri}",
            "LOCALE": "${cms.requestContext.locale}",
            "SITEMAP_URL": "/sitemap"
 
         },
         html: {},
         messages: {},
         publish: {},
         sitemap: {},
         util: {}
      };
    </script>
    <script type="text/javascript" src="<cms:link>%(link.weak:/system/workplace/editors/sitemap/cms.messages.jsp:b829e977-c865-11de-a457-ab20365f6268)</cms:link>"></script>
    <script type="text/javascript" src="<%=CmsWorkplace.getResourceUri("editors/sitemap/js/cms.html.js")%>"></script>
    <script type="text/javascript" src="<%=CmsWorkplace.getResourceUri("editors/sitemap/js/cms.data.js")%>"></script>
    <script type="text/javascript" src="<%=CmsWorkplace.getResourceUri("editors/sitemap/js/cms.publish.js")%>"></script>
    <script type="text/javascript" src="<%=CmsWorkplace.getResourceUri("editors/sitemap/js/cms.util.js")%>"></script>

    <script type="text/javascript" src="<%=CmsWorkplace.getResourceUri("editors/sitemap/js/cms.sitemap.js")%>"></script>
    <script type="text/javascript">
      $(document).ready(function() {
         cms.sitemap.loadAndInitSitemap();
      });
    </script>
    <title>Sitemap demo</title>
    <link rel="stylesheet" type="text/css" media="screen" href="<%=CmsWorkplace.getResourceUri("editors/sitemap/css/custom-theme/jquery-ui-1.7.2.custom.css")%>" />
    <link rel="stylesheet" type="text/css" media="screen" href="<%=CmsWorkplace.getResourceUri("editors/sitemap/css/sitemap.css")%>" />

  </head>
  <body>
    <div id="cms-main">
      <h1 class="cms-headline">Sitemap-Editor</h1>
      <div class="cms-box ui-corner-all">
        <ul id="cms-sitemap">
        </ul>
        <div class="cms-clearer">
        </div>
      </div>
    </div>
  </body>
</html>
{'fraction_non_alphanumeric': 0.20696625719172757, 'fraction_numerical': 0.02767843259213186, 'mean_word_length': 4.125099601593625, 'pattern_counts': {'":': 9, '<': 136, '<?xml version=': 0, '>': 136, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 2}, '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': '2897711', 'n_tokens_mistral': 2520, 'n_tokens_neox': 2348, 'n_words': 235}