<commit_before>import pluggable from "../../pluggable";

export default pluggable(function initBundle (opts = {}) {
  const {
    dest = this.opts.implicitBundleDest,
    module = {},
    moduleHashes = [],
    modules = [],
    isEntryPt = false,
    type = "javascript",
    excludeRuntime = false
  } = opts;
  const includeRuntime = !excludeRuntime;

  if (type !== "javascript") {
    throw new Error("Cannot create JS bundle for non-JavaScript module. " +
      "Please configure appropriate plugin.");
  }

  return {
    module,
    moduleHashes,
    modules,
    dest,
    type,
    isEntryPt,
    includeRuntime
  };
});<commit_msg>`bundle.module` should be undefined if not provided.<commit_after>import pluggable from "../../pluggable";

export default pluggable(function initBundle (opts = {}) {
  const {
    dest = this.opts.implicitBundleDest,
    module,
    moduleHashes = [],
    modules = [],
    isEntryPt = false,
    type = "javascript",
    excludeRuntime = false
  } = opts;
  const includeRuntime = !excludeRuntime;

  if (type !== "javascript") {
    throw new Error("Cannot create JS bundle for non-JavaScript module. " +
      "Please configure appropriate plugin.");
  }

  return {
    module,
    moduleHashes,
    modules,
    dest,
    type,
    isEntryPt,
    includeRuntime
  };
});
{'fraction_non_alphanumeric': 0.1236722306525038, 'fraction_numerical': 0.0, 'mean_word_length': 2.868035190615836, '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': '2984046', 'n_tokens_mistral': 388, 'n_tokens_neox': 382, 'n_words': 104}