<commit_before>'use strict';
/*jshint browser:true */

var HUB_TOKEN = 'HUB_TOKEN',
    HUB_URL = 'HUB_URL',
	GROUP_ID = '-1'; //AJF: initialise groupID 

module.exports = {
	getToken: function() {
	    return localStorage.getItem(HUB_TOKEN);
	},
	setHubUrl: function(url) {
		localStorage.setItem(HUB_URL, url);
	},
	setHubToken: function(token) {
		localStorage.setItem(HUB_TOKEN, token);
	},
	setGroupID: function(id) {
		console.log("Setting groupID in connectionCache to: " + id);
		localStorage.setItem(GROUP_ID, id);
	},
	getGroupID: function() {
		return localStorage.getItem(GROUP_ID);
	},
	getShortGroupName: function(groupID) {
	
		var groupNames = new Map() //AJF: @todo: load map from config file
		groupNames.set(0, "Admin");
		groupNames.set(1, "Test1");
		groupNames.set(2, "Test2");
		groupNames.set(101, "Chicago");
		groupNames.set(102, "Beijing");
		groupNames.set(103, "Dalian");
		groupNames.set(104, "Kuala Lumpur");
		groupNames.set(105, "Seoul");
		groupNames.set(106, "Manchester");
		
		//console.log("The groupID was set to: " + groupID);
		
		return groupNames.get(parseInt(groupID));
	},
	
	
	clear: function() {
		localStorage.removeItem(HUB_TOKEN);
		localStorage.removeItem(HUB_URL);
		localStorage.removeItem(GROUP_ID);
	}
};<commit_msg>Adds additional cities<commit_after>'use strict';
/*jshint browser:true */

var HUB_TOKEN = 'HUB_TOKEN',
    HUB_URL = 'HUB_URL',
	GROUP_ID = '-1'; //AJF: initialise groupID 

module.exports = {
	getToken: function() {
	    return localStorage.getItem(HUB_TOKEN);
	},
	setHubUrl: function(url) {
		localStorage.setItem(HUB_URL, url);
	},
	setHubToken: function(token) {
		localStorage.setItem(HUB_TOKEN, token);
	},
	setGroupID: function(id) {
		console.log("Setting groupID in connectionCache to: " + id);
		localStorage.setItem(GROUP_ID, id);
	},
	getGroupID: function() {
		return localStorage.getItem(GROUP_ID);
	},
	getShortGroupName: function(groupID) {
	
		var groupNames = new Map() //AJF: @todo: load map from config file
		groupNames.set(0, "Admin");
		groupNames.set(1, "Test1");
		groupNames.set(2, "Test2");
		groupNames.set(101, "Chicago");
		groupNames.set(102, "Beijing");
		groupNames.set(103, "Dalian");
		groupNames.set(104, "Kuala Lumpur");
		groupNames.set(105, "Seoul");
		groupNames.set(106, "Manchester");
		groupNames.set(107, "Chengdu");
		groupNames.set(108, "Hong Kong");
		groupNames.set(109, "Shenyang");
		groupNames.set(110, "Panjin");
		
		//console.log("The groupID was set to: " + groupID);
		
		return groupNames.get(parseInt(groupID));
	},
	
	
	clear: function() {
		localStorage.removeItem(HUB_TOKEN);
		localStorage.removeItem(HUB_URL);
		localStorage.removeItem(GROUP_ID);
	}
};
{'fraction_non_alphanumeric': 0.16139828932688732, 'fraction_numerical': 0.022313127556712532, 'mean_word_length': 4.797413793103448, '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': '4206602', 'n_tokens_mistral': 1095, 'n_tokens_neox': 1000, 'n_words': 183}