<s> import logging <EOL> from see . observer import Observable , Observer <EOL> class Context ( Observable ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , identifier ) : <EOL> super ( Context , self ) . __init__ ( identifier ) <EOL> def cleanup ( self ) : <EOL> raise NotImplementedError ( "<STR_LIT>" ) <EOL> class Hook ( Observer ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , parameters ) : <EOL> super ( Hook , self ) . __init__ ( parameters . identifier , parameters . context ) <EOL> self . configuration = parameters . configuration <EOL> self . logger = logging . getLogger ( <EOL> '<STR_LIT>' % ( self . __module__ , self . __class__ . __name__ ) ) <EOL> def cleanup ( self ) : <EOL> raise NotImplementedError ( "<STR_LIT>" ) </s>
