helloadhavan/github_issues huggingface dataset:
Repository: electron/electron
Pull request: fix: correctly track BaseWindow::IsActive() on MacOS

Backport of #49460

See that PR for details.


Notes: Fixed improper focus tracking in BaseWindow on MacOS

Changed files:
filename: shell/browser/api/electron_api_base_window.cc
patch: @@ -307,6 +307,12 @@ void BaseWindow::OnWindowSheetEnd() {
   Emit("sheet-end");
 }
 
+void BaseWindow::OnWindowIsKeyChanged(bool is_key) {
+#if BUILDFLAG(IS_MAC)
+  window()->SetActive(is_key);
+#endif
+}
+
 void BaseWindow::OnWindowEnterHtmlFullScreen() {
   Emit("enter-html-full-screen");
 }

filename: shell/browser/api/electron_api_base_window.h
patch: @@ -84,6 +84,7 @@ class BaseWindow : public gin_helper::TrackableObject<BaseWindow>,
   void OnWindowRotateGesture(float rotation) override;
   void OnWindowSheetBegin() override;
   void OnWindowSheetEnd() override;
+  void OnWindowIsKeyChanged(bool is_key) override;
   void OnWindowEnterFullScreen() override;
   void OnWindowLeaveFullScreen() override;
   void OnWindowEnterHtmlFullScreen() override;
Repository: huggingface/transformers
Pull request: Fix: AQLM quantizer to match updated replace_with_aqlm_linear signature

  - Fix quantizer_aqlm.py to use renamed modules_to_not_convert parameter instead of removed linear_weights_not_to_quantize
  - Update test to match new function signature: no tuple return, module names instead of weight names

Changed files:
filename: src/transformers/quantizers/quantizer_aqlm.py
patch: @@ -55,7 +55,7 @@ def _process_model_before_weight_loading(
         replace_with_aqlm_linear(
             model,
             quantization_config=self.quantization_config,
-            linear_weights_not_to_quantize=self.quantization_config.linear_weights_not_to_quantize,
+            modules_to_not_convert=self.quantization_config.linear_weights_not_to_quantize,
         )
 
     @property

filename: tests/quantization/aqlm_integration/test_aqlm.py
patch: @@ -117,20 +117,20 @@ def test_quantized_model_conversion(self):
             if isinstance(module, torch.nn.Linear):
                 nb_linears += 1
 
-        model, _ = replace_with_aqlm_linear(model, quantization_config=quantization_config)
+        model = replace_with_aqlm_linear(model, quantization_config=quantization_config)
         nb_aqlm_linear = 0
         for module in model.modules():
             if isinstance(module, QuantizedLinear):
                 nb_aqlm_linear += 1
 
         self.assertEqual(nb_linears, nb_aqlm_linear)
 
-        # Try with `linear_weights_not_to_quantize`
+        # Try with `modules_to_not_convert`
         with torch.device("meta"):
             model = OPTForCausalLM(config)
 
-        model, _ = replace_with_aqlm_linear(
-            model, quantization_config=quantization_config, linear_weights_not_to_quantize=["lm_head.weight"]
+        model = replace_with_aqlm_linear(
+            model, quantization_config=quantization_config, modules_to_not_convert=["lm_head"]
         )
         nb_aqlm_linear = 0
         for module in model.modules():
Repository: rust-lang/rust
Pull request: large_enums mir pass: fix is_enabled logic

This logic got turned from a guard in `run_pass` to an `is_enabled` check in https://github.com/rust-lang/rust/pull/85158/changes/15d4728cda673e90b4db1ea2c60d18a6fae306d0#r2989096960, but that was done incorrectly. The pass must never be enabled without `unsound_mir_opts`!

Changed files:
filename: compiler/rustc_mir_transform/src/large_enums.rs
patch: @@ -32,8 +32,8 @@ impl<'tcx> crate::MirPass<'tcx> for EnumSizeOpt {
     fn is_enabled(&self, sess: &Session) -> bool {
         // There are some differences in behavior on wasm and ARM that are not properly
         // understood, so we conservatively treat this optimization as unsound:
-        // https://github.com/rust-lang/rust/pull/85158#issuecomment-1101836457
-        sess.opts.unstable_opts.unsound_mir_opts || sess.mir_opt_level() >= 3
+        // https://github.com/rust-lang/rust/issues/154413
+        sess.opts.unstable_opts.unsound_mir_opts && sess.mir_opt_level() >= 3
     }
 
     fn run_pass(&self, tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
Repository: vercel/next.js
Pull request: example: remove duplicate items in .dockerignore

Removed duplicate entries for cache and temporary directories.

```diff
- # Cache directories and temporary data
- .cache/
- .parcel-cache/
- .eslintcache
- .stylelintcache
- .turbo/
- .tmp/
# Cache directories and temporary data
.cache/
.parcel-cache/
.eslintcache
.stylelintcache
.swc/
.turbo/
.tmp/
.temp/
```


Changed files:
filename: examples/with-docker/.dockerignore
patch: @@ -75,13 +75,6 @@ docs/
 .circleci/
 Jenkinsfile
 
-# Cache directories and temporary data
-.cache/
-.parcel-cache/
-.eslintcache
-.stylelintcache
-.turbo/
-.tmp/
 # Cache directories and temporary data
 .cache/
 .parcel-cache/
Repository: facebook/react
Pull request: Don't skip content in visible offscreen trees for Gesture View Transitions

Follow up to #35063.

I forgot there's another variant of this in the ApplyGesture path.

Changed files:
filename: packages/react-reconciler/src/ReactFiberApplyGesture.js
patch: @@ -146,7 +146,7 @@ function trackDeletedPairViewTransitions(deletion: Fiber): void {
   }
   let child = deletion.child;
   while (child !== null) {
-    if (child.tag === OffscreenComponent && child.memoizedState === null) {
+    if (child.tag === OffscreenComponent && child.memoizedState !== null) {
       // This tree was already hidden so we skip it.
     } else {
       if (
Repository: vercel/next.js
Pull request: Fix preview tarball script to include @next/swc-linux-x64-gnu

### What?

Adds `@next/swc-linux-x64-gnu` to the preview tarball patching script (`scripts/patch-preview-tarball.mjs`):

1. Adds the package to the `PACKAGES_TO_PATCH` list so its tarball URL is fetched.
2. Adds the package as an explicit dependency in the patched `package.json`, in addition to the overrides/resolutions.

### Why?

The `@next/swc-linux-x64-gnu` native binary package is an optional dependency of `next` and may not be installed automatically depending on the platform/package manager. When testing preview tarballs (e.g., in CI or on Linux environments), the SWC binary needs to be explicitly present for Next.js to function correctly. Without this change, preview tarball testing on Linux x64 could fail because the native binary isn't resolved from the preview build.

Adding it as a direct dependency (not just an override/resolution) ensures the package manager actually installs it, since optional dependencies from overridden tarballs may not be auto-resolved.

### How?

- Added `'@next/swc-linux-x64-gnu'` to the `PACKAGES_TO_PATCH` array so the script fetches its tarball URL.
- After writing overrides/resolutions, the script now also adds `@next/swc-linux-x64-gnu` as an explicit entry in `pkg.dependencies` pointing to the tarball URL.

Changed files:
filename: scripts/patch-preview-tarball.mjs
patch: @@ -10,6 +10,7 @@ const PACKAGES_TO_PATCH = [
   '@next/mdx',
   '@next/env',
   '@next/bundle-analyzer',
+  '@next/swc-linux-x64-gnu',
 ]
 
 // --- Argument parsing ---
@@ -186,6 +187,12 @@ async function patchPackageJson(projectPath, tarballUrls) {
     pkg.resolutions[name] = url
   }
 
+  // Add @next/swc-linux-x64-gnu to dependencies
+  pkg.dependencies = pkg.dependencies || {}
+  pkg.dependencies['@next/swc-linux-x64-gnu'] = tarballUrls.get(
+    '@next/swc-linux-x64-gnu'
+  )
+
   await fs.writeFile(packageJsonPath, JSON.stringify(pkg, null, 2) + '\n')
 
   console.log(`Patched ${packageJsonPath}`)
Repository: rust-lang/rust
Pull request: simd_add/sub/mul/neg: document overflow behavior

`simd_neg` had an odd comment about overflow not being UB, without saying what the behavior is instead. Replace that by just saying this uses wrapping arithmetic, and add the same for add/sub/mul. div/rem are already documented to cause UB on div-by-zero and min-div-by-minus-one, and shl/shr cause UB on too large shift amounts.

Changed files:
filename: library/core/src/intrinsics/simd.rs
patch: @@ -62,20 +62,23 @@ pub const unsafe fn simd_splat<T, U>(value: U) -> T;
 /// Adds two simd vectors elementwise.
 ///
 /// `T` must be a vector of integers or floats.
+/// For integers, wrapping arithmetic is used.
 #[rustc_intrinsic]
 #[rustc_nounwind]
 pub const unsafe fn simd_add<T>(x: T, y: T) -> T;
 
 /// Subtracts `rhs` from `lhs` elementwise.
 ///
 /// `T` must be a vector of integers or floats.
+/// For integers, wrapping arithmetic is used.
 #[rustc_intrinsic]
 #[rustc_nounwind]
 pub const unsafe fn simd_sub<T>(lhs: T, rhs: T) -> T;
 
 /// Multiplies two simd vectors elementwise.
 ///
 /// `T` must be a vector of integers or floats.
+/// For integers, wrapping arithmetic is used.
 #[rustc_intrinsic]
 #[rustc_nounwind]
 pub const unsafe fn simd_mul<T>(x: T, y: T) -> T;
@@ -233,8 +236,7 @@ pub const unsafe fn simd_as<T, U>(x: T) -> U;
 /// Negates a vector elementwise.
 ///
 /// `T` must be a vector of integers or floats.
-///
-/// Rust panics for `-<int>::Min` due to overflow, but it is not UB with this intrinsic.
+/// For integers, wrapping arithmetic is used.
 #[rustc_intrinsic]
 #[rustc_nounwind]
 pub const unsafe fn simd_neg<T>(x: T) -> T;
Repository: huggingface/transformers
Pull request: Fix PR comment CI for quantization job

# What does this PR do?

We need to fetch the specific commit (the so called merge commit created by Github itself)

Changed files:
filename: .github/workflows/self-scheduled.yml
patch: @@ -449,7 +449,7 @@ jobs:
         working-directory: /transformers
         env:
           commit_sha: ${{ inputs.commit_sha || github.sha }}
-        run: git fetch && git checkout "$commit_sha"
+        run: git fetch origin "$commit_sha" && git checkout "$commit_sha"
 
       - name: Reinstall transformers in edit mode (remove the one installed during docker image build)
         working-directory: /transformers
Repository: vercel/next.js
Pull request: Turbopack: Pass hmr_enabled to ImportMetaBinding

`is_hot_module_replacement_enabled` was removed from ChunkingContexts. Instead, pass it through from CompileTimeInfo when constructing ImportMetaBinding during analysis.

Test Plan: CI


Changed files:
filename: turbopack/crates/turbopack-ecmascript/src/references/esm/meta.rs
patch: @@ -31,11 +31,12 @@ use crate::{
 )]
 pub struct ImportMetaBinding {
     path: FileSystemPath,
+    hmr_enabled: bool,
 }
 
 impl ImportMetaBinding {
-    pub fn new(path: FileSystemPath) -> Self {
-        ImportMetaBinding { path }
+    pub fn new(path: FileSystemPath, hmr_enabled: bool) -> Self {
+        ImportMetaBinding { path, hmr_enabled }
     }
 
     pub async fn code_generation(
@@ -63,7 +64,7 @@ impl ImportMetaBinding {
             },
         );
 
-        let hmr_enabled = *chunking_context.is_hot_module_replacement_enabled().await?;
+        let hmr_enabled = self.hmr_enabled;
 
         // [NOTE] url property is lazy-evaluated, as it should be computed once
         // turbopack_runtime injects a function to calculate an absolute path.

filename: turbopack/crates/turbopack-ecmascript/src/references/mod.rs
patch: @@ -1585,6 +1585,9 @@ async fn analyze_ecmascript_module_internal(
                         analysis_state.first_import_meta = false;
                         analysis.add_code_gen(ImportMetaBinding::new(
                             source.ident().path().owned().await?,
+                            analysis_state
+                                .compile_time_info_ref
+                                .hot_module_replacement_enabled,
                         ));
                     }
Repository: facebook/react
Pull request: Don't skip content in visible offscreen trees for View Transitions

Also, don't not skip hidden trees.

Memoized state is null when an Offscreen boundary (Suspense or Activity) is visible.

This logic was inversed in a couple of View Transition checks which caused pairs to be discovered or not discovered incorrectly for insertion and deletion of Suspense or Activity boundaries.

Changed files:
filename: packages/react-reconciler/src/ReactFiberCommitViewTransitions.js
patch: @@ -233,7 +233,7 @@ function commitAppearingPairViewTransitions(placement: Fiber): void {
   }
   let child = placement.child;
   while (child !== null) {
-    if (child.tag === OffscreenComponent && child.memoizedState === null) {
+    if (child.tag === OffscreenComponent && child.memoizedState !== null) {
       // This tree was already hidden so we skip it.
     } else {
       commitAppearingPairViewTransitions(child);
@@ -347,7 +347,7 @@ function commitDeletedPairViewTransitions(deletion: Fiber): void {
   }
   let child = deletion.child;
   while (child !== null) {
-    if (child.tag === OffscreenComponent && child.memoizedState === null) {
+    if (child.tag === OffscreenComponent && child.memoizedState !== null) {
       // This tree was already hidden so we skip it.
     } else {
       if (
@@ -550,7 +550,7 @@ function restorePairedViewTransitions(parent: Fiber): void {
   }
   let child = parent.child;
   while (child !== null) {
-    if (child.tag === OffscreenComponent && child.memoizedState === null) {
+    if (child.tag === OffscreenComponent && child.memoizedState !== null) {
       // This tree was already hidden so we skip it.
     } else {
       if (
Repository: nodejs/node
Pull request: lib: improve argument handling in Blob constructor

As specified in WebIDL (<https://webidl.spec.whatwg.org/#js-dictionary>), the fields of a dictionary need to be read in lexicographical order.

<!--
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/internal/blob.js
patch: @@ -149,8 +149,8 @@ class Blob {
     }
     validateDictionary(options, 'options');
     let {
-      type = '',
       endings = 'transparent',
+      type = '',
     } = options ?? kEmptyObject;
 
     endings = `${endings}`;

filename: test/wpt/status/FileAPI/blob.json
patch: @@ -10,7 +10,6 @@
         "blobParts not an object: BigInt with BigInt.prototype[Symbol.iterator]",
         "blobParts not an object: Symbol with Symbol.prototype[Symbol.iterator]",
         "Getters and value conversions should happen in order until an exception is thrown.",
-        "options properties should be accessed in lexicographic order.",
         "Arguments should be evaluated from left to right."
       ],
       "flaky": [
Repository: huggingface/transformers
Pull request: Correct Tapas initialization

Some parameters in Tapas are initialized in `__init__()` and not reinitialized in `_init_weights()`, which means that if the model is created on the `meta` device, those parameters do not get a weight initialization. This causes a crash later if the uninitialized memory has some `NaN` values in it! This caused the `test_all_tensors_are_parameter_or_buffer` test to be flaky.

This PR leaves tensor creation in `__init__()` but moves initialization to `_init_weights()`

cc @vasqu 

Changed files:
filename: src/transformers/models/tapas/modeling_tapas.py
patch: @@ -512,6 +512,15 @@ def _init_weights(self, module):
         super()._init_weights(module)
         if isinstance(module, TapasLMPredictionHead):
             init.zeros_(module.bias)
+        if isinstance(module, TapasForQuestionAnswering):
+            if module.config.init_cell_selection_weights_to_zero:
+                init.zeros_(module.output_weights)
+                init.zeros_(module.column_output_weights)
+            else:
+                init.normal_(module.output_weights, std=module.config.initializer_range)
+                init.normal_(module.column_output_weights, std=module.config.initializer_range)
+            init.zeros_(module.output_bias)
+            init.zeros_(module.column_output_bias)
 
 
 @auto_docstring
@@ -801,22 +810,10 @@ def __init__(self, config: TapasConfig):
         self.dropout = nn.Dropout(config.hidden_dropout_prob)
 
         # cell selection heads
-        if config.init_cell_selection_weights_to_zero:
-            # init_cell_selection_weights_to_zero: Whether the initial weights should be
-            # set to 0. This ensures that all tokens have the same prior probability.
-            self.output_weights = nn.Parameter(torch.zeros(config.hidden_size))
-            self.column_output_weights = nn.Parameter(torch.zeros(config.hidden_size))
-        else:
-            self.output_weights = nn.Parameter(torch.empty(config.hidden_size))
-            init.normal_(
-                self.output_weights, std=config.initializer_range
-            )  # here, a truncated normal is used in the original implementation
-            self.column_output_weights = nn.Parameter(torch.empty(config.hidden_size))
-            init.normal_(
-                self.column_output_weights, std=config.initializer_range
-            )  # here, a truncated normal is used in the original implementation
-        self.output_bias = nn.Parameter(torch.zeros([]))
-        self.column_output_bias = nn.Parameter(torch.zeros([]))
+        self.output_weights = nn.Parameter(torch.empty(config.hidden_size))
+        self.column_output_weights = nn.Parameter(torch.empty(config.hidden_size))
+        self.output_bias = nn.Parameter(torch.empty([]))
+        self.column_output_bias = nn.Parameter(torch.empty([]))
 
         # aggregation head
         if config.num_aggregation_labels > 0:
Repository: electron/electron
Pull request: feat: add nv12 osr format support.

#### Description of Change

Add `nv12` OSR pixel format support for professional use.

Closes #49707

#### Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

- [x] PR description included
- [x] I have built and tested this PR
- [x] `npm test` passes
- [x] tests are [changed or added](https://github.com/electron/electron/blob/main/docs/development/testing.md)
- [x] relevant API documentation, tutorials, and examples are updated and follow the [documentation style guide](https://github.com/electron/electron/blob/main/docs/development/style-guide.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: Added `nv12` OSR pixel format support for professional use.

Changed files:
filename: docs/api/structures/web-preferences.md
patch: @@ -94,6 +94,7 @@
     The actual output pixel format and color space of the texture should refer to [`OffscreenSharedTexture`](../structures/offscreen-shared-texture.md) object in the `paint` event.
     * `argb` - The requested output texture format is 8-bit unorm RGBA, with SRGB SDR color space.
     * `rgbaf16` - The requested output texture format is 16-bit float RGBA, with scRGB HDR color space.
+    * `nv12` - The requested output texture format is 12bpp with Y plane followed by a 2x2 interleaved UV plane, with REC709 color space.
   * `deviceScaleFactor` number (optional) _Experimental_ - The device scale factor of the offscreen rendering output. If not set, will use `1` as default.
 * `contextIsolation` boolean (optional) - Whether to run Electron APIs and
   the specified `preload` script in a separate JavaScript context. Defaults

filename: shell/browser/osr/osr_video_consumer.cc
patch: @@ -24,6 +24,8 @@ media::VideoPixelFormat GetTargetPixelFormatFromOption(
     return media::PIXEL_FORMAT_ARGB;
   } else if (pixel_format_option == "rgbaf16") {
     return media::PIXEL_FORMAT_RGBAF16;
+  } else if (pixel_format_option == "nv12") {
+    return media::PIXEL_FORMAT_NV12;
   }
 
   // Use ARGB as default.

filename: shell/common/gin_converters/osr_converter.cc
patch: @@ -31,6 +31,8 @@ std::string OsrVideoPixelFormatToString(media::VideoPixelFormat format) {
       return "rgba";
     case media::PIXEL_FORMAT_RGBAF16:
       return "rgbaf16";
+    case media::PIXEL_FORMAT_NV12:
+      return "nv12";
     default:
       NOTREACHED();
   }
Repository: ollama/ollama
Pull request: Fix broken Swollama links after repository transfer

Fix broken Swollama links after repository transfer

The Swollama repository was transferred from marcusziade to guitaripod. While GitHub auto-redirects the repo URL, the GitHub Pages documentation link is broken and needs to be updated manually.

Changes:
- Update repo link: marcusziade/Swollama → guitaripod/Swollama
- Update docs link: marcusziade.github.io → guitaripod.github.io

The repository link still works due to GitHub's automatic redirect, but updating it prevents confusion and ensures future link stability. The documentation link returns 404 and needs to be updated.

Changed files:
filename: README.md
patch: @@ -555,7 +555,7 @@ See the [API documentation](./docs/api.md) for all endpoints.
 - [Parakeet](https://github.com/parakeet-nest/parakeet) is a GoLang library, made to simplify the development of small generative AI applications with Ollama.
 - [Haverscript](https://github.com/andygill/haverscript) with [examples](https://github.com/andygill/haverscript/tree/main/examples)
 - [Ollama for Swift](https://github.com/mattt/ollama-swift)
-- [Swollama for Swift](https://github.com/marcusziade/Swollama) with [DocC](https://marcusziade.github.io/Swollama/documentation/swollama/)
+- [Swollama for Swift]([https://github.com/marcusziade/Swollama](https://github.com/guitaripod/Swollama) with [DocC]( https://guitaripod.github.io/Swollama/documentation/swollama)
 - [GoLamify](https://github.com/prasad89/golamify)
 - [Ollama for Haskell](https://github.com/tusharad/ollama-haskell)
 - [multi-llm-ts](https://github.com/nbonamy/multi-llm-ts) (A Typescript/JavaScript library allowing access to different LLM in a unified API)