<commit_before><div id="le-GameText" class="scroll-shadow-soft">
	<!-- <span class="comment"></span> -->
</div>

<script type="text/javascript">

// Fix positioning of PGN box if no time controls.
// @todo Do this a better way.
if (!_ld_.game.clock) {
	// -32px

	$('.le-game_control').css({'top':'-23px'});
	$('#le-GameText').css({'top':'0px'});
}

var le_history = chess.history();

// Build up a string of what we need to set #le-GameText to and then set it.
// This seems to be faster than .append()ing after each move we find.
var pgn = '';
for (var i = 0, l = le_history.length; i < l; ++i) {
	if (i % 2 === 0) {
		var moveNum = Math.ceil((i + 1) / 2);
		pgn += ((moveNum === 1 ? '' : '<br />') + '<span class="le-move notranslate">' + moveNum + '.</span>');
	}

	pgn += ('<a class="le-move notranslate" id="le-move-' + (i + 1) + '">' + le_history[i] + '</a>');
}

$('#le-GameText').html(pgn);

// Hide the PGN box if we don't have any moves yet.
if (le_history.length === 0) {
	$('#le-GameText').hide();
	$('.le-game_control').hide();
}

// Add moveOn class to last move.
$('#le-GameText a.le-move:last-child').addClass('moveOn');

$('#le-GameText').on('click', 'a.le-move', function() {
	$('#le-GameText .moveOn').removeClass('moveOn');
	$(this).addClass('moveOn');
	
	var moveNum = $(this).prop('id').split('-')[2];
	
	goToMove(moveNum, false);
});

// Replacement for having onclick="this.blur();" on the elements.
$('#le-GameText').on('focus', 'a.le-move', function() {
	$(this).blur();
});

$('#le-GameText').scrollTop($('#le-GameText')[0].scrollHeight);

</script><commit_msg>stop autoplay if clicking on move<commit_after><div id="le-GameText" class="scroll-shadow-soft">
	<!-- <span class="comment"></span> -->
</div>

<script type="text/javascript">

// Fix positioning of PGN box if no time controls.
// @todo Do this a better way.
if (!_ld_.game.clock) {
	// -32px

	$('.le-game_control').css({'top':'-23px'});
	$('#le-GameText').css({'top':'0px'});
}

var le_history = chess.history();

// Build up a string of what we need to set #le-GameText to and then set it.
// This seems to be faster than .append()ing after each move we find.
var pgn = '';
for (var i = 0, l = le_history.length; i < l; ++i) {
	if (i % 2 === 0) {
		var moveNum = Math.ceil((i + 1) / 2);
		pgn += ((moveNum === 1 ? '' : '<br />') + '<span class="le-move notranslate">' + moveNum + '.</span>');
	}

	pgn += ('<a class="le-move notranslate" id="le-move-' + (i + 1) + '">' + le_history[i] + '</a>');
}

$('#le-GameText').html(pgn);

// Hide the PGN box if we don't have any moves yet.
if (le_history.length === 0) {
	$('#le-GameText').hide();
	$('.le-game_control').hide();
}

// Add moveOn class to last move.
$('#le-GameText a.le-move:last-child').addClass('moveOn');

$('#le-GameText').on('click', 'a.le-move', function() {
	$('#le-GameText .moveOn').removeClass('moveOn');
	$(this).addClass('moveOn');
	
	var moveNum = $(this).prop('id').split('-')[2];

	stopAutoplay();
	goToMove(moveNum, false);
});

// Replacement for having onclick="this.blur();" on the elements.
$('#le-GameText').on('focus', 'a.le-move', function() {
	$(this).blur();
});

$('#le-GameText').scrollTop($('#le-GameText')[0].scrollHeight);

</script>
{'fraction_non_alphanumeric': 0.25544492843808336, 'fraction_numerical': 0.009334163036714374, 'mean_word_length': 3.9385560675883258, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 27, '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': '6046590', 'n_tokens_mistral': 1243, 'n_tokens_neox': 1203, 'n_words': 297}