<commit_before>var ImgurImage = require('./image'),
	requests = require('request');

function ImgurClient(options) {
	'use strict';

	options = options || {};
	if (options.clientId === undefined) {
		throw new Error('clientId is required!');
	}

	var publicAPI,
		protocol = 'https://',
		host = 'api.imgur.com',
		authorizationHeader = 'Client-ID ' + options.clientId;

	/**
	* Formats the URL
	*
	* @param {String} path [description]
	*
	* @return {String} a properly formated url
	*/
	function _formatUrl(path) {
		var url = protocol + host + '/' + path;
		return url;
	}


	/**
	* [_request description]
	*
	* @param  {[type]}   opts     [description]
	* @param  {Function} callback [description]
	*
	* @return null
	*/
	function request(opts, callback) {

		/**
		* Removes any empty (null or undefined) properties from an object
		*
		* @param  {Object} object<commit_msg>updating docs, removing unused require<commit_after>var requests = require('request');

function ImgurClient(options) {
	'use strict';

	options = options || {};
	if (options.clientId === undefined) {
		throw new Error('clientId is required!');
	}

	var publicAPI,
		protocol = 'https://',
		host = 'api.imgur.com',
		authorizationHeader = 'Client-ID ' + options.clientId;

	/**
	* Formats the URL
	*
	* @param {String} path [description]
	*
	* @return {String} a properly formated url
	*/
	function _formatUrl(path) {
		var url = protocol + host + '/' + path;
		return url;
	}


	/**
	* [_request description]
	*
	* @param  {Object}   opts     A set of options/params to be sent
	*                             along with the request.
	* @param  {Function} callback callback function to execute once
	*                             everything is done
	*
	* @return null
	*/
	function request(opts, callback) {

		/**
		* Removes any empty (null or undefined) properties from an object
		*
		* @param  {Object} object
{'fraction_non_alphanumeric': 0.13893291072371897, 'fraction_numerical': 0.0, 'mean_word_length': 3.081896551724138, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4173960', 'n_tokens_mistral': 638, 'n_tokens_neox': 601, 'n_words': 174}