def create_report(self):
data = self.create_data()<EOL>try:<EOL><INDENT>json_string = json.dumps(data)<EOL><DEDENT>except UnicodeDecodeError as e:<EOL><INDENT>log.error('<STR_LIT>', exc_info=e)<EOL>self.debug_bad_encoding(data)<EOL>raise<EOL><DEDENT>log_string = re.sub(r'<STR_LIT>',<EOL>'<STR_LIT>', json_string)<EOL>log.debug(log_string)<EOL>log.debug('<STR_LIT>', len(data['<STR_LIT>']))<EOL>for source_file in data['<STR_LIT>']:<EOL><INDENT>log.debug('<STR_LIT>', source_file['<STR_LIT:name>'],<EOL>sum(filter(None, source_file['<STR_LIT>'])),<EOL>len(source_file['<STR_LIT>']))<EOL><DEDENT>return json_string<EOL>
Generate json dumped report for coveralls api.