<s> """<STR_LIT>""" <EOL> import sys <EOL> import cybox . bindings . cybox_core as cybox_core_binding <EOL> from cybox . core import Observables <EOL> def parse ( xml_file ) : <EOL> observables_obj = cybox_core_binding . parse ( xml_file ) <EOL> observables = Observables . from_obj ( observables_obj ) <EOL> return observables <EOL> def main ( ) : <EOL> if len ( sys . argv ) != <NUM_LIT:2> : <EOL> print ( "<STR_LIT>" ) <EOL> exit ( <NUM_LIT:1> ) <EOL> xml_file = sys . argv [ - <NUM_LIT:1> ] <EOL> observables = parse ( xml_file ) <EOL> print ( observables . to_dict ( ) ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> main ( ) </s>
