What is the public code match feature checking against?
Why A is the answer
An index of public code on GitHub.com, not private repositories
The public-code index does not include private repositories, or code hosted elsewhere.
In detail
- The feature checks against an index of public code on GitHub.com.
- It does not check private repositories.
- Other hosting services are not included either.
Use case
An illustrative scenario, not a real incident.
A team asks whether code matching covers private repositories. It does not: the check is against public code on GitHub.com.
See it in different ways
sequenceDiagram participant D as Developer participant C as Copilot client participant P as Proxy and filters participant M as Model D->>C: Prompt C->>P: Prompt plus context P->>M: Filtered request M-->>P: Response P-->>D: Filtered response
mindmap
root(("Code match"))
n1["Included"]
n2["Public code on GitHub.com"]
n3["Not included"]
n4["Private repositories"]
n5["Other hosts"]Key point: The match check uses public code on GitHub.com.
Why the other options are wrong
- B. The private repositories of every Copilot customer on the platform
- Other customers' private code is not included.
- C. Code hosted anywhere on the internet, including other hosting services
- It does not cover the whole internet.
- D. Only the repositories that your own organization has marked as public
- It is not limited to your organization.

