<commit_before>/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */

/**
 * @fileoverview Collected information about modules and module
 * exports that have been renamed between versions.
 *
 * This file is in JSON5 format; see https://json5.org/.
 */

{
  // Example entry:
  '0.0.0': [ // Version that includes the rename.
    // Each entry in the array is a module.
    // All of the properties are optional.
    {
      // The name that the module had before this version.
      oldName: 'old.module.name',

      // The name that the module now has in this version.
      newName: 'new.module.name',

      // If a module had a default export and now has a named export,
      // the name of the named export can be given here.
      newExport: 'newNameForDefaultExport',

      // The old location of this module on the Blockly tree (the
      // mega-object that people access if they are importing all of
      // Blockly). Usually this is the same as the oldName and can be
      // omitted.
      oldPath: 'old.path.on.Blockly.tree',

      // The new location of this module on the Blockly tree. To be
      // backwards compatible with people accessing the Blockly tree,
      // this should be the same as the oldPath.  If omitted, newPath
      // is assumed to be the same newName.
      newPath: 'new.path.on.Blockly.tree',

      // Each entry in this map is the old name of a named export.
      exports: {
        // The name that the export had before this version.
        // All of the properties on this object are optional.
        'oldExportName': {
          // The new module that the export is in in this version.  If
          // this is not provided, the newModule is assumed to be the
          // parent module's newPath.
          newModule: 'new.module.name',

          // The name that the export now has in this version.
          newExport: 'newExportName',

          // The old location of this module on the Blockly tree.
          // If omitted, oldPath defaults to
          // <enclosing module's.oldPath>.<old export name>.
          oldPath: 'old.path.on.Blockly.tree',

          // The new location of this module on the Blockly tree. To
          // be backwards compatible with people accessing the
          // Blockkly tree, this should be the same as the oldPath.
          // Defaults to `${newModule}.${newExport}`.
          newPath: 'new.path.on.Blockly.tree',

          // If a named export has been changed to a private variable
          // with a get method, this is the name of the get method.
          getMethod: 'getMethodName',

          // If a named export has been changed to a private variable
          // with a set method, this is the name of the set method.
          setMethod: 'setMethodName',
        },

        // This file can also document the renaming of a property or
        // sub-property of an (object-valued) named export.
        'exportExport.oldProperty': {
          newExport: 'newExport.newProperty',
          // Additional options as above.
        },

        // Or promotion of property to named export, etc.
        'exportExport.oldProperty': {
          newExport: 'newTopLevelExport',
        },
      },
    },
  ],

  '5.20210325.0': [
    {
      oldName: 'Blockly',
      exports: {
        // bind/unbind events functions.  See PR #4642
        EventData: {newModule: 'Blockly.eventHandling', newExport: 'Data'},
        bindEvent_: {newModule: 'Blockly.browserEvents', newExport: 'bind'},
        unbindEvent_: {newModule: 'Blockly.browserEvents', newExport: 'unbind'},
        bindEventWithChecks_: {<commit_msg>fix: incorrect module for event data in renamings database (#6012)<commit_after>/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */

/**
 * @fileoverview Collected information about modules and module
 * exports that have been renamed between versions.
 *
 * This file is in JSON5 format; see https://json5.org/.
 */

{
  // Example entry:
  '0.0.0': [ // Version that includes the rename.
    // Each entry in the array is a module.
    // All of the properties are optional.
    {
      // The name that the module had before this version.
      oldName: 'old.module.name',

      // The name that the module now has in this version.
      newName: 'new.module.name',

      // If a module had a default export and now has a named export,
      // the name of the named export can be given here.
      newExport: 'newNameForDefaultExport',

      // The old location of this module on the Blockly tree (the
      // mega-object that people access if they are importing all of
      // Blockly). Usually this is the same as the oldName and can be
      // omitted.
      oldPath: 'old.path.on.Blockly.tree',

      // The new location of this module on the Blockly tree. To be
      // backwards compatible with people accessing the Blockly tree,
      // this should be the same as the oldPath.  If omitted, newPath
      // is assumed to be the same newName.
      newPath: 'new.path.on.Blockly.tree',

      // Each entry in this map is the old name of a named export.
      exports: {
        // The name that the export had before this version.
        // All of the properties on this object are optional.
        'oldExportName': {
          // The new module that the export is in in this version.  If
          // this is not provided, the newModule is assumed to be the
          // parent module's newPath.
          newModule: 'new.module.name',

          // The name that the export now has in this version.
          newExport: 'newExportName',

          // The old location of this module on the Blockly tree.
          // If omitted, oldPath defaults to
          // <enclosing module's.oldPath>.<old export name>.
          oldPath: 'old.path.on.Blockly.tree',

          // The new location of this module on the Blockly tree. To
          // be backwards compatible with people accessing the
          // Blockkly tree, this should be the same as the oldPath.
          // Defaults to `${newModule}.${newExport}`.
          newPath: 'new.path.on.Blockly.tree',

          // If a named export has been changed to a private variable
          // with a get method, this is the name of the get method.
          getMethod: 'getMethodName',

          // If a named export has been changed to a private variable
          // with a set method, this is the name of the set method.
          setMethod: 'setMethodName',
        },

        // This file can also document the renaming of a property or
        // sub-property of an (object-valued) named export.
        'exportExport.oldProperty': {
          newExport: 'newExport.newProperty',
          // Additional options as above.
        },

        // Or promotion of property to named export, etc.
        'exportExport.oldProperty': {
          newExport: 'newTopLevelExport',
        },
      },
    },
  ],

  '5.20210325.0': [
    {
      oldName: 'Blockly',
      exports: {
        // bind/unbind events functions.  See PR #4642
        EventData: {newModule: 'Blockly.browserEvents', newExport: 'Data'},
        bindEvent_: {newModule: 'Blockly.browserEvents', newExport: 'bind'},
        unbindEvent_: {newModule: 'Blockly.browserEvents', newExport: 'unbind'},
        bindEventWithChecks_: {
{'fraction_non_alphanumeric': 0.09252475919142586, 'fraction_numerical': 0.007326007326007326, 'mean_word_length': 2.0767946577629384, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '799421', 'n_tokens_mistral': 2012, 'n_tokens_neox': 1941, 'n_words': 837}