MAINT: Light refactor of Aegis AI content safety dataset for consistency - #1976
Merged
Conversation
jsong468
reviewed
Jun 9, 2026
jsong468
reviewed
Jun 9, 2026
jsong468
reviewed
Jun 9, 2026
jsong468
approved these changes
Jun 9, 2026
jsong468
left a comment
Contributor
There was a problem hiding this comment.
small NITs but looks good, thanks!
romanlutz
reviewed
Jun 10, 2026
Co-authored-by: jsong468 <songjustin@microsoft.com>
romanlutz
approved these changes
Jun 10, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The attribute was set in __init__ but never read; the filter loop uses the pre-computed self._selected_category_values set instead. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1933
Description
Light refactor of
aegis_ai_content_safety_dataset.pyfollowing similar pattern as other datasets:AegisHarmCategoryEnum for harm categoriesTests and Documentation
Added a handful of tests to cover changes. All tests pass.