I go through each lead change after a race and classify it into one of the following types, which leads that a lead-change type

CODEMEANING
GF-RDriver took lead on the restart/race start
GFGreen-Flag Pass
INHERITED-YFPSLeader stayed out and driver inherited the lead when other cars pitted
INHERITED-GFPSAs above, but under green
ONPR-YFTook lead during yellow-flag pit stops by beating everyone else off pit road
ONPR-GFTook lead during green-flag pit stops by beating everyone else off pit road
INHERITED-ACCInherited the lead due to an accident
BTLDriver beat leader to the line on a restart.