I'm trying to compare source code from multiple github projects, and in particular I'm looking for projects that include large chunks of code from other repositories, or large chunks with small modifications (e.g., variable or function name changes, or changes of a constant from one value to another).
Are there any distance metrics that are particularly suited to source code analysis?