Recently I found and answered this question. It garnered quite a few downvotes and before I posted my answer the only upvote on it was mine.
I feel most downvoters fell into the hasty generalization trap. (Explain the code questions are often broad and low quality.) However, there are a few commenters who have, I would hope, read the question in more depth and still feel it is clearly off topic.
Most meta answers (see broad/low quality links above) on the topic agree that if a "explain the code" question is specific and clear about what is not understood, it is solidly on-topic.
The question is well-written, clearly points out what confuses the OP, and shows effort exerted to understand on their own before bringing the question here. It does end with a broad request to explain the code, but it seems implied that only the sections indicated really need clarification (I edited it slightly but this seemed implied even in the original). It also doesn't seem like a case of bait and switch.
Essentially my question is, why did so many people feel this question was off-topic and only I thought it on topic?
"So, the problem is not in code but in your understanding of it which I'd consider as off-topic"
Suggesting that understanding code is off-topic for SO.