PrimeIntellect/SWE-rebench-V2 huggingface dataset:
Repository: JuliaEarth/CoordRefSystems.jl (julia)

Issue:
ADD support for  EPSG:29902 - TM65 / Irish Grid
Hi,

Thanks for creating such a nice and usefull software. I will be more than delighted if you could help to introduce **EPSG:29902 - TM65 / Irish Grid**.

**Units:** meter
**Type:** Projected
**Method:** Transverse Mercator
**Celestial Body:** earth
**Reference:** Static (relies on a datum which is plate-fixed)

Many thanks for any help you may provide,

Joseph

Pull request:
Fix #318

Patch:
diff --git a/src/get.jl b/src/get.jl
index ea6bdd2f..ec801adf 100644
--- a/src/get.jl
+++ b/src/get.jl
@@ -46,6 +46,30 @@ end
 # IMPLEMENTATIONS
 # ----------------
 
+# To map a EPSG{code} to a CRS type, please go to
+# https://epsg.org/search/by-name and type the code
+# in the search box.
+#
+# Check the CRSs tab of the result and click on the
+# desired entry in the table. You will be redirected
+# to a page with clickable items.
+#
+# You need to find the ellipsoid inside the datum item
+# and the conversion parameters of the projection in case
+# of projected coordinates.
+#
+# Double check the parameters stored in the EPSG database
+# using the projinfo utility that is shipped with PROJ:
+#
+# shell> projinfo EPSG:5070
+#
+# If the sign of some parameter differs, for example lon_0=8
+# in the EPSG database and lon_0=-8 in the projinfo output,
+# please use the projinfo output.
+#
+# If the angle parameters are given in sexagesimal DMS in
+# the EPSG database, please use the projinfo output.
+
 @crscodes shift(
   TransverseMercator{1.0000067,31.734394°,Israel1993},
   lonₒ=35.204517°,
@@ -100,9 +124,12 @@ end
 @crscodes shift(TransverseMercator{0.9996,0.0°,ETRFLatest}, lonₒ=9.0°, xₒ=500000.0m, yₒ=0.0m) EPSG{25832}
 @crscodes shift(TransverseMercator{0.9996012717,49.0°,OSGB36}, lonₒ=-2.0°, xₒ=400000.0m, yₒ=-100000.0m) EPSG{27700}
 @crscodes shift(TransverseMercator{0.9996,0.0°,GDA94}, lonₒ=147.0°, xₒ=500000.0m, yₒ=10000000.0m) EPSG{28355}
-@crscodes shift(TransverseMercator{1.000035,53.5°,Ire65}, lonₒ=-8.0°, xₒ=200000.0m, yₒ=250000.0m) EPSG{29903}
-# For EPSG:31370, the lat/lon projection parameters are given in sexagesimal DMS in the EPSG database.
-# To avoid unit conversion, the literal parameters are those obtained with the PROJ command `projinfo EPSG:31370`.
+@crscodes shift(
+  TransverseMercator{1.000035,53.5°,Ire65},
+  lonₒ=-8.0°,
+  xₒ=200000.0m,
+  yₒ=250000.0m
+) EPSG{29902} EPSG{29903}
 @crscodes shift(
   LambertConic{90.0°,51.1666672333333°,49.8333339°,BD72},
   lonₒ=4.36748666666667°,


Test patch:
diff --git a/test/get.jl b/test/get.jl
index 8454b491..445a2f6e 100644
--- a/test/get.jl
+++ b/test/get.jl
@@ -80,6 +80,7 @@
   )
   gettest(
     CoordRefSystems.shift(TransverseMercator{1.000035,53.5°,Ire65}, lonₒ=-8.0°, xₒ=200000.0m, yₒ=250000.0m),
+    EPSG{29902},
     EPSG{29903}
   )
   gettest(
Repository: rust-phf/rust-phf (rust)

Issue:
Implement `FromIterator` for `phf_codegen::Map`
Enables [`Iterator::collect()`](https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.collect).

Pull request:
feat(codegen): Implement `FromIterator` for `Map`
Fixes #307


Patch:
diff --git a/.github/workflows/benches.yml b/.github/workflows/benches.yml
index cb5833c..8a41997 100644
--- a/.github/workflows/benches.yml
+++ b/.github/workflows/benches.yml
@@ -8,7 +8,7 @@ permissions:
   contents: write
 
 jobs:
-  bench_between_master_and_pr:
+  bench_between_main_and_pr:
     if: ${{ github.event.label.name == 'run-benchmarks' }}
     name: Bench
     runs-on: ubuntu-latest
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 9f465be..2cb85a4 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -2,7 +2,7 @@ name: CI
 
 on:
   push:
-    branches: [master]
+    branches: [main]
   pull_request:
 
 jobs:
diff --git a/phf_codegen/src/lib.rs b/phf_codegen/src/lib.rs
index 49133ec..24fa095 100644
--- a/phf_codegen/src/lib.rs
+++ b/phf_codegen/src/lib.rs
@@ -280,6 +280,20 @@ impl<'a, K: FmtConst + 'a> fmt::Display for DisplayMap<'a, K> {
     }
 }
 
+impl<'a, K, V> FromIterator<(K, V)> for Map<'a, K>
+where
+    K: Hash + PhfHash + Eq + FmtConst,
+    V: Into<Cow<'a, str>>,
+{
+    fn from_iter<T: IntoIterator<Item = (K, V)>>(iter: T) -> Self {
+        let mut map = Map::new();
+        for (key, value) in iter {
+            map.entry(key, value);
+        }
+        map
+    }
+}
+
 /// A builder for the `phf::Set` type.
 pub struct Set<'a, T> {
     map: Map<'a, T>,


Test patch:
diff --git a/phf_codegen/test/build.rs b/phf_codegen/test/build.rs
index 031c7d1..6cd3585 100644
--- a/phf_codegen/test/build.rs
+++ b/phf_codegen/test/build.rs
@@ -120,5 +120,15 @@ fn main() -> io::Result<()> {
             .entry(b"baz", "2")
             .entry(b"quux", "3")
             .build()
+    )?;
+
+    // Test FromIterator implementation
+    writeln!(
+        &mut file,
+        "static FROM_ITER_MAP: ::phf::Map<&'static str, u32> = \n{};",
+        vec![("one", "1"), ("two", "2"), ("three", "3")]
+            .into_iter()
+            .collect::<phf_codegen::Map<_>>()
+            .build()
     )
 }
diff --git a/phf_codegen/test/src/lib.rs b/phf_codegen/test/src/lib.rs
index a82f535..9778307 100644
--- a/phf_codegen/test/src/lib.rs
+++ b/phf_codegen/test/src/lib.rs
@@ -117,4 +117,12 @@ mod test {
     fn empty_ordered_map() {
         assert_eq!(None, EMPTY_ORDERED.get(&1));
     }
+
+    #[test]
+    fn from_iter_map() {
+        assert_eq!(1, FROM_ITER_MAP["one"]);
+        assert_eq!(2, FROM_ITER_MAP["two"]);
+        assert_eq!(3, FROM_ITER_MAP["three"]);
+        assert!(!FROM_ITER_MAP.contains_key("four"));
+    }
 }
Repository: hwi/HWIOAuthBundle (php)

Issue:
Expired token does not refresh
Hi,

After the commit below, the expired token is never refreshed. 

https://github.com/hwi/HWIOAuthBundle/commit/07832663737521d932416626fdc08ca3ca34f17c#diff-b6dd8e26135237df333dee640dafed3c7821bbb728e868df0e251cce60084a88

The suggested solution is to check if the token is still valid.

```
if ($token->isAuthenticated() && !$token->isExpired()) {
    return $token;
}

```

Pull request:
Force token refresh if authenticated token was expired already
Fixes #1711

Patch:
diff --git a/Security/Core/Authentication/Provider/OAuthProvider.php b/Security/Core/Authentication/Provider/OAuthProvider.php
index 6468206..5e2719e 100644
--- a/Security/Core/Authentication/Provider/OAuthProvider.php
+++ b/Security/Core/Authentication/Provider/OAuthProvider.php
@@ -80,7 +80,7 @@ class OAuthProvider implements AuthenticationProviderInterface
 
         // If token is authenticated, re-create it to reload user details
         /** @var OAuthToken $token */
-        if ($token->isAuthenticated()) {
+        if ($token->isAuthenticated() && !$token->isExpired()) {
             /** @var UserInterface $user */
             $user = $token->getUser();
 


Test patch:
diff --git a/Tests/Security/Core/Authentication/Provider/OAuthProviderTest.php b/Tests/Security/Core/Authentication/Provider/OAuthProviderTest.php
index c8d61e2..d367d0d 100644
--- a/Tests/Security/Core/Authentication/Provider/OAuthProviderTest.php
+++ b/Tests/Security/Core/Authentication/Provider/OAuthProviderTest.php
@@ -161,7 +161,10 @@ class OAuthProviderTest extends TestCase
         }
     }
 
-    public function testTokenRefreshesWhenExpired()
+    /**
+     * @dataProvider provideAuthenticationData
+     */
+    public function testTokenRefreshesWhenExpired(bool $authenticated)
     {
         $expiredToken = [
             'access_token' => 'access_token',
@@ -217,6 +220,7 @@ class OAuthProviderTest extends TestCase
         $oauthProvider = new OAuthProvider($userProviderMock, $resourceOwnerMapMock, $userCheckerMock, $tokenStorageMock);
 
         $oauthToken = new OAuthToken($refreshedToken);
+        $oauthToken->setAuthenticated($authenticated);
         $oauthToken->setResourceOwnerName('github');
         $oauthToken->setRefreshToken($expiredToken['refresh_token']);
         $oauthToken->setExpiresIn(30);
@@ -240,6 +244,12 @@ class OAuthProviderTest extends TestCase
         $this->assertEquals('ROLE_TEST', $roles[0]);
     }
 
+    public function provideAuthenticationData(): iterable
+    {
+        yield 'authenticated' => [true];
+        yield 'not authenticated' => [false];
+    }
+
     protected function getOAuthAwareUserProviderMock()
     {
         return $this->createMock(OAuthAwareUserProviderInterface::class);
Repository: JoshuaKGoldberg/create-typescript-app (ts)

Issue:
🚀 Feature: Run build --no-dts before eslint-doc-generator in blockESLintPlugin
### Feature Request Checklist

- [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.

### Overview

Coming over from https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/pull/993#discussion_r2032073911, `eslint-doc-generator` builds require having built source code first. We've resolved to have `blockESLintPlugin` run `pnpm build --no-dts` before `eslint-doc-generator` in its build task.

### Additional Info

🎁 

Co-authored-by: @michaelfaith 

Pull request:
feat: add build --no-dts before eslint-doc-generator in blockESLintPlugin build:docs
## PR Checklist

- [x] Addresses an existing open issue: fixes #2182
- [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/blockESLintPlugin.ts b/src/blocks/blockESLintPlugin.ts
index f8955f1..1b777b0 100644
--- a/src/blocks/blockESLintPlugin.ts
+++ b/src/blocks/blockESLintPlugin.ts
@@ -74,7 +74,7 @@ pnpm build:docs
 							"eslint-plugin-eslint-plugin": "6.4.0",
 						},
 						scripts: {
-							"build:docs": "eslint-doc-generator",
+							"build:docs": "pnpm build --no-dts && eslint-doc-generator",
 							"lint:docs": "eslint-doc-generator --check",
 						},
 					},


Test patch:
diff --git a/src/blocks/blockESLintPlugin.test.ts b/src/blocks/blockESLintPlugin.test.ts
index 357240e..7b58751 100644
--- a/src/blocks/blockESLintPlugin.test.ts
+++ b/src/blocks/blockESLintPlugin.test.ts
@@ -96,7 +96,7 @@ describe("blockESLintPlugin", () => {
 			            "eslint-plugin-eslint-plugin": "6.4.0",
 			          },
 			          "scripts": {
-			            "build:docs": "eslint-doc-generator",
+			            "build:docs": "pnpm build --no-dts && eslint-doc-generator",
 			            "lint:docs": "eslint-doc-generator --check",
 			          },
 			        },
@@ -229,7 +229,7 @@ describe("blockESLintPlugin", () => {
 			            "eslint-plugin-eslint-plugin": "6.4.0",
 			          },
 			          "scripts": {
-			            "build:docs": "eslint-doc-generator",
+			            "build:docs": "pnpm build --no-dts && eslint-doc-generator",
 			            "lint:docs": "eslint-doc-generator --check",
 			          },
 			        },
@@ -360,7 +360,7 @@ describe("blockESLintPlugin", () => {
 			            "eslint-plugin-eslint-plugin": "6.4.0",
 			          },
 			          "scripts": {
-			            "build:docs": "eslint-doc-generator",
+			            "build:docs": "pnpm build --no-dts && eslint-doc-generator",
 			            "lint:docs": "eslint-doc-generator --check",
 			          },
 			        },
Repository: jlongster/prettier (js)

Issue:
Missing parenthesis around object dereference inside of arrow
```js
a = () => ({}).x
```

outputs

```js
a = () => {}.x;
```

which is invalid

https://jlongster.github.io/prettier/#%7B%22content%22%3A%22a%20%3D%20()%20%3D%3E%20(%7B%7D).x%22%2C%22options%22%3A%7B%22printWidth%22%3A80%2C%22tabWidth%22%3A2%2C%22singleQuote%22%3Afalse%2C%22trailingComma%22%3Afalse%2C%22bracketSpacing%22%3Afalse%2C%22doc%22%3Afalse%7D%7D

Pull request:
Fix missing parens around object in MemberExpression
Fixes #415

Patch:
diff --git a/src/fast-path.js b/src/fast-path.js
index 44800b3c4..36e0cc1db 100644
--- a/src/fast-path.js
+++ b/src/fast-path.js
@@ -463,6 +463,9 @@ FPp.needsParens = function(assumeExpressionContext) {
       if (parent.type === "TaggedTemplateExpression") {
         return true;
       }
+      if (parent.type === "MemberExpression") {
+        return name === "object" && parent.object === node;
+      }
 
     default:
       if (


Test patch:
diff --git a/tests/objects/__snapshots__/jsfmt.spec.js.snap b/tests/objects/__snapshots__/jsfmt.spec.js.snap
index c3fa28ebb..2b8644ba8 100644
--- a/tests/objects/__snapshots__/jsfmt.spec.js.snap
+++ b/tests/objects/__snapshots__/jsfmt.spec.js.snap
@@ -46,9 +46,11 @@ var z = Object(123);
 exports[`test expression.js 1`] = `
 "() => ({}\`\`);
 ({})\`\`;
+a = () => ({}).x;
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 (() => ({})\`\`);
 ({})\`\`;
+a = () => ({}).x;
 "
 `;
 
diff --git a/tests/objects/expression.js b/tests/objects/expression.js
index fd92a69bf..861275eb0 100644
--- a/tests/objects/expression.js
+++ b/tests/objects/expression.js
@@ -1,2 +1,3 @@
 () => ({}``);
 ({})``;
+a = () => ({}).x;
diff --git a/tests/refinements/__snapshots__/jsfmt.spec.js.snap b/tests/refinements/__snapshots__/jsfmt.spec.js.snap
index 249a95d4d..47713d4d6 100644
--- a/tests/refinements/__snapshots__/jsfmt.spec.js.snap
+++ b/tests/refinements/__snapshots__/jsfmt.spec.js.snap
@@ -2565,7 +2565,7 @@ let tests = [
     if (x.kind === null.toString()) {
     }
     // error, method on null
-    if ({ kind: 1 }.kind === null.toString()) {
+    if (({ kind: 1 }).kind === null.toString()) {
     } // error, method on null
   },
   // non-objects on LHS