<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.curve',
    dependencies: ['og.common.gadgets.manager'],
    obj: function () {
        var prefix = 'og_curve_gadget_', counter = 1, module = this;
        return function (config) {
            var source = {
                type: 'portfolio',
                depgraph: true,
                viewdefinition: 'DbCfg~1475588',
                live: true,
                provider: 'Live market data (Bloomberg, Activ, TullettPrebon, ICAP)',
                view_id: 'DbCfg~1475588',
                row: 5,
                col: 5
            };
            var gadget = this, curve, alive = prefix + counter++, d;
            gadget.alive = function () {return !!$('.' + alive).length;};
            gadget.load = function () {
                (new og.analytics.Cell({source: source, col: 3, row: 1103})).on('data', function (data) {
                    if (data.t !== 'CURVE') return og.dev.warn(module.name + ': data.v should be CURVE');
                    d = $.isArray(data.v) && [{curve: data.v}];
                    curve ? curve.update(d) : gadget.resize();
                });
            };
            gadget.resize = function () {
                curve = $(config.selector)<commit_msg>update curve gadget hard coded cell data link<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.curve',
    dependencies: ['og.common.gadgets.manager'],
    obj: function () {
        var prefix = 'og_curve_gadget_', counter = 1, module = this;
        return function (config) {
            var source = {
                type: 'portfolio',
                depgraph: true,
                viewdefinition: 'DbCfg~1475588',
                live: true,
                provider: 'Live market data (Bloomberg, Activ, TullettPrebon, ICAP)',
                view_id: 'DbCfg~1475588',
                row: 5,
                col: 5
            };
            var gadget = this, curve, alive = prefix + counter++, d;
            gadget.alive = function () {return !!$('.' + alive).length;};
            gadget.load = function () {
                (new og.analytics.Cell({source: source, col: 3, row: 2})).on('data', function (data) {
                    if (data.t !== 'CURVE') return og.dev.warn(module.name + ': data.v should be CURVE');
                    d = $.isArray(data.v) && [{curve: data.v}];
                    curve ? curve.update(d) : gadget.resize();
                });
            };
            gadget.resize = function () {
                curve = $(config.selector)
{'fraction_non_alphanumeric': 0.13712255772646537, 'fraction_numerical': 0.017406749555950268, 'mean_word_length': 1.6870229007633588, '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': '4631844', 'n_tokens_mistral': 843, 'n_tokens_neox': 772, 'n_words': 210}