Skip to content

Conversation

@lchen001
Copy link
Collaborator

@lchen001 lchen001 commented Aug 4, 2025

No description provided.

except (ValueError, SyntaxError) as e:
raise ValueError(f"Invalid initial_config format: {test_entry['initial_config']}") from e
try:
involved_classes: list = eval(test_entry["involved_classes"])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be literal_eval too?


def __evaluate__(self, answer_text, target_text, initial_config, involved_classes, test_entry_id):
test_entry = {
"initial_config": eval(initial_config),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this also?

def __evaluate__(self, answer_text, target_text, initial_config, involved_classes, test_entry_id):
test_entry = {
"initial_config": eval(initial_config),
"involved_classes": eval(involved_classes),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these also?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants