<s> def mon_hosts ( mons ) : <EOL> """<STR_LIT>""" <EOL> for m in mons : <EOL> if m . count ( '<STR_LIT::>' ) : <EOL> ( name , host ) = m . split ( '<STR_LIT::>' ) <EOL> else : <EOL> name = m <EOL> host = m <EOL> if name . count ( '<STR_LIT:.>' ) > <NUM_LIT:0> : <EOL> name = name . split ( '<STR_LIT:.>' ) [ <NUM_LIT:0> ] <EOL> yield ( name , host ) <EOL> def remote_shortname ( socket ) : <EOL> """<STR_LIT>""" <EOL> return socket . gethostname ( ) . split ( '<STR_LIT:.>' , <NUM_LIT:1> ) [ <NUM_LIT:0> ] </s>
