MPU6050 code explanation

As I'm trying to balance the drone by using this code.

So, Which line coding should i know about?
what happens when bool condition in line 176 and 180 is falsed and true? in both condition.

What happens in Self test?