Accompanying code for article on accidental complexity