Closed sweep-ai[bot] closed 10 months ago
pulling_ace/attacks/word_embedding_attack.py
β
Sandbox logs for
pre-commit install
1/2 βpre-commit installed at .git/hooks/pre-commit
pip install -e .
2/2 β (`1`)Obtaining file:///repo Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'error' error: subprocess-exited-with-error Γ python setup.py egg_info did not run successfully. β exit code: 1 β°β> [7 lines of output] Traceback (most recent call last): File "", line 2, in File " ", line 34, in File "/repo/setup.py", line 30 }, ^ SyntaxError: closing parenthesis '}' does not match opening parenthesis '(' on line 3 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed Γ Encountered error while generating package metadata. β°β> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details.
setup.py
β
Sandbox logs for
pre-commit install
1/2 βpre-commit installed at .git/hooks/pre-commit
pip install -e .
2/2 β (`1`)Obtaining file:///repo Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'error' error: subprocess-exited-with-error Γ python setup.py egg_info did not run successfully. β exit code: 1 β°β> [7 lines of output] Traceback (most recent call last): File "", line 2, in File " ", line 34, in File "/repo/setup.py", line 30 }, ^ SyntaxError: closing parenthesis '}' does not match opening parenthesis '(' on line 3 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed Γ Encountered error while generating package metadata. β°β> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details.
pulling_ace/attacks/word_embedding_attack.py
β
Sandbox logs for
pre-commit install
1/2 βpre-commit installed at .git/hooks/pre-commit
pip install -e .
2/2 β (`1`)Obtaining file:///repo Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'error' error: subprocess-exited-with-error Γ python setup.py egg_info did not run successfully. β exit code: 1 β°β> [7 lines of output] Traceback (most recent call last): File "", line 2, in File " ", line 34, in File "/repo/setup.py", line 30 }, ^ SyntaxError: closing parenthesis '}' does not match opening parenthesis '(' on line 3 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed Γ Encountered error while generating package metadata. β°β> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details.
PR Feedback: π
I created this PR to address this rule:
"All docstrings and comments should be up to date."
Description
This PR updates the outdated comment in the
word_embedding_attack.py
file to accurately reflect the current state of the code. The comment in question is located in theperfom_word_embedding_attack
function. The updated comment provides an overview of the attack components, transformations, constraints, and search method used in the attack. The goal is to ensure that the comment provides accurate and up-to-date information about the attack strategy implemented in the code.Summary of Changes
perfom_word_embedding_attack
function inword_embedding_attack.py
to accurately reflect the current state of the code.