<s> class FlockMessage : <EOL> __slots__ = ( "<STR_LIT:type>" , "<STR_LIT:body>" ) <EOL> shepherd_types = ( "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) <EOL> sheep_types = ( "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT:result>" ) <EOL> def __init__ ( self , type , body ) : <EOL> self . type = type <EOL> self . body = body <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" % ( <EOL> self . type , self . body <EOL> ) <EOL> def to_dict ( self ) : <EOL> return { "<STR_LIT:type>" : self . type , "<STR_LIT:body>" : self . body } <EOL> @ staticmethod <EOL> def from_dict ( raw ) : <EOL> return FlockMessage ( raw [ "<STR_LIT:type>" ] , raw [ "<STR_LIT:body>" ] ) <EOL> class TestRequest : <EOL> """<STR_LIT>""" <EOL> __slots__ = ( "<STR_LIT>" , ) <EOL> def __init__ ( self , submission_id ) : <EOL> self . submission_id = submission_id <EOL> def to_dict ( self ) : <EOL> return { "<STR_LIT>" : str ( self . submission_id ) } <EOL> @ staticmethod <EOL> def from_dict ( raw ) : <EOL> return TestRequest ( raw [ "<STR_LIT>" ] ) <EOL> class InternalTestRequest : <EOL> """<STR_LIT>""" <EOL> __slots__ = ( "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) <EOL> def __init__ ( self , submission_id , timeout , environment ) : <EOL> self . submission_id = submission_id <EOL> self . timeout = timeout <EOL> self . environment = environment <EOL> def to_dict ( self ) : <EOL> return { <EOL> "<STR_LIT>" : self . submission_id , <EOL> "<STR_LIT>" : self . timeout , <EOL> "<STR_LIT>" : self . environment <EOL> } <EOL> @ staticmethod <EOL> def from_dict ( raw ) : <EOL> return InternalTestRequest ( <EOL> raw [ "<STR_LIT>" ] , <EOL> raw [ "<STR_LIT>" ] , <EOL> raw [ "<STR_LIT>" ] <EOL> ) </s>
