helloadhavan/github_issues huggingface dataset:
Repository: nodejs/node
Pull request: tools: add script to make reviewing backport PRs easier

It's quite limited but better than nothing

<!--
Before submitting a pull request, please read:

- the CONTRIBUTING guide at https://github.com/nodejs/node/blob/HEAD/CONTRIBUTING.md
- the commit message formatting guidelines at
  https://github.com/nodejs/node/blob/HEAD/doc/contributing/pull-requests.md#commit-message-guidelines

For code changes:
1. Include tests for any bug fixes or new features.
2. Update documentation if relevant.
3. Ensure that `make -j4 test` (UNIX), or `vcbuild test` (Windows) passes.

If you believe this PR should be highlighted in the Node.js CHANGELOG
please add the `notable-change` label.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.
-->


Changed files:
filename: tools/actions/review_backport.sh
patch: @@ -0,0 +1,30 @@
+#!/bin/sh
+
+BACKPORT_PR=$1
+
+[ -n "$BACKPORT_PR" ] || {
+    echo "Usage:"
+    echo 'tools/actions/review_backport.sh https://github.com/nodejs/node/pull/<backport-PR-number> | less'
+    echo 'DIFF_CMD="codium --wait --diff" tools/actions/review_backport.sh https://github.com/nodejs/node/pull/<backport-PR-number>'
+    echo "Limitations: This tools only supports PRs that landed as single commit, e.g. with 'commit-queue-squash' label."
+
+    exit 1
+}
+
+SED_CMD='s/^index [a-f0-9]\+..[a-f0-9]\+ \([0-7]\{6\}\)$/index eeeeeeeeee..eeeeeeeeee \1/g;s/^@@ -[0-9]\+,[0-9]\+ +[0-9]\+,[0-9]\+ @@/@@ -111,1 +111,1 @@/'
+
+set -ex
+
+ORIGINAL=$(mktemp)
+BACKPORT=$(mktemp)
+gh pr view "$BACKPORT_PR" --json commits --jq '.[] | map([ .oid, (.messageBody | match("(?:^|\\n)PR-URL: (https?://.+/pull/\\d+)(?:\\n|$)", "g") | .captures | last | .string)] | @tsv) | .[]' \
+| while read -r LINE; do
+  COMMIT_SHA=$(echo "$LINE" | cut -f1)
+  PR_URL=$(echo "$LINE" | cut -f2)
+
+  curl -fsL "$PR_URL.diff" | sed "$SED_CMD" >> "$ORIGINAL"
+  curl -fsL "$BACKPORT_PR/commits/$COMMIT_SHA.diff" | sed "$SED_CMD" >> "$BACKPORT"
+done
+
+${DIFF_CMD:-diff} "$ORIGINAL" "$BACKPORT"
+rm "$ORIGINAL" "$BACKPORT"
Repository: ollama/ollama
Pull request: Added MindsDB information

Added more details to MindsDB so that Ollama users can know that they can connect their Ollama model with nearly 200 data platforms, including databases, vector stores, and applications.

Changed files:
filename: README.md
patch: @@ -316,7 +316,7 @@ See the [API documentation](./docs/api.md) for all endpoints.
 
 ### Database
 
-- [MindsDB](https://github.com/mindsdb/mindsdb/blob/staging/mindsdb/integrations/handlers/ollama_handler/README.md)
+- [MindsDB](https://github.com/mindsdb/mindsdb/blob/staging/mindsdb/integrations/handlers/ollama_handler/README.md) (Connects Ollama models with nearly 200 data platforms and apps)
 - [chromem-go](https://github.com/philippgille/chromem-go/blob/v0.5.0/embed_ollama.go) with [example](https://github.com/philippgille/chromem-go/tree/v0.5.0/examples/rag-wikipedia-ollama)
 
 ### Package managers
Repository: huggingface/transformers
Pull request: Remove KERAS_NLP_IMPORT_ERROR

# What does this PR do?

Because `KERAS_NLP_IMPORT_ERROR` is not used.

Changed files:
filename: src/transformers/utils/import_utils.py
patch: @@ -1511,12 +1511,6 @@ def is_training_run_on_sagemaker() -> bool:
 `pip install scipy`. Please note that you may need to restart your runtime after installation.
 """
 
-# docstyle-ignore
-KERAS_NLP_IMPORT_ERROR = """
-{0} requires the keras_nlp library but it was not found in your environment. You can install it with pip.
-Please note that you may need to restart your runtime after installation.
-"""
-
 # docstyle-ignore
 SPEECH_IMPORT_ERROR = """
 {0} requires the torchaudio library but it was not found in your environment. You can install it with pip:
Repository: ggml-org/llama.cpp
Pull request: cmake: correct scope - link ws2_32 for MinGW/w64devkit builds in cpp-httplib

Complementing PR #17949, following the suggestion from @ggerganov .


Changed files:
filename: vendor/cpp-httplib/CMakeLists.txt
patch: @@ -11,8 +11,9 @@ endif()
 target_link_libraries  (${TARGET} PRIVATE Threads::Threads)
 
 if (WIN32 AND NOT MSVC)
-    target_link_libraries(${TARGET} PUBLIC ws2_32)
+    target_link_libraries(${TARGET} PRIVATE ws2_32)
 endif()
+
 target_compile_features(${TARGET} PRIVATE cxx_std_17)
 
 target_compile_definitions(${TARGET} PRIVATE
Repository: nodejs/node
Pull request: test: make test-inspector-network-resource sequential

Refs: https://github.com/nodejs/node/issues/59090
I temporarily moved test-inspector-network-resource.js to sequential, and the issue stopped occurring.

https://ci.nodejs.org/job/node-test-binary-windows-js-suites/35657/
https://ci.nodejs.org/job/node-test-binary-windows-js-suites/35658/
https://ci.nodejs.org/job/node-test-binary-windows-js-suites/35659/

However, since I can’t reproduce it in my local environment, it might take some time to apply a proper fix.
Since the root cause is still unknown, it could happen again if another test is added.

<!--
Before submitting a pull request, please read:

- the CONTRIBUTING guide at https://github.com/nodejs/node/blob/HEAD/CONTRIBUTING.md
- the commit message formatting guidelines at
  https://github.com/nodejs/node/blob/HEAD/doc/contributing/pull-requests.md#commit-message-guidelines

For code changes:
1. Include tests for any bug fixes or new features.
2. Update documentation if relevant.
3. Ensure that `make -j4 test` (UNIX), or `vcbuild test` (Windows) passes.

If you believe this PR should be highlighted in the Node.js CHANGELOG
please add the `notable-change` label.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.
-->


Changed files:
filename: test/parallel/parallel.status
patch: @@ -26,8 +26,6 @@ test-async-context-frame: PASS, FLAKY
 test-runner-run-watch: PASS, FLAKY
 # https://github.com/nodejs/node/issues/56794
 test-fs-cp: PASS, FLAKY
-# https://github.com/nodejs/node/issues/59090
-test-inspector-network-fetch: PASS, FLAKY
 
 # https://github.com/nodejs/node/issues/56751
 test-without-async-context-frame: PASS, FLAKY
Repository: ollama/ollama
Pull request: examples: add more Go examples using the API

Updates #2840 

Followup on #2879 


Changed files:
filename: examples/go-chat/main.go
patch: @@ -0,0 +1,51 @@
+package main
+
+import (
+	"context"
+	"fmt"
+	"log"
+
+	"github.com/ollama/ollama/api"
+)
+
+func main() {
+	client, err := api.ClientFromEnvironment()
+	if err != nil {
+		log.Fatal(err)
+	}
+
+	messages := []api.Message{
+		api.Message{
+			Role:    "system",
+			Content: "Provide very brief, concise responses",
+		},
+		api.Message{
+			Role:    "user",
+			Content: "Name some unusual animals",
+		},
+		api.Message{
+			Role:    "assistant",
+			Content: "Monotreme, platypus, echidna",
+		},
+		api.Message{
+			Role:    "user",
+			Content: "which of these is the most dangerous?",
+		},
+	}
+
+	ctx := context.Background()
+	req := &api.ChatRequest{
+		Model:    "llama2",
+		Messages: messages,
+	}
+
+	respFunc := func(resp api.ChatResponse) error {
+		fmt.Print(resp.Message.Content)
+		return nil
+	}
+
+	err = client.Chat(ctx, req, respFunc)
+	if err != nil {
+		log.Fatal(err)
+	}
+}

filename: examples/go-multimodal/main.go
patch: @@ -0,0 +1,47 @@
+package main
+
+import (
+	"context"
+	"fmt"
+	"log"
+	"os"
+
+	"github.com/ollama/ollama/api"
+)
+
+func main() {
+	if len(os.Args) <= 1 {
+		log.Fatal("usage: <image name>")
+	}
+
+	imgData, err := os.ReadFile(os.Args[1])
+	if err != nil {
+		log.Fatal(err)
+	}
+
+	client, err := api.ClientFromEnvironment()
+	if err != nil {
+		log.Fatal(err)
+	}
+
+	req := &api.GenerateRequest{
+		Model:  "llava",
+		Prompt: "describe this image",
+		Images: []api.ImageData{imgData},
+	}
+
+	ctx := context.Background()
+	respFunc := func(resp api.GenerateResponse) error {
+		// In streaming mode, responses are partial so we call fmt.Print (and not
+		// Println) in order to avoid spurious newlines being introduced. The
+		// model will insert its own newlines if it wants.
+		fmt.Print(resp.Response)
+		return nil
+	}
+
+	err = client.Generate(ctx, req, respFunc)
+	if err != nil {
+		log.Fatal(err)
+	}
+	fmt.Println()
+}

filename: examples/go-pull-progress/main.go
patch: @@ -0,0 +1,31 @@
+package main
+
+import (
+	"context"
+	"fmt"
+	"log"
+
+	"github.com/ollama/ollama/api"
+)
+
+func main() {
+	client, err := api.ClientFromEnvironment()
+	if err != nil {
+		log.Fatal(err)
+	}
+
+	ctx := context.Background()
+
+	req := &api.PullRequest{
+		Model: "mistral",
+	}
+	progressFunc := func(resp api.ProgressResponse) error {
+		fmt.Printf("Progress: status=%v, total=%v, completed=%v\n", resp.Status, resp.Total, resp.Completed)
+		return nil
+	}
+
+	err = client.Pull(ctx, req, progressFunc)
+	if err != nil {
+		log.Fatal(err)
+	}
+}
Repository: vercel/next.js
Pull request: [ci]: remove test from segment cache manifest

These are passing independently of any fixes

Changed files:
filename: test/client-segment-cache-tests-manifest.json
patch: @@ -3,21 +3,14 @@
   "suites": {
     "test/e2e/app-dir/actions/app-action-node-middleware.test.ts": {
       "failed": [
-        "app-dir action handling fetch actions should handle redirects to routes that provide an invalid RSC response",
         "app-dir action handling should reset the form state when the action redirects to itself"
       ]
     },
     "test/e2e/app-dir/actions/app-action.test.ts": {
       "failed": [
-        "app-dir action handling fetch actions should handle redirects to routes that provide an invalid RSC response",
         "app-dir action handling should reset the form state when the action redirects to itself"
       ]
     },
-    "test/e2e/app-dir/app-client-cache/client-cache.experimental.test.ts": {
-      "failed": [
-        "app dir client cache semantics (experimental staleTimes) static: 180 prefetch={true} should use the custom static override time (3 minutes)"
-      ]
-    },
     "test/e2e/app-dir/app-prefetch/prefetching.stale-times.test.ts": {
       "failed": [
         "app dir - prefetching (custom staleTime) should fetch again when a static page was prefetched when navigating to it after the stale time has passed",
Repository: ggml-org/llama.cpp
Pull request: cann : fix ops broken by circular padding guard

Fix ops inadvertently broken by #16985, sorry about that.

Changed files:
filename: ggml/src/ggml-cann/ggml-cann.cpp
patch: @@ -2548,6 +2548,7 @@ static bool ggml_backend_cann_supports_op(ggml_backend_dev_t dev, const ggml_ten
         case GGML_OP_ARGSORT:
         case GGML_OP_ACC:
         case GGML_OP_GROUP_NORM:
+            return true;
         case GGML_OP_PAD:
             // TODO: add circular padding support for cann, see https://github.com/ggml-org/llama.cpp/pull/16985
             return ggml_get_op_params_i32(op, 8) == 0;
Repository: ollama/ollama
Pull request: Update llama.cpp submodule to `4bd0f93`


Changed files:
filename: llm/llama.cpp
patch: @@ -1 +1 @@
-Subproject commit 1b67731e184e27a465b8c5476061294a4af668ea
+Subproject commit 4bd0f93e4ab4fe6682e7d0241c1bdec1397e954a
Repository: denoland/deno
Pull request: fix(ext/node): make `execPath` named export a real string

## Summary

- The named ESM export `execPath` from `node:process` was a frozen object with `String.prototype` that pretended to be a string but had `typeof === "object"`. This broke libraries like execa that check `typeof execPath === "string"`, causing `nuxt preview` to fail with `The "nodePath" option must be a string or a file URL`.
- Now `execPath` is initialized as `""` and set to `Deno.execPath()` during `__bootstrapNodeProcess`, so both `process.execPath` and the named import are real strings.

Before:
```
import { execPath } from "node:process";
typeof execPath // "object"
```

After:
```
import { execPath } from "node:process";
typeof execPath // "string"
```

## Test plan
- [x] Verified `typeof execPath === "string"` for both named import and `process.execPath`
- [x] Verified both return the correct path
- [ ] Existing tests pass

Closes #25779

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Changed files:
filename: ext/node/polyfills/process.ts
patch: @@ -480,20 +480,7 @@ function uncaughtExceptionHandler(err: any, origin: string) {
   process.emit("uncaughtException", err, origin);
 }
 
-export let execPath: string = Object.freeze({
-  __proto__: String.prototype,
-  toString() {
-    execPath = Deno.execPath();
-    return execPath;
-  },
-  get length() {
-    return this.toString().length;
-  },
-  [Symbol.for("Deno.customInspect")](inspect, options) {
-    return inspect(this.toString(), options);
-  },
-  // deno-lint-ignore no-explicit-any
-}) as any as string;
+export let execPath: string = "";
 
 // The process class needs to be an ES5 class because it can be instantiated
 // in Node without the `new` keyword. It's not a true class in Node. Popular
@@ -1209,6 +1196,7 @@ internals.__bootstrapNodeProcess = function (
     platform = isWindows ? "win32" : Deno.build.os;
     pid = Deno.pid;
     ppid = Deno.ppid;
+    execPath = Deno.execPath();
     initializeDebugEnv(nodeDebug);
 
     if (getOptionValue("--warnings")) {

filename: tests/unit_node/process_test.ts
patch: @@ -960,6 +960,7 @@ Deno.test("process._exiting", () => {
 });
 
 Deno.test("process.execPath", () => {
+  assertEquals(typeof process.execPath, "string");
   assertEquals(process.execPath, process.argv[0]);
 });
 
@@ -1317,6 +1318,7 @@ Deno.test(function importedExecArgvTest() {
 });
 
 Deno.test(function importedExecPathTest() {
+  assertEquals(typeof importedExecPath, "string");
   assertEquals(importedExecPath, Deno.execPath());
 });
Repository: electron/electron
Pull request: build: update NMV to 139

#### Description of Change

Bumps the NMV to [139](https://github.com/nodejs/node/pull/58779) for Electron 38

#### Release Notes

Notes: none


Changed files:
filename: build/args/all.gn
patch: @@ -2,7 +2,7 @@ is_electron_build = true
 root_extra_deps = [ "//electron" ]
 
 # Registry of NMVs --> https://github.com/nodejs/node/blob/main/doc/abi_version_registry.json
-node_module_version = 136
+node_module_version = 139
 
 v8_promise_internal_field_count = 1
 v8_embedder_string = "-electron.0"
Repository: ggml-org/llama.cpp
Pull request: speculative-simple : free batch on exit

Silence memory leak detection by freeing the `llama_batch` on exit

Changed files:
filename: examples/speculative-simple/speculative-simple.cpp
patch: @@ -255,6 +255,8 @@ int main(int argc, char ** argv) {
     LOG_INF("target:\n\n");
     common_perf_print(ctx_tgt, smpl);
 
+    llama_batch_free(batch_tgt);
+
     common_sampler_free(smpl);
     common_speculative_free(spec);
Repository: nodejs/node
Pull request: benchmark: calibrate config v8/serialize.js

**benchmark: calibrate config v8/serialize.js**

```
According to recent tests with `calibrate-n` on
a dedicated Hetzner machine (4vCPUs | 16gb) the
The results got stable with n=1e5.

The work on https://github.com/nodejs/performance/issues/186#issue-3326002531 has shown that this benchmark file takes 2-minutes for a single run. This should improve things a bit.
```

---

Possibly, 1e4 is good too, but I got a higher CV% for the (removed) `1024 * 512` on my tests

```
Configuration: {"n":10000,"len":524288}
  CV: 17.20% (lower values mean more stable results)
  Stability: ✗ Unstable
```

Changed files:
filename: benchmark/v8/serialize.js
patch: @@ -4,8 +4,8 @@ const common = require('../common.js');
 const v8 = require('v8');
 
 const bench = common.createBenchmark(main, {
-  len: [256, 1024 * 16, 1024 * 512],
-  n: [1e6],
+  len: [256, 1024 * 16],
+  n: [1e5],
 });
 
 function main({ n, len }) {
Repository: electron/electron
Pull request: feat: add support for --no-experimental-global-navigator

Backport of #47370

See that PR for details.


Notes: add support for `--no-experimental-global-navigator` flag

Changed files:
filename: docs/api/command-line-switches.md
patch: @@ -325,6 +325,10 @@ Set the directory to which all Node.js diagnostic output files are written. Defa
 
 Affects the default output directory of [v8.setHeapSnapshotNearHeapLimit](https://nodejs.org/docs/latest/api/v8.html#v8setheapsnapshotnearheaplimitlimit).
 
+### `--no-experimental-global-navigator`
+
+Disable exposition of [Navigator API][] on the global scope from Node.js.
+
 [app]: app.md
 [append-switch]: command-line.md#commandlineappendswitchswitch-value
 [debugging-main-process]: ../tutorial/debugging-main-process.md
@@ -333,3 +337,4 @@ Affects the default output directory of [v8.setHeapSnapshotNearHeapLimit](https:
 [play-silent-audio]: https://github.com/atom/atom/pull/9485/files
 [ready]: app.md#event-ready
 [severities]: https://source.chromium.org/chromium/chromium/src/+/main:base/logging.h?q=logging::LogSeverity&ss=chromium
+[Navigator API]: https://github.com/nodejs/node/blob/main/doc/api/globals.md#navigator

filename: shell/common/node_bindings.cc
patch: @@ -359,6 +359,7 @@ bool IsAllowedOption(const std::string_view option) {
       "--throw-deprecation",
       "--trace-deprecation",
       "--trace-warnings",
+      "--no-experimental-global-navigator",
   });
 
   if (debug_options.contains(option))

filename: spec/api-utility-process-spec.ts
patch: @@ -780,5 +780,33 @@ describe('utilityProcess module', () => {
       expect(stat.size).to.be.greaterThan(0);
       await fs.rm(tmpDir, { recursive: true });
     });
+
+    it('supports --no-experimental-global-navigator flag', async () => {
+      {
+        const child = utilityProcess.fork(path.join(fixturesPath, 'navigator.js'), [], {
+          stdio: 'ignore'
+        });
+        await once(child, 'spawn');
+        const [data] = await once(child, 'message');
+        expect(data).to.be.true();
+        const exit = once(child, 'exit');
+        expect(child.kill()).to.be.true();
+        await exit;
+      }
+      {
+        const child = utilityProcess.fork(path.join(fixturesPath, 'navigator.js'), [], {
+          stdio: 'ignore',
+          execArgv: [
+            '--no-experimental-global-navigator'
+          ]
+        });
+        await once(child, 'spawn');
+        const [data] = await once(child, 'message');
+        expect(data).to.be.false();
+        const exit = once(child, 'exit');
+        expect(child.kill()).to.be.true();
+        await exit;
+      }
+    });
   });
 });

filename: spec/fixtures/api/utility-process/navigator.js
patch: @@ -0,0 +1 @@
+process.parentPort.postMessage(typeof navigator === 'object');
Repository: facebook/react
Pull request: [compiler] Add flag for lowering context access

Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom):
* #30548
* __->__ #30547
* #30546
* #30545
* #30544

*This is only for internal profiling, not intended to ship.*

Changed files:
filename: compiler/packages/babel-plugin-react-compiler/src/HIR/Environment.ts
patch: @@ -434,6 +434,25 @@ const EnvironmentConfigSchema = z.object({
    * Here the variables `ref` and `myRef` will be typed as Refs.
    */
   enableTreatRefLikeIdentifiersAsRefs: z.boolean().nullable().default(false),
+
+  /*
+   * If enabled, this lowers any calls to `useContext` hook to use a selector
+   * function.
+   *
+   * The compiler automatically figures out the keys by looking for the immediate
+   * destructuring of the return value from the useContext call. In the future,
+   * this can be extended to different kinds of context access like property
+   * loads and accesses over multiple statements as well.
+   *
+   * ```
+   * // input
+   * const {foo, bar} = useContext(MyContext);
+   *
+   * // output
+   * const {foo, bar} = useContext(MyContext, (c) => [c.foo, c.bar]);
+   * ```
+   */
+  enableLowerContextAccess: z.boolean().nullable().default(false),
 });
 
 export type EnvironmentConfig = z.infer<typeof EnvironmentConfigSchema>;