<commit_before>/**
 * Copyright 2012 - present by OpenGamma Inc. and the OpenGamma group of companies
 * Please see distribution for license.
 */
$.register_module({
    name: 'og.common.gadgets.Depgraph',
    dependencies: ['og.common.gadgets.manager'],
    obj: function () {
        var prefix = 'og_depgraph_gadget_', counter = 1;
        return function (config) {
            var gadget = this, alive = prefix + counter++,
                css_position = {position: 'absolute', top: '0', left: 0, right: 0, bottom: 0}, grid;
            gadget.alive = function () {return !!$('.' + alive).length;};
            gadget.load = function () {
                $(config.selector).addClass(alive).css(css_position);
                grid = new og.analytics.Grid({selector: config.selector, source: config.source});
            };
            gadget.load();
            gadget.resize = gadget.load;
            if (!config.child) og.common.gadgets.manager.register(gadget);
        };
    }
});<commit_msg>turn on cell menu for dependency graphs<commit_after>/**
 * Copyright 2012 - present by OpenGamma Inc. and the OpenGamma group of companies
 * Please see distribution for license.
 */
$.register_module({
    name: 'og.common.gadgets.Depgraph',
    dependencies: ['og.common.gadgets.manager'],
    obj: function () {
        var prefix = 'og_depgraph_gadget_', counter = 1;
        return function (config) {
            var gadget = this, alive = prefix + counter++,
                css_position = {position: 'absolute', top: '0', left: 0, right: 0, bottom: 0}, grid;
            gadget.alive = function () {return !!$('.' + alive).length;};
            gadget.load = function () {
                $(config.selector).addClass(alive).css(css_position);
                grid = new og.analytics.Grid({selector: config.selector, source: config.source, cellmenu: true});
            };
            gadget.load();
            gadget.resize = gadget.load;
            if (!config.child) og.common.gadgets.manager.register(gadget);
        };
    }
});
{'fraction_non_alphanumeric': 0.14271749755620725, 'fraction_numerical': 0.008797653958944282, 'mean_word_length': 2.3502454991816695, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3441501', 'n_tokens_mistral': 596, 'n_tokens_neox': 583, 'n_words': 148}