<commit_before>/**
 * Pimcore
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.pimcore.org/license
 *
 * @copyright  Copyright (c) 2009-2010 elements.at New Media Solutions GmbH (http://www.elements.at)
 * @license    http://www.pimcore.org/license     New BSD License
 */


// debug
if (!console) {
    if (!parent.console) {
        var console = {
            log: function (v) {
            }
        };
    }
    else {
        console = parent.console;
    }
}

// some globals
var pimcore_system_i18n;
var dndZones = []; // contains elements which are able to get data per dnd
var editables = [];
var editableNames = [];
var dndManager;

Ext.onReady(function () {

    // this sets the height of the body and html element to the current absolute height of the page
    // this is because some pages set the body height, and the positioning is then done by "absolute"
    // the problem is that ExtJS relies on the body height for DnD, so if the body isn't as high as the hole page
    // dnd works only in the section covered by the specified body height
    window.setInterval(function () {
        try {
            var body = document.body,
                html = document.documentElement;

            var height = Math.max(body.scrollHeight, body.offsetHeight,
                html.clientHeight, html.scrollHeight, html.offsetHeight);

            Ext.getBody().setHeight(height);
            Ext.get(Ext.query("html")[0]).setHeight(height);
        } catch (e) {
            console.log(e);
        }
    }, 500);


    Ext.QuickTips.init();

    // i18n
    pimcore_system_i18n = parent.pimcore_system_i18n;
    
    if (typeof pimcore == "object") {
        //editWindow.protectLocation();
        pimcore.registerNS("pimcore.globalmanager");
        pimcore.registerNS("pimcore.helpers");<commit_msg>ad 1947: changed interval to timeout<commit_after>/**
 * Pimcore
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.pimcore.org/license
 *
 * @copyright  Copyright (c) 2009-2010 elements.at New Media Solutions GmbH (http://www.elements.at)
 * @license    http://www.pimcore.org/license     New BSD License
 */


// debug
if (!console) {
    if (!parent.console) {
        var console = {
            log: function (v) {
            }
        };
    }
    else {
        console = parent.console;
    }
}

// some globals
var pimcore_system_i18n;
var dndZones = []; // contains elements which are able to get data per dnd
var editables = [];
var editableNames = [];
var dndManager;

Ext.onReady(function () {

    // this sets the height of the body and html element to the current absolute height of the page
    // this is because some pages set the body height, and the positioning is then done by "absolute"
    // the problem is that ExtJS relies on the body height for DnD, so if the body isn't as high as the hole page
    // dnd works only in the section covered by the specified body height
    window.setTimeout(function () {
        try {
            var body = document.body,
                html = document.documentElement;

            var height = Math.max(body.scrollHeight, body.offsetHeight,
                html.clientHeight, html.scrollHeight, html.offsetHeight);

            Ext.getBody().setHeight(height);
            Ext.get(Ext.query("html")[0]).setHeight(height);
        } catch (e) {
            console.log(e);
        }
    }, 500);


    Ext.QuickTips.init();

    // i18n
    pimcore_system_i18n = parent.pimcore_system_i18n;
    
    if (typeof pimcore == "object") {
        //editWindow.protectLocation();
        pimcore.registerNS("pimcore.globalmanager");
        pimcore.registerNS("pimcore.helpers");
{'fraction_non_alphanumeric': 0.10532931121166415, 'fraction_numerical': 0.011060834590246356, 'mean_word_length': 2.395051194539249, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, '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': '5031027', 'n_tokens_mistral': 1205, 'n_tokens_neox': 1142, 'n_words': 376}