def write_repo_json(self, date=(datetime.date.today()),<EOL>organization='<STR_LIT>', dict_to_write={}, path_ending_type='<STR_LIT>',<EOL>is_list=False, is_dict=False):
for repo in dict_to_write:<EOL><INDENT>path = ('<STR_LIT>' + organization + '<STR_LIT:/>' + repo + '<STR_LIT:/>' +<EOL>path_ending_type + '<STR_LIT:/>' + str(date) + '<STR_LIT>')<EOL>self.checkDir(path)<EOL>with open(path, '<STR_LIT:w>') as out:<EOL><INDENT>if is_list:<EOL><INDENT>out.write('<STR_LIT:[>')<EOL>for value in dict_to_write[repo]:<EOL><INDENT>if is_dict:<EOL><INDENT>for inner_dict in value:<EOL><INDENT>out.write(json.dumps(inner_dict, sort_keys=True,<EOL>indent=<NUM_LIT:4>, separators=('<STR_LIT:U+002C>', '<STR_LIT>')) + '<STR_LIT:U+002C>')<EOL><DEDENT><DEDENT>else:<EOL><INDENT>out.write(json.dumps(value, sort_keys=True,<EOL>indent=<NUM_LIT:4>, separators=('<STR_LIT:U+002C>', '<STR_LIT>')) + '<STR_LIT:U+002C>')<EOL><DEDENT><DEDENT>out.seek(-<NUM_LIT:1>, os.SEEK_END)<EOL>out.truncate()<EOL>out.write('<STR_LIT:]>')<EOL><DEDENT>else:<EOL><INDENT>out.write(json.dumps(dict_to_write[repo], sort_keys=True,<EOL>indent=<NUM_LIT:4>, separators=('<STR_LIT:U+002C>', '<STR_LIT>')))<EOL><DEDENT><DEDENT>out.close()<EOL><DEDENT>
#Writes repo specific data to JSON.