<commit_before>// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.

/// <reference path="../backbone/backbone-global.d.ts" />


declare module "jupyter-js-widgets" {
  import * as services from 'jupyter-js-services';

  export class ManagerBase<T> {
    display_view(msg: services.KernelMessage.IMessage, view: Backbone.View<Backbone.Model>, options: any): T;
    handle_comm_open(comm: shims.services.Comm, msg: services.KernelMessage.ICommOpenMsg): Promise<Backbone.Model>;
    display_model(msg: services.KernelMessage.IMessage, model: Backbone.Model, options: any): Promise<T>;
    get_model(id: string): Promise<Backbone.Model>;
    validateVersion(): Promise<boolean>;
    comm_target_name: string;
  }

  export namespace shims {
    export namespace services {
      export class Comm {
        constructor(comm: any);
      }
    }
  }<commit_msg>Add promise typings to jupyter-js-widgets typing file.<commit_after>// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.

/// <reference path="../es6-promise/es6-promise.d.ts"/>
/// <reference path="../backbone/backbone-global.d.ts" />


declare module "jupyter-js-widgets" {
  import * as services from 'jupyter-js-services';

  export class ManagerBase<T> {
    display_view(msg: services.KernelMessage.IMessage, view: Backbone.View<Backbone.Model>, options: any): T;
    handle_comm_open(comm: shims.services.Comm, msg: services.KernelMessage.ICommOpenMsg): Promise<Backbone.Model>;
    display_model(msg: services.KernelMessage.IMessage, model: Backbone.Model, options: any): Promise<T>;
    get_model(id: string): Promise<Backbone.Model>;
    validateVersion(): Promise<boolean>;
    comm_target_name: string;
  }

  export namespace shims {
    export namespace services {
      export class Comm {
        constructor(comm: any);
      }
    }
  }
{'fraction_non_alphanumeric': 0.12663526949241236, 'fraction_numerical': 0.0010465724751439038, 'mean_word_length': 4.018372703412074, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 18, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7314910', 'n_tokens_mistral': 592, 'n_tokens_neox': 577, 'n_words': 138}