Code accompanying Public Domain Rank paper