<commit_before>require('ember-handlebars/ext');

var EmberHandlebars = Ember.Handlebars, getPath = Ember.Handlebars.getPath;

var ActionHelper = EmberHandlebars.ActionHelper = {};

ActionHelper.registerAction = function(actionName, eventName, target, view) {
  var actionId = (++jQuery.uuid).toString(),
      existingHandler = view[eventName];

  function handler(event) {
    if ($(event.target).closest('[data-ember-action]').attr('data-ember-action') === actionId) {
      if ('function' === typeof target.send) {
        return target.send(actionName);
      } else {
        return target[actionName](event);
      }
    }<commit_msg>Use Ember.$ instead of $ global<commit_after>require('ember-handlebars/ext');

var EmberHandlebars = Ember.Handlebars, getPath = Ember.Handlebars.getPath;

var ActionHelper = EmberHandlebars.ActionHelper = {};

ActionHelper.registerAction = function(actionName, eventName, target, view) {
  var actionId = (++jQuery.uuid).toString(),
      existingHandler = view[eventName];

  function handler(event) {
    if (Ember.$(event.target).closest('[data-ember-action]').attr('data-ember-action') === actionId) {
      if ('function' === typeof target.send) {
        return target.send(actionName);
      } else {
        return target[actionName](event);
      }
    }
{'fraction_non_alphanumeric': 0.15030674846625766, 'fraction_numerical': 0.0, 'mean_word_length': 4.09765625, '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': '4732163', 'n_tokens_mistral': 389, 'n_tokens_neox': 384, 'n_words': 70}