<commit_before>var dialogIndex = 1;

function displayErrorMessage(message, title, width) {
  if (title === undefined)
    title = "Error";
  if (message === undefined)
    message = "An unexpected error occured.";
  if (width === undefined)
    width = 300;
    
  dialogId = "dialog_"+dialogIndex;
  
  dialogHtml = $("<div/>").
                  attr('id', dialogId).
                  attr('title', title).
                  html(message).
                  css('display', 'none');
  
  $('body').append(dialogHtml);
  
  $('#'+dialogId).dialog({
		autoOpen: true,
		width: width,
		buttons: {
			"Ok": function() { 
				$(this).dialog("close"); 
			} 
		},
		modal: true
	});
	
  dialogIndex++;<commit_msg>MISC - Improve dialog styles<commit_after>var dialogIndex = 1;

function displayErrorMessage(message, title, width) {
  if (title === undefined)
    title = "Error";
  if (message === undefined)
    message = "An unexpected error occured.";
  if (width === undefined)
    width = 300;
    
  dialogId = "dialog_"+dialogIndex;
  
  dialogHtml = $("<div/>").
                  attr('id', dialogId).
                  attr('title', title).
                  append("<h4>").
                  append('<span class="ui-icon ui-icon-alert" style="float: left; margin-right: .2em;"></span>').
                  append(message).
                  append("</h4>").
                  addClass('ui-state-highlight').
                  css('display', 'none');
  
  $('body').append(dialogHtml);
  
  $('#'+dialogId).dialog({
		autoOpen: true,
		width: width,
		buttons: {
			"Ok": function() { 
				$(this).dialog("close"); 
			} 
		},
    modal: true
	});
	
  dialogIndex++;
{'fraction_non_alphanumeric': 0.17703349282296652, 'fraction_numerical': 0.006578947368421052, 'mean_word_length': 2.1625708884688093, 'pattern_counts': {'":': 2, '<': 9, '<?xml version=': 0, '>': 9, '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': '397009', 'n_tokens_mistral': 548, 'n_tokens_neox': 496, 'n_words': 110}