<s> import json <EOL> import yaml <EOL> import sys <EOL> def main ( argv ) : <EOL> if len ( argv ) < <NUM_LIT:2> : <EOL> sys . stderr . write ( '<STR_LIT>' % argv [ <NUM_LIT:0> ] ) <EOL> sys . exit ( <NUM_LIT:1> ) <EOL> with open ( argv [ <NUM_LIT:1> ] ) as yaml_input : <EOL> data = yaml . safe_load ( yaml_input ) <EOL> print json . dumps ( data , indent = <NUM_LIT:2> ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( sys . argv ) </s>
