Not directly an answer, but if you are a Ruby on Rails user, you could figure it out your self: github.com/thepracticaldev/dev.to/...
It's great that dev.to is open source. I dug in and the algorithm is spread out across a few files (including the article model you pointed out)
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.