PrimeIntellect/SWE-rebench-V2 huggingface dataset:
Repository: domluna/JuliaFormatter.jl (julia)

Issue:
JuliaFormatter v2 deletes comments
This is frankly quite bad:
```julia-repl
julia> using JuliaFormatter

julia> println(format_text("#= this is a valuable comment =#"))


julia> pkgversion(JuliaFormatter)
v"2.1.0"
```

Pull request:
I don't exactly remember why I commented this out in the first place. I believe it was because I was working on getting these to be treated as regular args wrapped in comments but it there was a issue with regular multiline comments.

fix #909

Patch:
diff --git a/Project.toml b/Project.toml
index 36df5ca5..2dfad06f 100644
--- a/Project.toml
+++ b/Project.toml
@@ -1,7 +1,7 @@
 name = "JuliaFormatter"
 uuid = "98e50ef6-434e-11e9-1051-2b60c6c9e899"
 authors = ["Dominique Luna <dluna132@gmail.com>"]
-version = "2.1.0"
+version = "2.1.1"
 
 [deps]
 CommonMark = "a80b9123-70ca-4bc0-993e-6e3bcb318db6"
diff --git a/src/styles/default/pretty.jl b/src/styles/default/pretty.jl
index 9d89715c..cd083b4d 100644
--- a/src/styles/default/pretty.jl
+++ b/src/styles/default/pretty.jl
@@ -247,10 +247,10 @@ function p_comment(
     loc = cursor_loc(s)
     same_line = on_same_line(s, s.offset, s.offset + span(cst) - 1)
     val = getsrcval(s.doc, s.offset:s.offset+span(cst)-1)
-    # if same_line && startswith(val, "#=") && endswith(val, "=#")
-    #     s.offset += span(cst)
-    #     return FST(HASHEQCOMMENT, loc[2], loc[1], loc[1], val)
-    # end
+    if same_line && startswith(val, "#=") && endswith(val, "=#")
+        s.offset += span(cst)
+        return FST(HASHEQCOMMENT, loc[2], loc[1], loc[1], val)
+    end
     s.offset += span(cst)
     FST(NONE, loc[2], loc[1], loc[1], "")
 end


Test patch:
diff --git a/test/issues.jl b/test/issues.jl
index 36364854..8f1f208e 100644
--- a/test/issues.jl
+++ b/test/issues.jl
@@ -1386,7 +1386,7 @@
         arraycopy_common(false#=fwd=#, LLVM.Builder(B), orig, origops[1], gutils)
         return nothing
         """
-        @test_broken fmt(s) == s_
+        @test fmt(s) == s_
 
         s1 = """
         foo(a, b, #=c=#)
@@ -1397,7 +1397,7 @@
             b,#=c=#
         )
         """
-        @test_broken fmt(s1, 4, 1) == s2
+        @test fmt(s1, 4, 1) == s2
     end
 
     @testset "604" begin