<commit_before>/*global Uint8Array*/
var gm = require('gm');

var contentTypeByGraphicsMagickFormat = {
    GIF: 'image/gif',
    JPEG: 'image/jpeg',
    PNG: 'image/png',
    SVG: 'image/svg+xml'
};

module.exports = {
    name: 'unexpected-image',
    installInto: function (expect) {
        expect.installPlugin(require('magicpen-media'));

        expect.addAssertion(['string', 'Buffer', 'Uint8Array'], 'to have metadata satisfying', function (expect, subject) { // ...
            var extraArgs = Array.prototype.slice.call(arguments, 2);<commit_msg>Include the version number in the plugin spec.<commit_after>/*global Uint8Array*/
var gm = require('gm');

var contentTypeByGraphicsMagickFormat = {
    GIF: 'image/gif',
    JPEG: 'image/jpeg',
    PNG: 'image/png',
    SVG: 'image/svg+xml'
};

module.exports = {
    name: 'unexpected-image',
    version: require('../package.json').version,
    installInto: function (expect) {
        expect.installPlugin(require('magicpen-media'));

        expect.addAssertion(['string', 'Buffer', 'Uint8Array'], 'to have metadata satisfying', function (expect, subject) { // ...
            var extraArgs = Array.prototype.slice.call(arguments, 2);
{'fraction_non_alphanumeric': 0.16220735785953178, 'fraction_numerical': 0.005016722408026756, 'mean_word_length': 3.603846153846154, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '4402832', 'n_tokens_mistral': 375, 'n_tokens_neox': 364, 'n_words': 80}