<commit_before>/*!
 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
 *
 * Copyright (c) 2014-2015, <NAME>.
 * Licensed under the MIT License.
 */

'use strict';

var expect = require('chai').expect;
var isPlainObject = require('../');

describe('Same-Realm Server Tests', function() {
  it('should return `true` if the object is created by the `Object` constructor.', function() {
    expect( isPlainObject(Object.create({})) ).to.be.true;
    expect( isPlainObject(Object.create(Object.prototype)) ).to.be.true;
    expect( isPlainObject({foo: 'bar'}) ).to.be.true;
    expect( isPlainObject({}) ).to.be.true;
  });

  it('should return `false` if the object is not created by the `Object` constructor.', function() {
    function Foo() {this.abc = {};};

    expect( isPlainObject(/foo/) ).to.be.false;
    expect( isPlainObject(function () {}) ).to.be.false;
    expect( isPlainObject(1) ).to.be.false;
    expect( isPlainObject(['foo', 'bar']) ).to.be.false;<commit_msg>specify `mocha` for lint-deps<commit_after>/*!
 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
 *
 * Copyright (c) 2014-2015, <NAME>.
 * Licensed under the MIT License.
 */

'use strict';

/* deps:mocha */
var expect = require('chai').expect;
var isPlainObject = require('../');

describe('Same-Realm Server Tests', function() {
  it('should return `true` if the object is created by the `Object` constructor.', function() {
    expect( isPlainObject(Object.create({})) ).to.be.true;
    expect( isPlainObject(Object.create(Object.prototype)) ).to.be.true;
    expect( isPlainObject({foo: 'bar'}) ).to.be.true;
    expect( isPlainObject({}) ).to.be.true;
  });

  it('should return `false` if the object is not created by the `Object` constructor.', function() {
    function Foo() {this.abc = {};};

    expect( isPlainObject(/foo/) ).to.be.false;
    expect( isPlainObject(function () {}) ).to.be.false;
    expect( isPlainObject(1) ).to.be.false;
    expect( isPlainObject(['foo', 'bar']) ).to.be.false;
{'fraction_non_alphanumeric': 0.1908057340583292, 'fraction_numerical': 0.008897676717745922, 'mean_word_length': 4.00990099009901, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '6025081', 'n_tokens_mistral': 698, 'n_tokens_neox': 674, 'n_words': 163}