What is the main purpose of the duplication detection filter in GitHub Copilot?
A.
To compare user-generated code against a private repository for potential matches.
B.
To allow administrators to control which suggestions are visible to developers based on custom criteria.
C.
To encourage the user to follow coding best practices preventing code duplication.
D.
To detect and block suggestions that match public code snippets on GitHub if they contain about 150 characters.
The Answer Is:
D
This question includes an explanation.
Explanation:
“GitHub Copilot has a duplication detection filter that checks suggestions of about 150 characters or longer against public code on GitHub. If a match is found, the suggestion is blocked if you have configured blocking.”
This clearly defines the purpose as preventing Copilot from suggesting verbatim code found publicly.