@jk
My threshold for duplicate code is about 15 lines, and only "near" each other in the same text file.