PrimeIntellect/SWE-rebench-V2 huggingface dataset:
Repository: rsteube/carapace (go)

Issue:
partial completion of optarg arguments broken
```sh
tail --follow=na<TAB>
```

Pull request:
traverse: fix partial optarg completion
fix #833

Patch:
diff --git a/traverse.go b/traverse.go
index b53145b..970a758 100644
--- a/traverse.go
+++ b/traverse.go
@@ -162,12 +162,11 @@ loop:
 	case !c.DisableFlagParsing && strings.HasPrefix(context.Value, "-") && (fs.IsInterspersed() || len(inPositionals) == 0):
 		if f := fs.LookupArg(context.Value); f != nil && f.IsOptarg() && strings.Contains(context.Value, string(f.OptargDelimiter())) {
 			LOG.Printf("completing optional flag argument for arg %#v\n", context.Value)
-			prefix, optarg := f.Split(context.Value)
-			context.Value = optarg
+			prefix, _ := f.Split(context.Value)
 
 			switch f.Value.Type() {
 			case "bool":
-				return ActionValues("true", "false").StyleF(style.ForKeyword).Prefix(prefix), context
+				return ActionValues("true", "false").StyleF(style.ForKeyword).Usage(f.Usage).Prefix(prefix), context
 			default:
 				return storage.getFlag(c, f.Name).Prefix(prefix), context
 			}


Test patch:
diff --git a/example/cmd/root_test.go b/example/cmd/root_test.go
index 09cfc27..fcd5907 100644
--- a/example/cmd/root_test.go
+++ b/example/cmd/root_test.go
@@ -136,11 +136,38 @@ func TestRoot(t *testing.T) {
 			Expect(carapace.ActionStyledValuesDescribed(
 				"--array", "multiflag", style.Blue,
 			).NoSpace('.').Tag("flags"))
+	})
+}
+
+func TestOptarg(t *testing.T) {
+	sandbox.Package(t, "github.com/rsteube/carapace/example")(func(s *sandbox.Sandbox) {
+		s.Run("--persistentFlag=").
+			Expect(carapace.ActionValues(
+				"p1",
+				"p2",
+				"p3",
+			).Prefix("--persistentFlag=").
+				Usage("Help message for persistentFlag"))
+
+		s.Run("--persistentFlag=p").
+			Expect(carapace.ActionValues(
+				"p1",
+				"p2",
+				"p3",
+			).Prefix("--persistentFlag=").
+				Usage("Help message for persistentFlag"))
 
 		s.Run("--toggle=").
 			Expect(carapace.ActionStyledValues(
+				"true", style.Green,
 				"false", style.Red,
+			).Prefix("--toggle=").
+				Usage("Help message for toggle"))
+
+		s.Run("--toggle=tru").
+			Expect(carapace.ActionStyledValues(
 				"true", style.Green,
-			).Prefix("--toggle="))
+			).Prefix("--toggle=").
+				Usage("Help message for toggle"))
 	})
 }
Repository: sharksforarms/deku (rust)

Issue:
hexlit Suggestion
This is really just a suggestion, but switching out hex-literal as a dev dependency for [hexlit](https://github.com/inspier/hexlit) might be very marginally faster for your tests. Oh and let me know if you would prefer not to and I'll happily close this issue.

Pull request:
cargo: Switched dev-dependency hex_literal for hexlit.
Closes #98 .

Patch:
diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml
index 55676cb..81e3242 100644
--- a/.github/workflows/pull_request.yml
+++ b/.github/workflows/pull_request.yml
@@ -1,15 +1,13 @@
 on: [pull_request]
-
 name: CI Pull Request
-
 jobs:
-  benchmark:
+  runBenchmark:
     name: Benchmark
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@master
         with:
           fetch-depth: 0
-      - uses: matchai/criterion-compare-action@master
-        env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+      - uses: jasonwilliams/criterion-compare-action@move_to_actions
+        with:
+          token: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
diff --git a/Cargo.toml b/Cargo.toml
index 05441bd..d27f7c2 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -28,7 +28,7 @@ deku_derive = { version = "^0.7.0", path = "deku-derive" }
 bitvec = { version = "0.19", default-features = false }
 
 [dev-dependencies]
-hex-literal = "0.3"
+hexlit = "0.3.0"
 rstest = "0.6"
 criterion = "=0.3.2"
 alloc_counter = "0.0.4"
diff --git a/examples/enums.rs b/examples/enums.rs
index cd53e67..4664fc1 100644
--- a/examples/enums.rs
+++ b/examples/enums.rs
@@ -1,5 +1,5 @@
 use deku::prelude::*;
-use hex_literal::hex;
+use hexlit::hex;
 use std::convert::TryFrom;
 
 #[derive(Debug, PartialEq, DekuRead, DekuWrite)]
diff --git a/examples/ipv4.rs b/examples/ipv4.rs
index add5ec8..7705283 100644
--- a/examples/ipv4.rs
+++ b/examples/ipv4.rs
@@ -1,5 +1,5 @@
 use deku::prelude::*;
-use hex_literal::hex;
+use hexlit::hex;
 use std::convert::{TryFrom, TryInto};
 use std::net::Ipv4Addr;
 


Test patch:
diff --git a/tests/test_alloc.rs b/tests/test_alloc.rs
index bed033f..3893beb 100644
--- a/tests/test_alloc.rs
+++ b/tests/test_alloc.rs
@@ -38,7 +38,7 @@ mod tests {
 
     use super::*;
     use alloc_counter::count_alloc;
-    use hex_literal::hex;
+    use hexlit::hex;
     use std::convert::TryFrom;
 
     #[test]
diff --git a/tests/test_macro.rs b/tests/test_macro.rs
index af57726..e9b5c2f 100644
--- a/tests/test_macro.rs
+++ b/tests/test_macro.rs
@@ -1,5 +1,5 @@
 use deku::prelude::*;
-use hex_literal::hex;
+use hexlit::hex;
 use rstest::rstest;
 use std::convert::{TryFrom, TryInto};