Finding patterns in code