<commit_before>var socket;

var username = 'TestUser';

$(function() {
	$.material.init();
	socket = io();

	// TODO
	populateCards();
	setUsernameField();
	onResize();
});

$(".cah-card").click(function() {
	if(!$(this).hasClass('selected-card') && !$(this).hasClass('cah-card-black')) {
		deselectCards();
		$(this).addClass('selected-card');
		var checkbox = $(this).find('.card-checkbox');
		checkbox.fadeIn(400).css('display', 'inline-block');
	}
});

$('#chat-input').focusout(function() {
	var el = $(this);
	setTimeout(function() {
		el.focus();
	});<commit_msg>Check if the a card is selected (checkbox still visible) before allowing to select it again. Fixes the checkbox sometimes not getting set the correct display type and causing a line break.<commit_after>var socket;

var username = 'TestUser';

$(function() {
	$.material.init();
	socket = io();

	// TODO
	populateCards();
	setUsernameField();
	onResize();
});

$(".cah-card").click(function() {
	if(!$(this).hasClass('selected-card') && !$(this).hasClass('cah-card-black')) {
		var checkbox = $(this).find('.card-checkbox');
		if(checkbox.css('display') == 'none') {
			deselectCards();
			$(this).addClass('selected-card');
			checkbox.fadeIn(400).css('display', 'inline-block');
		}
	}
});

$('#chat-input').focusout(function() {
	var el = $(this);
	setTimeout(function() {
		el.focus();
	});
{'fraction_non_alphanumeric': 0.2250733137829912, 'fraction_numerical': 0.004398826979472141, 'mean_word_length': 4.909090909090909, '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': '875890', 'n_tokens_mistral': 480, 'n_tokens_neox': 457, 'n_words': 91}