<commit_before>function edit(hyperlink)  {
	$('#form')[0].reset(); // Reset form on modals. 

	// AJAX load data form ajax 
	$.ajax({
		url      : hyperlink, 
		type     : 'GET', 
		dataType : 'JSON', 
		success  : function(data) {
			$('[name="id"]').val(data.id);
			$('[name="comment"]').val(data.comment); 

			// Trigger modal. 
			$('#modal_form').modal('show'); // Show bootstrap modal when complete loaded.
		},
		error    : function(jqXHR, textStatus, errorThrown) {
			alert('Error get data from ajax');
		}
	});
}<commit_msg>Update crud.js<commit_after>function edit(hyperlink)  {
	$('#form')[0].reset(); // Reset form on modals. 

	// AJAX load data from ajax 
	$.ajax({
		url      : hyperlink, 
		type     : 'GET', 
		dataType : 'JSON', 
		success  : function(data) {
			$('[name="id"]').val(data.id);
			$('[name="comment"]').val(data.comment); 

			// Trigger modal. 
			$('#modal_form').modal('show'); // Show bootstrap modal when complete loaded.
		},
		error    : function(jqXHR, textStatus, errorThrown) {
			alert('Error get data from ajax');
		}
	});
}
{'fraction_non_alphanumeric': 0.20037278657968313, 'fraction_numerical': 0.001863932898415657, 'mean_word_length': 3.0836501901140685, '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': '6774139', 'n_tokens_mistral': 425, 'n_tokens_neox': 369, 'n_words': 83}