Detect both copy-pasted and structurally similar code