The code to calculate AS reputation based on BGP data