PrimeIntellect/SWE-rebench-V2 huggingface dataset:
Repository: housepower/ClickHouse-Native-JDBC (java)

Issue:
Migrate to Mockito 3.x
https://github.com/mockito/mockito/wiki/What%27s-new-in-Mockito-2

Pull request:
Migrate to mockito 3
- migrate to mockito 3
- bump mockito 3.6.0

close #175

Patch:
diff --git a/clickhouse-native-jdbc/pom.xml b/clickhouse-native-jdbc/pom.xml
index 5fe83fb..6b56a2e 100644
--- a/clickhouse-native-jdbc/pom.xml
+++ b/clickhouse-native-jdbc/pom.xml
@@ -52,7 +52,7 @@
         </dependency>
         <dependency>
             <groupId>org.mockito</groupId>
-            <artifactId>mockito-all</artifactId>
+            <artifactId>mockito-core</artifactId>
             <scope>test</scope>
         </dependency>
         <dependency>
diff --git a/pom.xml b/pom.xml
index 1d1df08..75f4b81 100644
--- a/pom.xml
+++ b/pom.xml
@@ -100,7 +100,7 @@
         <lz4.java.version>1.7.1</lz4.java.version>
         <jmh.version>1.26</jmh.version>
         <yandex-clickhouse-jdbc.version>0.2.4</yandex-clickhouse-jdbc.version>
-        <mockito.version>1.10.19</mockito.version>
+        <mockito.version>3.6.0</mockito.version>
         <guava.version>16.0.1</guava.version>
         <slf4j.version>1.7.28</slf4j.version>
         <scala.version>2.11.12</scala.version>
@@ -215,7 +215,7 @@
             </dependency>
             <dependency>
                 <groupId>org.mockito</groupId>
-                <artifactId>mockito-all</artifactId>
+                <artifactId>mockito-core</artifactId>
                 <version>${mockito.version}</version>
             </dependency>
             <dependency>


Test patch:
diff --git a/clickhouse-native-jdbc/src/test/java/com/github/housepower/jdbc/buffer/SocketBuffedReaderTest.java b/clickhouse-native-jdbc/src/test/java/com/github/housepower/jdbc/buffer/SocketBuffedReaderTest.java
index d5d9fa2..a9bef06 100644
--- a/clickhouse-native-jdbc/src/test/java/com/github/housepower/jdbc/buffer/SocketBuffedReaderTest.java
+++ b/clickhouse-native-jdbc/src/test/java/com/github/housepower/jdbc/buffer/SocketBuffedReaderTest.java
@@ -52,8 +52,8 @@ public class SocketBuffedReaderTest {
 
         Mockito.when(in.read(Mockito.any(byte[].class), Mockito.anyInt(), Mockito.anyInt()))
             .thenAnswer((Answer<Integer>) invocation -> {
-                int offset = invocation.getArgumentAt(1, int.class);
-                byte[] bytes = invocation.getArgumentAt(0, byte[].class);
+                int offset = invocation.getArgument(1, Integer.class);
+                byte[] bytes = invocation.getArgument(0, byte[].class);
 
                 byte[] fragment = fragments[position.getAndIncrement()];
                 if (bytes.length < fragment.length) {
Repository: swc-project/swc (rust)

Issue:
swc_ecma_codegen emits `/` in some mapped types
### Describe the bug

I'm using swc_ecma_codegen directly to emit a .d.ts file.  It should look like this:
```
declare type Custom<A> = {
    -readonly [P in keyof A]+?: A[P];
}
```
but the actual output was:
```
declare type Custom<A> = {
    -readonly [P in keyof A]+/: A[P];
}
```


### Input code

_No response_

### Config

_No response_

### Playground link

_No response_

### Expected behavior

The following should be output 

### Actual behavior

_No response_

### Version

swc_ecma_codegen = 0.127.16

### Additional context

Updating https://github.com/swc-project/swc/blob/main/crates/swc_ecma_codegen/src/typescript.rs#L508 to output a `?` instead of `/` should fix the issue.  I can work on a PR for this.

Pull request:
fix(es/codegen): fix issue with typescript's mapped types output
<!-- Note: CI script will automatically rebase your PR so please do not rebase unless required -->

<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. -->

**Description:**

In some situations the code generated for mapped types would include a `/` instead of a `?`.

**BREAKING CHANGE:**

This is a small bug fix and shouldn't be breaking change.

**Related issue (if exists):**

fixes #6616

Patch:
diff --git a/crates/swc_ecma_codegen/src/typescript.rs b/crates/swc_ecma_codegen/src/typescript.rs
index 9ed7bf4f3b..d9f510c611 100644
--- a/crates/swc_ecma_codegen/src/typescript.rs
+++ b/crates/swc_ecma_codegen/src/typescript.rs
@@ -505,7 +505,7 @@ where
                 }
                 TruePlusMinus::Plus => {
                     punct!("+");
-                    punct!("/");
+                    punct!("?");
                 }
                 TruePlusMinus::Minus => {
                     punct!("-");


Test patch:
diff --git a/crates/swc_ecma_codegen/tests/fixture/issues/6616/input.ts b/crates/swc_ecma_codegen/tests/fixture/issues/6616/input.ts
new file mode 100644
index 0000000000..b79078e4d2
--- /dev/null
+++ b/crates/swc_ecma_codegen/tests/fixture/issues/6616/input.ts
@@ -0,0 +1,3 @@
+type Custom<A> = {
+    -readonly [P in keyof A]+?: A[P];
+};
diff --git a/crates/swc_ecma_codegen/tests/fixture/issues/6616/output.ts b/crates/swc_ecma_codegen/tests/fixture/issues/6616/output.ts
new file mode 100644
index 0000000000..b79078e4d2
--- /dev/null
+++ b/crates/swc_ecma_codegen/tests/fixture/issues/6616/output.ts
@@ -0,0 +1,3 @@
+type Custom<A> = {
+    -readonly [P in keyof A]+?: A[P];
+};