Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Sweep Rules] Update outdated comment in word_embedding_attack.py #14

Merged
merged 3 commits into from
Oct 31, 2023

Conversation

sweep-ai[bot]
Copy link
Contributor

@sweep-ai sweep-ai bot commented Oct 31, 2023

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 the perfom_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

  • Updated the comment in the perfom_word_embedding_attack function in word_embedding_attack.py to accurately reflect the current state of the code.
  • The updated comment provides an overview of the attack components, transformations, constraints, and search method used in the attack.
  • Ensured that the updated comment provides accurate and up-to-date information about the attack strategy implemented in the code.

Copy link
Contributor Author

sweep-ai bot commented Oct 31, 2023

Rollback Files For Sweep

  • Rollback changes to pulling_ace/attacks/word_embedding_attack.py
  • Rollback changes to pulling_ace/attacks/word_embedding_attack.py
  • Rollback changes to setup.py
  • Rollback changes to setup.py

Copy link
Contributor Author

sweep-ai bot commented Oct 31, 2023

Sandbox Executions

  • Check 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.
  • Check 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.
  • Check 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.

@sweep-ai sweep-ai bot added the sweep label Oct 31, 2023
@SoyGema SoyGema merged commit 6c26160 into main Oct 31, 2023
@SoyGema SoyGema deleted the sweep/update-comment-in-word-embedding-attack branch November 1, 2023 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant