The San Francisco Police Department, by its own reckoning, does about one pedestrian sting per week. The formula is not complicated: It’s less pulling a rabbit out of a hat and more pulling a rabbit out of a rabbit hutch. Here’s how it works: A plainclothes cop, known as…