<commit_before>"use strict";

var configurator = require("setopt")();
var utils = require("belty");

class Bundle {
  constructor(name, options, main) {
    this.name = name;

    Object.defineProperties(this, {
      "isMain": {
        value: !!main,
        writable: false
      }
    });

    configurator.configure(this, options);
  }

  configure(options) {
    return !options || options === this ? this : new Bundle(this.name, utils.merge({}, this, options), this.main);
  }

  clear() {
    return this.configure({ content: null, sourcemap: null });
  }

  setDest(dest) {
    this.dest = dest;
    return this;
  }

  setName(name) {
    this.name = name;
    return this;
  }

  setContent(content) {
    this.content = content;
    return this;
  }

  setExports(exports) {
    this.exports = exports;
    return this;
  }

  setModules(modules) {
    this.modules = modules;
    return this;
  }

  setSourcemap(sourcemap) {
    this.sourcemap = sourcemap;
    return this;
  }
}

module.exports = Bundle;<commit_msg>Removed setSouceMap method since the preferred approach is now inline sourcemaps and bit-bundler-extractsm<commit_after>"use strict";

var configurator = require("setopt")();
var utils = require("belty");

class Bundle {
  constructor(name, options, main) {
    this.name = name;

    Object.defineProperties(this, {
      "isMain": {
        value: !!main,
        writable: false
      }
    });

    configurator.configure(this, options);
  }

  configure(options) {
    return !options || options === this ? this : new Bundle(this.name, utils.merge({}, this, options), this.main);
  }

  clear() {
    return this.configure({ content: null });
  }

  setDest(dest) {
    this.dest = dest;
    return this;
  }

  setName(name) {
    this.name = name;
    return this;
  }

  setContent(content) {
    this.content = content;
    return this;
  }

  setExports(exports) {
    this.exports = exports;
    return this;
  }

  setModules(modules) {
    this.modules = modules;
    return this;
  }
}

module.exports = Bundle;
{'fraction_non_alphanumeric': 0.13521400778210116, 'fraction_numerical': 0.0, 'mean_word_length': 2.8022181146025877, 'pattern_counts': {'":': 2, '<': 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': '5165190', 'n_tokens_mistral': 683, 'n_tokens_neox': 662, 'n_words': 152}