<commit_before>'use strict';
define(['jquery', 'knockout', 'jquery.hoverIntent.min'], function ($, ko) {
    var mainFrame = window.parent.document.getElementById("personaBar-iframe");
    var personaBarWidth = 80;
    var util = null;

    var getSummaryContainer = function () {
        var $summary = $('.server-summary');
        if (!$summary.length) {
            $summary = $('' +
                '<div class="server-summary hoverSummaryMenu">' +
                    '<ul>' +
                        '<li class="title" data-bind="html: ProductName"></li>' +
                        '<li class="version-info" data-bind="html: ProductVersion"></li>' +
                        '<li class="framework" data-bind="visible: FrameworkVersion.length > 0"><span data-bind="html: FrameworkVersion"></span><label data-bind="html: resx.Framework"></label></li>' +
                        '<li class="server-name" data-bind="visible: ServerName.length > 0"><span data-bind="html: ServerName"></span><label data-bind="html: resx.ServerName"></label></li>' +
                        '<li class="license-info" data-bind="visible: visibleCheck(\'LicenseVisible\')"><a href="http://www.dnnsoftware.com/products/" data-bind="html: resx.UpgradeLicense" target="_blank"></a><label data-bind="html: resx.LicenseKey"></label></li>' +
                        '<li class="separator"></li>' +
                        '<li class="doc-center"><a href="http://www.dnnsoftware.com/docs/" data-bind="html: resx.Documentation, visible: visibleCheck(\'DocCenterVisible\')" target="_blank"></a></li>' +
                        '<li id="Logout" class="logout" data-bind="html: resx.nav_Logout"></li>' +
                    '</ul>' +
                '</div>');

            $('#personabar').find('.personabarLogo').append($summary);
        }

        return $summary;
    }
    var showServerSummary = function () {
        mainFrame.style.width = '100%';
        $('.hoverSummaryMenu, .hovermenu').hide();
        getSummaryContainer().addClass('shown');
    }

    var hideServerSummary = function () {
        if (!$('.hovermenu:visible').length && !$('.socialpanel:visible').length) {
            mainFrame.style.width = personaBarWidth + "px";
        }
        getSummaryContainer().removeClass('shown');
    }

    var getServerInfo = function(callback) {
        util.sf.moduleRoot = "personaBar";
        util.sf.controller = "ServerSummary";
        util.sf.getsilence("GetServerInfo", {}, function (data) {
            if (typeof callback === "function") {
                callback(data);
            }
        });<commit_msg>update url to documentation (#441)<commit_after>'use strict';
define(['jquery', 'knockout', 'jquery.hoverIntent.min'], function ($, ko) {
    var mainFrame = window.parent.document.getElementById("personaBar-iframe");
    var personaBarWidth = 80;
    var util = null;

    var getSummaryContainer = function () {
        var $summary = $('.server-summary');
        if (!$summary.length) {
            $summary = $('' +
                '<div class="server-summary hoverSummaryMenu">' +
                    '<ul>' +
                        '<li class="title" data-bind="html: ProductName"></li>' +
                        '<li class="version-info" data-bind="html: ProductVersion"></li>' +
                        '<li class="framework" data-bind="visible: FrameworkVersion.length > 0"><span data-bind="html: FrameworkVersion"></span><label data-bind="html: resx.Framework"></label></li>' +
                        '<li class="server-name" data-bind="visible: ServerName.length > 0"><span data-bind="html: ServerName"></span><label data-bind="html: resx.ServerName"></label></li>' +
                        '<li class="license-info" data-bind="visible: visibleCheck(\'LicenseVisible\')"><a href="http://www.dnnsoftware.com/products/" data-bind="html: resx.UpgradeLicense" target="_blank"></a><label data-bind="html: resx.LicenseKey"></label></li>' +
                        '<li class="separator"></li>' +
                        '<li class="doc-center"><a href="https://dnndocs.com/" data-bind="html: resx.Documentation, visible: visibleCheck(\'DocCenterVisible\')" target="_blank"></a></li>' +
                        '<li id="Logout" class="logout" data-bind="html: resx.nav_Logout"></li>' +
                    '</ul>' +
                '</div>');

            $('#personabar').find('.personabarLogo').append($summary);
        }

        return $summary;
    }
    var showServerSummary = function () {
        mainFrame.style.width = '100%';
        $('.hoverSummaryMenu, .hovermenu').hide();
        getSummaryContainer().addClass('shown');
    }

    var hideServerSummary = function () {
        if (!$('.hovermenu:visible').length && !$('.socialpanel:visible').length) {
            mainFrame.style.width = personaBarWidth + "px";
        }
        getSummaryContainer().removeClass('shown');
    }

    var getServerInfo = function(callback) {
        util.sf.moduleRoot = "personaBar";
        util.sf.controller = "ServerSummary";
        util.sf.getsilence("GetServerInfo", {}, function (data) {
            if (typeof callback === "function") {
                callback(data);
            }
        });
{'fraction_non_alphanumeric': 0.1831578947368421, 'fraction_numerical': 0.0032535885167464117, 'mean_word_length': 2.4495049504950495, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 75, 'https://': 1, 'lorem ipsum': 0, 'www.': 3, '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': '2404675', 'n_tokens_mistral': 1456, 'n_tokens_neox': 1409, 'n_words': 240}