PrimeIntellect/SWE-rebench-V2 huggingface dataset:
Repository: newrelic/elixir_agent (elixir)

Issue:
Process spawn count
Store the number of processes spawned during the request as an attribute on the Transaction event

Pull request:
Track process spawn count
Simple PR that counts the number of processes involved in a Transaction

closes #75 

Patch:
diff --git a/lib/new_relic/transaction/reporter.ex b/lib/new_relic/transaction/reporter.ex
index 9fbc463..472a6b4 100644
--- a/lib/new_relic/transaction/reporter.ex
+++ b/lib/new_relic/transaction/reporter.ex
@@ -107,6 +107,8 @@ defmodule NewRelic.Transaction.Reporter do
         trace_process_spawns: {:list, {pid, timestamp, original}},
         trace_process_names: {:list, {pid, NewRelic.Util.process_name(pid)}}
       )
+
+      AttrStore.incr(__MODULE__, original, process_spawns: 1)
     end
   end
 


Test patch:
diff --git a/test/transaction_test.exs b/test/transaction_test.exs
index 490e6d6..af8d068 100644
--- a/test/transaction_test.exs
+++ b/test/transaction_test.exs
@@ -225,7 +225,7 @@ defmodule TransactionTest do
     assert Enum.find(events, fn [_, event] ->
              event[:path] == "/spawn" && event[:inside] == "spawned" && event[:nested] == "spawn" &&
                event[:not_linked] == "still_tracked" && event[:nested_inside] == "nolink" &&
-               event[:rabbit] == "hole" && event[:status] == 200
+               event[:rabbit] == "hole" && event[:process_spawns] == 5 && event[:status] == 200
            end)
   end
Repository: eslint/doctrine (js)

Issue:
Allow omission of type in returns tag
Currently doctrine permits syntax like

```js
/**
 * @param foo - this is a param
 */
```

But not the same for return values

```js
/**
 * @returns foo - this is a return value
 */
```

Having both tags with optional type annotations would be great since the type annotations can often inferred by Flow/TS.

Pull request:
Fix: permit return tag without type (fixes #136)

Patch:
diff --git a/lib/doctrine.js b/lib/doctrine.js
index c38830a..cbfadae 100644
--- a/lib/doctrine.js
+++ b/lib/doctrine.js
@@ -70,6 +70,10 @@
         return title === 'param' || title === 'argument' || title === 'arg';
     }
 
+    function isReturnTitle(title) {
+        return title === 'return' || title === 'returns';
+    }
+
     function isProperty(title) {
         return title === 'property' || title === 'prop';
     }
@@ -88,10 +92,10 @@
     }
 
     function isTypeParameterRequired(title) {
-        return isParamTitle(title) || title === 'define' || title === 'enum' ||
-            title === 'implements' || title === 'return' ||
-            title === 'this' || title === 'type' || title === 'typedef' ||
-            title === 'returns' || isProperty(title);
+        return isParamTitle(title) || isReturnTitle(title) ||
+            title === 'define' || title === 'enum' ||
+            title === 'implements' || title === 'this' ||
+            title === 'type' || title === 'typedef' || isProperty(title);
     }
 
     // Consider deprecation instead using 'isTypeParameterRequired' and 'Rules' declaration to pick when a type is optional/required
@@ -421,7 +425,7 @@
                 try {
                     this._tag.type = parseType(this._title, this._last);
                     if (!this._tag.type) {
-                        if (!isParamTitle(this._title)) {
+                        if (!isParamTitle(this._title) && !isReturnTitle(this._title)) {
                             if (!this.addError('Missing or invalid tag type')) {
                                 return false;
                             }


Test patch:
diff --git a/test/parse.js b/test/parse.js
index 7220af1..4ecbf8c 100644
--- a/test/parse.js
+++ b/test/parse.js
@@ -2054,6 +2054,19 @@ describe('recovery tests', function() {
          res.tags[1].should.have.property('name', 'f2');
 	});
 
+	it ('return no type', function() {
+		var res = doctrine.parse(
+            [
+                "@return a value"
+            ].join('\n'));
+
+         // return tag should exist
+         res.tags.should.have.length(1);
+         res.tags[0].should.have.property('title', 'return');
+         res.tags[0].should.have.property('type', null);
+         res.tags[0].should.have.property('description', 'a value');
+	});
+
 	it ('extra @ 1', function() {
 		var res = doctrine.parse(
             [