<commit_before>import node from 'rollup-plugin-node-resolve';
import { uglify } from 'rollup-plugin-uglify';
import typescript from 'typescript';
import typescriptPlugin from 'rollup-plugin-typescript2';
import filesize from 'rollup-plugin-filesize';
import invariantPlugin from 'rollup-plugin-invariant';

function onwarn(message) {
  const suppressed = ['UNRESOLVED_IMPORT', 'THIS_IS_UNDEFINED'];

  if (!suppressed.find(code => message.code === code)) {
    return console.warn(message.message);
  }
}

const globals = {
  'apollo-client': 'apollo.core',
  'hoist-non-react-statics': 'hoistNonReactStatics',
  'prop-types': 'propTypes',
  'react': 'react',
  'ts-invariant': 'invariant',
  'tslib': 'tslib',
  'create-react-context': 'createReactContext',
  'lodash.isequal': 'isEqual',
};

function external(id) {
  return Object.prototype.hasOwnProperty.call(globals, id);
}<commit_msg>`create-react-context` is no longer used, so remove from rollup<commit_after>import node from 'rollup-plugin-node-resolve';
import { uglify } from 'rollup-plugin-uglify';
import typescript from 'typescript';
import typescriptPlugin from 'rollup-plugin-typescript2';
import filesize from 'rollup-plugin-filesize';
import invariantPlugin from 'rollup-plugin-invariant';

function onwarn(message) {
  const suppressed = ['UNRESOLVED_IMPORT', 'THIS_IS_UNDEFINED'];

  if (!suppressed.find(code => message.code === code)) {
    return console.warn(message.message);
  }
}

const globals = {
  'apollo-client': 'apollo.core',
  'hoist-non-react-statics': 'hoistNonReactStatics',
  'prop-types': 'propTypes',
  'react': 'react',
  'ts-invariant': 'invariant',
  'tslib': 'tslib',
  'lodash.isequal': 'isEqual',
};

function external(id) {
  return Object.prototype.hasOwnProperty.call(globals, id);
}
{'fraction_non_alphanumeric': 0.15414798206278027, 'fraction_numerical': 0.0011210762331838565, 'mean_word_length': 5.635687732342007, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5476266', 'n_tokens_mistral': 605, 'n_tokens_neox': 595, 'n_words': 124}