Isn't comparing code on edit distance a bit too simplistic? If I pull some functionality into a separate function the code tree becomes already quite different
Read the article, it's not code edit distance, it's AST edit distance. If the extracted function was the same as the code inline, I think this would have little effect, though that might depend on the AST parsing.