Spaces:
Sleeping
Sleeping
Download dataset/problem_6/buggy.py from Viraj0112/rl_code_fix_env: direct link, hf CLI and curl.
- Browser
- Download file 257 Bytes
-
https://huggingface.co/spaces/Viraj0112/rl_code_fix_env/resolve/main/dataset/problem_6/buggy.py
- Command line
-
hf download hf://spaces/Viraj0112/rl_code_fix_env/dataset/problem_6/buggy.py
-
curl -L -o buggy.py https://huggingface.co/spaces/Viraj0112/rl_code_fix_env/resolve/main/dataset/problem_6/buggy.py
257 Bytes
| from dataset.problem_6.helpers import tokenize | |
| def count_unique_words(text: str) -> int: | |
| """Count unique words ignoring punctuation and case.""" | |
| # BUG: counts total words, not unique words. | |
| words = tokenize(text) | |
| return len(words) | |