<commit_before>import commonjs from 'rollup-plugin-commonjs';
import nodeResolve from 'rollup-plugin-node-resolve';

export default {
  output: {name: 'perfetto'},
  plugins: [
    nodeResolve({mainFields: ['browser', 'main']}),

    // emscripten conditionally executes require('fs') (likewise for others),
    // when running under node. Rollup can't find those libraries so expects
    // these to be present in the global scope, which then fails at runtime.
    // To avoid this we ignore require('fs') and the like.
    commonjs({
      ignore: [
        'fs',
        'path',
        'crypto',
      ]
    }),
  ]
}<commit_msg>Revert "perfetto-ui: Fix deprecated warning"<commit_after>import commonjs from 'rollup-plugin-commonjs';
import nodeResolve from 'rollup-plugin-node-resolve';

export default {
  output: {name: 'perfetto'},
  plugins: [
    nodeResolve({module: false, browser: true}),

    // emscripten conditionally executes require('fs') (likewise for others),
    // when running under node. Rollup can't find those libraries so expects
    // these to be present in the global scope, which then fails at runtime.
    // To avoid this we ignore require('fs') and the like.
    commonjs({
      ignore: [
        'fs',
        'path',
        'crypto',
      ]
    }),
  ]
}
{'fraction_non_alphanumeric': 0.12287480680061824, 'fraction_numerical': 0.0, 'mean_word_length': 2.9602446483180427, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '4184973', 'n_tokens_mistral': 374, 'n_tokens_neox': 372, 'n_words': 129}