DPD crosslink script error

I found a DPD crosslink script in the supporting information from a paper,but i cannot run successfully, i hope someone can help me with this script,thanks!