Download tasks/codeql_javascript_benchmark_top30_v1/morefixes-08f7e6287de57ef9a5c8/patch.diff from Benchanything/checkerbench: direct link, hf CLI and curl.
- Browser
- Download file 402 Bytes
-
https://huggingface.co/datasets/Benchanything/checkerbench/resolve/main/tasks/codeql_javascript_benchmark_top30_v1/morefixes-08f7e6287de57ef9a5c8/patch.diff
- Command line
-
hf download hf://datasets/Benchanything/checkerbench/tasks/codeql_javascript_benchmark_top30_v1/morefixes-08f7e6287de57ef9a5c8/patch.diff
-
curl -L -o patch.diff https://huggingface.co/datasets/Benchanything/checkerbench/resolve/main/tasks/codeql_javascript_benchmark_top30_v1/morefixes-08f7e6287de57ef9a5c8/patch.diff
402 Bytes
| diff --git a/index.js b/index.js | |
| index 885743f..9b9d96e 100644 | |
| --- a/index.js | |
| +++ b/index.js | |
| Mailgen.prototype.generatePlaintext = function (params) { | |
| } | |
| // Strip all HTML tags from plaintext output | |
| - output = output.replace(/<.+?>/g, ''); | |
| + output = output.replace(/<(.|\n)+?>/g, ''); | |
| // Decode HTML entities such as © | |
| output = he.decode(output); | |