Hints on handlers
976218
function createHint()
		{
			var hint = document.createElement('div');
			hint.className = 'geHint';
			hint.style.whiteSpace = 'nowrap';
			hint.style.position = 'absolute';
			
			return hint;
		}
1349740
private static void determineHandlers() {
        /*
         * find the handlers that we are dispatching to
         */
    	if (textHandler != null && !logRepositoryConfiguration.isTextEnabled())
    		textHandler = null ;
    			// Don't do this work if only text and text is not enabled (if so, it will always be null)  666241.1
    	if (binaryHandler != null && !logRepositoryConfiguration.isTextEnabled())
    		return ;
        Handler[] handlers = Logger.getLogger("").getHandlers();
        for (Handler handler : handlers) {
            String name = handler.getClass().getName();
            if (BINLOGGER_HANDLER_NAME.equals(name)) {
                binaryHandler = (LogRecordHandler) handler;
            } else if (TEXTLOGGER_HANDLER_NAME.equals(name)) {
                textHandler = (LogRecordTextHandler) handler;
            }
        }
    }
392790
function(handler) {
      for (var i = 0; i < this.lines_.length; ++i) {
        var line = this.lines_[i];
        handler.apply(this, line);
      }
    }
1189533
def handler(self):
		''
		return ft.partial(self.base.handler, parameter=self.parameter)\
			if self.parameter else self.base.handler
1327827
function(method) {
            return _.find(this.methods, function(handler) {
                return handler.regexp.test(method);
            }) || this.defaultHandler;
        }
716475
function _hook(slf, name, handlerInfo, params) {
  if (!slf.__hooks[name]) return;

  slf.__hooks[name].forEach(function (hook) {
    hook(handlerInfo, params);
  });
}
296284
def _visit_handlers(handlers, visitor, prefix, suffixes):
    

    results = []
    for handler in handlers:
        for suffix in suffixes:
            func = getattr(handler, '{}_{}'.format(prefix, suffix).lower(), None)
            if func:
                results.append(visitor(suffix, func))

    return results
388696
function(handler) {
  var argLength = handler.length;
  var lastArgName = lastArgumentName(handler);

  // handler(req, res)
  // handler(req, res, next)
  // handler(err, req, res, next)
  if (lastArgName === "next" || argLength === 2) return handler;

  if (argLength > 4) {
    // handler(err, req, res, next, _)
    return function(err, req, res, next) {
      handler(err, req, res, next, function(e) {
        if (e) {
          if (err) e.innerError = err;
          return next(e);
        }
      });
    };
  } else if (argLength > 3) {
    // handler(req, res, next, _)
    return function(req, res, next) {
      handler(req, res, next, function(err) {
        if (err) return next(err);
      });
    };
  } else if (argLength > 2) {
    // handler(req, res, _)
    return function(req, res, next) {
      handler(req, res, function(err) {
        if (err) return next(err);
      });
    };
  }
}
463911
function(handler, options) {
        var active = this.active;
        if(active) {
            this.deactivate();
        }
        this.handler = new handler(this, this.callbacks, options);
        if(active) {
            this.activate();
        }
    }
1260591
function changeHandler(eventOptions = {}) {
    const { key, silent } = eventOptions;
    const def = defs.get(this);

    if (key && key in def.keys && !silent) {
        triggerOne(this, 'set', eventOptions);
        triggerOne(this, 'modify', eventOptions);
    }
}
1230002
def evaluate_handler(handler)
      case handler
      when Symbol
        target.method(handler)
      when Proc
        if handler.arity.zero?
          proc { instance_exec(&handler) }
        else
          proc { |_exception| instance_exec(_exception, &handler) }
        end
      end
    end
279160
protected void detectHandlerMethods() {

		processAtmostRequestMappingInfo();

		try {
			registerNativeFunctionHandlers(
					handlerMappingInfoStorage.getHandlerMappingInfos(),
					NativeFunctionResponseBodyHandler.class);
			registerNativeFunctionHandlers(
					handlerMappingInfoStorage.getHandlerWithViewMappingInfos(),
					NativeFunctionModelAndViewHandler.class);

		} catch (Exception e) {
			e.printStackTrace();
		}
	}
862379
function(arg, handler) {
		handler = handler ? handler : this.spirit;
		gui.Array.make(arg).forEach(function(type) {
			if (this._addchecks(type, [handler])) {
				if (!this._handlers[type]) {
					this._handlers[type] = [];
				}
				this._handlers[type].push(handler);
			}
		}, this);
		return this.spirit;
	}
454606
def add_handler(self, handler):
        """"""
        if not callable(handler):
            raise TypeError("'%s' is not callable." % handler)

        self.append(handler)
255581
def event_hint_with_exc_info(exc_info=None):
    # type: (ExcInfo) -> Dict[str, Optional[ExcInfo]]
    """"""
    if exc_info is None:
        exc_info = sys.exc_info()
    else:
        exc_info = exc_info_from_error(exc_info)
    if exc_info[0] is None:
        exc_info = None
    return {"exc_info": exc_info}
685761
function initAppHandlers (cfg = {}) {
	_.each(handlers, (handler, name) => App[name] = _.partial(handler, _, (_.isFunction(cfg[name])) ? cfg[name] : _.noop));
}
334977
function(arg, handler) {
		handler = handler ? handler : this.spirit;
		gui.Array.make(arg).forEach(function(type) {
			if (this._removechecks(type, [handler])) {
				if (this._handlers[type]) { // weirdo Gecko condition...
					var index = this._handlers[type].indexOf(type);
					gui.Array.remove(this._handlers[type], index);
					if (this._handlers[type].length === 0) {
						delete this._handlers[type];
					}
				}
			}
		}, this);
		return this.spirit;
	}