<commit_before>/*
 * viperfish
 * https://github.com/mattstyles/viperfish
 *
 * Copyright (c) 2013 <NAME>
 * Licensed under the MIT license.
 */

/**
 * Requires
 */
var vpf = require( './viperfish' );


/**
 * Utils
 * --
 * Various utility functions and classes for operating the main viperfish library
 * @type {Object}
 */
vpf.utils = {

    /**
     * decodes the data returned from a github api query
     * @param data - base64 encoded response from querying github for content
     * @returns buffer containing a string representation of the base64 encoded query data
     */
    decodeGithubData: function( data ) {
        return new Buffer(data, 'base64').toString('utf8');
    },

    /**
     * decodes github image data from base64 to binary
     * @param data - base64 encoded response from querying github for content
     * @return buffer containing a binary representation of the base64 encoded image
     */
    decodeGithubImageData: function( data ) {
        return new Buffer( data, 'base64').toString( 'binary' );
    },

    /**
     * Config utility functions
     */
    config: {
        /**
         * Registers the data within the config object
         * @param data - list of nav items
         */
        setNav: function ( data ) {
            // No need to iterate over members
            vpf.config.moduleOpts.nav = data.nav;
        }
    }

};<commit_msg>Removed github data decoding functions from the utils<commit_after>/*
 * viperfish
 * https://github.com/mattstyles/viperfish
 *
 * Copyright (c) 2013 <NAME>
 * Licensed under the MIT license.
 */

/**
 * Requires
 */
var vpf = require( './viperfish' );


/**
 * Utils
 * --
 * Various utility functions and classes for operating the main viperfish library
 * @type {Object}
 */
vpf.utils = {

    /**
     * Config utility functions
     */
    config: {
        /**
         * Registers the data within the config object
         * @param data - list of nav items
         */
        setNav: function ( data ) {
            // No need to iterate over members
            vpf.config.moduleOpts.nav = data.nav;
        }
    }

};
{'fraction_non_alphanumeric': 0.10828625235404897, 'fraction_numerical': 0.010828625235404897, 'mean_word_length': 2.1669150521609537, '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': '5853280', 'n_tokens_mistral': 617, 'n_tokens_neox': 588, 'n_words': 203}