<commit_before>/*!
 Copyright (C) 2017 Google Inc.
 Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
 */

'use strict';

describe('GGRC.Errors module', function () {
  var notifier;
  var $fake;
  var _originalMessages;

  beforeAll(function () {
    _originalMessages = Object.assign({}, GGRC.Errors.messages);

    GGRC.Errors.messages = {
      'default': 'Some error!',
      '401': 'Mock auth invalid message'
    };

    $fake = {
      trigger: jasmine.createSpy()
    };
  });

  afterAll(function () {
    GGRC.Errors.messages = _originalMessages;
  });

  beforeEach(function () {<commit_msg>Replace Object.assign with _.assign<commit_after>/*!
 Copyright (C) 2017 Google Inc.
 Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
 */

'use strict';

describe('GGRC.Errors module', function () {
  var notifier;
  var $fake;
  var _originalMessages;

  beforeAll(function () {
    _originalMessages = _.assign({}, GGRC.Errors.messages);

    GGRC.Errors.messages = {
      'default': 'Some error!',
      '401': 'Mock auth invalid message'
    };

    $fake = {
      trigger: jasmine.createSpy()
    };
  });

  afterAll(function () {
    GGRC.Errors.messages = _originalMessages;
  });

  beforeEach(function () {
{'fraction_non_alphanumeric': 0.1519185591229444, 'fraction_numerical': 0.014095536413469069, 'mean_word_length': 3.2039473684210527, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4039090', 'n_tokens_mistral': 430, 'n_tokens_neox': 407, 'n_words': 89}