OpenBugger
OpenBugger copied to clipboard
Code to create bugged python scripts for OpenAssistant Training, maintained by https://twitter.com/Cyndesama
Concrete Syntax Tree are lossless and we can guarantee script == bugger.debug(bugger.bug(script)) https://github.com/Instagram/LibCST
https://github.com/infinitylogesh/mutate
https://github.com/HypothesisWorks/hypothesis/blob/master/hypothesis-python/docs/index.rst https://jedi.readthedocs.io/en/latest/
https://github.com/github/CodeSearchNet
Python comes with a built-in module for parsing its own code called `ast` for parsing the abstract syntax tree of Python code. We should use `ast` instead of regex for...
# V1 Taxonomy Here is a taxonomy list of common bugs you might encounter when writing code, ordered from most common to less common: ## Syntax errors These are mistakes...
A bug type I've come across myself has been with forgetting to use the `global` keyword with global variables. Here's an example: ``` # A globally accessible list current_labels =...
https://github.com/furlat/OpenBugger/blob/main/notebooks/doc_string_extraction.ipynb does not work with def multiline_str(): """ Returns a multiline string """ s = """This is a multiline string! """ a = """Another multiline string!" """ return s +...
# Dataset list of possible SEED - [SStack](https://huggingface.co/datasets/bigcode/the-stack) - [python subset](https://huggingface.co/datasets/bigcode/the-stack/tree/main/data/python) - [Pile V2](In Progress talking with the carper ai team) The Pile V2 is a filter of the Stack.