<commit_before>/**
 * Copyright (c) 2015 <NAME>
 *    <http://qeremy.com>
 *
 * The MIT License
 *    <http://opensource.org/licenses/MIT>
 */

var Base64 = {
    encoding: "utf-8",
    encode: function(data){
        return (new Buffer(data)).toString("base64");
    },
    decode: function(data, encoding){
        return (new Buffer(data, "base64")).toString(encoding || this.encoding);
    }
};

module.exports = Base64;<commit_msg>Add docs.<commit_after>/**
 * Copyright (c) 2015 <NAME>
 *    <http://qeremy.com>
 *
 * The MIT License
 *    <http://opensource.org/licenses/MIT>
 */

/**
 * Base64 object.
 * @public
 *
 * @type {Object}
 */
var Base64 = {
    /**
     * Encoding.
     * @type {String}
     */
    encoding: "utf-8",

    /**
     * Encoder.
     * @public
     *
     * @param  {String} data
     * @return {String}
     */
    encode: function(data){
        return (new Buffer(data)).toString("base64");
    },

    /**
     * Decoder.
     * @public
     *
     * @param  {String} data
     * @param  {String} encoding
     * @return {String}
     */
    decode: function(data, encoding){
        return (new Buffer(data, "base64")).toString(encoding || this.encoding);
    }
};

module.exports = Base64;
{'fraction_non_alphanumeric': 0.1821138211382114, 'fraction_numerical': 0.022764227642276424, 'mean_word_length': 2.2480211081794197, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '451853', 'n_tokens_mistral': 435, 'n_tokens_neox': 415, 'n_words': 83}