<commit_before>/*! backbone.routefilter - v0.1-pre - 2012-08-29
* undefined
* Copyright (c) 2012 <NAME>; Licensed  */

(function(window) {

  var nop = function(){};

  _.extend(Backbone.Router.prototype, {
    before: nop,
    after: nop,
    route: function(route, name, callback) {
      Backbone.history || (Backbone.history = new Backbone.History);
      if (!_.isRegExp(route)) route = this._routeToRegExp(route);
      if (!callback) callback = this[name];
      Backbone.history.route(route, _.bind(function(fragment) {
        var args = this._extractParameters(route, fragment);
        // Call the before filter & if it doesn't return undefined don't run the route
        // callback. This allows the user to return false from within the before
        // filter  to prevent the route from running it's callback.
        if( this.before.apply(this, args) == undefined ){
          callback && callback.apply(this, args);
          this.trigger.apply(this, ['route:' + name].concat(args));
          Backbone.history.trigger('route', this, name, args);
          // Call the after filter no matter what.
          this.after.apply(this, args);
        }
      }, this));
      return this;
    }
  });<commit_msg>rebuilding files<commit_after>/*! backbone.routefilter - v0.1-pre - 2012-08-29
* undefined
* Copyright (c) 2012 <NAME>; Licensed  */

(function(window) {

  var nop = function(){};

  _.extend(Backbone.Router.prototype, {
    before: nop,
    after: nop,
    route: function(route, name, callback) {
      this.before(name);
      Backbone.history || (Backbone.history = new Backbone.History);
      if (!_.isRegExp(route)) route = this._routeToRegExp(route);
      if (!callback) callback = this[name];
      Backbone.history.route(route, _.bind(function(fragment) {
        var args = this._extractParameters(route, fragment);
        callback && callback.apply(this, args);
        this.trigger.apply(this, ['route:' + name].concat(args));
        Backbone.history.trigger('route', this, name, args);
      }, this));
      this.after(name);
      return this;
    }
  });
{'fraction_non_alphanumeric': 0.1448308718437351, 'fraction_numerical': 0.01333968556455455, 'mean_word_length': 2.867403314917127, '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': '2946753', 'n_tokens_mistral': 647, 'n_tokens_neox': 611, 'n_words': 158}