<commit_before>// Copyright 2011 <NAME>
//
// See the README file for license information

// TODO(mtomczak): This should probably be a jQuery extension

function Handle(signal, handler) {
  $(document).bind(signal, function(event, data) {
      handler(data);
  });
}

function Signal(signal, data) {
  $(document).trigger(signal, [data]);
}<commit_msg>Added passthrough to signal handler.<commit_after>// Copyright 2011 <NAME>
//
// See the README file for license information

// TODO(mtomczak): This should probably be a jQuery extension

function Handle(signal, handler) {
  return $(document).bind(signal, function(event, data) {
      handler(data);
  });
}

function Signal(signal, data) {
  return $(document).trigger(signal, [data]);
}
{'fraction_non_alphanumeric': 0.14093959731543623, 'fraction_numerical': 0.010738255033557046, 'mean_word_length': 4.485294117647059, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6323535', 'n_tokens_mistral': 228, 'n_tokens_neox': 216, 'n_words': 68}