<commit_before>/*global define,console*/
/*jslint white:true,browser:true*/
/*
 * KBase Method Cell Extension
 *
 * Supports kbase method cells and the kbase cell toolbar.
 *
 * Note that, out of our control, this operates under the "module as singleton" model.
 * In this model, the execution of the module the first time per session is the same
 * as creating a global management object.
 *
 * Thus we do things like createa a message bus
 *
 * @param {type} $
 * @param {type} Jupyter
 * @param {type} html
 *
 */
define([
    'jquery',
    'base/js/namespace',
    'bluebird',
    'uuid',
    'kb_common/html',
    './widgets/codeCellInputWidget',
    './widgets/FieldWidget',
    './runtime',
    './microBus',
    './parameterSpec',
    'kb_service/utils',
    'kb_service/client/workspace',
    'css!./styles/method-widget.css',
    'bootstrap'
], function ($, Jupyter, Promise, Uuid, html, CodeCellInputWidget, FieldWidget, Runtime, Bus, ParameterSpec, serviceUtils, Workspace) {
    'use strict';
    var t = html.tag,
        div = t('div'), button = t('button'), span = t('span'), form = t('form'),
        mainBus, methodCells = {},
        workspaceInfo,
        env,
        runtime = Runtime.make();

//    function getAuthToken() {
//        if (env === 'narrative') {
//            return Jupyter.narrative.authToken;
//        }
//        throw new Error('No authorization implemented for this environment: ' + env);
//    }

    function addCell(cell) {
        methodCells[cell.cell_id] = {
            cell: cell<commit_msg>Updated methodCell entrypoint to have the right case for fieldWidgdet<commit_after>/*global define,console*/
/*jslint white:true,browser:true*/
/*
 * KBase Method Cell Extension
 *
 * Supports kbase method cells and the kbase cell toolbar.
 *
 * Note that, out of our control, this operates under the "module as singleton" model.
 * In this model, the execution of the module the first time per session is the same
 * as creating a global management object.
 *
 * Thus we do things like createa a message bus
 *
 * @param {type} $
 * @param {type} Jupyter
 * @param {type} html
 *
 */
define([
    'jquery',
    'base/js/namespace',
    'bluebird',
    'uuid',
    'kb_common/html',
    './widgets/codeCellInputWidget',
    './widgets/fieldWidget',
    './runtime',
    './microBus',
    './parameterSpec',
    'kb_service/utils',
    'kb_service/client/workspace',
    'css!./styles/method-widget.css',
    'bootstrap'
], function ($, Jupyter, Promise, Uuid, html, CodeCellInputWidget, FieldWidget, Runtime, Bus, ParameterSpec, serviceUtils, Workspace) {
    'use strict';
    var t = html.tag,
        div = t('div'), button = t('button'), span = t('span'), form = t('form'),
        mainBus, methodCells = {},
        workspaceInfo,
        env,
        runtime = Runtime.make();

//    function getAuthToken() {
//        if (env === 'narrative') {
//            return Jupyter.narrative.authToken;
//        }
//        throw new Error('No authorization implemented for this environment: ' + env);
//    }

    function addCell(cell) {
        methodCells[cell.cell_id] = {
            cell: cell
{'fraction_non_alphanumeric': 0.14049586776859505, 'fraction_numerical': 0.0, 'mean_word_length': 2.773381294964029, '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': '3844364', 'n_tokens_mistral': 956, 'n_tokens_neox': 949, 'n_words': 282}