in scancode/lib/util.py [0:0]
def pattern_factory(self): """ *pattern_factory* (:class:`~collections.abc.Callable`) is the registered pattern factory. """ return self.args[1]