<commit_before>// Pure Image uses existing libraries for font parsing, jpeg/png encode/decode
// and borrowed code for transform management and unsigned integer manipulation

//2014-11-14  line count: 418, 411, 407, 376, 379, 367
//2014-11-15  line count: 401, 399, 386, 369, 349,


/** @ignore */
var fs = require('fs');
/** @ignore */
var PNG = require('pngjs').PNG;
/** @ignore */
var JPEG = require('jpeg-js');
/** @ignore */
var uint32 = require('./uint32');
/** @ignore */
var Bitmap = require('./bitmap');
/** @ignore */
var text = require('./text');

/**
 * Make
 * 
 * Create a new bitmap image
 * 
 * @param w Image width
 * @param h Image height
 * @param options Options to be passed to {@link Bitmap}
 * 
 * @returns {Bitmap}
 */
exports.make = function(w,h,options) {
    return new Bitmap(w,h,options);
};

/**
 * Encode the PNG image to output stream
 * 
 * @param {Bitmap} bitmap    An instance of {@link Bitmap} to be encoded to PNG
 * @param {Stream} outstream The stream to write the PNG file to
 * <commit_msg>Missing Parameter Types<commit_after>// Pure Image uses existing libraries for font parsing, jpeg/png encode/decode
// and borrowed code for transform management and unsigned integer manipulation

//2014-11-14  line count: 418, 411, 407, 376, 379, 367
//2014-11-15  line count: 401, 399, 386, 369, 349,


/** @ignore */
var fs = require('fs');
/** @ignore */
var PNG = require('pngjs').PNG;
/** @ignore */
var JPEG = require('jpeg-js');
/** @ignore */
var uint32 = require('./uint32');
/** @ignore */
var Bitmap = require('./bitmap');
/** @ignore */
var text = require('./text');

/**
 * Make
 * 
 * Create a new bitmap image
 * 
 * @param {number} w       Image width
 * @param {number} h       Image height
 * @param {object} options Options to be passed to {@link Bitmap}
 * 
 * @returns {Bitmap}
 */
exports.make = function(w,h,options) {
    return new Bitmap(w,h,options);
};

/**
 * Encode the PNG image to output stream
 * 
 * @param {Bitmap} bitmap    An instance of {@link Bitmap} to be encoded to PNG
 * @param {Stream} outstream The stream to write the PNG file to
 * 
{'fraction_non_alphanumeric': 0.15821885362387494, 'fraction_numerical': 0.0502131691141639, 'mean_word_length': 3.3636363636363638, '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': '1951616', 'n_tokens_mistral': 757, 'n_tokens_neox': 632, 'n_words': 251}