<commit_before>var App = window.App = Skull.View.extend({
  el: 'html',

  events: {
    "click #close-global-alert" : "closeAlert",
    "click a#user-menu" : "toggleMenu",
    "click a.mobile-menu-link" : "mobileMenu",
    "click .zendesk_widget" : "showWidget",
    "click .raiseit-off" : "confirmIntegration",
    "click #pg_search_submit" : "searchProject",
  },

  openAlert: function(){
    if($('#global-alert').length === 0 || this.$('body').data('mobile')){
      return;
    }
    if(!window.store.get('globalClosedCookies')){
      $('#global-alert').show();
      $('body').css('padding-top', '30px');
      $('#global-alert')
        .css('z-index', '100');
    }
    else{
      this.closeAlert();
    }
  },

  confirmIntegration: function(event){
    if(!confirm('Tem certeza que deseja integrar?')){
      e.preventDefault();
    }
  },

  closeAlert: function(event){
    $('body').css('padding-top', '0');
    $('#global-alert').slideUp('slow');
    window.store.set('globalClosedCookies', true);
  },<commit_msg>fix confirm dialog<commit_after>var App = window.App = Skull.View.extend({
  el: 'html',

  events: {
    "click #close-global-alert" : "closeAlert",
    "click a#user-menu" : "toggleMenu",
    "click a.mobile-menu-link" : "mobileMenu",
    "click .zendesk_widget" : "showWidget",
    "click .raiseit-off" : "confirmIntegration",
    "click #pg_search_submit" : "searchProject",
  },

  openAlert: function(){
    if($('#global-alert').length === 0 || this.$('body').data('mobile')){
      return;
    }
    if(!window.store.get('globalClosedCookies')){
      $('#global-alert').show();
      $('body').css('padding-top', '30px');
      $('#global-alert')
        .css('z-index', '100');
    }
    else{
      this.closeAlert();
    }
  },

  confirmIntegration: function(event){
    return confirm('Tem certeza que deseja integrar?');
  },

  closeAlert: function(event){
    $('body').css('padding-top', '0');
    $('#global-alert').slideUp('slow');
    window.store.set('globalClosedCookies', true);
  },
{'fraction_non_alphanumeric': 0.2148111819519372, 'fraction_numerical': 0.006866110838646395, 'mean_word_length': 3.3312101910828025, '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': '6323533', 'n_tokens_mistral': 709, 'n_tokens_neox': 688, 'n_words': 112}