<commit_before>//Connects to cloudinary and fetch image url using image name

const cloudinary = require('cloudinary');
const apiKey = require('./../api_config/config.js');

exports.getImageUrl = function(imgName, cb) {
  cloudinary.config(apiKey.cloudinaryAPI);
  cloudinary.api.resource(imgName,
 	function(result) {
	  cb(null, result);
  }).catch(function(err) {
  	cb(err);
  });
};<commit_msg>commented out api_config require<commit_after>//Connects to cloudinary and fetch image url using image name

const cloudinary = require('cloudinary');
//const apiKey = require('./../api_config/config.js');

exports.getImageUrl = function(imgName, cb) {
  cloudinary.config(apiKey.cloudinaryAPI);
  cloudinary.api.resource(imgName,
 	function(result) {
	  cb(null, result);
  }).catch(function(err) {
  	cb(err);
  });
};
{'fraction_non_alphanumeric': 0.1514041514041514, 'fraction_numerical': 0.0, 'mean_word_length': 4.942028985507246, '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': '3603915', 'n_tokens_mistral': 266, 'n_tokens_neox': 261, 'n_words': 55}