PrimeIntellect/SWE-rebench-V2 huggingface dataset:
Repository: kayak/pypika (python)

Issue:
Add ability to use DB specific objects and reserved words
Add the ability to use objects such ROWNUM, SYSDATE and other reserved words. As of now all fields are enclosed by quotes not being able to execute queries.

Pull request:
Fixes #130 Added Pseudocolumns and SysDate

Patch:
diff --git a/pypika/pseudocolumns.py b/pypika/pseudocolumns.py
new file mode 100644
index 0000000..a762e5c
--- /dev/null
+++ b/pypika/pseudocolumns.py
@@ -0,0 +1,8 @@
+from .terms import Psuedocolumn
+
+ColumnValue = Psuedocolumn('COLUMN_VALUE')
+ObjectID = Psuedocolumn('OBJECT_ID')
+ObjectValue = Psuedocolumn('OBJECT_VALUE')
+RowNum = Psuedocolumn('ROWNUM')
+RowID = Psuedocolumn('ROWID')
+SysDate = Psuedocolumn('SYSDATE')
diff --git a/pypika/terms.py b/pypika/terms.py
index d97651d..a9b08dd 100644
--- a/pypika/terms.py
+++ b/pypika/terms.py
@@ -959,3 +959,15 @@ class Mod(Function):
 class Rollup(Function):
     def __init__(self, *terms):
         super(Rollup, self).__init__('ROLLUP', *terms)
+
+
+class Psuedocolumn(Term):
+    """
+    Represents a pseudocolumn
+    """
+
+    def __init__(self, name):
+        self.name = name
+
+    def to_sql(self, **kwargs):
+        return self.name
\ No newline at end of file


Test patch:
diff --git a/pypika/tests/test_psuedocolumns.py b/pypika/tests/test_psuedocolumns.py
new file mode 100644
index 0000000..0e9e092
--- /dev/null
+++ b/pypika/tests/test_psuedocolumns.py
@@ -0,0 +1,30 @@
+import unittest
+
+from pypika.pseudocolumns import (
+    ColumnValue,
+    ObjectID,
+    ObjectValue,
+    RowID,
+    RowNum,
+    SysDate,
+)
+
+
+class PseudocolumnsTest(unittest.TestCase):
+    def test_column_value(self):
+        self.assertEqual('COLUMN_VALUE', ColumnValue)
+
+    def test_object_id(self):
+        self.assertEqual('OBJECT_ID', ObjectID)
+
+    def test_object_value(self):
+        self.assertEqual('OBJECT_VALUE', ObjectValue)
+
+    def test_row_id(self):
+        self.assertEqual('ROWID', RowID)
+
+    def test_row_num(self):
+        self.assertEqual('ROWNUM', RowNum)
+
+    def test_sys_date(self):
+        self.assertEqual('SYSDATE', SysDate)
Repository: apple/swift-syntax (swift)

Issue:
`BasicFormat` doesn't add spaces between first and second parameter name
### Description

When using `FunctionParameterSyntax` with `SwiftSyntaxBuilder`, the build result (formatted by `BasicFormat`) doesn't have spaces between first and second parameter names, which is "lexically legal" but far against user intention.

### Steps to Reproduce

```swift
let parameter = FunctionParameterSyntax(firstName: "on", secondName: "eventLoop", colon: .colonToken(), type: TypeSyntax("EventLoop"))
print(parameter) // oneventLoop: EventLoop
```

Pull request:
Fixes #1505

Patch:
diff --git a/CodeGeneration/Sources/SyntaxSupport/DeclNodes.swift b/CodeGeneration/Sources/SyntaxSupport/DeclNodes.swift
index 6aef6e887b5..96911aab784 100644
--- a/CodeGeneration/Sources/SyntaxSupport/DeclNodes.swift
+++ b/CodeGeneration/Sources/SyntaxSupport/DeclNodes.swift
@@ -809,7 +809,7 @@ public let DECL_NODES: [Node] = [
       // name to avoid backtracking.
       Child(
         name: "SecondName",
-        kind: .token(choices: [.token(tokenKind: "IdentifierToken"), .token(tokenKind: "WildcardToken")]),
+        kind: .token(choices: [.token(tokenKind: "IdentifierToken"), .token(tokenKind: "WildcardToken")], requiresLeadingSpace: true),
         nameForDiagnostics: "internal name",
         isOptional: true
       ),
diff --git a/Sources/SwiftBasicFormat/generated/BasicFormat.swift b/Sources/SwiftBasicFormat/generated/BasicFormat.swift
index b0a446d8bac..8eef6f259d6 100644
--- a/Sources/SwiftBasicFormat/generated/BasicFormat.swift
+++ b/Sources/SwiftBasicFormat/generated/BasicFormat.swift
@@ -170,6 +170,8 @@ open class BasicFormat: SyntaxRewriter {
     switch keyPath {
     case \AvailabilityArgumentSyntax.entry:
       return false
+    case \FunctionParameterSyntax.secondName:
+      return true
     default:
       return nil
     }


Test patch:
diff --git a/Tests/SwiftSyntaxBuilderTest/FunctionParameterSyntaxTests.swift b/Tests/SwiftSyntaxBuilderTest/FunctionParameterSyntaxTests.swift
new file mode 100644
index 00000000000..1cd98a3149b
--- /dev/null
+++ b/Tests/SwiftSyntaxBuilderTest/FunctionParameterSyntaxTests.swift
@@ -0,0 +1,27 @@
+//===----------------------------------------------------------------------===//
+//
+// This source file is part of the Swift.org open source project
+//
+// Copyright (c) 2014 - 2023 Apple Inc. and the Swift project authors
+// Licensed under Apache License v2.0 with Runtime Library Exception
+//
+// See https://swift.org/LICENSE.txt for license information
+// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
+//
+//===----------------------------------------------------------------------===//
+
+import XCTest
+import SwiftSyntax
+import SwiftSyntaxBuilder
+
+final class FunctionParameterSyntaxTests: XCTestCase {
+  func testFunctionParameterSyntaxSpacing() {
+    let builder = FunctionParameterSyntax(firstName: "on", secondName: "eventLoop", type: TypeSyntax("EventLoop"))
+    assertBuildResult(
+      builder,
+      """
+      on eventLoop: EventLoop
+      """
+    )
+  }
+}