Question
What types of prompts or code snippets might be flagged by the GitHub Copilot toxicity filter? Each correct answer presents part of the solution. (Choose two.)
- A. Hate speech or discriminatory language (e.g., racial slurs, offensive stereotypes) Correct
- B. Sexually suggestive or explicit content Correct
- C. Code that contains logical errors or produces unexpected results
- D. Code comments containing strong opinions or criticisms
Explanation
Copilot's content filtering detects and blocks harmful content, including hate and unfairness (such as slurs and offensive stereotypes) and sexual content. Code with logical errors is a quality problem, not toxic content, so the filter does not flag it. Comments expressing strong opinions or criticism are not harmful content unless they cross into hateful or offensive language.