Lived there for nearly a decade, and I've seen my fair share: drug addicts (yes, plural) rolling in the streets in their own feces; people (yes, plural) with open, festering wounds, begging for money; had a psychotic homeless man throw a bicycle at me; followed someone down the street in SOMA, watching as they systematically peered into car windows with a crowbar in their hand; had an unintentional standoff with a man in Van Ness station whom I encountered while he was fleeing from an attack on the platform with an 8-inch butcher knife (a fireman leapt onto him and I kicked away the knife). I chased down someone who snatched an iPhone from a lady on the street (in retrospect this was not my smartest moment, but I did get the phone back).
Bad as all of that was, I never saw something like this. SF is like the beginning of a Batman movie.
(Sorry for the word vomit. I'm just now realizing how many absolutely insane things happened to me when I lived in SF. I had blocked many of these things out! Some folks will think I'm exaggerating, but if anything, I'm understating these stories.)