<commit_before>(function($) {
	$('.js-cropperfield').each(function() {
		var field = $(this);
		var image = field.find('.js-cropperfield__target');
		var dataField = field.find('.js-cropperfield__data');
		var fieldID = field.attr('data-field-id');
		image.cropper({
			multiple: true,
			autoCropArea: 1,
			done: function(data) {
				dataField.val(JSON.stringify(data));
			}
		});

	});
}(jQuery));<commit_msg>JS: re-enable on page save & pjax<commit_after>(function($) {

	var CropperField = {
		init: function() {
			var field = $(this);
			var image = field.find('.js-cropperfield__target');
			var dataField = field.find('.js-cropperfield__data');
			var fieldID = field.attr('data-field-id');
			image.cropper({
				multiple: true,
				autoCropArea: .8,
				done: function(data) {
					dataField.val(JSON.stringify(data));
				}
			});
		}
	};

	$('.js-cropperfield').each(CropperField.init);

	// Set the init method to re-run if the page is saved or pjaxed
	if($.entwine) {
		$.entwine('ss', function($) {
			$('.js-cropperfield').entwine({
				onmatch: function() {
					$('.js-cropperfield').each(CropperField.init);
				}
			});
		});
	}

}(jQuery));
{'fraction_non_alphanumeric': 0.1943250214961307, 'fraction_numerical': 0.0017196904557179708, 'mean_word_length': 3.511627906976744, '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': '1322743', 'n_tokens_mistral': 496, 'n_tokens_neox': 411, 'n_words': 74}