<s> import json <EOL> while True : <EOL> code = raw_input ( '<STR_LIT>' ) <EOL> if not code : <EOL> break <EOL> name = raw_input ( '<STR_LIT>' ) <EOL> website = raw_input ( '<STR_LIT>' ) <EOL> filename = '<STR_LIT>' . format ( code . lower ( ) ) <EOL> data = { <EOL> '<STR_LIT:name>' : name , <EOL> '<STR_LIT:code>' : code . upper ( ) , <EOL> } <EOL> if website : <EOL> data [ '<STR_LIT>' ] = website <EOL> open ( '<STR_LIT>' + filename , '<STR_LIT:w>' ) . write ( json . dumps ( data , sort_keys = True , <EOL> indent = <NUM_LIT:4> , separators = ( '<STR_LIT:U+002C>' , '<STR_LIT>' ) ) ) <EOL> print open ( '<STR_LIT>' + filename ) . read ( ) <EOL> print "<STR_LIT>" </s>
