original_docstring: This returns an empty dict rather than raising an error if the file contains invalid json
docstring: This returns an empty dict rather than raising an error if the file contains invalid json
docstring_tokens: This returns an empty dict rather than raising an error if the file contains invalid json
code: def safe_read_json(file_path):
      """This returns an empty dict rather than raising an error if the file contains invalid json"""
      try:
          return read_json_file(file_path)
      except (json.JSONDecodeError, FileNotFoundError):
          logger.error('failed to read {} got exception'.format(file_path), exc_info=True)
      return {}
code_tokens: def safe_read_json ( file_path ) : try : return read_json_file ( file_path ) except ( json . JSONDecodeError , FileNotFoundError ) : logger . error ( 'failed to read {} got exception' . format ( file_path ) , exc_info = True ) return { }
short_docstring: This returns an empty dict rather than raising an error if the file contains invalid json
short_docstring_tokens: This returns an empty dict rather than raising an error if the file contains invalid json
comment: """This returns an empty dict rather than raising an error if the file contains invalid json"""