<s> """<STR_LIT>""" <EOL> from __future__ import print_function <EOL> __author__ = '<STR_LIT>' <EOL> import sys <EOL> import json <EOL> def status ( message , dry_run = False ) : <EOL> return { "<STR_LIT:message>" : message , "<STR_LIT>" : dry_run } <EOL> def process_input ( function ) : <EOL> """<STR_LIT>""" <EOL> for item in input_json_lines ( ) : <EOL> yield function ( item ) <EOL> def input_json_lines ( ) : <EOL> """<STR_LIT>""" <EOL> for line in sys . stdin : <EOL> yield json . loads ( line ) <EOL> def to_bool ( str ) : <EOL> if str in [ True , "<STR_LIT:True>" , "<STR_LIT:true>" ] : <EOL> return True <EOL> elif str in [ False , "<STR_LIT:False>" , "<STR_LIT:false>" ] : <EOL> return False <EOL> else : <EOL> raise ValueError ( "<STR_LIT>" % str ) </s>
