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

// Notebook format interfaces
// https://nbformat.readthedocs.io/en/latest/format_description.html
// https://github.com/jupyter/nbformat/blob/master/nbformat/v4/nbformat.v4.schema.json

import {
  JSONObject, JSONExt
} from '@phosphor/coreutils';


/**
 * A namespace for nbformat interfaces.
 */
export
namespace nbformat {
  /**
   * The major version of the notebook format.
   */
  export
  const MAJOR_VERSION: number = 4;

  /**
   * The minor version of the notebook format.
   */
  export
  const MINOR_VERSION: number = 2;

  /**
   * The kernelspec metadata.
   */
  export
  interface IKernelspecMetadata extends JSONObject {
    name: string;
    display_name: string;
  }

  /**
   * The language info metatda
   */
  export
  interface ILanguageInfoMetadata extends  JSONObject {
    name: string;
    codemirror_mode?: string | JSONObject;
    file_extension: string;
    mimetype: string;
    pygments_lexer: string;
  }

  /**
   * The default metadata for the notebook.
   */<commit_msg>ILanguageInfoMetadata fields optional except name<commit_after>// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.

// Notebook format interfaces
// https://nbformat.readthedocs.io/en/latest/format_description.html
// https://github.com/jupyter/nbformat/blob/master/nbformat/v4/nbformat.v4.schema.json

import {
  JSONObject, JSONExt
} from '@phosphor/coreutils';


/**
 * A namespace for nbformat interfaces.
 */
export
namespace nbformat {
  /**
   * The major version of the notebook format.
   */
  export
  const MAJOR_VERSION: number = 4;

  /**
   * The minor version of the notebook format.
   */
  export
  const MINOR_VERSION: number = 2;

  /**
   * The kernelspec metadata.
   */
  export
  interface IKernelspecMetadata extends JSONObject {
    name: string;
    display_name: string;
  }

  /**
   * The language info metatda
   */
  export
  interface ILanguageInfoMetadata extends  JSONObject {
    name: string;
    codemirror_mode?: string | JSONObject;
    file_extension?: string;
    mimetype?: string;
    pygments_lexer?: string;
  }

  /**
   * The default metadata for the notebook.
   */
{'fraction_non_alphanumeric': 0.10266491917868065, 'fraction_numerical': 0.0034949759720401923, 'mean_word_length': 3.0819964349376114, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '4872629', 'n_tokens_mistral': 736, 'n_tokens_neox': 703, 'n_words': 194}