PrimeIntellect/SWE-rebench-V2 huggingface dataset:
Repository: jshint/jshint (js)

Issue:
`"` and `\"` are considered as different keys
JsHint version: 2.9.6

Code:
```
var x = {
  '"': 10,
  '\"': 20,
};
```

Configuration: default

Result: no warnings

Expected result: W075: Duplicate key

Pull request:
[[FIX]] change escape-sequence handler for double quotes (\")
Changes the handling of escape sequence case for `\"` in the **lex.js** file. Earlier, it converted `\"` into `\\\"`, which is not the correct js equivalent for the case as it should be `"` only. This was causing issue #3315 as `\" != "` that is why jshint considers them different strings.

Fixes and Closes #3315

Patch:
diff --git a/src/lex.js b/src/lex.js
index 8113baba..7e5b5cdf 100644
--- a/src/lex.js
+++ b/src/lex.js
@@ -1114,9 +1114,6 @@ Lexer.prototype = {
     case "\\":
       char = "\\\\";
       break;
-    case "\"":
-      char = "\\\"";
-      break;
     case "/":
       break;
     case "":


Test patch:
diff --git a/tests/unit/core.js b/tests/unit/core.js
index b0e8a4b1..80ae889b 100644
--- a/tests/unit/core.js
+++ b/tests/unit/core.js
@@ -2312,6 +2312,17 @@ exports.duplicateProto = function (test) {
     //.addError(3, 23232323, "Duplicate key '__proto__'.")
     .test(src, { proto: true });
 
+  src = [
+    "void {",
+    "  '\"': null,",
+    "  \"\\\"\": null",
+    "};"
+  ];
+
+  TestRun(test, "Duplicate keys (backslash)")
+    .addError(3, 7, "Duplicate key '\"'.")
+    .test(src);
+
   src = [
     "void {",
     "  __proto__: null,",
Repository: Accenture/sfmc-devtools (js)

Issue:
[BUG] deploy returns all cached items instead of only deployed ones
### Is there an existing issue for this?

- [X] I have searched the existing issues

### Current Behavior

looks like the cache is merged incorrectly

### Expected Behavior

cache merging shouldnt override result object

### Steps To Reproduce

1. Go to '...'
2. Click on '....'
3. Run '...'
4. See error...


### Version

5.1.0

### Environment

- OS:
- Node:
- npm:


### Participation

- [X] I am willing to submit a pull request for this issue.

### Additional comments

_No response_

Pull request:
#1008: ensure deploy returns deployed items, not complete cache
# PR details

## What changes did you make? (Give an overview)

- closes #1008


## Checklist

- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] test scripts updated
- n/a Wiki updated (if applicable)


Patch:
diff --git a/lib/util/cache.js b/lib/util/cache.js
index bcea3a35..b95931e3 100644
--- a/lib/util/cache.js
+++ b/lib/util/cache.js
@@ -72,10 +72,15 @@ module.exports = {
      * @returns {void}
      */
     mergeMetadata: (type, metadataMap, overrideMID) => {
-        dataStore[overrideMID || currentMID][type] = Object.assign(
-            metadataMap,
-            dataStore[currentMID][type]
-        );
+        // ensure cache exists for type
+        dataStore[currentMID][type] ||= {};
+        // if overrideMID is provided, create a copy of current MID cache
+        if (overrideMID) {
+            // ! needs to be verified if this is actually needed. When discovering an issue with this method actually overriting metadataMap, this copy-logic was present and i did not want to break things
+            dataStore[overrideMID][type] = Object.assign({}, dataStore[currentMID][type]);
+        }
+        // merge metadataMap into existing cache
+        Object.assign(dataStore[overrideMID || currentMID][type] || {}, metadataMap);
     },
     /**
      * standardized method for getting data from cache.


Test patch:
diff --git a/test/type.user.test.js b/test/type.user.test.js
index cb56fe09..810164a6 100644
--- a/test/type.user.test.js
+++ b/test/type.user.test.js
@@ -83,7 +83,7 @@ describe('type: user', () => {
         });
         it('Should create & upsert a user', async () => {
             // WHEN
-            const expectedCache = ['testNew_user', 'testExisting_user'];
+            const expectedCache = ['testExisting_user', 'testNew_user'];
             await handler.deploy('testInstance/_ParentBU_', ['user'], expectedCache);
             // THEN
             assert.equal(process.exitCode, false, 'deploy should not have thrown an error');
Repository: primefaces/primefaces (java)

Issue:
FileUpload: tests fail when path contains a empty space
Windows 10, FileUploadUtilsTest#requireValidFilePath_AbsoluteFile:

Expected :Invalid directory, name does not match the canonical path.
Actual   :Invalid path: /D:/Development/OS%20Projects/primefaces/primefaces/target/test-classes/test.png


Pull request:
Fix #11134: FileUpload unescape proper URL chars
Fix #11134: FileUpload unescape proper URL chars

Patch:
diff --git a/primefaces/src/main/java/org/primefaces/util/FileUploadUtils.java b/primefaces/src/main/java/org/primefaces/util/FileUploadUtils.java
index a827902416..f06c5591e6 100644
--- a/primefaces/src/main/java/org/primefaces/util/FileUploadUtils.java
+++ b/primefaces/src/main/java/org/primefaces/util/FileUploadUtils.java
@@ -24,6 +24,8 @@
 package org.primefaces.util;
 
 import java.io.*;
+import java.net.URLDecoder;
+import java.nio.charset.StandardCharsets;
 import java.nio.file.Files;
 import java.nio.file.Path;
 import java.nio.file.Paths;
@@ -102,6 +104,7 @@ public class FileUploadUtils {
             throw validationError("Invalid path: (" + filePath + ") contains unprintable character: " + ch);
         }
 
+        filePath = URLDecoder.decode(filePath, StandardCharsets.UTF_8);
         if (PERCENTS_PAT.matcher(filePath).find()) {
             throw validationError("Invalid path: " + filePath);
         }


Test patch:
diff --git a/primefaces/src/test/java/org/primefaces/util/FileUploadUtilsTest.java b/primefaces/src/test/java/org/primefaces/util/FileUploadUtilsTest.java
index 9ca37091d3..9d9ad244dd 100644
--- a/primefaces/src/test/java/org/primefaces/util/FileUploadUtilsTest.java
+++ b/primefaces/src/test/java/org/primefaces/util/FileUploadUtilsTest.java
@@ -175,6 +175,31 @@ class FileUploadUtilsTest {
         }
     }
 
+    @Test
+    void requireValidFilePath_AbsoluteFileWithWindowsSpaces() {
+        // Unix systems can start with / but Windows cannot
+        String os = System.getProperty("os.name").toLowerCase();
+
+        // Arrange
+        String relativePath = "/D:/Development/OS%20Projects/primefaces/primefaces/target/test-classes/test.png";
+
+        // Act
+        if (os.contains("win")) {
+            try {
+                FileUploadUtils.requireValidFilePath(relativePath, false);
+                fail("File was absolute path and should have failed");
+            }
+            catch (ValidatorException e) {
+                // Assert
+                assertEquals("Invalid directory, name does not match the canonical path.", e.getFacesMessage().getDetail());
+            }
+        }
+        else {
+            String result = FileUploadUtils.requireValidFilePath(relativePath, false);
+            assertTrue(result.endsWith("test.png"));
+        }
+    }
+
     @Test
     void requireValidFilePath_PathTraversal() {
         // Arrange