<commit_before>const RaceDates = require('./raceDates');

module.exports = function urlManager(opts) {

	const stateAbbr = opts.stateAbbr;
	const partyAbbr = opts.partyAbbr;
	const level     = opts.level;

	// get race for this state-party combination
	const date = RaceDates[`${stateAbbr}-${partyAbbr}`.toLowerCase()];

	// construct the api url
	// const baseUrl = 'http://dev.tomcat.boston.com/electionapi/elections/';
	const baseUrl = 'http://devweb.bostonglobe.com/electionapi/elections/';
	// const baseUrl = 'http://devweb.bostonglobe.com/electionapi/elections/';
	// const baseUrl = 'https://www.bostonglobe.com/electionapi/elections/';
	const url     = `${baseUrl}${date}?statePostal=${stateAbbr}&party=${partyAbbr}&level=${level}`;

	return url;

};<commit_msg>point to prod<commit_after>const RaceDates = require('./raceDates');

module.exports = function urlManager(opts) {

	const stateAbbr = opts.stateAbbr;
	const partyAbbr = opts.partyAbbr;
	const level     = opts.level;

	// get race for this state-party combination
	const date = RaceDates[`${stateAbbr}-${partyAbbr}`.toLowerCase()];

	// construct the api url
	// const baseUrl = '//dev.apps.bostonglobe.com/electionapi/elections/';
	// const baseUrl = '//qaweb.bostonglobe.com/electionapi/elections/';
	const baseUrl = '//www.bostonglobe.com/electionapi/elections/';

	const url     = `${baseUrl}${date}?statePostal=${stateAbbr}&party=${partyAbbr}&level=${level}`;

	return url;

};
{'fraction_non_alphanumeric': 0.16586373021335168, 'fraction_numerical': 0.0, 'mean_word_length': 4.57088122605364, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 2, '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': '2601600', 'n_tokens_mistral': 505, 'n_tokens_neox': 499, 'n_words': 89}