Some beginner questions.

how do I find the algorithm (or code, or formula, I do not know) of the Shield slam of the warrior?

Where do I find out how much threat each skill generates?

https://github.com/TrinityCore/TrinityCore/blob/master/src/server/scripts/Spells/spell_warrior.cpp#L1152

i don’t know for the second answer