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

Issue:
Error selecting or performing operations on JSON objects containing "sequence" key
node v8.9.3
jsonata v1.5.4
Also able to duplicate on [JSONata Exerciser](http://try.jsonata.org/)

Attempt any selection on an object with a "selection" key.

### The following example works a s expected:
**JSON**
`{
  "foo": {
    "sequence1": 123,
    "bar": "baz"
  }
}`

**JSONata**
`foo.bar`

**Result**
`"baz"`

### When the key is changed to "sequence", it fails:
**JSON**
`{
  "foo": {
    "sequence": 123,
    "bar": "baz"
  }
}`

**JSONata**
`foo.bar`

**Result**
`n.value is not a function`

Repo search revealed 'sequence' being used in https://github.com/jsonata-js/jsonata/blob/7aa65f2295e0605a284e1f1083cf528aceb4ba79/src/jsonata.js#L1557-L1566

Pull request:
more robust check for sequence property
resolves #247 

Patch:
diff --git a/src/jsonata.js b/src/jsonata.js
index 8f15677..be01367 100644
--- a/src/jsonata.js
+++ b/src/jsonata.js
@@ -1596,7 +1596,7 @@ var jsonata = (function() {
             exitCallback(expr, input, environment, result);
         }
 
-        if(result && result.sequence) {
+        if(result && isSequence(result)) {
             if(expr.keepArray) {
                 result.keepSingleton = true;
             }
@@ -1618,6 +1618,17 @@ var jsonata = (function() {
         return sequence;
     }
 
+    function isSequence(value) {
+        var sequence = value.sequence;
+        if(sequence === true) {
+            var desc = Object.getOwnPropertyDescriptor(value, 'sequence');
+            if(desc.enumerable === false) {
+                return true;
+            }
+        }
+        return false;
+    }
+
     /**
      * Converts an array to a result sequence (by adding special properties)
      * @param {Array} arr - the array to convert
@@ -1725,7 +1736,7 @@ var jsonata = (function() {
         }
 
         var resultSequence = createSequence();
-        if(lastStep && result.length === 1 && Array.isArray(result[0]) && !result[0].sequence) {
+        if(lastStep && result.length === 1 && Array.isArray(result[0]) && !isSequence(result[0])) {
             resultSequence = result[0];
         } else {
             // flatten the sequence


Test patch:
diff --git a/test/test-suite/groups/literals/case018.json b/test/test-suite/groups/literals/case018.json
new file mode 100644
index 0000000..5e1a479
--- /dev/null
+++ b/test/test-suite/groups/literals/case018.json
@@ -0,0 +1,5 @@
+{
+    "expr": "{ 'foo': { 'sequence': 123, 'bar': 'baz' } } ",
+    "data": {},
+    "result": { "foo": { "sequence": 123, "bar": "baz" } }
+}
diff --git a/test/test-suite/groups/literals/case019.json b/test/test-suite/groups/literals/case019.json
new file mode 100644
index 0000000..2df1d04
--- /dev/null
+++ b/test/test-suite/groups/literals/case019.json
@@ -0,0 +1,5 @@
+{
+    "expr": "{ 'foo': { 'sequence': true, 'bar': 'baz' } } ",
+    "data": {},
+    "result": { "foo": { "sequence": true, "bar": "baz" } }
+}
Repository: Rezact/Rezact (ts)

Issue:
BUG: Router is not setting title for the '/' route

Pull request:
fix #66 router not setting root title
fix #66 

Patch:
diff --git a/package.json b/package.json
index 14cd955..a47212a 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@rezact/rezact",
-  "version": "1.0.15-beta.24",
+  "version": "1.0.15-beta.25",
   "type": "module",
   "description": "Intuitive Reactivity, Simplified State. Embrace a modern UI framework that encourages direct data mutations, offers module-level reactivity, and simplifies component design. With Rezact, you get the power of reactivity without the boilerplate. Dive into a seamless development experience tailored for today's web.",
   "main": "index.cjs",
diff --git a/src/components/appRouter.ts b/src/components/appRouter.ts
index 1e7d5ef..42a8c81 100644
--- a/src/components/appRouter.ts
+++ b/src/components/appRouter.ts
@@ -3,7 +3,7 @@ import { nestedRoot, useRouter } from "rezact/router";
 const router = useRouter();
 
 router.addRoute("/404", () => import("./404"));
-router.addRoute("/", () => import("src/components/HomePage"));
+
 router.addRoute(
   "/array-state-persistent-across-route-changes",
   () => import("src/components/HomePageStatePersistsAcrossRouteChanges")
@@ -127,6 +127,11 @@ router.addRoute(
 );
 
 const routes = [
+  {
+    path: "/",
+    component: () => import("src/components/HomePage"),
+    title: "Testing Root Title",
+  },
   {
     path: "/users2",
     component: () => import("src/examples/NestedRoutes/Users"),
diff --git a/src/lib/rezact/router.ts b/src/lib/rezact/router.ts
index af8bf84..28c4be5 100644
--- a/src/lib/rezact/router.ts
+++ b/src/lib/rezact/router.ts
@@ -166,6 +166,7 @@ export class TrieRouter {
     const parts = path.split("/").filter(Boolean);
     let firstPartRootSet = false;
     let currentNode = this.root;
+    if (path === "/") this.root.title = opts.title;
 
     for (let part of parts) {
       if (part.startsWith(":")) {


Test patch:
diff --git a/src/router.test.js b/src/router.test.js
index 756532a..86b0ae7 100644
--- a/src/router.test.js
+++ b/src/router.test.js
@@ -47,6 +47,7 @@ describe("Router Tests Suite", () => {
     expect(allHeaders[0].textContent).toBe("Hello World TEST");
     const routerOutlet = document.getElementById("router-outlet-test");
     expect(routerOutlet.innerHTML).toMatchSnapshot();
+    expect(document.title).toBe("Testing Root Title");
   });
 
   it("Bleeds from previous test state", async () => {
@@ -462,6 +463,8 @@ describe("Router Tests Suite", () => {
         "0. apple On"
       )
     );
+
+    expect(document.title).toBe("Testing Root Title");
   });
 
   it("Navigates to the multiple counter link", async () => {