<s> import justext <EOL> def justy ( html , lang = '<STR_LIT>' ) : <EOL> lang = { '<STR_LIT>' : '<STR_LIT>' , '<STR_LIT>' : '<STR_LIT>' } [ lang ] <EOL> jt = justext . justext ( html , justext . get_stoplist ( lang ) ) <EOL> return jt <EOL> def justyTitle ( jt ) : <EOL> res = [ x . text for x in jt if x . is_heading and not x . is_boilerplate ] <EOL> if res : <EOL> return res [ <NUM_LIT:0> ] <EOL> return '<STR_LIT>' <EOL> def justyBody ( jt ) : <EOL> res = [ x . text for x in jt if not x . is_heading and not x . is_boilerplate ] <EOL> return '<STR_LIT:\n>' . join ( [ '<STR_LIT>' . format ( x ) for x in res ] ) </s>
