<commit_before>/*
 * $.getJSON("https://api.twitch.tv/kraken/games/top/?callback=?", function(data){
	for(i=0; i < (data.top).length; i++){
		$('body').append("<br>"+data.top[i].game.name);
	}
	console.log(data);
});
*/

$.getJSON("https://api.twitch.tv/kraken/streams?game=Magic:%20The%20Gathering", function(data){
	for(i=0; i < (data.streams).length; i++){
		if(typeof data.streams[i].channel.status != "undefined"){
			originalTitle = data.streams[i].channel.status;
		} else{
			originalTitle = data.streams[i].channel.name + " - Title Not Found";
		}

		title = originalTitle;	
		if(title.length > 40)
			title = title.slice(0,40)+"...";
		$('#streams').append("<tr><td><a href='"+data.streams[i].channel.url+"/popout/' target='blank' title='"+originalTitle+"'>"+title+"</a><br><b>   Channel: </b>"+data.streams[i].channel.name+"</td><td align='right'>"+data.streams[i].viewers+"</td></tr>");
	}
	console.log($('#streams').width());
});<commit_msg>Added game var to popout.js<commit_after>var game = 'Magic:%20The%20Gathering'

$.getJSON("https://api.twitch.tv/kraken/streams?game="+game, function(data){
	for(i=0; i < (data.streams).length; i++){
		if(typeof data.streams[i].channel.status != "undefined"){
			originalTitle = data.streams[i].channel.status;
		} else{
			originalTitle = data.streams[i].channel.name + " - Title Not Found";
		}

		title = originalTitle;
		if(title.length > 40)
			title = title.slice(0,40)+"...";
		$('#streams').append("<tr><td><a href='"+data.streams[i].channel.url+"/popout/' target='blank' title='"+originalTitle+"'>"+title+"</a><br><b>   Channel: </b>"+data.streams[i].channel.name+"</td><td align='right'>"+data.streams[i].viewers+"</td></tr>");
	}
});
{'fraction_non_alphanumeric': 0.26148409893992935, 'fraction_numerical': 0.012367491166077738, 'mean_word_length': 5.2234432234432235, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 28, 'https://': 3, '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': '5839501', 'n_tokens_mistral': 684, 'n_tokens_neox': 639, 'n_words': 77}