The SLEEPING removal happens in code, as in "C++ engine code". It's not in script, so you cannot look at it.