Methods for measuring program copying and adaptation