Simulator bitcoin miner
The code you are linking to is for simulating network-like effects of various mining technologies and policies. It does not actually mine, and will not teach you about mining itself.

You may look up projects like cgminer of bfgminer for actual mining software.