When I was trying to figure out the code I wrote my own version to analyse it. Since we can't use that anymore, I might as well share it in case you've any use for it. Remember that the number of bugs is a function of the number of lines/tokens.
https://gist.github.com/mclark-newvistas/74a0a960e3e6d4b35455580b2acfc0fb