<commit_before><%@page session="false" pageEncoding="utf-8"%>
<%@taglib prefix="sling" uri="http://sling.apache.org/taglibs/sling/1.2"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<sling:defineObjects/>
<html data-context-path="${slingRequest.contextPath}">
<head>
  <sling:call script="/libs/composum/sling/console/page/head.jsp"/>
  <style>
    html, body, #ui { width: 100%; height: 100%; }
    body { position: relative; }
    #content-wrapper {
      position: absolute;
      top: 48px;
      left: -4%;
      right: -4%;
      bottom: 7px;
      overflow-y: scroll;
      overflow-x: hidden;
    }
  </style>
</head>
<body id="felix" class="console">
  <div id="ui">
    <sling:call script="/libs/composum/sling/console/page/dialogs.jsp"/>
    <sling:include resourceType="composum/sling/console/components/navbar"/>
    <div id="content-wrapper">
      <iframe width="100%" height="100%" src=""></iframe>
    </div>
  </div>
  <sling:call script="/libs/composum/sling/console/page/script.jsp"/>
  <script>
    (function(core) {
        'use strict';
        core.felix = core.felix || {};

    (function(felix) {

        felix.View = Backbone.View.extend({

            initialize: function(options) {
                this.$iframe=$('#content-wrapper iframe');
                this.$iframe.load(_.bind (this.onFrameLoad, this));
                var url = core.console.getProfile().get('felix','url','/system/console/bundles');
                this.$iframe.attr('src', url);
            },

            onFrameLoad: function(event) {
                var url = event.currentTarget.contentDocument.URL;
                url = url.replace(new RegExp('https?://[^/]+/'), '/');
                core.console.getProfile().set('felix','url',url);
            }
        });

        felix.view = core.getView('#felix', felix.View);

    })(core.felix);
    })(window.core);
  </script>
<sling:include resourceType="composum/sling/console/components/tryLogin"/>
</body>
</html><commit_msg>#9: Fix - Add context to call felix console<commit_after><%@page session="false" pageEncoding="utf-8"%>
<%@taglib prefix="sling" uri="http://sling.apache.org/taglibs/sling/1.2"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<sling:defineObjects/>
<html data-context-path="${slingRequest.contextPath}">
<head>
  <sling:call script="/libs/composum/sling/console/page/head.jsp"/>
  <style>
    html, body, #ui { width: 100%; height: 100%; }
    body { position: relative; }
    #content-wrapper {
      position: absolute;
      top: 48px;
      left: -4%;
      right: -4%;
      bottom: 7px;
      overflow-y: scroll;
      overflow-x: hidden;
    }
  </style>
</head>
<body id="felix" class="console">
  <div id="ui">
    <sling:call script="/libs/composum/sling/console/page/dialogs.jsp"/>
    <sling:include resourceType="composum/sling/console/components/navbar"/>
    <div id="content-wrapper">
      <iframe width="100%" height="100%" src=""></iframe>
    </div>
  </div>
  <sling:call script="/libs/composum/sling/console/page/script.jsp"/>
  <script>
    (function(core) {
        'use strict';
        core.felix = core.felix || {};

    (function(felix) {

        felix.View = Backbone.View.extend({

            initialize: function(options) {
                this.$iframe=$('#content-wrapper iframe');
                this.$iframe.load(_.bind (this.onFrameLoad, this));
                var url = core.console.getProfile().get('felix','url','/system/console/bundles');
                this.$iframe.attr('src', core.getContextUrl(url));
            },

            onFrameLoad: function(event) {
                var url = event.currentTarget.contentDocument.URL;
                url = url.replace(new RegExp('https?://[^/]+/'), '/');
                core.console.getProfile().set('felix','url',url);
            }
        });

        felix.view = core.getView('#felix', felix.View);

    })(core.felix);
    })(window.core);
  </script>
<sling:include resourceType="composum/sling/console/components/tryLogin"/>
</body>
</html>
{'fraction_non_alphanumeric': 0.1930083702609552, 'fraction_numerical': 0.010093549975381585, 'mean_word_length': 2.690281562216167, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 53, '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': '1698911', 'n_tokens_mistral': 1410, 'n_tokens_neox': 1328, 'n_words': 210}