<commit_before>function initializeWebapp()
{
    if (window.confirm("${confirmInitialize}"))
    {
        acceptCloseGlobal();
		var controller = getController();
		    controller.execute('${labelInitialize}', this, 'uixul', 'Initialize');
    }
}

function releaseController()
{
	getController().stop();
}

function setupCompatibility(event)
{
	wCore.debug('setupCompatibility');
	
	// wForm.
	
	var form = document.createElement('wform');
	form.setAttribute('id', 'searchResultEditForm');
	form.setAttribute('attachment', 'globalSearchResultsList/editcomponent');
	document.getElementById('wmodule_searchresults').appendChild(form);
	
	// Controller.
	
	var controller = getController();
	
	controller.executeJSON = function (module, action, parameters, noCache) {
		return wCore.executeJSON(module, action, parameters, null, noCache);
	};
	
	controller.createRequest = function (method) {
		method = (method && method.toLowerCase() == 'post') ? 'post' : 'get';
		return new wServerRequest(this.controllerUrl, method);
	};
	
	controller.execute = function (label, senderObject, module, action, parameters, httpMethod) {
		var params = new wControllerExecuteParameters();
		params.actionLabel = label;
		params.senderObject = senderObject;
		params.module = module;
		params.action = action;
		params.requestParameters = parameters;
		params.httpMethod = httpMethod;
		return this.executeWithParameters(params);
	};<commit_msg>[FIX] setupCompatibily au chargement de l'éditeur de page<commit_after>function initializeWebapp()
{
    if (window.confirm("${confirmInitialize}"))
    {
        acceptCloseGlobal();
		var controller = getController();
		    controller.execute('${labelInitialize}', this, 'uixul', 'Initialize');
    }
}

function releaseController()
{
	getController().stop();
}

function setupCompatibility(event)
{
	wCore.debug('setupCompatibility');
	
	// wForm.
	var wSearchResults = document.getElementById('wmodule_searchresults'); 
	if (wSearchResults)
	{
		var form = document.createElement('wform');
		form.setAttribute('id', 'searchResultEditForm');
		form.setAttribute('attachment', 'globalSearchResultsList/editcomponent');
		wSearchResults.appendChild(form);
	}
	
	// Controller.
	
	var controller = getController();
	
	controller.executeJSON = function (module, action, parameters, noCache) {
		return wCore.executeJSON(module, action, parameters, null, noCache);
	};
	
	controller.createRequest = function (method) {
		method = (method && method.toLowerCase() == 'post') ? 'post' : 'get';
		return new wServerRequest(this.controllerUrl, method);
	};
	
	controller.execute = function (label, senderObject, module, action, parameters, httpMethod) {
		var params = new wControllerExecuteParameters();
		params.actionLabel = label;
		params.senderObject = senderObject;
		params.module = module;
		params.action = action;
		params.requestParameters = parameters;
		params.httpMethod = httpMethod;
		return this.executeWithParameters(params);
	};
{'fraction_non_alphanumeric': 0.132996632996633, 'fraction_numerical': 0.0, 'mean_word_length': 5.307855626326964, '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': '1349440', 'n_tokens_mistral': 870, 'n_tokens_neox': 825, 'n_words': 176}