<commit_before>var inspect = require('eyes').inspector();
var awssum = require('awssum');
var MetaData = awssum.load('amazon/metadata').MetaData;

var env = process.env;
var accessKeyId = process.env.ACCESS_KEY_ID;
var secretAccessKey = process.env.SECRET_ACCESS_KEY;
var awsAccountId = process.env.AWS_ACCOUNT_ID;

var md = new MetaData();

md.Get(function(err, data) {
    console.log("\ngetting metadata - expecting failure (no Category given)");
    inspect(err, 'Error');
    inspect(data, 'Data');
});

md.Get({}, function(err, data) {
    console.log("\ngetting metadata - expecting failure (no Category given)");
    inspect(err, 'Error');
    inspect(data, 'Data');
});

md.Get({ Version : 'latest', Category : '/' }, function(err, data) {
    console.log("\ngetting metadata - expecting success");
    inspect(err, 'Error');
    inspect(data, 'Data');
});

md.Get({ Version : 'latest', Category : '/latest/meta-data/' }, function(err, data) {
    console.log("\ngetting metadata - expecting success");
    inspect(err, 'Error');
    inspect(data, 'Data');
});<commit_msg>No need to re-specify the version of the API to use<commit_after>var inspect = require('eyes').inspector();
var awssum = require('awssum');
var MetaData = awssum.load('amazon/metadata').MetaData;

var env = process.env;
var accessKeyId = process.env.ACCESS_KEY_ID;
var secretAccessKey = process.env.SECRET_ACCESS_KEY;
var awsAccountId = process.env.AWS_ACCOUNT_ID;

var md = new MetaData();

md.Get(function(err, data) {
    console.log("\ngetting metadata - expecting failure (no Category given)");
    inspect(err, 'Error');
    inspect(data, 'Data');
});

md.Get({}, function(err, data) {
    console.log("\ngetting metadata - expecting failure (no Category given)");
    inspect(err, 'Error');
    inspect(data, 'Data');
});

md.Get({ Version : 'latest', Category : '/' }, function(err, data) {
    console.log("\ngetting metadata - expecting success");
    inspect(err, 'Error');
    inspect(data, 'Data');
});

md.Get({ Version : 'latest', Category : '/meta-data/' }, function(err, data) {
    console.log("\ngetting metadata - expecting success");
    inspect(err, 'Error');
    inspect(data, 'Data');
});
{'fraction_non_alphanumeric': 0.1769265845873233, 'fraction_numerical': 0.0, 'mean_word_length': 4.526448362720403, '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': '1193871', 'n_tokens_mistral': 694, 'n_tokens_neox': 707, 'n_words': 172}