<commit_before>var ridb = require('./index');

// Initialize ridb client and get all facilities within 100 miles of Syracuse, NY that allow camping.
ridb.init('your-api-key');
ridb.facilities.getAll({latitude: 43.0469, longitude: -76.1444, radius: 100, activity: '9,109', limit: 1}, function(error, response){
        console.log(JSON.stringify(response));
});<commit_msg>Updated sample<commit_after>var ridb = require('./index');

// Initialize RIDB client.
var key = process.argv[2];
ridb.init(key);

// Get a list of facilities.
ridb.facilities.details(null, {limit: 3}, function(error, response) {
	if(!error) {
		console.log(JSON.stringify(response));
	}
});

// // Get the details of a specific facility.
ridb.facilities.details(234150, {}, function(error, response) {
	if(!error) {
		console.log(JSON.stringify(response));
	}
});

// // Get address details for a specific facility
ridb.facilities.addresses(234150, null, {}, function(error, response) {
	if(!error) {
		console.log(JSON.stringify(response));
	}
});

// Get a list of activities for a specific facility.
ridb.facilities.activities(234150, null, {}, function(error, response) {
	if(!error) {
		console.log(JSON.stringify(response));
	}
});
{'fraction_non_alphanumeric': 0.16776859504132233, 'fraction_numerical': 0.03553719008264463, 'mean_word_length': 4.794258373205742, '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': '5651237', 'n_tokens_mistral': 424, 'n_tokens_neox': 385, 'n_words': 96}