PrimeIntellect/SWE-rebench-V2 huggingface dataset:
Repository: gkjohnson/three-mesh-bvh (js)

Issue:
Fix validation function for use with "indirect" bvh

Pull request:
Fix bounds validation for indirect bvh
Fix #629 

Patch:
diff --git a/src/debug/Debug.js b/src/debug/Debug.js
index 2bf8238..7495e3b 100644
--- a/src/debug/Debug.js
+++ b/src/debug/Debug.js
@@ -192,11 +192,20 @@ function validateBounds( bvh ) {
 		if ( isLeaf ) {
 
 			// check triangles
-			for ( let i = offset * 3, l = ( offset + count ) * 3; i < l; i += 3 ) {
+			for ( let i = offset, l = offset + count; i < l; i ++ ) {
 
-				const i0 = index.getX( i );
-				const i1 = index.getX( i + 1 );
-				const i2 = index.getX( i + 2 );
+				const triIndex = bvh.resolveTriangleIndex( i );
+				let i0 = 3 * triIndex;
+				let i1 = 3 * triIndex + 1;
+				let i2 = 3 * triIndex + 2;
+
+				if ( index ) {
+
+					i0 = index.getX( i0 );
+					i1 = index.getX( i1 );
+					i2 = index.getX( i2 );
+
+				}
 
 				let isContained;
 


Test patch:
diff --git a/test/MeshBVH.options.test.js b/test/MeshBVH.options.test.js
index b6f0b59..ac24b61 100644
--- a/test/MeshBVH.options.test.js
+++ b/test/MeshBVH.options.test.js
@@ -8,6 +8,7 @@ import {
 	MeshBVH,
 	getBVHExtremes,
 	acceleratedRaycast,
+	validateBounds,
 } from '../src/index.js';
 import { getMaxDepth } from './utils.js';
 
@@ -160,6 +161,13 @@ describe( 'Options', () => {
 
 		} );
 
+		it( 'should produce valid bounds when true.', () => {
+
+			const bvh = new MeshBVH( geometry, { indirect: true } );
+			expect( validateBounds( bvh ) ).toBeTruthy();
+
+		} );
+
 		it( 'should unpack to the same rearranged index buffer.', () => {
 
 			const geometry = new TorusGeometry( 5, 5, 40, 10 );
Repository: zeromicro/go-zero (go)

Issue:
有个英语提示的语法错误
生成 api 的时候，报这句错：

api/api/order.api line 17:18 can not found declaration 'ShippingAddress' in context

can 是情态动词，后面的所有动词必须使用动词原型。

正确写法：
api/api/order.api line 17:18 can not **find** declaration 'ShippingAddress' in context

Pull request:
fix #3499

Patch:
diff --git a/tools/goctl/api/parser/g4/ast/apiparser.go b/tools/goctl/api/parser/g4/ast/apiparser.go
index 890ba002..f5c66ae0 100644
--- a/tools/goctl/api/parser/g4/ast/apiparser.go
+++ b/tools/goctl/api/parser/g4/ast/apiparser.go
@@ -420,7 +420,7 @@ func (p *Parser) checkServices(apiItem *Api, types map[string]TypeExpr, linePref
 
 				_, ok := types[structName]
 				if !ok {
-					return fmt.Errorf("%s line %d:%d can not found declaration '%s' in context",
+					return fmt.Errorf("%s line %d:%d can not find declaration '%s' in context",
 						linePrefix, route.Reply.Name.Expr().Line(), route.Reply.Name.Expr().Column(), structName)
 				}
 			}
@@ -433,7 +433,7 @@ func (p *Parser) checkRequestBody(route *Route, types map[string]TypeExpr, lineP
 	if route.Req != nil && route.Req.Name.IsNotNil() && route.Req.Name.Expr().IsNotNil() {
 		_, ok := types[route.Req.Name.Expr().Text()]
 		if !ok {
-			return fmt.Errorf("%s line %d:%d can not found declaration '%s' in context",
+			return fmt.Errorf("%s line %d:%d can not find declaration '%s' in context",
 				linePrefix, route.Req.Name.Expr().Line(), route.Req.Name.Expr().Column(), route.Req.Name.Expr().Text())
 		}
 	}
@@ -470,7 +470,7 @@ func (p *Parser) checkType(linePrefix string, types map[string]TypeExpr, expr Da
 		}
 		_, ok := types[name]
 		if !ok {
-			return fmt.Errorf("%s line %d:%d can not found declaration '%s' in context",
+			return fmt.Errorf("%s line %d:%d can not find declaration '%s' in context",
 				linePrefix, v.Literal.Line(), v.Literal.Column(), name)
 		}
 
@@ -481,7 +481,7 @@ func (p *Parser) checkType(linePrefix string, types map[string]TypeExpr, expr Da
 		}
 		_, ok := types[name]
 		if !ok {
-			return fmt.Errorf("%s line %d:%d can not found declaration '%s' in context",
+			return fmt.Errorf("%s line %d:%d can not find declaration '%s' in context",
 				linePrefix, v.Name.Line(), v.Name.Column(), name)
 		}
 	case *Map:


Test patch:
diff --git a/tools/goctl/api/format/format_test.go b/tools/goctl/api/format/format_test.go
index da49bf1c..075ac69a 100644
--- a/tools/goctl/api/format/format_test.go
+++ b/tools/goctl/api/format/format_test.go
@@ -58,7 +58,7 @@ func TestFormat(t *testing.T) {
 	assert.Nil(t, err)
 	assert.Equal(t, formattedStr, r)
 	_, err = apiFormat(notFormattedStr, false)
-	assert.Errorf(t, err, " line 7:13 can not found declaration 'Student' in context")
+	assert.Errorf(t, err, " line 7:13 can not find declaration 'Student' in context")
 }
 
 func Test_apiFormatReader_issue1721(t *testing.T) {
Repository: seratch/notion-sdk-jvm (kotlin)

Issue:
ImageBlock does not contain uploaded file link
Hello, I found that the ImageBlock does not get links like this. This link is created when you upload an image to the Notion. Is it planned to add getting this link?
![image](https://user-images.githubusercontent.com/61599652/153759994-79ff5e67-3556-4063-a4bf-93f242edbd06.png)

Pull request:
This pull request resolves #35

Patch:
diff --git a/core/src/main/kotlin/notion/api/v1/model/blocks/ImageBlock.kt b/core/src/main/kotlin/notion/api/v1/model/blocks/ImageBlock.kt
index a267c1f..2c092f9 100644
--- a/core/src/main/kotlin/notion/api/v1/model/blocks/ImageBlock.kt
+++ b/core/src/main/kotlin/notion/api/v1/model/blocks/ImageBlock.kt
@@ -32,6 +32,8 @@ constructor(
   constructor(
       val type: String? = null,
       val external: External? = null,
+      var file: File? = null,
+      var caption: List<String>? = emptyList(),
   )
 
   open class External
@@ -39,4 +41,11 @@ constructor(
   constructor(
       val url: String? = null,
   )
+
+  open class File
+  @JvmOverloads
+  constructor(
+      val url: String? = null,
+      var expiryTime: String? = null,
+  )
 }


Test patch:
diff --git a/core/src/test/kotlin/tests/model/BlockTest.kt b/core/src/test/kotlin/tests/model/BlockTest.kt
index 606bbb4..97aeb94 100644
--- a/core/src/test/kotlin/tests/model/BlockTest.kt
+++ b/core/src/test/kotlin/tests/model/BlockTest.kt
@@ -14,6 +14,7 @@ class BlockTest {
     assertNotNull(blocks.results[0].asHeadingTwo())
     assertNotNull(blocks.results[1].asParagraph())
     assertNotNull(blocks.results[2].asToggle())
+    assertNotNull(blocks.results[3].asImage())
   }
 
   // https://developers.notion.com/reference/get-block-children
@@ -127,6 +128,22 @@ class BlockTest {
           }
         ]
       }
+    },
+    {
+      "object": "block",
+      "id": "9bc30ad4-9373-46a5-84ab-0a7845ee52e67",
+      "created_time": "2021-03-16T16:31:00.000Z",
+      "last_edited_time": "2021-03-16T16:32:00.000Z",
+      "has_children": false,
+      "type": "image",
+      "image": {
+        "caption": [],
+        "type": "file",
+        "file": {
+          "url": "https://www.example.com/image.png",
+          "expiry_time": "2022-03-03T12+34+56.111Z"
+        }
+      }
     }
   ],
   "next_cursor": null,
Repository: BRIKEV/express-jsdoc-swagger (js)

Issue:
[Feature Request] support for operationId
It can be very useful to support it : 
https://swagger.io/docs/specification/paths-and-operations/



Pull request:
Feat/add operation
### What kind of change does this PR introduce? (check at least one)
 - [X] Feature

### Description:
This feature adds the possibility to use `oprationId` in the comments. This is part of the OpenAPI specification as you can see [here](https://swagger.io/docs/specification/paths-and-operations/).

We decided to include it like this

```js
/**
 * GET /api/v1
 * @param {string} name.query.required - name param description
 * @operationId getInfo
 */
```

This closes #169 

Patch:
diff --git a/transforms/paths/index.js b/transforms/paths/index.js
index dbc6106..10229c5 100644
--- a/transforms/paths/index.js
+++ b/transforms/paths/index.js
@@ -26,6 +26,13 @@ const setRequestBody = (lowerCaseMethod, bodyValues, requestExamples) => {
 
 const bodyParams = ({ name }) => name.includes('request.body') || name.includes('.form');
 
+const getOperationId = operationIdTag => {
+  if (!operationIdTag) return {};
+  return {
+    operationId: operationIdTag.description,
+  };
+};
+
 const pathValues = tags => {
   const examplesValues = getTagsInfo(tags, 'example');
   const examples = examplesGenerator(examplesValues);
@@ -42,6 +49,7 @@ const pathValues = tags => {
   const responseExamples = examples.filter(example => example.type === 'response');
   const responses = responsesGenerator(returnValues, responseExamples);
   /* Parameters info */
+  const operationId = getTagsInfo(tags, 'operationId');
   const paramValues = getTagsInfo(tags, 'param');
   const parameters = parametersGenerator(paramValues);
   /* Tags info */
@@ -60,6 +68,7 @@ const pathValues = tags => {
     bodyValues,
     securityValues,
     examples,
+    operationId: operationId[0],
   };
 };
 
@@ -80,6 +89,7 @@ const parsePath = (path, state) => {
     tagsValues,
     securityValues,
     examples,
+    operationId,
   } = pathValues(tags);
   const requestExamples = examples.filter(example => example.type === 'request');
   return {
@@ -95,6 +105,7 @@ const parsePath = (path, state) => {
         parameters,
         tags: formatTags(tagsValues),
         ...(setRequestBody(lowerCaseMethod, bodyValues, requestExamples)),
+        ...(getOperationId(operationId)),
       },
     },
   };


Test patch:
diff --git a/test/transforms/paths/parameters.test.js b/test/transforms/paths/parameters.test.js
index 21c5f93..76239be 100644
--- a/test/transforms/paths/parameters.test.js
+++ b/test/transforms/paths/parameters.test.js
@@ -7,6 +7,7 @@ describe('params tests', () => {
       /**
        * GET /api/v1
        * @param {string} name.query.required - name param description
+       * @operationId getInfo
        */
     `];
     const expected = {
@@ -18,6 +19,7 @@ describe('params tests', () => {
             responses: {},
             tags: [],
             security: [],
+            operationId: 'getInfo',
             parameters: [{
               deprecated: false,
               description: 'name param description',