<commit_before>module.exports = (function () {

  var PulsarStatus = function (status) {
    this.status = status || 'CREATED';
  }

  PulsarStatus.STATUS_CREATED = 'CREATED';
  PulsarStatus.STATUS_PENDING = 'PENDING';
  PulsarStatus.STATUS_RUNNING = 'RUNNING';
  PulsarStatus.STATUS_FINISHED = 'FINISHED';
  PulsarStatus.STATUS_CANCELLED = 'CANCELLED';
  PulsarStatus.STATUS_FAILED = 'FAILED';
  PulsarStatus.STATUS_KILLED = 'KILLED';

  PulsarStatus.prototype.get = function () {
    return this.status;
  }

  PulsarStatus.prototype.set = function (status) {
    this.status = status;
  }

  PulsarStatus.prototype.isRunning = function () {
    return this.status == STATUS_PENDING;
  }

  return PulsarStatus;

})()
<commit_msg>Simplify PulsarStatus<commit_after>module.exports = (function () {

  var PulsarStatus = function (status) {
    this.status = status || PulsarStatus.STATUS_CREATED;
  };

  PulsarStatus.STATUS_CREATED = 'CREATED';
  PulsarStatus.STATUS_RUNNING = 'RUNNING';
  PulsarStatus.STATUS_FINISHED = 'FINISHED';
  PulsarStatus.STATUS_FAILED = 'FAILED';
  PulsarStatus.STATUS_KILLED = 'KILLED';

  PulsarStatus.prototype.get = function () {
    return this.status;
  };

  PulsarStatus.prototype.set = function (status) {
    this.status = status;
  };

  PulsarStatus.prototype.isRunning = function () {
    return this.status === PulsarStatus.STATUS_RUNNING;
  };

  return PulsarStatus;

})();

{'fraction_non_alphanumeric': 0.12544045102184637, 'fraction_numerical': 0.0, 'mean_word_length': 4.182481751824818, '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': '5860042', 'n_tokens_mistral': 507, 'n_tokens_neox': 500, 'n_words': 75}