<commit_before>/*
 * Copyright 2009-2011 Mozilla Foundation and contributors
 * Licensed under the New BSD license. See LICENSE.txt or:
 * http://opensource.org/licenses/BSD-3-Clause
 */

define(function(require, exports, module) {

var examiner = require('test/examiner');

exports.ok = function(value, message) {
  if (!value) {
    console.error('not ok ', message);
    console.trace();
    examiner.recordError('not ok' + (message ? ': ' + message : ''));
  }
};

exports.is = function(expected, actual, message) {
  if (expected !== actual) {
    console.error('expected !== actual', expected, actual, message);
    console.trace();
    examiner.recordError('expected=' + expected + ', ' +
                     'actual=' + actual + ': ' + message);
  }
};

});
<commit_msg>Bug 706230 (jumpscratch): Make assert messages clearer<commit_after>/*
 * Copyright 2009-2011 Mozilla Foundation and contributors
 * Licensed under the New BSD license. See LICENSE.txt or:
 * http://opensource.org/licenses/BSD-3-Clause
 */

define(function(require, exports, module) {

var examiner = require('test/examiner');

exports.ok = function(value, message) {
  if (!value) {
    console.error('Failure: ' + message);
    console.trace();
    examiner.recordError('not ok' + (message ? ': ' + message : ''));
  }
};

exports.is = function(expected, actual, message) {
  if (expected !== actual) {
    console.error('Failure: ' + message);
    console.error('- Expected: ', expected);
    console.error('-   Actual: ', actual);
    console.trace();
    examiner.recordError('expected=' + expected + ', ' +
                     'actual=' + actual + ': ' + message);
  }
};

});

{'fraction_non_alphanumeric': 0.17077570655441973, 'fraction_numerical': 0.014431749849669273, 'mean_word_length': 3.437333333333333, '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': '7013835', 'n_tokens_mistral': 522, 'n_tokens_neox': 494, 'n_words': 116}