<s> import subprocess <EOL> import json <EOL> def reviews ( project , status = "<STR_LIT>" , branch = "<STR_LIT>" ) : <EOL> arr = [ ] <EOL> cmd = '<STR_LIT>' '<STR_LIT>' '<STR_LIT>' % ( status , project , branch ) <EOL> p = subprocess . Popen ( [ cmd ] , shell = True , stdin = subprocess . PIPE , <EOL> stdout = subprocess . PIPE , stderr = subprocess . PIPE ) <EOL> stdout = p . stdout <EOL> for line in stdout . readlines ( ) : <EOL> review = json . loads ( line ) <EOL> if '<STR_LIT>' in review : <EOL> arr . append ( review ) <EOL> return arr </s>
