hunk.code_window:   // Revert to the previous selection right after copying.
     window.requestAnimationFrame(() => {
       editor.removeChild(div)
       removeAllRanges(native)
       native.addRange(range)
     })
   }
   export default cloneFragment
hunk.labels: keep keep keep keep add keep keep keep keep
hunk.after_edit:     callback()
  
hunk.file_path: packages/slate-react/src/utils/clone-fragment.js
hunk.type: add
file: const { resolve } = require('path')
  const { existsSync } = require('fs')
  const program = require('commander')
  
  program
    .option('-g, --grep []', 'Add grep pattern to filter running benchmarks')
    .option('-c, --config [file]', 'Add config to filter running benchmarks')
    .parse(process.argv)
  
  const { grep } = program
  
  if (grep) {
    const pattern = new RegExp(grep)
  
    module.exports.include = {
      slate: pattern,
      'slate-html-serializer': pattern,
      'slate-plain-serializer': pattern,
      'slate-react': pattern,
    }
  } else {
    let { config = 'tmp/benchmark-config.js' } = program
    config = resolve(config)
  
    const userConfig = existsSync(config) ? require(config) : {}
  
    if (userConfig.include) {
      module.exports.include = userConfig.include
    } else if (userConfig.default) {
      module.exports.inlcude = userConfig.default
    } else {
      module.exports.include = {
        slate: /^/,
        'slate-html-serializer': /^/,
        'slate-plain-serializer': /^/,
        'slate-react': /^/,
      }
    }
  }
  