helloadhavan/github_issues huggingface dataset:
Repository: vercel/next.js
Pull request: Ignore generated `@next/swc-wasm-nodejs` JS code during linting

[These files are already gitignored](https://github.com/vercel/next.js/blob/78523679d1d28b524ce6ec6a7af7e098df0ff3dd/.gitignore#L6). They don't successfully lint so it's noisy if you happen to have them locally. 

Can't remember how I got these files. Probably some combination of `build-error-code-plugin`, `build` or `swc-build-native`. Can't get these files back after I manually deleted them to shut up ESLint.

Changed files:
filename: .eslintignore
patch: @@ -17,6 +17,7 @@ examples/with-tigris/db/models/todoItems.ts
 packages/next/src/bundles/webpack/packages/*.runtime.js
 packages/next/src/bundles/webpack/packages/lazy-compilation-*.js
 packages/next/src/compiled/**/*
+packages/next/wasm/@next
 packages/react-refresh-utils/**/*.js
 packages/react-dev-overlay/lib/**
 **/__tmp__/**

filename: .prettierignore
patch: @@ -13,6 +13,7 @@ pnpm-lock.yaml
 
 packages/next/src/bundles/webpack/packages/*.runtime.js
 packages/next/src/bundles/webpack/packages/lazy-compilation-*.js
+packages/next/wasm/@next
 packages/next/errors.json
 
 .github/actions/next-stats-action/.work
Repository: ggml-org/llama.cpp
Pull request: sync : ggml


Changed files:
filename: scripts/sync-ggml.last
patch: @@ -1 +1 @@
-5c9ae47c8e4121a8ec5a5d342e830c75af53f112
+2abf606f098844faebee578996cae9c6d63a40e2
Repository: nodejs/node
Pull request: doc: add esm examples to `node:timers`

The two examples for [Cancelling timers](https://nodejs.org/api/timers.html#cancelling-timers) in the Timers docs are missing their `ESM` counterparts.

This PR adds them.

Best regards :heart_hands: 

Edit: With this change all current `node:timers` examples would have their `ESM` counterparts, there are no more left

Changed files:
filename: doc/api/timers.md
patch: @@ -292,7 +292,24 @@ returned Promises will be rejected with an `'AbortError'`.
 
 For `setImmediate()`:
 
-```js
+```mjs
+import { setImmediate as setImmediatePromise } from 'node:timers/promises';
+
+const ac = new AbortController();
+const signal = ac.signal;
+
+// We do not `await` the promise so `ac.abort()` is called concurrently.
+setImmediatePromise('foobar', { signal })
+  .then(console.log)
+  .catch((err) => {
+    if (err.name === 'AbortError')
+      console.error('The immediate was aborted');
+  });
+
+ac.abort();
+```
+
+```cjs
 const { setImmediate: setImmediatePromise } = require('node:timers/promises');
 
 const ac = new AbortController();
@@ -310,7 +327,24 @@ ac.abort();
 
 For `setTimeout()`:
 
-```js
+```mjs
+import { setTimeout as setTimeoutPromise } from 'node:timers/promises';
+
+const ac = new AbortController();
+const signal = ac.signal;
+
+// We do not `await` the promise so `ac.abort()` is called concurrently.
+setTimeoutPromise(1000, 'foobar', { signal })
+  .then(console.log)
+  .catch((err) => {
+    if (err.name === 'AbortError')
+      console.error('The timeout was aborted');
+  });
+
+ac.abort();
+```
+
+```cjs
 const { setTimeout: setTimeoutPromise } = require('node:timers/promises');
 
 const ac = new AbortController();
Repository: electron/electron
Pull request: build: remove upstreamed DraggableRegions patch

#### Description of Change

This patch can now be removed, as I upstreamed a solution in https://chromium-review.googlesource.com/c/chromium/src/+/5756619. It's slightly different (though functionally identical) to what i merged here originally, which is why it wasn't caught by the Chromium roll.

#### 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] [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: none

Changed files:
filename: patches/chromium/.patches
patch: @@ -128,5 +128,4 @@ fix_font_face_resolution_when_renderer_is_blocked.patch
 feat_enable_passing_exit_code_on_service_process_crash.patch
 chore_remove_reference_to_chrome_browser_themes.patch
 feat_enable_customizing_symbol_color_in_framecaptionbutton.patch
-fix_potential_draggable_region_crash_when_no_mainframeimpl.patch
 build_expose_webplugininfo_interface_to_electron.patch

filename: patches/chromium/fix_potential_draggable_region_crash_when_no_mainframeimpl.patch
patch: @@ -1,35 +0,0 @@
-From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
-From: Shelley Vohr <shelley.vohr@gmail.com>
-Date: Thu, 1 Aug 2024 15:30:32 +0200
-Subject: Fix potential draggable region crash when no MainFrameImpl
-
-Fix a crash that can occur when SetSupportsDraggableRegions
-is called with `true` and there is no MainFrameImpl. When MainFrameImpl
-is nullptr, logic currently correctly returns early, but
-supports_draggable_regions_ is set before that happens. As a
-result, when SupportsDraggableRegions() is called, it will return
-true, and thus LocalFrameView::UpdateDocumentDraggableRegions() will
-call DraggableRegionsChanged(). This will trigger a crash in
-WebViewImpl::DraggableRegionsChanged(), as it assumes that
-MainFrameImpl is not null.
-
-Upstreamed in https://chromium-review.googlesource.com/c/chromium/src/+/5756619
-
-diff --git a/third_party/blink/renderer/core/exported/web_view_impl.cc b/third_party/blink/renderer/core/exported/web_view_impl.cc
-index 3f2b6287c66bc9ee9858cb96fb98b6c02029ccb5..4610082ee252bd67c31d97cc01016874f32409c7 100644
---- a/third_party/blink/renderer/core/exported/web_view_impl.cc
-+++ b/third_party/blink/renderer/core/exported/web_view_impl.cc
-@@ -4082,11 +4082,12 @@ bool WebViewImpl::IsFencedFrameRoot() const {
- }
- 
- void WebViewImpl::SetSupportsDraggableRegions(bool supports_draggable_regions) {
--  supports_draggable_regions_ = supports_draggable_regions;
-   if (!MainFrameImpl() || !MainFrameImpl()->GetFrame()) {
-     return;
-   }
- 
-+  supports_draggable_regions_ = supports_draggable_regions;
-+
-   LocalFrame* local_frame = MainFrameImpl()->GetFrame();
- 
-   if (supports_draggable_regions_) {
Repository: denoland/deno
Pull request: fix(ext/node): use primordials in `ext/node/polyfills/testing.ts`

Towards #24236

Changed files:
filename: ext/node/polyfills/testing.ts
patch: @@ -1,8 +1,7 @@
 // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
 
-// TODO(petamoriken): enable prefer-primordials for node polyfills
-// deno-lint-ignore-file prefer-primordials
-
+import { primordials } from "ext:core/mod.js";
+const { PromisePrototypeThen } = primordials;
 import { notImplemented, warnNotImplemented } from "ext:deno_node/_utils.ts";
 
 export function run() {
@@ -54,17 +53,20 @@ class NodeTestContext {
 
   test(name, options, fn) {
     const prepared = prepareOptions(name, options, fn, {});
-    return this.#denoContext.step({
-      name: prepared.name,
-      fn: async (denoTestContext) => {
-        const newNodeTextContext = new NodeTestContext(denoTestContext);
-        await prepared.fn(newNodeTextContext);
-      },
-      ignore: prepared.options.todo || prepared.options.skip,
-      sanitizeExit: false,
-      sanitizeOps: false,
-      sanitizeResources: false,
-    }).then(() => undefined);
+    return PromisePrototypeThen(
+      this.#denoContext.step({
+        name: prepared.name,
+        fn: async (denoTestContext) => {
+          const newNodeTextContext = new NodeTestContext(denoTestContext);
+          await prepared.fn(newNodeTextContext);
+        },
+        ignore: prepared.options.todo || prepared.options.skip,
+        sanitizeExit: false,
+        sanitizeOps: false,
+        sanitizeResources: false,
+      }),
+      () => undefined,
+    );
   }
 
   before(_fn, _options) {
@@ -127,6 +129,8 @@ function wrapTestFn(fn, resolve) {
 function prepareDenoTest(name, options, fn, overrides) {
   const prepared = prepareOptions(name, options, fn, overrides);
 
+  // TODO(iuioiua): Update once there's a primordial for `Promise.withResolvers()`.
+  // deno-lint-ignore prefer-primordials
   const { promise, resolve } = Promise.withResolvers();
 
   const denoTestOptions = {
Repository: vercel/next.js
Pull request: Turbopack: fix instrumentation asset context name

🙈 

Closes PACK-4308

Changed files:
filename: crates/next-api/src/project.rs
patch: @@ -1460,7 +1460,7 @@ impl Project {
                 self.next_config(),
                 self.execution_context(),
             ),
-            Vc::cell("instrumentation-edge".into()),
+            Vc::cell("instrumentation".into()),
         )))
     }
 
@@ -1515,7 +1515,7 @@ impl Project {
                 self.next_config(),
                 self.execution_context(),
             ),
-            Vc::cell("instrumentation".into()),
+            Vc::cell("instrumentation-edge".into()),
         )))
     }
Repository: huggingface/transformers
Pull request: Add support for fast image processing in image-pretraining example

# What does this PR do?
Add support for fast image processing in image-pretraining example

- Fix typo: correct tuple formatting in IMAGE_PROCESSOR_MAPPING_NAMES
- Add support for fast image processing in image-pretraining example

Fixes #37020 

## Before submitting
- [x] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
- [x] Did you read the [contributor guideline](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md#create-a-pull-request),
 
## Who can review?

Anyone in the community is free to review the PR once the tests have passed. 

Maintained examples:
@amyeroberts, @qubvel
 


Changed files:
filename: examples/pytorch/image-pretraining/run_mim.py
patch: @@ -359,7 +359,7 @@ def main():
         IMAGE_PROCESSOR_TYPES = {
             conf.model_type: image_processor_class for conf, image_processor_class in IMAGE_PROCESSOR_MAPPING.items()
         }
-        image_processor = IMAGE_PROCESSOR_TYPES[model_args.model_type]()
+        image_processor = IMAGE_PROCESSOR_TYPES[model_args.model_type][-1]()
 
     # create model
     if model_args.model_name_or_path:

filename: src/transformers/models/auto/image_processing_auto.py
patch: @@ -56,7 +56,7 @@
     IMAGE_PROCESSOR_MAPPING_NAMES = OrderedDict(
         [
             ("align", ("EfficientNetImageProcessor",)),
-            ("aria", ("AriaImageProcessor")),
+            ("aria", ("AriaImageProcessor",)),
             ("beit", ("BeitImageProcessor",)),
             ("bit", ("BitImageProcessor",)),
             ("blip", ("BlipImageProcessor", "BlipImageProcessorFast")),
@@ -142,7 +142,7 @@
             ("shieldgemma2", ("Gemma3ImageProcessor", "Gemma3ImageProcessorFast")),
             ("siglip", ("SiglipImageProcessor", "SiglipImageProcessorFast")),
             ("siglip2", ("Siglip2ImageProcessor", "Siglip2ImageProcessorFast")),
-            ("superglue", "SuperGlueImageProcessor"),
+            ("superglue", ("SuperGlueImageProcessor",)),
             ("swiftformer", ("ViTImageProcessor", "ViTImageProcessorFast")),
             ("swin", ("ViTImageProcessor", "ViTImageProcessorFast")),
             ("swin2sr", ("Swin2SRImageProcessor",)),
Repository: electron/electron
Pull request: build: update appveyor image to latest version

This PR updates appveyor.yml to the latest baked image, e-129.0.6654.0.

Notes: none

Changed files:
filename: appveyor-woa.yml
patch: @@ -29,7 +29,7 @@
 
 version: 1.0.{build}
 build_cloud: electronhq-16-core
-image: e-129.0.6652.0
+image: e-129.0.6654.0
 environment:
   GIT_CACHE_PATH: C:\Users\appveyor\libcc_cache
   ELECTRON_OUT_DIR: Default

filename: appveyor.yml
patch: @@ -29,7 +29,7 @@
 
 version: 1.0.{build}
 build_cloud: electronhq-16-core
-image: e-129.0.6652.0
+image: e-129.0.6654.0
 environment:
   GIT_CACHE_PATH: C:\Users\appveyor\libcc_cache
   ELECTRON_OUT_DIR: Default
Repository: denoland/deno
Pull request: fix(task): do not propagate env changes outside subshells

* https://github.com/denoland/deno_task_shell/pull/120

Changed files:
filename: Cargo.lock
patch: @@ -1864,9 +1864,9 @@ dependencies = [
 
 [[package]]
 name = "deno_task_shell"
-version = "0.16.1"
+version = "0.17.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "97e5ff66a1e89edb7ca0c36b73a8fcdc008ba426c4ad7a36e1dfb3f4a166179e"
+checksum = "dd6413ffc1654cad015edb5c4ab574069acdc929a6efafed23bc947901bcff1a"
 dependencies = [
  "anyhow",
  "futures",

filename: cli/Cargo.toml
patch: @@ -75,7 +75,7 @@ deno_lockfile.workspace = true
 deno_npm = "=0.21.4"
 deno_runtime = { workspace = true, features = ["include_js_files_for_snapshotting"] }
 deno_semver = "=0.5.6"
-deno_task_shell = "=0.16.1"
+deno_task_shell = "=0.17.0"
 deno_terminal.workspace = true
 eszip = "=0.71.0"
 napi_sym.workspace = true

filename: cli/tools/task.rs
patch: @@ -367,7 +367,7 @@ impl ShellCommand for NpmCommand {
     }
 
     // fallback to running the real npm command
-    let npm_path = match context.resolve_command_path("npm") {
+    let npm_path = match context.state.resolve_command_path("npm") {
       Ok(path) => path,
       Err(err) => {
         let _ = context.stderr.write_line(&format!("{}", err));
@@ -388,15 +388,15 @@ impl ShellCommand for NpxCommand {
     mut context: ShellCommandContext,
   ) -> LocalBoxFuture<'static, ExecuteResult> {
     if let Some(first_arg) = context.args.first().cloned() {
-      if let Some(command) = context.state.resolve_command(&first_arg) {
+      if let Some(command) = context.state.resolve_custom_command(&first_arg) {
         let context = ShellCommandContext {
           args: context.args.iter().skip(1).cloned().collect::<Vec<_>>(),
           ..context
         };
         command.execute(context)
       } else {
         // can't find the command, so fallback to running the real npx command
-        let npx_path = match context.resolve_command_path("npx") {
+        let npx_path = match context.state.resolve_command_path("npx") {
           Ok(npx) => npx,
           Err(err) => {
             let _ = context.stderr.write_line(&format!("{}", err));
Repository: huggingface/transformers
Pull request: Fix AST parsing when looking for remote code imports

The AST parsing code in `dynamic_module_utils` had a bug because it assumed that certain `Call` nodes had to be calling a named function and not something else like a method.

Changed files:
filename: src/transformers/dynamic_module_utils.py
patch: @@ -157,7 +157,9 @@ def recursive_look_for_imports(node):
         elif isinstance(node, ast.If):
             test = node.test
             for condition_node in ast.walk(test):
-                if isinstance(condition_node, ast.Call) and condition_node.func.id.startswith("is_flash_attn"):
+                if isinstance(condition_node, ast.Call) and getattr(condition_node.func, "id", "").startswith(
+                    "is_flash_attn"
+                ):
                     # Don't recurse into "if flash_attn_available()" blocks and ignore imports in them
                     return
         elif isinstance(node, ast.Import):
Repository: vercel/next.js
Pull request: Update bundler production test manifest

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

Changed files:
filename: test/rspack-build-tests-manifest.json
patch: @@ -5732,10 +5732,11 @@
   },
   "test/e2e/app-dir/use-cache-unknown-cache-kind/use-cache-unknown-cache-kind.test.ts": {
     "passed": [
-      "use-cache-unknown-cache-kind should fail the build with an error",
       "use-cache-unknown-cache-kind should not fail the build for default cache kinds"
     ],
-    "failed": [],
+    "failed": [
+      "use-cache-unknown-cache-kind should fail the build with an error"
+    ],
     "pending": [],
     "flakey": [],
     "runtimeError": false
@@ -18979,10 +18980,11 @@
   },
   "test/production/pnpm-support/index.test.ts": {
     "passed": [
-      "pnpm support should build with dependencies installed via pnpm",
+      "pnpm support should build with dependencies installed via pnpm"
+    ],
+    "failed": [
       "pnpm support should execute client-side JS on each page in output: \"standalone\""
     ],
-    "failed": [],
     "pending": [],
     "flakey": [],
     "runtimeError": false
Repository: denoland/deno
Pull request: fix(ext/node): add ServerResponse#appendHeader

Fixes https://github.com/denoland/deno/issues/19993
Closes https://github.com/denoland/deno/issues/16679



Changed files:
filename: ext/node/polyfills/http.ts
patch: @@ -1420,6 +1420,26 @@ export class ServerResponse extends NodeWritable {
     return this;
   }
 
+  appendHeader(name: string, value: string | string[]) {
+    if (Array.isArray(value)) {
+      this.#hasNonStringHeaders = true;
+    }
+    if (this.#headers[name] === undefined) {
+      this.#headers[name] = value;
+    } else {
+      if (!Array.isArray(this.#headers[name])) {
+        this.#headers[name] = [this.#headers[name]];
+      }
+      const header = this.#headers[name];
+      if (Array.isArray(value)) {
+        header.push(...value);
+      } else {
+        header.push(value);
+      }
+    }
+    return this;
+  }
+
   getHeader(name: string) {
     return this.#headers[name];
   }

filename: tests/unit_node/http_test.ts
patch: @@ -968,6 +968,32 @@ Deno.test("[node/http] ServerResponse getHeader", async () => {
   await promise;
 });
 
+Deno.test("[node/http] ServerResponse appendHeader", async () => {
+  const { promise, resolve } = Promise.withResolvers<void>();
+  const server = http.createServer((_req, res) => {
+    res.setHeader("foo", "bar");
+    res.appendHeader("foo", "baz");
+    res.appendHeader("foo", ["qux"]);
+    res.appendHeader("foo", ["quux"]);
+    res.appendHeader("Set-Cookie", "a=b");
+    res.appendHeader("Set-Cookie", ["c=d", "e=f"]);
+    res.end("Hello World");
+  });
+
+  server.listen(async () => {
+    const { port } = server.address() as { port: number };
+    const res = await fetch(`http://localhost:${port}`);
+    assertEquals(res.headers.get("foo"), "bar, baz, qux, quux");
+    assertEquals(res.headers.getSetCookie(), ["a=b", "c=d", "e=f"]);
+    assertEquals(await res.text(), "Hello World");
+    server.close(() => {
+      resolve();
+    });
+  });
+
+  await promise;
+});
+
 Deno.test("[node/http] IncomingMessage override", () => {
   const req = new http.IncomingMessage(new net.Socket());
   // https://github.com/dougmoscrop/serverless-http/blob/3aaa6d0fe241109a8752efb011c242d249f32368/lib/request.js#L20-L30
Repository: ggml-org/llama.cpp
Pull request: Fixes #12823

With recent redesign of ggml-cpu we see that it was failing to compile on POWER arch on both ppcle64 and AIX. The changes in this PR is for fixing the compilation issue. 

Changed files:
filename: ggml/src/ggml-cpu/simd-mappings.h
patch: @@ -392,7 +392,11 @@ static inline void __avx_f32cx8_store(ggml_fp16_t *x, __m256 y) {
 #define GGML_F16_VEC_LOAD(p, i) (i & 0x1) ?                   \
   vec_extract_fp32_from_shorth(vec_xl(0, p - GGML_F16_EPR)) : \
   vec_extract_fp32_from_shortl(vec_xl(0, p))
-#define GGML_ENDIAN_BYTE(i) ((unsigned char *)&(uint16_t){1})[i]
+static inline unsigned char ggml_endian_byte(int i) {
+       uint16_t tmp_val = 1;
+       return ((unsigned char *)&tmp_val)[i];
+}
+#define GGML_ENDIAN_BYTE(i) ggml_endian_byte(i)
 #define GGML_F16_VEC_STORE(p, r, i)                             \
   if (i & 0x1)                                                  \
     vec_xst(vec_pack_to_short_fp32(r[i - GGML_ENDIAN_BYTE(1)],  \
Repository: electron/electron
Pull request: build: update appveyor image to latest version

This PR updates appveyor.yml to the latest baked image, e-129.0.6652.0.

Notes: none

Changed files:
filename: appveyor-woa.yml
patch: @@ -29,7 +29,7 @@
 
 version: 1.0.{build}
 build_cloud: electronhq-16-core
-image: e-129.0.6644.0
+image: e-129.0.6652.0
 environment:
   GIT_CACHE_PATH: C:\Users\appveyor\libcc_cache
   ELECTRON_OUT_DIR: Default

filename: appveyor.yml
patch: @@ -29,7 +29,7 @@
 
 version: 1.0.{build}
 build_cloud: electronhq-16-core
-image: e-129.0.6644.0
+image: e-129.0.6652.0
 environment:
   GIT_CACHE_PATH: C:\Users\appveyor\libcc_cache
   ELECTRON_OUT_DIR: Default
Repository: nodejs/node
Pull request: doc: fix relative path mention in --allow-fs

I missed this when fixing relative paths https://github.com/nodejs/node/pull/50758

Changed files:
filename: doc/api/cli.md
patch: @@ -208,23 +208,18 @@ The valid arguments for the `--allow-fs-read` flag are:
 * Multiple paths can be allowed using multiple `--allow-fs-read` flags.
   Example `--allow-fs-read=/folder1/ --allow-fs-read=/folder1/`
 
-Paths delimited by comma (`,`) are no longer allowed.
-When passing a single flag with a comma a warning will be displayed.
-
 Examples can be found in the [File System Permissions][] documentation.
 
-Relative paths are NOT yet supported by the CLI flag.
-
 The initializer module also needs to be allowed. Consider the following example:
 
 ```console
-$ node --experimental-permission t.js
+$ node --experimental-permission index.js
 
 Error: Access to this API has been restricted
     at node:internal/main/run_main_module:23:47 {
   code: 'ERR_ACCESS_DENIED',
   permission: 'FileSystemRead',
-  resource: '/Users/rafaelgss/repos/os/node/t.js'
+  resource: '/Users/rafaelgss/repos/os/node/index.js'
 }
 ```
 
@@ -260,8 +255,6 @@ When passing a single flag with a comma a warning will be displayed.
 
 Examples can be found in the [File System Permissions][] documentation.
 
-Relative paths are NOT supported through the CLI flag.
-
 ### `--allow-wasi`
 
 <!-- YAML