The code is not cleaned up and no assistance will be provided.
Yizhou Sun, Jiawei Han, Xifeng Yan, Philip S. Yu, and Tianyi Wu, "PathSim: Meta Path-Based Top-K Similarity Search in Heterogeneous Information Networks", in Proc. of 2011 Int. Conf. on Very Large Data Bases (VLDB'11), Seattle, WA, Aug. 2011. [link]