<commit_before>$ ->
	window.messages = new window.vtex.Messages.getInstance({ajaxError:true})

	message = 
		content: 
			title: 'Erro 1!'
			detail: 'Ocorreu um erro inesperado nos nossos servidores.'
		type: 'fatal'

	modalOpts = 
		'shown': (m) => 
			console.log("Mostrei", $('.btn',m.domElement))
			$('.btn',m.domElement).focus()
	
	# window.message1 = messages.addMessage(message, modalOpts)

	message = 
		content: 
			title: 'Erro 2'
			detail: 'Ocorreu um erro inesperado nos nossos servidores.'
		type: 'error'

	window.message2 = messages.addMessage(message, true)

	#$.ajax("http://staples.vtexlocal.com.br/Site/OutrasFormasPagamento.aspx?IdSku=2008124&PopupComum=true")<commit_msg>ajusta chamadas no main (usage example)<commit_after>$ ->
  window.messages = new window.vtex.Messages.getInstance({ajaxError:true})

  modalMessage =
    content:
      title: 'Erro 1!'
      detail: 'Ocorreu um erro inesperado nos nossos servidores.'
    type: 'fatal'

  $(window).trigger('addMessage', modalMessage);

  regularMessage =
    content:
      title: 'Erro 2'
      detail: 'Ocorreu um erro inesperado nos nossos servidores.'
    type: 'error'
    timeout: 10 * 1000

  $(window).trigger('addMessage', regularMessage);

  #$.ajax("http://staples.vtexlocal.com.br/Site/OutrasFormasPagamento.aspx?IdSku=2008124&PopupComum=true")
{'fraction_non_alphanumeric': 0.14360508601346297, 'fraction_numerical': 0.01944652206432311, 'mean_word_length': 4.1461538461538465, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '2062103', 'n_tokens_mistral': 527, 'n_tokens_neox': 469, 'n_words': 93}