<commit_before><!DOCTYPE>
<html>
	<head>
		<script src="libs/jquery.js" type="text/javascript"></script>
		<script src="libs/jquery.tmpl.min.js" type="text/javascript"></script>
		<script src="libs/jquery-ui.min.js" type="text/javascript"></script>
		<link href="libs/jquery-ui.min.css" rel="stylesheet"></link>
		
		<script src="../kore-bot-sdk-client.js"></script>
		<script src="chatWindow.js" type="text/javascript"></script>
		<link href="chatWindow.css" rel="stylesheet"></link>
		<script type="text/javascript">
		$(document).on("ready",function(){
			var chatConfig={
				
			};
			koreBotChat().show(chatConfig);
			$('.openChatWindow').click(function(){
				koreBotChat().show(chatConfig);
			});
		});<commit_msg>Assertion function added.<commit_after><!DOCTYPE>
<html>
	<head>
		<script src="libs/jquery.js" type="text/javascript"></script>
		<script src="libs/jquery.tmpl.min.js" type="text/javascript"></script>
		<script src="libs/jquery-ui.min.js" type="text/javascript"></script>
		<link href="libs/jquery-ui.min.css" rel="stylesheet"></link>
		
		<script src="../kore-bot-sdk-client.js"></script>
		<script src="chatWindow.js" type="text/javascript"></script>
		<link href="chatWindow.css" rel="stylesheet"></link>
		<script type="text/javascript">
		$(document).on("ready",function(){
			function assertion(options, callback) {
				// Client has to fill the claims and call the callback.
				$.ajax({
					url: "http://devbots.kore.com/api/users/sts",
					type: 'post',
					headers: {
						Authorization: "bearer -0*************f"
					},
					dataType: 'json',
					success: function (data) {
						options.assertion = data
						callback(null, options);
					}
				})
			}

			var botOptions = {};
			botOptions.logLevel = 'debug';
			botOptions.koreAPIUrl = "http://devbots.kore.com/api/";
			botOptions.assertion = assertion;
			botOptions.isLoggedIn = true;
			
			botOptions.botInfo = {name:"Twitter", "_id":""}; // pass bot name and stream id
			
			var chatConfig={
				botOptions:botOptions
			};

			koreBotChat().show(chatConfig);
			$('.openChatWindow').click(function(){
				koreBotChat().show(chatConfig);
			});
		});
{'fraction_non_alphanumeric': 0.2010213556174559, 'fraction_numerical': 0.00046425255338904364, 'mean_word_length': 3.9200913242009134, 'pattern_counts': {'":': 1, '<': 39, '<?xml version=': 0, '>': 39, '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': '4573206', 'n_tokens_mistral': 851, 'n_tokens_neox': 700, 'n_words': 115}