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

Issue:
Unhandled Rejection (Error): Invalid state
### Description

I am having this problem currently:

When users "Continue with Google", auth0 fails in the background with the following error
```
Uncaught (in promise) Error: Invalid state
    at t.<anonymous> (auth0-spa-js.production.js:1712)
    at auth0-spa-js.production.js:152
    at Object.next (auth0-spa-js.production.js:100)
    at auth0-spa-js.production.js:72
    at new Promise (<anonymous>)
    at i (auth0-spa-js.production.js:49)
    at t.handleRedirectCallback (auth0-spa-js.production.js:1698)
    at react-auth0-wrapper.js:27
    at l (runtime.js:45)
    at Generator._invoke (runtime.js:264)
```

My app is set up using the React Quick Start instructions with no modifications to anything auth0-related. I am using `"@auth0/auth0-spa-js": "1.3.1"`

The error only occurs when using the "Continue with Google" option. I can verify that the URL contains a `?code=nCniVKWi7AeavwQQ&state=ZjFfWU5nLkVISFhtN2RQOWF0ZENnRjZUNm00UDZpa3RHN2hCX0c1Z1V4Yw%3D%3D#` value

I read #68 and it wasn't helpful, so I've created a new ticket.

### Reproduction

1. Click "Log In"
2. "Continue with Google"
3. Upon return to the application, the error occurs in the console.
4. This happens in DEV environment (localhost) and production (a site with SSL enabled)

### Environment

> Please provide the following:

- **Version of this library used:** `"@auth0/auth0-spa-js": "1.3.1"`
- **Version of the platform or framework used, if applicable:** React Quick Start in a CreateReactApp app
- **Other relevant versions (language, server software, OS, browser):** Chrome (desktop, iOS, Android)
- **Other modules/plugins/libraries that might be involved:** n/a


Pull request:
`parseQueryString` now removes hash fragment on query before parsing
fix #245 

Patch:
diff --git a/src/utils.ts b/src/utils.ts
index c5bc434..3518ca9 100644
--- a/src/utils.ts
+++ b/src/utils.ts
@@ -13,7 +13,12 @@ export const getUniqueScopes = (...scopes: string[]) => {
 };
 
 export const parseQueryResult = (queryString: string) => {
+  if (queryString.indexOf('#') > -1) {
+    queryString = queryString.substr(0, queryString.indexOf('#'));
+  }
+
   let queryParams = queryString.split('&');
+
   let parsedQuery: any = {};
   queryParams.forEach(qp => {
     let [key, val] = qp.split('=');


Test patch:
diff --git a/__tests__/utils.test.ts b/__tests__/utils.test.ts
index c16217d..e7fdcea 100644
--- a/__tests__/utils.test.ts
+++ b/__tests__/utils.test.ts
@@ -45,6 +45,14 @@ describe('utils', () => {
         otherValue: 'another-test'
       });
     });
+    it('strips off hash values', () => {
+      expect(
+        parseQueryResult('code=some-code&state=some-state#__')
+      ).toMatchObject({
+        code: 'some-code',
+        state: 'some-state'
+      });
+    });
     it('converts `expires_in` to int', () => {
       expect(parseQueryResult('value=test&expires_in=10')).toMatchObject({
         value: 'test',
Repository: JoshuaKGoldberg/create-typescript-app (ts)

Issue:
🐛 Bug: blockESLint's intake removes newlines in multi-line comments
### Bug Report Checklist

- [x] I have tried restarting my IDE and the issue persists.
- [x] I have pulled the latest `main` branch of the repository.
- [x] I have [searched for related issues](https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=is%3Aissue) and found none that matched my issue.

### Expected

Comments with multiple lines of `// ...` should be taken in as `\n`-separated strings in `blockESLint`'s `intake`.

### Actual

The `\n`s are being removed.

### Additional Info

Seen in the wild: https://github.com/JoshuaKGoldberg/package-json-validator/pull/191#discussion_r2033412701

Pull request:
fix: correct blockESLint intake multi-line comment parsing
## PR Checklist

- [x] Addresses an existing open issue: fixes #2171
- [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22)
- [x] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/create-typescript-app/blob/main/.github/CONTRIBUTING.md) were taken

## Overview

🎁

Patch:
diff --git a/src/blocks/eslint/blockESLintIntake.ts b/src/blocks/eslint/blockESLintIntake.ts
index b10d372..b2899b6 100644
--- a/src/blocks/eslint/blockESLintIntake.ts
+++ b/src/blocks/eslint/blockESLintIntake.ts
@@ -94,7 +94,7 @@ export function blockESLintIntake(sourceText: string) {
 				property.range[0],
 			);
 			const comment =
-				precedingText.replaceAll(/\/\/|\n/g, "").trim() || undefined;
+				precedingText.replaceAll(/\/\/ ?|\t\s*/g, "").trim() || undefined;
 
 			// blockESLintMoreStyling's comment always gets pushed to the end.
 			if (comment === stylisticComment) {


Test patch:
diff --git a/src/blocks/blockESLintIntake.test.ts b/src/blocks/blockESLintIntake.test.ts
index 4652e51..8e333c5 100644
--- a/src/blocks/blockESLintIntake.test.ts
+++ b/src/blocks/blockESLintIntake.test.ts
@@ -313,6 +313,36 @@ export default tseslint.config(
 				],
 			},
 		],
+		[
+			"multi-line custom commented group in rules",
+			`
+export default tseslint.config(
+	{ ignores: ["lib"] },
+	{
+		extends: [tseslint.configs.strictTypeChecked],
+		files: ["**/*.{js,ts}"],
+		languageOptions: { /* ... */ },
+		rules: {
+			// First line.
+			// Second line.
+			// Third line.
+			"@typescript-eslint/prefer-nullish-coalescing": "error"
+		},
+		settings: { /* ... */ }
+	}
+);`,
+			{
+				ignores: ["lib"],
+				rules: [
+					{
+						comment: "First line.\nSecond line.\nThird line.",
+						entries: {
+							"@typescript-eslint/prefer-nullish-coalescing": "error",
+						},
+					},
+				],
+			},
+		],
 	])("returns data when given %s", (_, sourceText, expected) => {
 		const actual = blockESLintIntake(sourceText);
Repository: primefaces/primefaces (java)

Issue:
Avatar: Duplicates first character when no surname
Just try below. `PP` will be appeared instead of `P`.

```xml
<p:avatar label="Primefaces" styleClass="p-mr-2" size="xlarge" />
```

Pull request:
Fix #8074: Letter avatar duplicates first character when no surname
Added unit test and fix.

Patch:
diff --git a/primefaces/src/main/java/org/primefaces/component/avatar/AvatarRenderer.java b/primefaces/src/main/java/org/primefaces/component/avatar/AvatarRenderer.java
index fb190ace3a..a365627c0c 100644
--- a/primefaces/src/main/java/org/primefaces/component/avatar/AvatarRenderer.java
+++ b/primefaces/src/main/java/org/primefaces/component/avatar/AvatarRenderer.java
@@ -133,7 +133,7 @@ public class AvatarRenderer extends CoreRenderer {
             sb.append(m.group());
         }
         String initials = sb.toString();
-        return initials.charAt(0) + initials.substring(initials.length() - 1);
+        return initials.length() == 1 ? initials : initials.charAt(0) + initials.substring(initials.length() - 1);
     }
 
     /**


Test patch:
diff --git a/primefaces/src/test/java/org/primefaces/component/avatar/AvatarRendererTest.java b/primefaces/src/test/java/org/primefaces/component/avatar/AvatarRendererTest.java
index 64e9aed5bd..b1b4b5cf54 100644
--- a/primefaces/src/test/java/org/primefaces/component/avatar/AvatarRendererTest.java
+++ b/primefaces/src/test/java/org/primefaces/component/avatar/AvatarRendererTest.java
@@ -52,6 +52,7 @@ class AvatarRendererTest {
                     Arguments.of(null, null),
                     Arguments.of("G", "G"),
                     Arguments.of("BD", "BD"),
+                    Arguments.of("Sting", "S"),
                     Arguments.of("Wolfgang Amadeus Mozart", "WM"),
                     Arguments.of("PrimeFaces Rocks", "PR"),
                     Arguments.of("ŞPrimeFaces Rocks", "ŞR"),