<commit_before>var locastyle = locastyle || {};

locastyle.popover = (function() {
  'use strict';

  function init() {
    getPopover();
  }

  function getPopover(){
    $('[data-toggle="popover"]').each(function(index, element){
      var dataTrigger = $(element).data("trigger");
      var eventType = dataTrigger == 'hover' ? 'mouseenter' : 'click'
      setAction(element, eventType);
    })
  }

  function setAction(element, eventType){
    $(element).on(eventType, function(evt){
      evt.preventDefault();
      evt.stopPropagation();
      var title = $(element).data("title");
      var content = $(element).data("content");
      var placement = $(element).data("placement");
      locastyle.templates.popover($(element), title, content, placement)
    })
  }<commit_msg>renomeando arg, var evt<commit_after>var locastyle = locastyle || {};

locastyle.popover = (function() {
  'use strict';

  function init() {
    getPopover();
  }

  function getPopover(){
    $('[data-toggle="popover"]').each(function(index, element){
      var dataTrigger = $(element).data("trigger");
      var eventType = dataTrigger == 'hover' ? 'mouseenter' : 'click'
      setAction(element, eventType);
    })
  }

  function setAction(element, eventType){
    $(element).on(eventType, function(event){
      event.preventDefault();
      event.stopPropagation();
      var title = $(element).data("title");
      var content = $(element).data("content");
      var placement = $(element).data("placement");
      locastyle.templates.popover($(element), title, content, placement)
    })
  }
{'fraction_non_alphanumeric': 0.1733921815889029, 'fraction_numerical': 0.0, 'mean_word_length': 3.695266272189349, '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': '6533040', 'n_tokens_mistral': 475, 'n_tokens_neox': 475, 'n_words': 93}