Download eval/examples/fail_generator.py from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 275 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/eval/examples/fail_generator.py
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/eval/examples/fail_generator.py
-
curl -L -o fail_generator.py https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/eval/examples/fail_generator.py
275 Bytes
| def generate_buf(): | |
| # An empty JavaScript object literal {} will trigger the target branch: | |
| # After the parser consumes the opening '{', the next lookahead is '}' | |
| # which satisfies the condition J->lookahead == '}' at the start of objectliteral() | |
| return b"{}" |