PrimeIntellect/SWE-rebench-V2 huggingface dataset:
Repository: go-delve/delve (go)

Issue:
Cannot install @master
Master seems to be broken and cannot build.

Using linux/amd64 with Go v1.17.4

Noticed when trying to update tools via vscode. Then replicated in command line:

Simply run:
```bash
go install github.com/go-delve/delve/cmd/dlv@master
```
and got as a result:
```
# github.com/go-delve/delve/service/dap
../../../go/pkg/mod/github.com/go-delve/delve@v1.7.4-0.20211207172355-a4ac69e87df3/service/dap/server.go:502:26: invalid type assertion: s.conn.(net.Conn) (non-interface type *connection on left)
```

Seems to be a compiler error.

Pull request:
service/dap: fix compile error from merge conflict
Fixes #2817

Patch:
diff --git a/service/dap/server.go b/service/dap/server.go
index 3a254994..c9001351 100644
--- a/service/dap/server.go
+++ b/service/dap/server.go
@@ -499,7 +499,7 @@ func (s *Session) address() string {
 	if s.config.Listener != nil {
 		return s.config.Listener.Addr().String()
 	}
-	if netconn, ok := s.conn.(net.Conn); ok {
+	if netconn, ok := s.conn.ReadWriteCloser.(net.Conn); ok {
 		return netconn.LocalAddr().String()
 	}
 	return ""


Test patch:
diff --git a/cmd/dlv/dlv_test.go b/cmd/dlv/dlv_test.go
index e9f101fa..b3f9b6d3 100644
--- a/cmd/dlv/dlv_test.go
+++ b/cmd/dlv/dlv_test.go
@@ -867,7 +867,7 @@ func TestRemoteDAPClientAfterContinue(t *testing.T) {
 	c.ContinueRequest(1)
 	c.ExpectContinueResponse(t)
 	c.DisconnectRequest()
-	c.ExpectOutputEventClosingClient(t)
+	c.ExpectOutputEventClosingClient(t, "running")
 	c.ExpectDisconnectResponse(t)
 	c.ExpectTerminatedEvent(t)
 	c.Close()
Repository: seratch/notion-sdk-jvm (kotlin)

Issue:
How to retrieve value when property is rollup?
First of all thanks for creating this client, helping me a lot.

I would need to retrieve the value of some rollup properties, but not sure how to do it.

This is how I am accessing value for other properties type:
`List<Page> database = client.queryDatabase(new QueryDatabaseRequest(DatabaseList.REPERTOIRE_DATABASE)).getResults();
String title = database.get(0).getProperties().get("Order").getTitle().get(0).getPlainText()`

I don't seem to find a way to access to the rollup values using the same path:
`Rollup musicRollup = database.get(0).getProperties().get("Music Rollup").getRollup()`

The Rollup class contains only the 3 key related to the rollup itself but not the content of the rollup.

Is there another way I should access the rollup values?

Thank you for your help!

Pull request:
This pull request fixes #30

Patch:
diff --git a/core/src/main/kotlin/notion/api/v1/model/pages/PageProperty.kt b/core/src/main/kotlin/notion/api/v1/model/pages/PageProperty.kt
index 26cdbc7..ae989bb 100644
--- a/core/src/main/kotlin/notion/api/v1/model/pages/PageProperty.kt
+++ b/core/src/main/kotlin/notion/api/v1/model/pages/PageProperty.kt
@@ -99,6 +99,7 @@ constructor(
   constructor(
       val type: String,
       val number: Number? = null,
+      val array: List<PageProperty>? = null,
       val function: String? = null,
   )
 }


Test patch:
diff --git a/core/src/test/kotlin/tests/model/PagesTest.kt b/core/src/test/kotlin/tests/model/PagesTest.kt
index bc5a8a2..c74bd66 100644
--- a/core/src/test/kotlin/tests/model/PagesTest.kt
+++ b/core/src/test/kotlin/tests/model/PagesTest.kt
@@ -81,6 +81,37 @@ class PagesTest {
     "Done": {
       "id": "467a58f9-dccf-4cfb-a203-a995731da577",
       "checkbox": true
+    },
+    "Rollup Array": {
+      "id": "467a58f9-dccf-4cfb-a203-a995731da577",
+      "rollup": {
+        "type": "array",
+        "array": [
+          {
+            "type": "title",
+            "title": [
+              {
+                "type": "text",
+                "text": {
+                  "content": "Gamba intermezzo",
+                  "link": null
+                },
+                "annotations": {
+                  "bold": false,
+                  "italic": false,
+                  "strikethrough": false,
+                  "underline": false,
+                  "code": false,
+                  "color": "default"
+                },
+                "plain_text": "Gamba intermezzo",
+                "href": null
+              }
+            ]
+          }
+        ],
+        "function": "show_original"
+      }
     }
   }
 }
Repository: json-schema-faker/json-schema-faker (js)

Issue:
Maximum is not inclusive
Hey guys, I've found a bug in [this line](https://github.com/json-schema-faker/json-schema-faker/blob/develop/src/lib/types/number.mjs#LL50C58-L50C58) of code. The problem is the fifth parameter (hasPrecision) which 
makes it impossible to generante a random integer from 0 to 1 from the following schema:

```
{
  "type": "integer",
  "minimum": 0,
  "maximum": 1
}
```

From the docs, if I don't provide a boolean true for `exclusiveMaximum`, it should be able to generate a integer 0 or 1. With that in mind, the line I provided will always make the flag hasPrecision to be true, and will end up entering [this conditional](https://github.com/json-schema-faker/json-schema-faker/blob/develop/src/lib/core/random.mjs#L91), which will call [getRandom](https://github.com/json-schema-faker/json-schema-faker/blob/develop/src/lib/core/random.mjs#L66) instead of [getRandomInteger](https://github.com/json-schema-faker/json-schema-faker/blob/develop/src/lib/core/random.mjs#L6), causing it to always return a 0.

To make matters worse, the schema bellow will always return 0 too! This happens because the `exclusiveMaximum` substracts 1 from the maximum, making it have the same results from above.

```
{
  "type": "integer",
  "minimum": 0,
  "maximum": 2,
  "exclusiveMaximum": true
}
```


Pull request:
fix: set hasPrecision to false when type is integer, closes #743
This is a quick solution for the issue I addressed in #743. Instead of making the flag hasPrecision always true for numbers, we can set it to false to fix the problem.

Patch:
diff --git a/src/lib/types/number.mjs b/src/lib/types/number.mjs
index 3b0b9d6..4ee101e 100644
--- a/src/lib/types/number.mjs
+++ b/src/lib/types/number.mjs
@@ -47,7 +47,7 @@ function numberType(value) {
     return base;
   }
 
-  return random.number(min, max, undefined, undefined, true);
+  return random.number(min, max, undefined, undefined, value.type !== 'integer');
 }
 
 export default numberType;


Test patch:
diff --git a/tests/schema/core/option/random.json b/tests/schema/core/option/random.json
index 9cbe6dc..6f23277 100644
--- a/tests/schema/core/option/random.json
+++ b/tests/schema/core/option/random.json
@@ -23,7 +23,7 @@
         },
         "valid": true,
         "equal": {
-          "a": 43,
+          "a": 44,
           "b": "in culpa proident amet",
           "c": "fe228"
         },
diff --git a/tests/unit/generators/number.spec.mjs b/tests/unit/generators/number.spec.mjs
index 96f06b0..aec4034 100644
--- a/tests/unit/generators/number.spec.mjs
+++ b/tests/unit/generators/number.spec.mjs
@@ -27,6 +27,11 @@ describe('Number Generator', () => {
     expect(isMultipleOf({ multipleOf: 8, minimum: 80, maximum: 90 })).to.be.true;
   });
 
+  it('should return an integer', () => {
+    const n = numberType({ type: 'integer' });
+    expect(Number.isInteger(n)).to.be.true;
+  });
+
   describe('should ignore min and max if using Number.MAX_VALUE in then', () => {
     it('ignoring minimum', () => {
       const n = numberType({ minimum: -Number.MAX_VALUE });