<commit_before>// other module dependcies

// local file/module dependencies
var config = require('./config/config.js'),
		distance = require('./lib/distance.js'),
		geocoder = require('./lib/geocoder.js'),
		keys = require('./config/keys.js')
		;

var getCoordinates = function (address, options, callback) {
	
}<commit_msg>sketching default options<commit_after>// other module dependcies

// local file/module dependencies
var config = require('./config/config.js'),
		distance = require('./lib/distance.js'),
		geocoder = require('./lib/geocoder.js')
		;

var defaultOptions = {
	service: 'geocoder.us',
	geocoder: {
		type: 'csv',
		userID: null,
		pass: null
	},
	mapquest: {
		type: 'open',
		key: null
	}
}

var getCoordinates = function (address, options, callback) {
	if (!options) {
		var options = defaultOptions;
	}
	switch (options.service) {
		case 'geocoder.us':
			console.log(options);
			if (!options.geocoder) {
				options.geocoder = defaultOptions.geocoder;
			}
			if (options.geocoder && options.geocoder.type) {
				if (options.geocoder.type === 'csv') {
					console.log(options);
					geocoder.csv(address, options, callback);
					break;
				} else if (options.geocoder.type === 'xml') {
					geocoder.xml(address, options, callback);
					break;
				}
			}
			break;
		case 'mapquest':
			mapquest.open(address, options, callback);
			break;
		default:
			geocoder.csv(address, options, callback);
			break;
	}
}

module.exports = getCoordinates;
{'fraction_non_alphanumeric': 0.15457627118644068, 'fraction_numerical': 0.0, 'mean_word_length': 3.5276073619631902, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '3556370', 'n_tokens_mistral': 561, 'n_tokens_neox': 490, 'n_words': 107}