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

Issue:
add support for indexeddb 2.0
https://caniuse.com/#search=indexeddb

Now the indexeddb detect script only detects basic indexeddb apis.

But some browser versions implement 1.0 and some 2.0. 

So we can add a new script to detect 2.0 support.

In my opinion, 2.0 add some new apis compared to 1.0. Such as `getAll/getAllKeys`.

So we can use `'getAll' in IDBIndex.prototype` to determine whether the browser supports it.


Pull request:
Add feature detection for IndexedDB 2.0
Closes #2571.

Patch:
diff --git a/feature-detects/storage/indexeddb2.js b/feature-detects/storage/indexeddb2.js
new file mode 100644
index 00000000..2d467255
--- /dev/null
+++ b/feature-detects/storage/indexeddb2.js
@@ -0,0 +1,22 @@
+/*!
+{
+  "name": "IndexedDB 2.0",
+  "property": "indexeddb2",
+  "tags": ["storage"],
+  "caniuse": "indexeddb2",
+  "authors": ["Tan Zhen Yong (@Xenonym)"],
+  "polyfills": ["indexeddb"],
+  "async": true
+}
+!*/
+/* DOC
+Detects support for the IndexedDB 2.0 client-side storage API.
+*/
+define(['Modernizr', 'addTest', 'test/indexeddb'], function(Modernizr, addTest) {
+  Modernizr.addAsyncTest(function() {
+    Modernizr.on('indexeddb', function(result) {
+      if (!result) return;
+      addTest('indexeddb2', 'getAll' in IDBIndex.prototype);
+    });
+  });
+});
diff --git a/lib/config-all.json b/lib/config-all.json
index 5dc9ae5d..cd95b302 100644
--- a/lib/config-all.json
+++ b/lib/config-all.json
@@ -272,6 +272,7 @@
     "serviceworker",
     "speech/speech-recognition",
     "speech/speech-synthesis",
+    "storage/indexeddb2",
     "storage/localstorage",
     "storage/sessionstorage",
     "storage/websqldatabase",


Test patch:
diff --git a/test/browser/integration/caniuse.js b/test/browser/integration/caniuse.js
index 57ce81b4..bdeca55f 100644
--- a/test/browser/integration/caniuse.js
+++ b/test/browser/integration/caniuse.js
@@ -96,6 +96,7 @@ window.caniusecb = function(caniuse) {
       hsla: 'css3-colors',
       htmlimports: 'imports',
       indexeddb: 'indexeddb',
+      indexeddb2: 'indexeddb2',
       inlinesvg: 'svg-html5',
       inputtypes: 'forms',
       intersectionobserver: 'intersectionobserver',
Repository: rrrene/credo (elixir)

Issue:
PipeChainStart with :atom excluded fails on nil
The following code:
```elixir
foo(nil) |> bar()
```

will fail the `PipeChainStart` test even when `excluded_argument_types: [:atom]` is set. A logic issue with using `List.first()` and the list of arguments is the root cause of this.

Fixed in https://github.com/rrrene/credo/pull/713

Pull request:
Fix logic issue with PipeChainStart, excluding :atoms, and nil. Fixes #712
Fixed logic issue with PipeChainStart when excluding `:atom` and using a `nil`. See #712.

Patch:
diff --git a/lib/credo/check/refactor/pipe_chain_start.ex b/lib/credo/check/refactor/pipe_chain_start.ex
index 00c7b788..3e5a7def 100644
--- a/lib/credo/check/refactor/pipe_chain_start.ex
+++ b/lib/credo/check/refactor/pipe_chain_start.ex
@@ -205,9 +205,10 @@ defmodule Credo.Check.Refactor.PipeChainStart do
     function_name = to_function_call_name(ast)
 
     found_argument_types =
-      arguments
-      |> List.first()
-      |> argument_type()
+      case arguments do
+        [nil | _] -> [:atom]
+        x -> x |> List.first() |> argument_type()
+      end
 
     Enum.member?(excluded_functions, function_name) ||
       Enum.any?(


Test patch:
diff --git a/test/credo/check/refactor/pipe_chain_start_test.exs b/test/credo/check/refactor/pipe_chain_start_test.exs
index f90a64e4..ce31e560 100644
--- a/test/credo/check/refactor/pipe_chain_start_test.exs
+++ b/test/credo/check/refactor/pipe_chain_start_test.exs
@@ -312,6 +312,22 @@ defmodule Credo.Check.Refactor.PipeChainStartTest do
     |> refute_issues(@described_check, excluded_argument_types: [:number])
   end
 
+  test "it should NOT report a violation for an excluded argument type /7" do
+    """
+    insert(:event) |> schedule_events()
+    """
+    |> to_source_file
+    |> refute_issues(@described_check, excluded_argument_types: [:atom])
+  end
+
+  test "it should NOT report a violation for an excluded argument type /8" do
+    """
+    foo(nil) |> bar()
+    """
+    |> to_source_file
+    |> refute_issues(@described_check, excluded_argument_types: [:atom])
+  end
+
   #
   # cases raising issues
   #
Repository: symplify/symplify (php)

Issue:
[Easy-CI] check-conflicts regex will miss some conflicts
The check-conflicts command uses a regex to check for merge conflicts in your code.
It has a regex for 8 `<` characters:

https://github.com/symplify/easy-ci/blob/d08571ff4083f766ab2d376ccd4e4df2c2514a69/src/Git/ConflictResolver.php#L13-L17

However, when using using Atlassian SourceTree, a merge conflict is produced as follows: [(atlassian documentation)](https://www.atlassian.com/git/tutorials/using-branches/merge-conflicts)

```
<<<<<<< HEAD
this is some content to mess with
content to append
=======
totally different content to merge later
>>>>>>> new_branch_to_merge_later
```

This produces a a string of 7 `<` characters and will fail to be spotted by the check-conflicts command.

I'm not familiar if this is a particular git implementation or a general typo, but a Github also produces a 7 `<`'s [(github documentation)](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/addressing-merge-conflicts/resolving-a-merge-conflict-using-the-command-line)



Pull request:
[Easy-CI] check-conflicts regex update
Updates the regex to seven characters, so it will trigger on git conflicts.

Closes #4498 

Patch:
diff --git a/packages/easy-ci/src/Git/ConflictResolver.php b/packages/easy-ci/src/Git/ConflictResolver.php
index 8b790ecfd..f4f598a16 100644
--- a/packages/easy-ci/src/Git/ConflictResolver.php
+++ b/packages/easy-ci/src/Git/ConflictResolver.php
@@ -13,10 +13,10 @@ use Symplify\SmartFileSystem\SmartFileInfo;
 final class ConflictResolver
 {
     /**
-     * @see https://regex101.com/r/iYPxCV/1
+     * @see https://regex101.com/r/iYPxCV/2
      * @var string
      */
-    private const CONFLICT_REGEX = '#^<<<<<<<<#';
+    private const CONFLICT_REGEX = '#^<<<<<<<#';
 
     public function extractFromFileInfo(SmartFileInfo $fileInfo): int
     {


Test patch:
diff --git a/packages/easy-ci/tests/Git/ConflictResolver/ConflictResolverTest.php b/packages/easy-ci/tests/Git/ConflictResolver/ConflictResolverTest.php
index ac4563801..3fa076a02 100644
--- a/packages/easy-ci/tests/Git/ConflictResolver/ConflictResolverTest.php
+++ b/packages/easy-ci/tests/Git/ConflictResolver/ConflictResolverTest.php
@@ -35,6 +35,7 @@ final class ConflictResolverTest extends AbstractKernelTestCase
     public function provideData(): Iterator
     {
         yield [new SmartFileInfo(__DIR__ . '/Fixture/some_file.txt'), 1];
+        yield [new SmartFileInfo(__DIR__ . '/Fixture/some_other_file.txt'), 1];
         yield [new SmartFileInfo(__DIR__ . '/Fixture/correct_file.txt'), 0];
     }
 }
diff --git a/packages/easy-ci/tests/Git/ConflictResolver/Fixture/some_other_file.txt b/packages/easy-ci/tests/Git/ConflictResolver/Fixture/some_other_file.txt
new file mode 100644
index 000000000..7cbb8c657
--- /dev/null
+++ b/packages/easy-ci/tests/Git/ConflictResolver/Fixture/some_other_file.txt
@@ -0,0 +1,6 @@
+<<<<<<< HEAD
+this is some content to mess with
+content to append
+=======
+totally different content to merge later
+>>>>>>> new_branch_to_merge_later
Repository: goadesign/goa (go)

Issue:
Non Required attributes with Default/Enum creating error
```
package design

var Storedload = ResultType("application/vnd.test", func() {
	TypeName("Storedload")

	Attributes(func() {
		Attribute("uploaded", Boolean, func() {
			Default(true)
		})
		//Required("uploaded")
	})

	View("default", func() {
		Attribute("uploaded")
	})

})
```
If I comment Required with Default value then it's creating below code. That has a type mismatch error.
```
{
		var zero bool
		if vres.Uploaded == zero {
			vres.Uploaded = true
		}
	}
```

Pull request:
handle transform on pointer field with default
Fix #2707

Patch:
diff --git a/codegen/go_transform.go b/codegen/go_transform.go
index a033158f..0e8aeda7 100644
--- a/codegen/go_transform.go
+++ b/codegen/go_transform.go
@@ -236,7 +236,7 @@ func transformObject(source, target *expr.AttributeExpr, sourceVar, targetVar st
 		// Default value handling. We need to handle default values if the target
 		// type uses default values (i.e. attributes with default values are
 		// non-pointers) and has a default value set.
-		if tdef := tgtMatt.GetDefault(n); tdef != nil && ta.TargetCtx.UseDefault && !srcMatt.IsRequired(n) {
+		if tdef := tgtMatt.GetDefault(n); tdef != nil && ta.TargetCtx.UseDefault && !ta.TargetCtx.Pointer && !srcMatt.IsRequired(n) {
 			switch {
 			case ta.SourceCtx.IsPrimitivePointer(n, srcMatt.AttributeExpr) || !expr.IsPrimitive(srcc.Type):
 				// source attribute is a primitive pointer or not a primitive


Test patch:
diff --git a/codegen/go_transform_test.go b/codegen/go_transform_test.go
index 1461212a..f1137fec 100644
--- a/codegen/go_transform_test.go
+++ b/codegen/go_transform_test.go
@@ -50,9 +50,10 @@ func TestGoTransform(t *testing.T) {
 		stringT = expr.String
 
 		// attribute contexts used in test cases
-		defaultCtx    = NewAttributeContext(false, false, true, "", scope)
-		defaultCtxPkg = NewAttributeContext(false, false, true, "mypkg", scope)
-		pointerCtx    = NewAttributeContext(true, false, false, "", scope)
+		defaultCtx        = NewAttributeContext(false, false, true, "", scope)
+		defaultCtxPkg     = NewAttributeContext(false, false, true, "mypkg", scope)
+		pointerCtx        = NewAttributeContext(true, false, false, "", scope)
+		defaultPointerCtx = NewAttributeContext(true, false, true, "", scope)
 	)
 	tc := map[string][]struct {
 		Name      string
@@ -169,6 +170,11 @@ func TestGoTransform(t *testing.T) {
 			{"recursive-to-recursive", recursive, recursive, defaultCtx, pointerCtx, srcUseDefaultTgtAllPtrsRecursiveToRecursiveCode},
 			{"composite-to-custom-field", composite, customField, defaultCtx, pointerCtx, srcUseDefaultTgtAllPtrsCompositeToCustomFieldCode},
 		},
+
+		// target type uses default and pointers for all fields
+		"target-type-uses-default-all-ptrs": {
+			{"simple-to-simple", simple, simple, defaultCtx, defaultPointerCtx, srcUseDefaultTgtAllPtrsSimpleToSimpleCode},
+		},
 	}
 	for name, cases := range tc {
 		t.Run(name, func(t *testing.T) {
Repository: TedDriggs/darling (rust)

Issue:
Field-level default should take path without quotation marks
The [`DefaultExpression`](https://github.com/TedDriggs/darling/blob/master/core/src/options/mod.rs#L35) type was never updated to accept a path in the right-hand side. This means that `#[darling(default = path_to_fn)]` doesn't work, while `#[darling(default = "path_to_fn")]` does. We should allow the quotation-free form.

Pull request:
Accept bare paths in #[darling(default = ...)]
Fixes #257

Patch:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 359f98b..27b36f7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,9 @@
 # Changelog
 
+## Unreleased
+
+- Accept bare paths in `#[darling(default = ...)]` [#258](https://github.com/TedDriggs/darling/pull/258)
+
 ## v0.20.3 (July 12, 2023)
 
 - Add `FromMeta` impl for `u128` and `i128` [#243](https://github.com/TedDriggs/darling/pull/243)
diff --git a/core/src/options/mod.rs b/core/src/options/mod.rs
index 066aa1c..164d21f 100644
--- a/core/src/options/mod.rs
+++ b/core/src/options/mod.rs
@@ -55,6 +55,10 @@ impl FromMeta for DefaultExpression {
         }
     }
 
+    fn from_expr(expr: &syn::Expr) -> Result<Self> {
+        syn::Path::from_expr(expr).map(DefaultExpression::Explicit)
+    }
+
     fn from_value(value: &syn::Lit) -> Result<Self> {
         syn::Path::from_value(value).map(DefaultExpression::Explicit)
     }


Test patch:
diff --git a/tests/defaults.rs b/tests/defaults.rs
index 05ab1ed..b74c745 100644
--- a/tests/defaults.rs
+++ b/tests/defaults.rs
@@ -12,7 +12,7 @@ mod foo {
 #[derive(FromDeriveInput)]
 #[darling(attributes(speak))]
 pub struct SpeakerOpts {
-    #[darling(default = "foo::bar::init")]
+    #[darling(default = foo::bar::init)]
     first_word: String,
 }