<commit_before>/**
 * espurify - Clone AST without extra properties
 *
 * https://github.com/estools/espurify
 *
 * Copyright (c) 2014-2022 <NAME>
 * Licensed under the MIT license.
 *   https://github.com/estools/espurify/blob/master/MIT-LICENSE.txt
 */
'use strict';

const createAllowlist = require('./lib/create-allowlist');
const cloneWithAllowlist = require('./lib/clone-ast');

function createCloneFunction (options) {
  return cloneWithAllowlist(createAllowlist(options));
}

const espurify = createCloneFunction();
espurify.customize = createCloneFunction;
espurify.cloneWithAllowlist = cloneWithAllowlist;
espurify.cloneWithWhitelist = cloneWithAllowlist;
module.exports = espurify;
<commit_msg>refactor: apply deprecated tag<commit_after>/**
 * espurify - Clone AST without extra properties
 *
 * https://github.com/estools/espurify
 *
 * Copyright (c) 2014-2022 <NAME>
 * Licensed under the MIT license.
 *   https://github.com/estools/espurify/blob/master/MIT-LICENSE.txt
 */
'use strict';

const createAllowlist = require('./lib/create-allowlist');
const cloneWithAllowlist = require('./lib/clone-ast');

function createCloneFunction (options) {
  return cloneWithAllowlist(createAllowlist(options));
}

const espurify = createCloneFunction();
espurify.customize = createCloneFunction;
espurify.cloneWithAllowlist = cloneWithAllowlist;
/**
 * @deprecated since version 3.0.0. Use `espurify.cloneWithAllowlist` instead.
 */
espurify.cloneWithWhitelist = cloneWithAllowlist;
module.exports = espurify;

{'fraction_non_alphanumeric': 0.12483487450462351, 'fraction_numerical': 0.012549537648612946, 'mean_word_length': 5.3924050632911396, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '6655495', 'n_tokens_mistral': 477, 'n_tokens_neox': 465, 'n_words': 94}