Download tasks/codeql_java_benchmark_top30_v2/morefixes-ab625a5d0d2a27547494/patch.diff from Benchanything/checkerbench: direct link, hf CLI and curl.
- Browser
- Download file 749 Bytes
-
https://huggingface.co/datasets/Benchanything/checkerbench/resolve/main/tasks/codeql_java_benchmark_top30_v2/morefixes-ab625a5d0d2a27547494/patch.diff
- Command line
-
hf download hf://datasets/Benchanything/checkerbench/tasks/codeql_java_benchmark_top30_v2/morefixes-ab625a5d0d2a27547494/patch.diff
-
curl -L -o patch.diff https://huggingface.co/datasets/Benchanything/checkerbench/resolve/main/tasks/codeql_java_benchmark_top30_v2/morefixes-ab625a5d0d2a27547494/patch.diff
749 Bytes
| diff --git a/src/main/java/com/fasterxml/sort/std/StdTempFileProvider.java b/src/main/java/com/fasterxml/sort/std/StdTempFileProvider.java | |
| index d2e37fa..213f9eb 100644 | |
| --- a/src/main/java/com/fasterxml/sort/std/StdTempFileProvider.java | |
| +++ b/src/main/java/com/fasterxml/sort/std/StdTempFileProvider.java | |
| package com.fasterxml.sort.std; | |
| import java.io.*; | |
| +import java.nio.file.Files; | |
| import com.fasterxml.sort.TempFileProvider; | |
| public class StdTempFileProvider | |
| @Override | |
| public File provide() throws IOException | |
| { | |
| - File f = File.createTempFile(_prefix, _suffix); | |
| + File f = Files.createTempFile(_prefix, _suffix).toFile(); | |
| f.deleteOnExit(); | |
| return f; | |
| } | |