<commit_before>(function(){
	function checkRooms() {
		// Show room name in the input box (placeholder)
		$('.room-header').each(function() {
			$(this).parent().find('.room-textarea')
				.attr('placeholder', $(this).find('.room-marg .room-name').text());
		});
	}
	// Opened rooms
	checkRooms();
	// Trigger from clicking on forums or orgs
	$('.roster-forums li, .roster-orgs li').click(function() {
		checkRooms();
	});
})();<commit_msg>delegate event as possible as I can<commit_after>(function(){
	function checkRooms() {
		// Show room name in the input box (placeholder)
		$('.room-header').each(function() {
			$(this).parent().find('.room-textarea')
				.attr('placeholder', $(this).find('.room-marg .room-name').text());
		});
	}
	// Opened rooms
	checkRooms();
	// Trigger from clicking on forums or orgs
	$('.roster-forums li, .roster-orgs li').click(function() {
		checkRooms();
	});
	// delegate event
	$('#org_view').on('click', '.room-textarea', function() {
		checkRooms();
	});
})();
{'fraction_non_alphanumeric': 0.22277722277722278, 'fraction_numerical': 0.0, 'mean_word_length': 4.01, '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': '4399636', 'n_tokens_mistral': 356, 'n_tokens_neox': 332, 'n_words': 74}