helloadhavan/github_issues huggingface dataset:
Repository: ggml-org/llama.cpp
Pull request: cmake: Guard GGML_CPU_ALL_VARIANTS by architecture

This proposes to error out on unsupported architectures.

Doing just the standard build instead would be equal to GGML_CPU_ALL_VARIANTS=OFF and thus contradictory to what the user requested.

Changed files:
filename: ggml/src/CMakeLists.txt
patch: @@ -289,16 +289,20 @@ if (GGML_CPU_ALL_VARIANTS)
     if (NOT GGML_BACKEND_DL)
         message(FATAL_ERROR "GGML_CPU_ALL_VARIANTS requires GGML_BACKEND_DL")
     endif()
-    ggml_add_cpu_backend_variant(x64)
-    ggml_add_cpu_backend_variant(sse42        SSE42)
-    ggml_add_cpu_backend_variant(sandybridge  SSE42 AVX)
-    ggml_add_cpu_backend_variant(haswell      SSE42 AVX F16C AVX2 BMI2 FMA)
-    ggml_add_cpu_backend_variant(skylakex     SSE42 AVX F16C AVX2 BMI2 FMA AVX512)
-    ggml_add_cpu_backend_variant(icelake      SSE42 AVX F16C AVX2 BMI2 FMA AVX512 AVX512_VBMI AVX512_VNNI)
-    ggml_add_cpu_backend_variant(alderlake    SSE42 AVX F16C AVX2 BMI2 FMA AVX_VNNI)
-    if (NOT MSVC)
-        # MSVC doesn't support AMX
-        ggml_add_cpu_backend_variant(sapphirerapids SSE42 AVX F16C AVX2 BMI2 FMA AVX512 AVX512_VBMI AVX512_VNNI AVX512_BF16 AMX_TILE AMX_INT8)
+    if (GGML_SYSTEM_ARCH STREQUAL "x86")
+        ggml_add_cpu_backend_variant(x64)
+        ggml_add_cpu_backend_variant(sse42        SSE42)
+        ggml_add_cpu_backend_variant(sandybridge  SSE42 AVX)
+        ggml_add_cpu_backend_variant(haswell      SSE42 AVX F16C AVX2 BMI2 FMA)
+        ggml_add_cpu_backend_variant(skylakex     SSE42 AVX F16C AVX2 BMI2 FMA AVX512)
+        ggml_add_cpu_backend_variant(icelake      SSE42 AVX F16C AVX2 BMI2 FMA AVX512 AVX512_VBMI AVX512_VNNI)
+        ggml_add_cpu_backend_variant(alderlake    SSE42 AVX F16C AVX2 BMI2 FMA AVX_VNNI)
+        if (NOT MSVC)
+            # MSVC doesn't support AMX
+            ggml_add_cpu_backend_variant(sapphirerapids SSE42 AVX F16C AVX2 BMI2 FMA AVX512 AVX512_VBMI AVX512_VNNI AVX512_BF16 AMX_TILE AMX_INT8)
+        endif()
+    else()
+        message(FATAL_ERROR "GGML_CPU_ALL_VARIANTS not yet supported on ${GGML_SYSTEM_ARCH}")
     endif()
 elseif (GGML_CPU)
     ggml_add_cpu_backend_variant_impl("")
Repository: electron/electron
Pull request: build: ensure consistent usage of getRepo

Backport of #44079

See that PR for details.


Notes: none

Changed files:
filename: script/release/uploaders/upload-to-github.ts
patch: @@ -1,6 +1,7 @@
 import { Octokit } from '@octokit/rest';
 import * as fs from 'node:fs';
 import { createGitHubTokenStrategy } from '../github-token';
+import { ELECTRON_REPO, ElectronReleaseRepo, NIGHTLY_REPO } from '../types';
 
 if (process.argv.length < 6) {
   console.log('Usage: upload-to-github filePath fileName releaseId');
@@ -37,7 +38,11 @@ const getHeaders = (filePath: string, fileName: string) => {
   };
 };
 
-const targetRepo = releaseVersion.indexOf('nightly') > 0 ? 'nightlies' : 'electron';
+function getRepo (): ElectronReleaseRepo {
+  return releaseVersion.indexOf('nightly') > 0 ? NIGHTLY_REPO : ELECTRON_REPO;
+}
+
+const targetRepo = getRepo();
 const uploadUrl = `https://uploads.github.com/repos/electron/${targetRepo}/releases/${releaseId}/assets{?name,label}`;
 let retry = 0;
Repository: vercel/next.js
Pull request: Update Rspack production test manifest

This auto-generated PR updates the production integration test manifest used when testing Rspack.

Changed files:
filename: test/rspack-build-tests-manifest.json
patch: @@ -3406,6 +3406,13 @@
     "flakey": [],
     "runtimeError": false
   },
+  "test/e2e/app-dir/monaco-editor/monaco-editor.test.ts": {
+    "passed": ["monaco-editor should load monaco-editor"],
+    "failed": [],
+    "pending": [],
+    "flakey": [],
+    "runtimeError": false
+  },
   "test/e2e/app-dir/navigation-layout-suspense/navigation-layout-suspense.test.ts": {
     "passed": [
       "app dir - navigation with Suspense in nested layout resolves data after client navigation to a nested layout with Suspense"
@@ -4301,12 +4308,11 @@
       "ppr-full Dynamic RSC Response for /on-demand/c should have correct headers",
       "ppr-full Dynamic RSC Response for /static should have correct headers",
       "ppr-full Dynamic RSC Response for /static should not contain dynamic content",
-      "ppr-full HTML Fallback Dynamic Shell should render the dynamic shell as static if the page is static",
+      "ppr-full HTML Fallback Dynamic Shell should render the fallback shell even if the page is static",
+      "ppr-full HTML Fallback Dynamic Shell should render the fallback shell every time",
       "ppr-full HTML Fallback Dynamic Shell should render the fallback shell on first visit",
-      "ppr-full HTML Fallback Dynamic Shell should render the route shell on the second visit",
       "ppr-full HTML Fallback Dynamic Shell will allow dynamic fallback shells even when static is enforced",
-      "ppr-full HTML Fallback Dynamic Shell will only revalidate the page",
-      "ppr-full HTML Fallback Dynamic Shell will revalidate the page and fallback shell",
+      "ppr-full HTML Fallback Dynamic Shell will not revalidate the fallback shell",
       "ppr-full HTML Fallback for /fallback/nested/params/slug-01/slug-02 should render the fallback HTML immediately",
       "ppr-full HTML Fallback for /fallback/nested/use-params/slug-01/slug-02 should render the fallback HTML immediately",
       "ppr-full HTML Fallback for /fallback/nested/use-pathname/slug-01/slug-02 should render the fallback HTML immediately",
@@ -19454,11 +19460,10 @@
   },
   "test/production/pnpm-support/index.test.ts": {
     "passed": [
-      "pnpm support should build with dependencies installed via pnpm"
-    ],
-    "failed": [
+      "pnpm support should build with dependencies installed via pnpm",
       "pnpm support should execute client-side JS on each page in output: \"standalone\""
     ],
+    "failed": [],
     "pending": [],
     "flakey": [],
     "runtimeError": false
Repository: electron/electron
Pull request: build: ensure consistent usage of getRepo

Looks like this was inconsistent across branches somehow, let's align syntax to make backports clean

Notes: none

Changed files:
filename: script/release/uploaders/upload-to-github.ts
patch: @@ -1,6 +1,7 @@
 import { Octokit } from '@octokit/rest';
 import * as fs from 'node:fs';
 import { createGitHubTokenStrategy } from '../github-token';
+import { ELECTRON_REPO, ElectronReleaseRepo, NIGHTLY_REPO } from '../types';
 
 if (process.argv.length < 6) {
   console.log('Usage: upload-to-github filePath fileName releaseId');
@@ -37,7 +38,11 @@ const getHeaders = (filePath: string, fileName: string) => {
   };
 };
 
-const targetRepo = releaseVersion.indexOf('nightly') > 0 ? 'nightlies' : 'electron';
+function getRepo (): ElectronReleaseRepo {
+  return releaseVersion.indexOf('nightly') > 0 ? NIGHTLY_REPO : ELECTRON_REPO;
+}
+
+const targetRepo = getRepo();
 const uploadUrl = `https://uploads.github.com/repos/electron/${targetRepo}/releases/${releaseId}/assets{?name,label}`;
 let retry = 0;
Repository: ggml-org/llama.cpp
Pull request: cuda : fix device sync on buffer clear

The call to `cudaDeviceSynchronize` may cause CUDA graph stream capture in other threads to fail.


Changed files:
filename: ggml/src/ggml-cuda/ggml-cuda.cu
patch: @@ -615,9 +615,8 @@ static void ggml_backend_cuda_buffer_clear(ggml_backend_buffer_t buffer, uint8_t
     ggml_backend_cuda_buffer_context * ctx = (ggml_backend_cuda_buffer_context *)buffer->context;
 
     ggml_cuda_set_device(ctx->device);
-    CUDA_CHECK(cudaDeviceSynchronize());
-    CUDA_CHECK(cudaMemset(ctx->dev_ptr, value, buffer->size));
-    CUDA_CHECK(cudaDeviceSynchronize());
+    CUDA_CHECK(cudaMemsetAsync(ctx->dev_ptr, value, buffer->size, cudaStreamPerThread));
+    CUDA_CHECK(cudaStreamSynchronize(cudaStreamPerThread));
 }
 
 static const ggml_backend_buffer_i ggml_backend_cuda_buffer_interface = {
Repository: denoland/deno
Pull request: feat(fmt): support vto and njk extensions

Fixes #25802

markup_fmt plugin supports some HTML-like formats like Angular, Jinja, Twig, Nunjucks or Vento, that are not supported by `deno fmt`. This PR adds support for the extensions `njk` (Nunjucks) and `vto` (Vento). Angular doesn't have a custom extension (it uses `html` afaik) and Jinja and Twig are template engines written in Python and PHP respectively so it doesn't make sense to be supported by Deno.


Changed files:
filename: cli/tools/fmt.rs
patch: @@ -265,6 +265,8 @@ fn format_markdown(
           | "svelte"
           | "vue"
           | "astro"
+          | "vto"
+          | "njk"
           | "yml"
           | "yaml"
       ) {
@@ -288,7 +290,7 @@ fn format_markdown(
             format_css(&fake_filename, text, fmt_options)
           }
           "html" => format_html(&fake_filename, text, fmt_options),
-          "svelte" | "vue" | "astro" => {
+          "svelte" | "vue" | "astro" | "vto" | "njk" => {
             if unstable_options.component {
               format_html(&fake_filename, text, fmt_options)
             } else {
@@ -460,7 +462,7 @@ pub fn format_file(
       format_css(file_path, file_text, fmt_options)
     }
     "html" => format_html(file_path, file_text, fmt_options),
-    "svelte" | "vue" | "astro" => {
+    "svelte" | "vue" | "astro" | "vto" | "njk" => {
       if unstable_options.component {
         format_html(file_path, file_text, fmt_options)
       } else {
@@ -1139,6 +1141,8 @@ fn is_supported_ext_fmt(path: &Path) -> bool {
         | "svelte"
         | "vue"
         | "astro"
+        | "vto"
+        | "njk"
         | "md"
         | "mkd"
         | "mkdn"
@@ -1197,6 +1201,10 @@ mod test {
     assert!(is_supported_ext_fmt(Path::new("foo.VUE")));
     assert!(is_supported_ext_fmt(Path::new("foo.astro")));
     assert!(is_supported_ext_fmt(Path::new("foo.AsTrO")));
+    assert!(is_supported_ext_fmt(Path::new("foo.vto")));
+    assert!(is_supported_ext_fmt(Path::new("foo.Vto")));
+    assert!(is_supported_ext_fmt(Path::new("foo.njk")));
+    assert!(is_supported_ext_fmt(Path::new("foo.NJk")));
     assert!(is_supported_ext_fmt(Path::new("foo.yml")));
     assert!(is_supported_ext_fmt(Path::new("foo.Yml")));
     assert!(is_supported_ext_fmt(Path::new("foo.yaml")));

filename: tests/specs/fmt/njk/__test__.jsonc
patch: @@ -0,0 +1,5 @@
+{
+  "tempDir": true,
+  "args": "fmt --unstable-component",
+  "output": "[WILDLINE]badly_formatted.njk\nChecked 1 file\n"
+}
\ No newline at end of file

filename: tests/specs/fmt/njk/badly_formatted.njk
patch: @@ -0,0 +1,3 @@
+<h1>  {{ "Hello, world!" | upper }}
+  </h1>
+

filename: tests/specs/fmt/vento/__test__.jsonc
patch: @@ -0,0 +1,5 @@
+{
+  "tempDir": true,
+  "args": "fmt --unstable-component",
+  "output": "[WILDLINE]badly_formatted.vto\nChecked 1 file\n"
+}
\ No newline at end of file

filename: tests/specs/fmt/vento/badly_formatted.vto
patch: @@ -0,0 +1,3 @@
+<h1>  {{ "Hello, world!" |> toUpperCase }}
+  </h1>
+
Repository: vercel/next.js
Pull request: Turbopack: remove dead code

- `IncludeIdentModule` is unused (and incompatible with the ModuleGraph anyway)
- Cleanup some `todo!()`s

Closes PACK-4624

Changed files:
filename: turbopack/crates/turbopack-dev-server/src/source/static_assets.rs
patch: @@ -140,8 +140,9 @@ impl Introspectable for StaticAssetsContentSource {
                             .to_resolved()
                             .await?,
                         ),
-                        DirectoryEntry::Other(_) => todo!("what's DirectoryContent::Other?"),
-                        DirectoryEntry::Error => todo!(),
+                        DirectoryEntry::Other(_) | DirectoryEntry::Error => {
+                            todo!("unsupported DirectoryContent variant: {entry:?}")
+                        }
                     };
                     Ok((ResolvedVc::cell(name.clone()), child))
                 }

filename: turbopack/crates/turbopack-ecmascript/src/async_chunk/module.rs
patch: @@ -76,7 +76,7 @@ impl Module for AsyncLoaderModule {
 impl Asset for AsyncLoaderModule {
     #[turbo_tasks::function]
     fn content(&self) -> Vc<AssetContent> {
-        todo!()
+        panic!("content() should not be called");
     }
 }
 

filename: turbopack/crates/turbopack-ecmascript/src/manifest/chunk_asset.rs
patch: @@ -152,7 +152,7 @@ impl Module for ManifestAsyncModule {
 impl Asset for ManifestAsyncModule {
     #[turbo_tasks::function]
     fn content(&self) -> Vc<AssetContent> {
-        todo!()
+        panic!("content() should not be called");
     }
 }
 

filename: turbopack/crates/turbopack-ecmascript/src/references/external_module.rs
patch: @@ -268,35 +268,3 @@ impl EcmascriptChunkItem for CachedExternalModuleChunkItem {
         )
     }
 }
-
-/// A module that only has an ident and no content nor references.
-///
-/// It is used to include a module's ident in the module graph before the module
-/// itself is resolved, as is the case with NextServerComponentModule's
-/// "client modules" and "ssr modules".
-#[turbo_tasks::value]
-pub struct IncludeIdentModule {
-    ident: ResolvedVc<AssetIdent>,
-}
-
-#[turbo_tasks::value_impl]
-impl IncludeIdentModule {
-    #[turbo_tasks::function]
-    pub fn new(ident: ResolvedVc<AssetIdent>) -> Vc<Self> {
-        Self { ident }.cell()
-    }
-}
-
-impl Asset for IncludeIdentModule {
-    fn content(self: Vc<Self>) -> Vc<AssetContent> {
-        todo!("IncludeIdentModule doesn't implement content()")
-    }
-}
-
-#[turbo_tasks::value_impl]
-impl Module for IncludeIdentModule {
-    #[turbo_tasks::function]
-    fn ident(&self) -> Vc<AssetIdent> {
-        *self.ident
-    }
-}

filename: turbopack/crates/turbopack-ecmascript/src/worker_chunk/module.rs
patch: @@ -62,7 +62,7 @@ impl Module for WorkerLoaderModule {
 impl Asset for WorkerLoaderModule {
     #[turbo_tasks::function]
     fn content(&self) -> Vc<AssetContent> {
-        todo!()
+        panic!("content() should not be called");
     }
 }
Repository: electron/electron
Pull request: perf: use ArrayBuffer::Data() instead of GetBackingStore()->Data()

Backport of #44067

See that PR for details.


Notes: none.

Changed files:
filename: shell/common/api/electron_api_native_image.cc
patch: @@ -255,9 +255,7 @@ v8::Local<v8::Value> NativeImage::ToBitmap(gin::Arguments* args) {
 
   auto array_buffer =
       v8::ArrayBuffer::New(args->isolate(), info.computeMinByteSize());
-  auto backing_store = array_buffer->GetBackingStore();
-  if (bitmap.readPixels(info, backing_store->Data(), info.minRowBytes(), 0,
-                        0)) {
+  if (bitmap.readPixels(info, array_buffer->Data(), info.minRowBytes(), 0, 0)) {
     return node::Buffer::New(args->isolate(), array_buffer, 0,
                              info.computeMinByteSize())
         .ToLocalChecked();

filename: shell/common/api/electron_api_url_loader.cc
patch: @@ -712,8 +712,7 @@ void SimpleURLLoaderWrapper::OnDataReceived(std::string_view string_view,
   v8::Isolate* isolate = JavascriptEnvironment::GetIsolate();
   v8::HandleScope handle_scope(isolate);
   auto array_buffer = v8::ArrayBuffer::New(isolate, string_view.size());
-  auto backing_store = array_buffer->GetBackingStore();
-  memcpy(backing_store->Data(), string_view.data(), string_view.size());
+  memcpy(array_buffer->Data(), string_view.data(), string_view.size());
   Emit("data", array_buffer,
        base::AdaptCallbackForRepeating(std::move(resume)));
 }
Repository: vercel/next.js
Pull request: perf(turbopack): Update `sourcemap` to make `flatten()` faster

### What?

Update the `sourcemap` crate to the latest version.

### Why?

To apply https://github.com/getsentry/rust-sourcemap/pull/121


Closes PACK-4628

Changed files:
filename: Cargo.lock
patch: @@ -7161,9 +7161,9 @@ dependencies = [
 
 [[package]]
 name = "sourcemap"
-version = "9.2.0"
+version = "9.2.1"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dd430118acc9fdd838557649b9b43fd0a78e3834d84a283b466f8e84720d6101"
+checksum = "bdee719193ae5c919a3ee43f64c2c0dd87f9b9a451d67918a2a5ec2e3c70561c"
 dependencies = [
  "base64-simd 0.8.0",
  "bitvec",

filename: Cargo.toml
patch: @@ -407,7 +407,7 @@ smallvec = { version = "1.13.1", features = [
   "union",
   "const_new",
 ] }
-sourcemap = "9.0.0"
+sourcemap = "9.2.1"
 strsim = "0.11.1"
 shrink-to-fit = "0.2.10"
 swc-rustc-hash = { package = "rustc-hash", version = "1.1.0" } # used with swc
Repository: nodejs/node
Pull request: src: add check for Bignum in GroupOrderSize

I think it's missed, cause in this file we have example of checking result of BignumPointer::new

Fixes: https://github.com/nodejs/node/issues/56692


Changed files:
filename: src/crypto/crypto_ec.cc
patch: @@ -918,6 +918,7 @@ size_t GroupOrderSize(const EVPKeyPointer& key) {
   const EC_KEY* ec = key;
   CHECK_NOT_NULL(ec);
   auto order = BignumPointer::New();
+  CHECK(order);
   CHECK(EC_GROUP_get_order(ECKeyPointer::GetGroup(ec), order.get(), nullptr));
   return order.byteLength();
 }
Repository: huggingface/transformers
Pull request: Fix InternVL interpolate_pos_encoding and add to video_processing_auto

# What does this PR do?
Fix small issue with InternVL interpolate_pos_encoding function, and add InternVL to video_processing_auto (currently all integration tests are crashing on main).

Cc @zucchini-nlp for video processor

Changed files:
filename: src/transformers/models/auto/video_processing_auto.py
patch: @@ -24,13 +24,7 @@
 # Build the list of all video processors
 from ...configuration_utils import PretrainedConfig
 from ...dynamic_module_utils import get_class_from_dynamic_module, resolve_trust_remote_code
-from ...utils import (
-    CONFIG_NAME,
-    VIDEO_PROCESSOR_NAME,
-    cached_file,
-    is_torchvision_available,
-    logging,
-)
+from ...utils import CONFIG_NAME, VIDEO_PROCESSOR_NAME, cached_file, is_torchvision_available, logging
 from ...utils.import_utils import requires
 from ...video_processing_utils import BaseVideoProcessor
 from .auto_factory import _LazyAutoMapping
@@ -53,6 +47,7 @@
     VIDEO_PROCESSOR_MAPPING_NAMES = OrderedDict(
         [
             ("instructblipvideo", "InstructBlipVideoVideoProcessor"),
+            ("internvl", "InternVLVideoProcessor"),
             ("llava_next_video", "LlavaNextVideoVideoProcessor"),
             ("llava_onevision", "LlavaOnevisionVideoProcessor"),
             ("qwen2_5_vl", "Qwen2_5_VLVideoProcessor"),

filename: src/transformers/models/internvl/modeling_internvl.py
patch: @@ -329,8 +329,8 @@ def interpolate_pos_encoding(self, embeddings: torch.Tensor, height: int, width:
 
         dim = embeddings.shape[-1]
 
-        new_height = height // self.patch_size
-        new_width = width // self.patch_size
+        new_height = height // self.patch_size[0]
+        new_width = width // self.patch_size[1]
 
         sqrt_num_positions = torch_int(num_positions**0.5)
         patch_pos_embed = patch_pos_embed.reshape(1, sqrt_num_positions, sqrt_num_positions, dim)

filename: src/transformers/models/internvl/modular_internvl.py
patch: @@ -286,8 +286,8 @@ def interpolate_pos_encoding(self, embeddings: torch.Tensor, height: int, width:
 
         dim = embeddings.shape[-1]
 
-        new_height = height // self.patch_size
-        new_width = width // self.patch_size
+        new_height = height // self.patch_size[0]
+        new_width = width // self.patch_size[1]
 
         sqrt_num_positions = torch_int(num_positions**0.5)
         patch_pos_embed = patch_pos_embed.reshape(1, sqrt_num_positions, sqrt_num_positions, dim)
Repository: denoland/deno
Pull request: tests: update specs::cache::package_json

Towards https://github.com/denoland/deno/issues/25241

Usage of `deno cache` makes sense when `nodeModulesDir: none` option is used. The test is updated to match the expectation.

Changed files:
filename: tests/specs/cache/package_json/__test__.jsonc
patch: @@ -1,7 +1,13 @@
 {
   "tempDir": true,
-  // TODO(2.0): decide if this test should be fixed or removed
-  "ignore": true,
-  "args": "cache main.ts",
-  "output": "main.cache.out"
+  "steps": [
+    {
+      "args": "cache main.ts",
+      "output": "main.cache.out"
+    },
+    {
+      "args": "eval console.log(Deno.readTextFileSync('deno.lock').trim())",
+      "output": "deno.lock.out"
+    }
+  ]
 }

filename: tests/specs/cache/package_json/deno.json
patch: @@ -0,0 +1,3 @@
+{
+  "nodeModulesDir": "none"
+}

filename: tests/specs/cache/package_json/deno.lock.out
patch: @@ -0,0 +1,16 @@
+{
+  "version": "4",
+  "specifiers": {
+    "npm:@denotest/esm-basic@*": "1.0.0"
+  },
+  "npm": {
+    "@denotest/esm-basic@1.0.0": [WILDCARD]
+  },
+  "workspace": {
+    "packageJson": {
+      "dependencies": [
+        "npm:@denotest/esm-basic@*"
+      ]
+    }
+  }
+}

filename: tests/specs/cache/package_json/main.cache.out
patch: @@ -1,3 +1,2 @@
 Download http://localhost:4260/@denotest/esm-basic
 Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
-Initialize @denotest/esm-basic@1.0.0
Repository: ggml-org/llama.cpp
Pull request: webui: fix sidebar being covered by main content

*Make sure to read the [contributing guidelines](https://github.com/ggml-org/llama.cpp/blob/master/CONTRIBUTING.md) before submitting a PR*

The `grow` class (`flex-grow: 1`) will make the main content take up the remaining space after the sidebar. Removing `w-screen` prevents the main content from forcing itself to be 100% of the viewport width.

Before:
![before](https://github.com/user-attachments/assets/fe209af4-6689-489a-84d0-0902ae6ef817)

After:
![after](https://github.com/user-attachments/assets/185c6071-f725-41ee-aede-c95895933df9)


Changed files:
filename: tools/server/webui/src/App.tsx
patch: @@ -32,7 +32,7 @@ function AppLayout() {
     <>
       <Sidebar />
       <main
-        className="drawer-content grow flex flex-col h-screen w-screen mx-auto px-4 overflow-auto bg-base-100"
+        className="drawer-content grow flex flex-col h-screen mx-auto px-4 overflow-auto bg-base-100"
         id="main-scroll"
       >
         <Header />
Repository: electron/electron
Pull request: fix: -Wunsafe-buffer-usage warnings in WebFrameRenderer::ExecuteJavaScript()

Backport of #44053

See that PR for details.


Notes: none.

Changed files:
filename: shell/renderer/api/electron_api_web_frame.cc
patch: @@ -9,6 +9,7 @@
 #include <utility>
 #include <vector>
 
+#include "base/containers/span.h"
 #include "base/memory/memory_pressure_listener.h"
 #include "base/strings/utf_string_conversions.h"
 #include "components/spellcheck/renderer/spellcheck.h"
@@ -653,7 +654,7 @@ class WebFrameRenderer final : public gin::Wrappable<WebFrameRenderer>,
                                              std::move(completion_callback));
 
     render_frame->GetWebFrame()->RequestExecuteScript(
-        blink::DOMWrapperWorld::kMainWorldId, base::make_span(&source, 1u),
+        blink::DOMWrapperWorld::kMainWorldId, base::span_from_ref(source),
         has_user_gesture ? blink::mojom::UserActivationOption::kActivate
                          : blink::mojom::UserActivationOption::kDoNotActivate,
         blink::mojom::EvaluationTiming::kSynchronous,
Repository: ggml-org/llama.cpp
Pull request: server : fix LRU check

fix https://github.com/ggml-org/llama.cpp/issues/14073

When `slot.t_last_used == t_last` the deferred tasks got stuck in the deferred queue.

Changed files:
filename: tools/server/server.cpp
patch: @@ -2142,15 +2142,16 @@ struct server_context {
 
         // find the slot that has been least recently used
         if (ret == nullptr) {
-            int64_t t_last = ggml_time_us();
+            int64_t t_last = -1;
+
             for (server_slot & slot : slots) {
                 // skip the slot if it is not available
                 if (slot.is_processing()) {
                     continue;
                 }
 
                 // select the current slot if the criteria match
-                if (slot.t_last_used < t_last) {
+                if (!ret || slot.t_last_used <= t_last) {
                     t_last = slot.t_last_used;
                     ret = &slot;
                 }