in scancode/lib/util.py [0:0]
def name(self): """ *name* (:class:`str`) is the name of the registered pattern. """ return self.args[0]