<commit_before>/**
 * Contacts management script allowing ajax usage.
 *
 * @author <NAME> <<EMAIL>>
 * @version 0.4.0
 */
require(['jquery'], function($) {
	$(document).ready(function() {
		var setNote;

		setNote = function($domObject, jsonResponse) {
			var cleaned, app, $container, _i, _len;

			if (jsonResponse['app-name']) {

				app = jsonResponse['app-name'];

				$('[data-wity-note-app="' + app + '"]').remove();

				if (jsonResponse.notes.length > 0) {
					$container = $('<div class="row" data-wity-note-app="' + app + '"></div>');
					$domObject.before($container);

					for (_i = 0, _len = jsonResponse.notes.length; _i < _len; ++_i) {
						$container.append('<div class="alert alert-' + jsonResponse.notes[_i].level + '" data-note-code="' + jsonResponse.notes[_i].code + '">'
							+ '<button type="button" class="close" data-dismiss="alert">&times;</button>'
							+ jsonResponse.notes[_i].message
							+ '</div>');
					}
				}
			}
		};

		$('body').on('click', '[data-witycms-submit="ajax"]', function() {
			var $form, $button, url, method, data;

			$button = $(this);
			$button.button('loading');
			$form = $button.closest('form');
			url = $form.attr('action');
			method = $form.attr('method');
			data = $form.serialize();

			$('.wity-app.app-contact :input').attr('disabled', true);
<commit_msg>Removed an extra class="row" in contact app<commit_after>/**
 * Contacts management script allowing ajax usage.
 *
 * @author <NAME> <<EMAIL>>
 * @version 0.4.0
 */
require(['jquery'], function($) {
	$(document).ready(function() {
		var setNote;

		setNote = function($domObject, jsonResponse) {
			var cleaned, app, $container, _i, _len;

			if (jsonResponse['app-name']) {

				app = jsonResponse['app-name'];

				$('[data-wity-note-app="' + app + '"]').remove();

				if (jsonResponse.notes.length > 0) {
					$container = $('<div data-wity-note-app="' + app + '"></div>');
					$domObject.before($container);

					for (_i = 0, _len = jsonResponse.notes.length; _i < _len; ++_i) {
						$container.append('<div class="alert alert-' + jsonResponse.notes[_i].level + '" data-note-code="' + jsonResponse.notes[_i].code + '">'
							+ '<button type="button" class="close" data-dismiss="alert">&times;</button>'
							+ jsonResponse.notes[_i].message
							+ '</div>');
					}
				}
			}
		};

		$('body').on('click', '[data-witycms-submit="ajax"]', function() {
			var $form, $button, url, method, data;

			$button = $(this);
			$button.button('loading');
			$form = $button.closest('form');
			url = $form.attr('action');
			method = $form.attr('method');
			data = $form.serialize();

			$('.wity-app.app-contact :input').attr('disabled', true);

{'fraction_non_alphanumeric': 0.22470238095238096, 'fraction_numerical': 0.003720238095238095, 'mean_word_length': 3.54222972972973, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '7521540', 'n_tokens_mistral': 1087, 'n_tokens_neox': 894, 'n_words': 177}