<commit_before>/*
 * resized
 * https://github.com/bytespider/resized
 *
 * Copyright (c) 2012 <NAME>
 * Licensed under the MIT license.
 */

var util = require('util');
var child_process = require('child_process');
var fs = require('fs');

var EventEmitter = require('events').EventEmitter;

var duplex = require('./duplex-stream');

/*
exports.filter = function (type) {};
exports.flip = function (direction) {};
exports.quality = function (quality) {};
exports.rotate = function (degrees) {};
exports.scale = function (width, height) {};
exports.sepia = function () {};
exports.sharpen = function (radius, sigma) {};
exports.unsharp = function (radius, sigma, amount, threshold) {};

exports.size = function () {};
*/

function resized(src) {    
    if (!(this instanceof resized)) {
        return new resized(src);
    }

    var src_stream;
    if (typeof src == 'string') {
        src_stream = fs.createReadStream(src);
    } else {
        src_stream = src;
    }

    src_stream.pause();
<commit_msg>removed reference to duplex stream<commit_after>/*
 * resized
 * https://github.com/bytespider/resized
 *
 * Copyright (c) 2012 <NAME>
 * Licensed under the MIT license.
 */

var util = require('util');
var child_process = require('child_process');
var fs = require('fs');

var EventEmitter = require('events').EventEmitter;

/*
exports.filter = function (type) {};
exports.flip = function (direction) {};
exports.quality = function (quality) {};
exports.rotate = function (degrees) {};
exports.scale = function (width, height) {};
exports.sepia = function () {};
exports.sharpen = function (radius, sigma) {};
exports.unsharp = function (radius, sigma, amount, threshold) {};

exports.size = function () {};
*/

function resized(src) {    
    if (!(this instanceof resized)) {
        return new resized(src);
    }

    var src_stream;
    if (typeof src == 'string') {
        src_stream = fs.createReadStream(src);
    } else {
        src_stream = src;
    }

    src_stream.pause();

{'fraction_non_alphanumeric': 0.15942028985507245, 'fraction_numerical': 0.00399800099950025, 'mean_word_length': 3.6666666666666665, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1717820', 'n_tokens_mistral': 613, 'n_tokens_neox': 595, 'n_words': 157}