PrimeIntellect/SWE-rebench-V2 huggingface dataset:
Repository: auth0/auth0-spa-js (ts)

Issue:
createAuth0Client promise rejects with an error on Internet Explorer
The error is:

```
unable to get property ‘subtle’ of undefined...
```

https://github.com/auth0/auth0-spa-js/blob/78075fe8d38ab735b954209afb2532d8e90749fc/src/utils.ts#L187

Thanks for keeping IE alive! 😄 

Pull request:
Fix IE msCrypto.subtle usage
### Description

When abstracting the `crypto` and `subtle` calls, we introduced a bug that prevented IE11 to get the correct instance of `subtle` (which comes from `msCrypto` and not `crypto`. This PR fixes this by using our internal abstraction `getCrypto` which already takes that into consideration.

### References

Fix #241 

### Testing

- [x] This change adds test coverage for new/changed/fixed functionality


Patch:
diff --git a/src/utils.ts b/src/utils.ts
index 8943ae8..c5bc434 100644
--- a/src/utils.ts
+++ b/src/utils.ts
@@ -183,8 +183,9 @@ export const getCrypto = () => {
 };
 
 export const getCryptoSubtle = () => {
+  const crypto = getCrypto();
   //safari 10.x uses webkitSubtle
-  return window.crypto.subtle || (<any>window.crypto).webkitSubtle;
+  return crypto.subtle || (<any>crypto).webkitSubtle;
 };
 
 export const validateCrypto = () => {


Test patch:
diff --git a/__tests__/utils.test.ts b/__tests__/utils.test.ts
index c08aa63..c16217d 100644
--- a/__tests__/utils.test.ts
+++ b/__tests__/utils.test.ts
@@ -527,6 +527,13 @@ describe('utils', () => {
       const theSubtle = getCryptoSubtle();
       expect(theSubtle).toBe('window');
     });
+    it('should use msCrypto.subtle when available', () => {
+      (<any>global).crypto = undefined;
+      (<any>global).msCrypto = { subtle: 'ms' };
+
+      const cryptoSubtle = getCryptoSubtle();
+      expect(cryptoSubtle).toBe('ms');
+    });
   });
   describe('validateCrypto', () => {
     it('should throw error if crypto is unavailable', () => {
Repository: sindresorhus/got (ts)

Issue:
Add protocol to error messages
https://github.com/sindresorhus/got/blob/master/index.js#L339 has a bunch of request settings copied into the error object. The protocol would also be helpful.

Pull request:
Add protocol to stdError
Adds the protocol to the stdError object got uses for all its errors.
Closes #249.

(These are _so_ much fun to do. If only my lunch break was longer.)

Patch:
diff --git a/index.js b/index.js
index 31a64dd..29e7189 100644
--- a/index.js
+++ b/index.js
@@ -334,7 +334,8 @@ function stdError(error, opts) {
 		host: opts.host,
 		hostname: opts.hostname,
 		method: opts.method,
-		path: opts.path
+		path: opts.path,
+		protocol: opts.protocol
 	});
 }
 


Test patch:
diff --git a/test/error.js b/test/error.js
index c8ad385..40306d2 100644
--- a/test/error.js
+++ b/test/error.js
@@ -27,6 +27,7 @@ test('properties', async t => {
 		t.is(err.message, 'Response code 404 (Not Found)');
 		t.is(err.host, `${s.host}:${s.port}`);
 		t.is(err.method, 'GET');
+		t.is(err.protocol, 'http:');
 	}
 });
Repository: btcpayserver/btcpayserver (csharp)

Issue:
Newline during import of multisig xpub results in different addresses for wallet
Here is the video illustrating the issue, when I am entering multisig xpub for the second time I am adding newline and that causes wallets with `3...`

https://github.com/user-attachments/assets/2aa321bf-5b8a-4dec-a29b-875a77d10bb9

Expected addresses:
![image](https://github.com/user-attachments/assets/a200361e-54f9-46b3-8896-4b2d33a1bcdb)

Addresses with newline in multisig:
![image](https://github.com/user-attachments/assets/305703e5-e5a3-4a5c-b029-06663adf2208)

Pull request:
Fix #6328

Patch:
diff --git a/BTCPayServer/DerivationSchemeParser.cs b/BTCPayServer/DerivationSchemeParser.cs
index 92b278b968..fa895d8414 100644
--- a/BTCPayServer/DerivationSchemeParser.cs
+++ b/BTCPayServer/DerivationSchemeParser.cs
@@ -100,6 +100,7 @@ public DerivationStrategyBase Parse(string str)
         {
             ArgumentNullException.ThrowIfNull(str);
             str = str.Trim();
+            str = str.Replace("\r\n","").Replace("\n", "");
             HashSet<string> hintedLabels = new HashSet<string>();
             if (!Network.Consensus.SupportSegwit)
             {


Test patch:
diff --git a/BTCPayServer.Tests/FastTests.cs b/BTCPayServer.Tests/FastTests.cs
index 43dc12b0bf..d2494d46b5 100644
--- a/BTCPayServer.Tests/FastTests.cs
+++ b/BTCPayServer.Tests/FastTests.cs
@@ -868,6 +868,10 @@ public void CanParseDerivationSchemes()
             Assert.IsType<MultisigDerivationStrategy>(((P2WSHDerivationStrategy)strategyBase).Inner);
             Assert.Equal(expected, strategyBase.ToString());
 
+            var expectedWithNewLines = "2-of-tpubDDXgATYzdQkHHhZZCMcNJj8BGDENvzMVou5v9NdxiP4rxDLj33nS233dGFW4htpVZSJ6zds9eVqAV9RyRHHiKtwQKX8eR4n4KN3Dwmj7A3h-\r\ntpubDC8a54NFtQtMQAZ97VhoU9V6jVTvi9w4Y5SaAXJSBYETKg3AoX5CCKndznhPWxJUBToPCpT44s86QbKdGpKAnSjcMTGW4kE6UQ8vpBjcybW-tpubDChjnP9LXNrJp43biqjY7FH93wgRRNrNxB4Q8pH7PPRy8UPcH2S6V46WGVJ47zVGF7SyBJNCpnaogsFbsybVQckGtVhCkng3EtFn8qmxptS";
+            strategyBase = parser.Parse(expectedWithNewLines);
+            Assert.Equal(expected, strategyBase.ToString());
+
             var inner = (MultisigDerivationStrategy)((P2WSHDerivationStrategy)strategyBase).Inner;
             Assert.False(inner.IsLegacy);
             Assert.Equal(3, inner.Keys.Count);