def process_amendments(congress):
amend_dir = "<STR_LIT>".format(congress['<STR_LIT:src>'],<EOL>congress['<STR_LIT>'])<EOL>logger.info("<STR_LIT>".format(congress['<STR_LIT>']))<EOL>amendments = []<EOL>for root, dirs, files in os.walk(amend_dir):<EOL><INDENT>if "<STR_LIT>" in files and "<STR_LIT>" not in root:<EOL><INDENT>file_path = "<STR_LIT>".format(root)<EOL>logger.debug("<STR_LIT>".format(file_path))<EOL>a = json.loads(open(file_path, '<STR_LIT:r>').read())<EOL>amendment = []<EOL>amendment.append(a['<STR_LIT>'])<EOL>amendment.append(a['<STR_LIT>'])<EOL>if a['<STR_LIT>']:<EOL><INDENT>amendment.append(a['<STR_LIT>'].get('<STR_LIT>',<EOL>None))<EOL><DEDENT>else:<EOL><INDENT>amendment.append(None)<EOL><DEDENT>if a['<STR_LIT>']:<EOL><INDENT>amendment.append(a['<STR_LIT>'].get('<STR_LIT>', None))<EOL><DEDENT>else:<EOL><INDENT>amendment.append(None)<EOL><DEDENT>if a['<STR_LIT>']:<EOL><INDENT>amendment.append(a['<STR_LIT>'].get('<STR_LIT>', None))<EOL><DEDENT>else:<EOL><INDENT>amendment.append(None)<EOL><DEDENT>amendment.append(a['<STR_LIT>'])<EOL>amendment.append(a['<STR_LIT>'])<EOL>amendment.append(a['<STR_LIT:description>'])<EOL>amendment.append(a['<STR_LIT>'])<EOL>amendment.append(a['<STR_LIT>'])<EOL>amendment.append(a.get('<STR_LIT>', None))<EOL>amendment.append(a['<STR_LIT>'])<EOL>amendment.append(a['<STR_LIT>'].get('<STR_LIT>', None))<EOL>amendment.append(a['<STR_LIT>'].get('<STR_LIT>', None))<EOL>amendment.append(a['<STR_LIT>']['<STR_LIT:type>'])<EOL>amendment.append(a['<STR_LIT:status>'])<EOL>amendment.append(a['<STR_LIT>'])<EOL>amendments.append(amendment)<EOL><DEDENT><DEDENT>return amendments if amendments else [[None] * <NUM_LIT>]<EOL>
Traverse amendments for a project