Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR integrates the evaluation infrastructure and implements parts of the oracle system for the PurpCode project. The changes focus on building a comprehensive evaluation framework for secure code generation with multiple safety oracles and assessment tools.
Key changes include:
- Addition of a safety-focused system prompt for secure code evaluation
- Implementation of evaluation infrastructure with support for multiple oracles (xscode, malicious assistance detection, etc.)
- Creation of annotation tools for dataset curation and quality assessment
Reviewed Changes
Copilot reviewed 23 out of 23 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| utils/init.py | Adds system prompt for safety-focused code generation evaluation |
| eval/main.py | Main entry point for evaluation pipeline combining generation and assessment |
| eval/generate.py | Core generation infrastructure with multi-backend support (HF, vLLM, OpenAI, Bedrock) |
| eval/evaluate.py | Evaluation orchestrator that maps tasks to appropriate oracles |
| eval/oracles/xscode_overrefuse.py | Oracle for evaluating XSCode dataset refusal and security vulnerabilities |
| eval/oracles/malicious_assistance_detection.py | Oracle for detecting malicious code assistance in responses |
| eval/oracles/check_secqa.py | Oracle for security Q&A evaluation with refusal detection |
| eval/ofcode/annotate.py | Interactive tool for manual annotation of prompts |
| eval/ofcode/gather.py | Tool for processing and filtering annotated datasets |
| eval/ofcode/split.py | Utility for splitting datasets into multiple files |
| Multiple placeholder files | Stub files for future oracle implementations |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+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.
No description provided.