<commit_before>exports.getToken = getToken;
exports.validateToken = validateToken;

var tokens = validTokens();

function getToken(user,key) {
	if(user == "KurtEricson" && key =="ClinicalKnowledge") {
		return "AgileMD";
	}  else if (user == "GISI" && key =="Indoors") {
        return "ServiceExcellence";
    } else if (user == "Kevin" && key =="Owocki") {
        return "SimpleEnergy";
    } else {
		return undefined;
	}
}

function validTokens() {
    return ["AgileMD","ServiceExcellence","SimpleEnergy"]
}

function validateToken(token) {
    var containsToken = false;
    tokens.forEach(function(value){
        if (value === token) {
            containsToken = true;
        }
    });
    return containsToken;
}<commit_msg>Added new user/key authentication path<commit_after>exports.getToken = getToken;
exports.validateToken = validateToken;

var tokens = validTokens();

function getToken(user,key) {
	if(user == "KurtEricson" && key =="ClinicalKnowledge") {
		return "AgileMD";
	}  else if (user == "GISI" && key =="Indoors") {
        return "ServiceExcellence";
    } else if (user == "Kevin" && key =="Owocki") {
        return "SimpleEnergy";
    } else if (user == "Craftsman" && key =="Software") {
        return "kohactive";
    } else {
		return undefined;
	}
}

function validTokens() {
    return ["Ag<PASSWORD>","ServiceExcellence","SimpleEnergy", "koh<PASSWORD>"]
}

function validateToken(token) {
    var containsToken = false;
    tokens.forEach(function(value){
        if (value === token) {
            containsToken = true;
        }
    });
    return containsToken;
}
{'fraction_non_alphanumeric': 0.1526479750778816, 'fraction_numerical': 0.0, 'mean_word_length': 3.4242424242424243, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5375427', 'n_tokens_mistral': 525, 'n_tokens_neox': 502, 'n_words': 115}