The code on the back end is not open source. All of the relevant information to how a shadow priest is simulated is available on the wiki and open source.
The nuts and bolts of how the simulator chooses actions, advances time, etc. can be explained upon request if there is something in particular that you are wondering about.