helloadhavan/github_issues huggingface dataset:
Repository: facebook/react
Pull request: delete ReactServerStreamConfig.dom-fb-experimental.js

delete ReactServerStreamConfig.dom-fb-experimental.js

This config is no longer used since 1cd77a4ff7a2189003965246a3cfc475d2d9857d


Changed files:
filename: packages/react-server/src/forks/ReactServerStreamConfig.dom-fb-experimental.js
patch: @@ -1,99 +0,0 @@
-/**
- * Copyright (c) Meta Platforms, Inc. and affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- *
- * @flow
- */
-
-export * from '../ReactServerStreamConfigFB';
-
-import type {
-  PrecomputedChunk,
-  Chunk,
-  BinaryChunk,
-} from '../ReactServerStreamConfigFB';
-
-let byteLengthImpl: null | ((chunk: Chunk | PrecomputedChunk) => number) = null;
-
-export function setByteLengthOfChunkImplementation(
-  impl: (chunk: Chunk | PrecomputedChunk) => number,
-): void {
-  byteLengthImpl = impl;
-}
-
-export function byteLengthOfChunk(chunk: Chunk | PrecomputedChunk): number {
-  if (byteLengthImpl == null) {
-    // eslint-disable-next-line react-internal/prod-error-codes
-    throw new Error(
-      'byteLengthOfChunk implementation is not configured. Please, provide the implementation via ReactFlightDOMServer.setConfig(...);',
-    );
-  }
-  return byteLengthImpl(chunk);
-}
-
-export interface Destination {
-  beginWriting(): void;
-  write(chunk: Chunk | PrecomputedChunk | BinaryChunk): void;
-  completeWriting(): void;
-  flushBuffered(): void;
-  close(): void;
-  onError(error: mixed): void;
-}
-
-function handleErrorInNextTick(error: any) {
-  setTimeout(() => {
-    throw error;
-  });
-}
-
-const LocalPromise = Promise;
-
-/**
- * Since this environment doesn't have a way to schedule tasks from JS we schedule
- * using a microtask instead. This isn't necessarily ideal since we would like to give
- * other IO a chance to run before performing work typically but it's the best we can
- * do in this environment
- */
-export function scheduleWork(callback: () => void) {
-  LocalPromise.resolve().then(callback).catch(handleErrorInNextTick);
-}
-
-export const scheduleMicrotask: (callback: () => void) => void = scheduleWork;
-
-export function beginWriting(destination: Destination) {
-  destination.beginWriting();
-}
-
-export function writeChunk(
-  destination: Destination,
-  chunk: Chunk | PrecomputedChunk | BinaryChunk,
-): void {
-  destination.write(chunk);
-}
-
-export function writeChunkAndReturn(
-  destination: Destination,
-  chunk: Chunk | PrecomputedChunk | BinaryChunk,
-): boolean {
-  destination.write(chunk);
-  return true;
-}
-
-export function completeWriting(destination: Destination) {
-  destination.completeWriting();
-}
-
-export function flushBuffered(destination: Destination) {
-  destination.flushBuffered();
-}
-
-export function close(destination: Destination) {
-  destination.close();
-}
-
-export function closeWithError(destination: Destination, error: mixed): void {
-  destination.onError(error);
-  destination.close();
-}
Repository: vercel/next.js
Pull request: fix: add the missing comma in the document example

### What?
This PR fixes a missing comma in the function parameter in `03-api-reference/03-file-conventions/layout.mdx`. 

The comma between `children` and `params` parameters was missing in the documentation example, showing incorrect syntax.

### Why?
The missing comma in the documentation example shows invalid JavaScript/TypeScript syntax.

### How?
- Added missing comma after `children` parameter .

**Before:**
```tsx filename="app/dashboard/[team]/layout.tsx" switcher
export default async function Layout({
  children
  params,
}: {
```

**After:**
```tsx filename="app/dashboard/[team]/layout.tsx" switcher
export default async function Layout({
  children,
  params,
}: {
  children: React.ReactNode
```


Changed files:
filename: docs/01-app/03-api-reference/03-file-conventions/layout.mdx
patch: @@ -61,7 +61,7 @@ A promise that resolves to an object containing the [dynamic route parameters](/
 
 ```tsx filename="app/dashboard/[team]/layout.tsx" switcher
 export default async function Layout({
-  children
+  children,
   params,
 }: {
   children: React.ReactNode
Repository: huggingface/transformers
Pull request: Don't list dropout in eager_paged_attention_forward

# What does this PR do?

The `dropout` argument is not used in eager_paged_attention_forward.


Changed files:
filename: src/transformers/integrations/eager_paged.py
patch: @@ -23,7 +23,6 @@ def eager_paged_attention_forward(
     value: torch.Tensor,
     attention_mask: Optional[torch.Tensor],  # shape [seqlen_q, seqlen_k]
     scaling: float,
-    dropout: float = 0.0,
     **kwargs,
 ):
     # Add KV cache to the key and value tensors
Repository: electron/electron
Pull request: fix: restore previous Windows screenshotting

Backport of #47020

See that PR for details.


Notes: Restored previous window-hiding behavior of `win.setContentProtected()` on Windows.


Changed files:
filename: shell/browser/ui/win/electron_desktop_window_tree_host_win.cc
patch: @@ -126,6 +126,16 @@ bool ElectronDesktopWindowTreeHostWin::HandleMouseEvent(ui::MouseEvent* event) {
   return views::DesktopWindowTreeHostWin::HandleMouseEvent(event);
 }
 
+void ElectronDesktopWindowTreeHostWin::HandleVisibilityChanged(bool visible) {
+  if (native_window_view_->widget())
+    native_window_view_->widget()->OnNativeWidgetVisibilityChanged(visible);
+}
+
+void ElectronDesktopWindowTreeHostWin::SetAllowScreenshots(bool allow) {
+  ::SetWindowDisplayAffinity(GetAcceleratedWidget(),
+                             allow ? WDA_NONE : WDA_EXCLUDEFROMCAPTURE);
+}
+
 void ElectronDesktopWindowTreeHostWin::OnNativeThemeUpdated(
     ui::NativeTheme* observed_theme) {
   HWND hWnd = GetAcceleratedWidget();

filename: shell/browser/ui/win/electron_desktop_window_tree_host_win.h
patch: @@ -41,6 +41,8 @@ class ElectronDesktopWindowTreeHostWin : public views::DesktopWindowTreeHostWin,
                            HMONITOR monitor) const override;
   bool HandleMouseEventForCaption(UINT message) const override;
   bool HandleMouseEvent(ui::MouseEvent* event) override;
+  void HandleVisibilityChanged(bool visible) override;
+  void SetAllowScreenshots(bool allow) override;
 
   // ui::NativeThemeObserver:
   void OnNativeThemeUpdated(ui::NativeTheme* observed_theme) override;
Repository: denoland/deno
Pull request: ci: update release template

Adds checkpoints for publishing https://github.com/denoland/deno_pypi

Closes https://github.com/denoland/deno/issues/31254.

Changed files:
filename: tools/release/release_doc_template.md
patch: @@ -110,6 +110,16 @@ Release checklist: <LINK TO THIS FORKED GIST GOES HERE>
 - [ ] Create a `$VERSION` tag (_without_ `v` prefix).
 - [ ] This will trigger a publish CI run. Verify that it completes sucessfully.
 
+## Updating `deno_pypi`
+
+- [ ] Run the version bump workflow:
+      https://github.com/denoland/deno_pypi/actions/workflows/version-bump.yml
+- [ ] This will open a PR. Review and merge it.
+- [ ] Run the release workflow:
+      https://github.com/denoland/deno_pypi/actions/workflows/release.yml
+- [ ] This will trigger a publish CI run. Verify that it completes sucessfully
+      and new version is available at https://pypi.org/project/deno/.
+
 ## Update MDN
 
 - [ ] If a new JavaScript or Web API has been added or enabled, make sure
Repository: ollama/ollama
Pull request: fix build


Changed files:
filename: server/download.go
patch: @@ -247,7 +247,7 @@ func (b *blobDownload) downloadChunk(ctx context.Context, requestURL *url.URL, w
 				}
 
 				if !part.lastUpdated.IsZero() && time.Since(part.lastUpdated) > 5*time.Second {
-					log.Printf("%s part %d stalled; retrying", b.Digest[7:19], part.N)
+					slog.Info(fmt.Sprintf("%s part %d stalled; retrying", b.Digest[7:19], part.N))
 					// reset last updated
 					part.lastUpdated = time.Time{}
 					return errPartStalled
Repository: nodejs/node
Pull request: doc: clarify release candidate stability index

This PR updates the Experimental `1.2 - Release candidate` stability index to indicate that changes may occur not only because of user feedback but also, in some cases, due to the underlying specification late development changes.

I wish to be able to mark upcoming Web Cryptography additions 1.1 - Active development with runtime experimental warning but when the dust around the WICG spec settles I wish to remove the experimental warning and mark them as 1.2 - Release candidate.

However, given past experience it may take a long time before the features get merged into the main Web Cryptography spec and in those cases I wish to reserve the option to reflect last minute changes to the spec in the implementation.

cc @nodejs/tsc 

Changed files:
filename: doc/api/documentation.md
patch: @@ -41,9 +41,9 @@ The stability indexes are as follows:
 >   minimum viability.
 > * 1.2 - Release candidate. Experimental features at this stage are hopefully
 >   ready to become stable. No further breaking changes are anticipated but may
->   still occur in response to user feedback. We encourage user testing and
->   feedback so that we can know that this feature is ready to be marked as
->   stable.
+>   still occur in response to user feedback or the features' underlying
+>   specification development. We encourage user testing and feedback so that
+>   we can know that this feature is ready to be marked as stable.
 >
 > Experimental features leave the experimental status typically either by
 > graduating to stable, or are removed without a deprecation cycle.
Repository: ggml-org/llama.cpp
Pull request: sycl : update support conditions 

- [x] I have read the [contributing guidelines](https://github.com/ggerganov/llama.cpp/blob/master/CONTRIBUTING.md)
- Self-reported review complexity:
  - [x] Low
  - [ ] Medium
  - [ ] High

---

Updates SYCL supported OPs checks to be in line with the updates introduced in previous PRs, as test-backend-ops is currently failing due to unsupported datatypes in CONT and IM2COL.
 

Changed files:
filename: ggml/src/ggml-sycl.cpp
patch: @@ -5137,13 +5137,17 @@ GGML_CALL static bool ggml_backend_sycl_supports_op(ggml_backend_t backend, cons
         case GGML_OP_SCALE:
         case GGML_OP_SQR:
         case GGML_OP_CLAMP:
+            return true;
         case GGML_OP_CONT:
+            return op->src[0]->type != GGML_TYPE_BF16;
         case GGML_OP_DIAG_MASK_INF:
         case GGML_OP_SOFT_MAX:
             return true;
         case GGML_OP_ROPE:
             return ggml_is_contiguous(op->src[0]);
         case GGML_OP_IM2COL:
+            // TODO: add support for the new F32 operations
+            return op->src[0]->type == GGML_TYPE_F16;
         case GGML_OP_POOL_2D:
         case GGML_OP_SUM_ROWS:
         case GGML_OP_ARGSORT:
Repository: huggingface/transformers
Pull request: Update expected values for one more `test_speculative_generation` after #40949

# What does this PR do?

Missed this one 

> tests/models/qwen3_moe/test_modeling_qwen3_moe.py::Qwen3MoeIntegrationTest::test_speculative_generation

in #40949

Changed files:
filename: tests/models/qwen3_moe/test_modeling_qwen3_moe.py
patch: @@ -232,7 +232,7 @@ def test_model_15b_a2b_long_prompt_sdpa(self):
     @slow
     def test_speculative_generation(self):
         EXPECTED_TEXT_COMPLETION = (
-            "To be or not to be: the role of the liver in the pathogenesis of obesity and type 2 diabetes.\nThe"
+            "To be or not to be: a question of life and death\n\nThe question of life and death is a question that has"
         )
         prompt = "To be or not to"
         tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3-30B-A3B-Base", use_fast=False)
Repository: nodejs/node
Pull request: lib: use validateString

refactor validation code using validate function

<!--
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: lib/_http_client.js
patch: @@ -80,6 +80,7 @@ const {
 const {
   validateInteger,
   validateBoolean,
+  validateString,
 } = require('internal/validators');
 const { getTimerDuration } = require('internal/timers');
 const {
@@ -270,12 +271,11 @@ function ClientRequest(input, options, cb) {
     delete optsWithoutSignal.signal;
   }
   let method = options.method;
-  const methodIsString = (typeof method === 'string');
-  if (method !== null && method !== undefined && !methodIsString) {
-    throw new ERR_INVALID_ARG_TYPE('options.method', 'string', method);
+  if (method != null) {
+    validateString(method, 'options.method');
   }
 
-  if (methodIsString && method) {
+  if (method) {
     if (!checkIsHttpToken(method)) {
       throw new ERR_INVALID_HTTP_TOKEN('Method', method);
     }
Repository: ollama/ollama
Pull request: Add back ROCm container support

This adds ROCm support back as a discrete image.

Changed files:
filename: Dockerfile
patch: @@ -116,11 +116,21 @@ FROM --platform=linux/arm64 ubuntu:22.04 as runtime-arm64
 RUN apt-get update && apt-get install -y ca-certificates
 COPY --from=build-arm64 /go/src/github.com/jmorganca/ollama/ollama /bin/ollama
 
+# Radeon images are much larger so we keep it distinct from the CPU/CUDA image
+FROM --platform=linux/amd64 rocm/dev-centos-7:5.7.1-complete as runtime-rocm
+RUN update-pciids
+COPY --from=build-amd64 /go/src/github.com/jmorganca/ollama/ollama /bin/ollama
+EXPOSE 11434
+ENV OLLAMA_HOST 0.0.0.0
+
+ENTRYPOINT ["/bin/ollama"]
+CMD ["serve"]
+
 FROM runtime-$TARGETARCH
 EXPOSE 11434
 ENV OLLAMA_HOST 0.0.0.0
 ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
-ENV LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64:/opt/rocm/lib:
+ENV LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64
 ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility
 
 ENTRYPOINT ["/bin/ollama"]

filename: scripts/build_docker.sh
patch: @@ -13,3 +13,13 @@ docker build \
     -f Dockerfile \
     -t ollama/ollama:$VERSION \
     .
+
+docker build \
+    --load \
+    --platform=linux/amd64 \
+    --build-arg=VERSION \
+    --build-arg=GOFLAGS \
+    --target runtime-rocm \
+    -f Dockerfile \
+    -t ollama/ollama:$VERSION-rocm \
+    .
Repository: facebook/react
Pull request: [compiler] HIR-based FlattenScopesWithHooksOrUse

Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom):
* __->__ #29840
* #29838
* #29837

Per title, implements an HIR-based version of FlattenScopesWithHooksOrUse as part of our push to use HIR everywhere. This is the last pass to migrate before PropagateScopeDeps, which is blocking the fix for `bug.invalid-hoisting-functionexpr`, ie where we can infer incorrect dependencies for function expressions if the dependencies are accessed conditionally.

Changed files:
filename: compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/FlattenScopesWithHooksOrUseHIR.ts
patch: @@ -96,7 +96,7 @@ export function flattenScopesWithHooksOrUseHIR(fn: HIRFunction): void {
         fallthrough: terminal.fallthrough,
         id: terminal.id,
         loc: terminal.loc,
-      } satisfies LabelTerminal;
+      } as LabelTerminal;
       continue;
     }
 
@@ -107,6 +107,6 @@ export function flattenScopesWithHooksOrUseHIR(fn: HIRFunction): void {
       id: terminal.id,
       loc: terminal.loc,
       scope: terminal.scope,
-    } satisfies PrunedScopeTerminal;
+    } as PrunedScopeTerminal;
   }
 }
Repository: ggml-org/llama.cpp
Pull request: labeler : updated sycl backend to match new structure


- [x] I have read the [contributing guidelines](https://github.com/ggerganov/llama.cpp/blob/master/CONTRIBUTING.md)
- Self-reported review complexity:
  - [x] Low
  - [ ] Medium
  - [ ] High

---

Update the labeler action to match the current structure of the SYCL backend.



Changed files:
filename: .github/labeler.yml
patch: @@ -16,7 +16,9 @@ SYCL:
         - any-glob-to-any-file:
             - ggml/include/ggml-sycl.h
             - ggml/src/ggml-sycl.cpp
-            - README-sycl.md
+            - ggml/src/ggml-sycl/**
+            - docs/backend/SYCL.md
+            - examples/sycl/**
 Nvidia GPU:
     - changed-files:
         - any-glob-to-any-file:
Repository: ollama/ollama
Pull request: Fix crash on cuda ml init failure

The new driver lookup code was triggering after init failure due to a missing return

Fixes #2198 

Changed files:
filename: gpu/gpu_info_cuda.c
patch: @@ -70,6 +70,7 @@ void cuda_init(char *cuda_lib_path, cuda_init_resp_t *resp) {
     resp->ch.handle = NULL;
     snprintf(buf, buflen, "nvml vram init failure: %d", ret);
     resp->err = strdup(buf);
+    return;
   }
 
   // Report driver version if we're in verbose mode, ignore errors
Repository: denoland/deno
Pull request: fix(ext/node): fix use-after-free in StatementSync JS iterator

Keep a reference of StatementSync alive to prevent GC from destroying statement handle while iterator is being used.

Fixes https://github.com/denoland/deno/issues/31744

Changed files:
filename: ext/node/ops/sqlite/statement.rs
patch: @@ -692,6 +692,7 @@ impl StatementSync {
       RETURN = "return",
       DONE = "done",
       VALUE = "value",
+      __STATEMENT_REF = "__statement_ref",
     }
 
     self.reset()?;
@@ -797,8 +798,19 @@ impl StatementSync {
     let names = &[
       NEXT.v8_string(scope).unwrap().into(),
       RETURN.v8_string(scope).unwrap().into(),
+      __STATEMENT_REF.v8_string(scope).unwrap().into(),
     ];
-    let values = &[next_func.into(), return_func.into()];
+
+    // Get the cppgc wrapper object to keep the statement alive
+    // We store a reference to the statement object on the iterator to prevent
+    // the GC from collecting it while the iterator is still in use.
+    let statement_ref = if let Some(args) = params {
+      args.this().into()
+    } else {
+      v8::undefined(scope).into()
+    };
+
+    let values = &[next_func.into(), return_func.into(), statement_ref];
     let iterator = v8::Object::with_prototype_and_properties(
       scope,
       js_iterator_proto,

filename: tests/unit_node/sqlite_test.ts
patch: @@ -1035,3 +1035,17 @@ Deno.test("[node/sqlite] numbered parameters in different order (?2, ?1)", () =>
   // SQL puts ?2 in column a, ?1 in column b
   assertEquals(row, { a: "second_arg", b: "first_arg", __proto__: null });
 });
+
+// https://github.com/denoland/deno/issues/31744
+Deno.test("[node/sqlite] StatementSync alive while iterator", () => {
+  using db = new DatabaseSync(":memory:");
+  db.exec("create table if not exists t1(id integer primary key)");
+  const p = db.prepare(`insert into t1(id) values (?)`);
+  for (let id = 1; id <= 1_000_000; id++) {
+    p.run(id);
+  }
+  const iter = db.prepare(`select id from t1`).iterate();
+  for (const { id } of iter) {
+    assertEquals(typeof id, "number");
+  }
+});
Repository: electron/electron
Pull request: fix: restore previous Windows screenshotting

#### Description of Change

Fixes https://github.com/electron/electron/issues/45990

We previously made a change in https://github.com/electron/electron/pull/45868 to fix content protection being lost on hide and re-show. However, this cause a breaking change where protected windows were made opaque black instead of being hidden as before. This overrides relevant methods in ElectronDesktopWindowTreeHostWin to restore the previous behavior. without regressing the original issue.

#### Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

- [x] PR description included and stakeholders cc'd
- [x] `npm test` passes
- [x] tests are [changed or added](https://github.com/electron/electron/blob/main/docs/development/testing.md)
- [x] [PR release notes](https://github.com/electron/clerk/blob/main/README.md) describe the change in a way relevant to app developers, and are [capitalized, punctuated, and past tense](https://github.com/electron/clerk/blob/main/README.md#examples).

#### Release Notes

Notes: Restored previous window-hiding behavior of `win.setContentProtected()` on Windows.


Changed files:
filename: shell/browser/ui/win/electron_desktop_window_tree_host_win.cc
patch: @@ -126,6 +126,16 @@ bool ElectronDesktopWindowTreeHostWin::HandleMouseEvent(ui::MouseEvent* event) {
   return views::DesktopWindowTreeHostWin::HandleMouseEvent(event);
 }
 
+void ElectronDesktopWindowTreeHostWin::HandleVisibilityChanged(bool visible) {
+  if (native_window_view_->widget())
+    native_window_view_->widget()->OnNativeWidgetVisibilityChanged(visible);
+}
+
+void ElectronDesktopWindowTreeHostWin::SetAllowScreenshots(bool allow) {
+  ::SetWindowDisplayAffinity(GetAcceleratedWidget(),
+                             allow ? WDA_NONE : WDA_EXCLUDEFROMCAPTURE);
+}
+
 void ElectronDesktopWindowTreeHostWin::OnNativeThemeUpdated(
     ui::NativeTheme* observed_theme) {
   HWND hWnd = GetAcceleratedWidget();

filename: shell/browser/ui/win/electron_desktop_window_tree_host_win.h
patch: @@ -41,6 +41,8 @@ class ElectronDesktopWindowTreeHostWin : public views::DesktopWindowTreeHostWin,
                            int frame_thickness) const override;
   bool HandleMouseEventForCaption(UINT message) const override;
   bool HandleMouseEvent(ui::MouseEvent* event) override;
+  void HandleVisibilityChanged(bool visible) override;
+  void SetAllowScreenshots(bool allow) override;
 
   // ui::NativeThemeObserver:
   void OnNativeThemeUpdated(ui::NativeTheme* observed_theme) override;