helloadhavan/github_issues huggingface dataset:
Repository: electron/electron
Pull request: build: also lint mjs files

Adds `mjs` as a lintable JS extension and fixes the lint errors that arose as a result.

Notes: none

Changed files:
filename: script/create-api-json.mjs
patch: @@ -1,4 +1,5 @@
 import { parseDocs } from '@electron/docs-parser';
+
 import { promises } from 'node:fs';
 import { resolve } from 'node:path';
 

filename: script/lint.js
patch: @@ -138,7 +138,7 @@ const LINTERS = [{
   key: 'javascript',
   roots: ['build', 'default_app', 'lib', 'npm', 'script', 'spec'],
   ignoreRoots: ['spec/node_modules'],
-  test: filename => filename.endsWith('.js') || filename.endsWith('.ts'),
+  test: filename => filename.endsWith('.js') || filename.endsWith('.ts') || filename.endsWith('.mjs'),
   run: async (opts, filenames) => {
     const eslint = new ESLint({
       // Do not use the lint cache on CI builds

filename: spec/fixtures/api/pdf-reader.mjs
patch: @@ -1,6 +1,6 @@
 import * as pdfjs from 'pdfjs-dist';
 
-async function getPDFDoc() {  
+async function getPDFDoc () {
   try {
     const doc = await pdfjs.getDocument(process.argv[2]).promise;
     const page = await doc.getPage(1);
@@ -11,12 +11,13 @@ async function getPDFDoc() {
       view: page.view,
       textContent: items,
       markInfo
-    }
+    };
     console.log(JSON.stringify(pdfInfo));
     process.exit();
   } catch (ex) {
+    console.error(ex);
     process.exit(1);
   }
 }
 
-getPDFDoc();
\ No newline at end of file
+getPDFDoc();

filename: spec/fixtures/esm/import-meta/main.mjs
patch: @@ -1,18 +1,19 @@
-import { app, BrowserWindow } from 'electron'
-import { fileURLToPath } from 'node:url'
+import { app, BrowserWindow } from 'electron';
+
 import { dirname, join } from 'node:path';
+import { fileURLToPath } from 'node:url';
 
-async function createWindow() {
+async function createWindow () {
   const mainWindow = new BrowserWindow({
     show: false,
     webPreferences: {
       preload: fileURLToPath(new URL('preload.mjs', import.meta.url)),
       sandbox: false,
       contextIsolation: false
     }
-  })
+  });
 
-  await mainWindow.loadFile('index.html')
+  await mainWindow.loadFile('index.html');
 
   const importMetaPreload = await mainWindow.webContents.executeJavaScript('window.importMetaPath');
   const expected = join(dirname(fileURLToPath(import.meta.url)), 'preload.mjs');
@@ -21,13 +22,13 @@ async function createWindow() {
 }
 
 app.whenReady().then(() => {
-  createWindow()
+  createWindow();
 
   app.on('activate', function () {
-    if (BrowserWindow.getAllWindows().length === 0) createWindow()
-  })
-})
+    if (BrowserWindow.getAllWindows().length === 0) createWindow();
+  });
+});
 
 app.on('window-all-closed', function () {
-  if (process.platform !== 'darwin') app.quit()
-})
+  if (process.platform !== 'darwin') app.quit();
+});

filename: spec/fixtures/esm/import-meta/preload.mjs
patch: @@ -1,3 +1,3 @@
-import { fileURLToPath } from 'node:url'
+import { fileURLToPath } from 'node:url';
 
-window.importMetaPath = fileURLToPath(import.meta.url)
+window.importMetaPath = fileURLToPath(import.meta.url);
Repository: denoland/deno
Pull request: fix(init): always force managed node modules

Closes https://github.com/denoland/deno/issues/27045

Changed files:
filename: cli/tools/init/mod.rs
patch: @@ -9,6 +9,7 @@ use crate::args::RunFlags;
 use crate::colors;
 use color_print::cformat;
 use color_print::cstr;
+use deno_config::deno_json::NodeModulesDirMode;
 use deno_core::anyhow::Context;
 use deno_core::error::AnyError;
 use deno_core::serde_json::json;
@@ -288,6 +289,7 @@ async fn init_npm(name: &str, args: Vec<String>) -> Result<i32, AnyError> {
     },
     allow_scripts: PackagesAllowedScripts::All,
     argv: args,
+    node_modules_dir: Some(NodeModulesDirMode::Auto),
     subcommand: DenoSubcommand::Run(RunFlags {
       script: script_name,
       ..Default::default()
Repository: electron/electron
Pull request: build: update appveyor image to latest version

Backport of #44570

See that PR for details.


Notes: none

Changed files:
filename: appveyor-woa.yml
patch: @@ -29,7 +29,7 @@
 
 version: 1.0.{build}
 build_cloud: electronhq-16-core
-image: e-132.0.6788.0
+image: e-132.0.6807.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-132.0.6788.0
+image: e-132.0.6807.0
 environment:
   GIT_CACHE_PATH: C:\Users\appveyor\libcc_cache
   ELECTRON_OUT_DIR: Default
Repository: ggml-org/llama.cpp
Pull request: llama : fix `--reverse-prompt` crashing issue

Currently running `llama-cli` with `--reverse-prompt` option makes it crash in `common_sampler_last()` due to calling `gsmpl->prev.rat(0)` on an empty ring buffer, causing `ring buffer: index out of bounds` exception.

This fixes #14513 .

Changed files:
filename: tools/main/main.cpp
patch: @@ -785,14 +785,17 @@ int main(int argc, char ** argv) {
                 }
 
                 // check for reverse prompt using special tokens
-                llama_token last_token = common_sampler_last(smpl);
-                for (auto token : antiprompt_token) {
-                    if (token == last_token) {
-                        if (params.interactive) {
-                            is_interacting = true;
+                // avoid calling common_sampler_last() if last_output is empty
+                if (!last_output.empty()) {
+                    llama_token last_token = common_sampler_last(smpl);
+                    for (auto token : antiprompt_token) {
+                        if (token == last_token) {
+                            if (params.interactive) {
+                                is_interacting = true;
+                            }
+                            is_antiprompt = true;
+                            break;
                         }
-                        is_antiprompt = true;
-                        break;
                     }
                 }
Repository: facebook/react
Pull request: Remove findDOMNode www shim

This shim is no longer needed on www, in fact I had already deleted it there and it's currently not on www. See D42503692 which is trying to add it back as I didn't realize this file was synced from GitHub.


Changed files:
filename: scripts/rollup/shims/facebook-www/findDOMNode.js
patch: @@ -1,15 +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
- * @format
- */
-
-'use strict';
-
-const {findDOMNode} = require('ReactDOM');
-
-module.exports = findDOMNode;
Repository: electron/electron
Pull request: build: update appveyor image to latest version

This PR updates appveyor.yml to the latest baked image, e-132.0.6807.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-132.0.6788.0
+image: e-132.0.6807.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-132.0.6788.0
+image: e-132.0.6807.0
 environment:
   GIT_CACHE_PATH: C:\Users\appveyor\libcc_cache
   ELECTRON_OUT_DIR: Default
Repository: nodejs/node
Pull request: readline: add support for `Symbol.dispose`

While writing https://github.com/nodejs/node/issues/57232#issuecomment-2692630669, I thought to myself it would be more elegant to use the explicit resource management proposal.


<!--
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: doc/api/readline.md
patch: @@ -272,6 +272,14 @@ the `'close'` event will be emitted.
 Calling `rl.close()` does not immediately stop other events (including `'line'`)
 from being emitted by the `InterfaceConstructor` instance.
 
+### `rl[Symbol.dispose]()`
+
+<!-- YAML
+added: REPLACEME
+-->
+
+Alias for `rl.close()`.
+
 ### `rl.pause()`
 
 <!-- YAML

filename: lib/internal/readline/interface.js
patch: @@ -1371,6 +1371,7 @@ class Interface extends InterfaceConstructor {
     return this[kLineObjectStream];
   }
 }
+Interface.prototype[SymbolDispose] = Interface.prototype.close;
 
 module.exports = {
   Interface,
Repository: facebook/react
Pull request: [www] set enableTrustedTypesIntegration to false

This isn't configured to a dynamic value on www, so hardcode here to false.

Changed files:
filename: packages/shared/forks/ReactFeatureFlags.www-dynamic.js
patch: @@ -52,7 +52,6 @@ export const replayFailedUnitOfWorkWithInvokeGuardedCallback = __DEV__;
 // TODO: These flags are hard-coded to the default values used in open source.
 // Update the tests so that they pass in either mode, then set these
 // to __VARIANT__.
-export const enableTrustedTypesIntegration = false;
 export const disableSchedulerTimeoutBasedOnReactExpirationTime = false;
 export const disableNativeComponentFrames = false;
 // You probably *don't* want to add more hardcoded ones.

filename: packages/shared/forks/ReactFeatureFlags.www.js
patch: @@ -16,7 +16,6 @@ const dynamicFeatureFlags: DynamicFeatureFlags = require('ReactFeatureFlags');
 
 export const {
   disableInputAttributeSyncing,
-  enableTrustedTypesIntegration,
   disableSchedulerTimeoutBasedOnReactExpirationTime,
   warnAboutSpreadingKeyToJSX,
   replayFailedUnitOfWorkWithInvokeGuardedCallback,
@@ -56,6 +55,7 @@ export const enableUseMemoCacheHook = true;
 export const enableUseEffectEventHook = true;
 export const enableHostSingletons = true;
 export const enableClientRenderFallbackOnTextMismatch = false;
+export const enableTrustedTypesIntegration = false;
 
 // Logs additional User Timing API marks for use with an experimental profiling tool.
 export const enableSchedulingProfiler: boolean =
Repository: vercel/next.js
Pull request: Add experimental flag for RSC request validation

We're going to expand this to cover all RSC requests, not just segment prefetches. To decouple this from clientSegmentCache, I've added a new flag to control it. (Although for now, the behavior is still gated behind both flags, until we've made the check more robust.)

Changed files:
filename: packages/next/src/server/base-server.ts
patch: @@ -2084,6 +2084,8 @@ export default abstract class Server<
     // TODO: Consider not using custom request headers at all, and instead fully
     // encode everything into the search param.
     if (
+      !this.minimalMode &&
+      this.nextConfig.experimental.validateRSCRequestHeaders &&
       this.isAppSegmentPrefetchEnabled &&
       getRequestMeta(req, 'segmentPrefetchRSCRequest')
     ) {
@@ -3746,11 +3748,17 @@ export default abstract class Server<
     let page = pathname
     const bubbleNoFallback =
       getRequestMeta(ctx.req, 'bubbleNoFallback') ?? false
-    addRequestMeta(
-      ctx.req,
-      'cacheBustingSearchParam',
-      query[NEXT_RSC_UNION_QUERY]
-    )
+
+    if (
+      !this.minimalMode &&
+      this.nextConfig.experimental.validateRSCRequestHeaders
+    ) {
+      addRequestMeta(
+        ctx.req,
+        'cacheBustingSearchParam',
+        query[NEXT_RSC_UNION_QUERY]
+      )
+    }
     delete query[NEXT_RSC_UNION_QUERY]
 
     const options: MatchOptions = {

filename: packages/next/src/server/config-schema.ts
patch: @@ -406,6 +406,7 @@ export const configSchema: zod.ZodType<NextConfig> = z.lazy(() =>
         proxyTimeout: z.number().gte(0).optional(),
         routerBFCache: z.boolean().optional(),
         removeUncaughtErrorAndRejectionListeners: z.boolean().optional(),
+        validateRSCRequestHeaders: z.boolean().optional(),
         scrollRestoration: z.boolean().optional(),
         sri: z
           .object({

filename: packages/next/src/server/config-shared.ts
patch: @@ -539,6 +539,12 @@ export interface ExperimentalConfig {
    */
   removeUncaughtErrorAndRejectionListeners?: boolean
 
+  /**
+   * During an RSC request, validates that the request headers match the
+   * cache-busting search parameter sent by the client.
+   */
+  validateRSCRequestHeaders?: boolean
+
   serverActions?: {
     /**
      * Allows adjusting body parser size limit for server actions.
@@ -1368,6 +1374,7 @@ export const defaultConfig = {
     viewTransition: false,
     routerBFCache: false,
     removeUncaughtErrorAndRejectionListeners: false,
+    validateRSCRequestHeaders: false,
     staleTimes: {
       dynamic: 0,
       static: 300,

filename: test/e2e/app-dir/segment-cache/cdn-cache-busting/next.config.js
patch: @@ -4,6 +4,7 @@
 const nextConfig = {
   experimental: {
     clientSegmentCache: true,
+    validateRSCRequestHeaders: true,
   },
 }
Repository: huggingface/transformers
Pull request: pin pandas

# What does this PR do?

Pandas is released on 2025/06/05. CircleCI runners since to have issue to build with this.

See 

https://app.circleci.com/pipelines/github/huggingface/transformers/132946/workflows/40871601-29fe-4e2b-9445-20f850a1b43c/jobs/1766605

Changed files:
filename: setup.py
patch: @@ -142,6 +142,7 @@
     "optimum-benchmark>=0.3.0",
     "optuna",
     "optax>=0.0.8,<=0.1.4",
+    "pandas<2.3.0",  # `datasets` requires `pandas` while `pandas==2.3.0` has issues with CircleCI on 2025/06/05
     "packaging>=20.0",
     "parameterized",
     "phonemizer",
@@ -367,7 +368,7 @@ def run(self):
 
 extras["deepspeed-testing"] = extras["deepspeed"] + extras["testing"] + extras["optuna"] + extras["sentencepiece"]
 extras["ruff"] = deps_list("ruff")
-extras["quality"] = deps_list("datasets", "isort", "ruff", "GitPython", "urllib3", "libcst", "rich")
+extras["quality"] = deps_list("datasets", "isort", "ruff", "GitPython", "urllib3", "libcst", "rich", "pandas")
 
 extras["all"] = (
     extras["tf"]

filename: src/transformers/dependency_versions_table.py
patch: @@ -48,6 +48,7 @@
     "optimum-benchmark": "optimum-benchmark>=0.3.0",
     "optuna": "optuna",
     "optax": "optax>=0.0.8,<=0.1.4",
+    "pandas": "pandas<2.3.0",
     "packaging": "packaging>=20.0",
     "parameterized": "parameterized",
     "phonemizer": "phonemizer",
Repository: ggml-org/llama.cpp
Pull request: vulkan/cuda: Fix im2col when KW!=KH

The tid is decomposed into `ow + ky*OW + kx*OW*KH`. Change `ksize` to match.

Fixes #14777.

Changed files:
filename: ggml/src/ggml-cuda/im2col.cu
patch: @@ -10,7 +10,7 @@ static  __global__ void im2col_kernel(
         return;
     }
 
-    const int64_t  ksize = OW * (KH > 1 ? KW : 1);
+    const int64_t  ksize = OW * KH;
     const int64_t  kx = i / ksize;
     const int64_t  kd = kx * ksize;
     const int64_t  ky = (i - kd) / OW;

filename: ggml/src/ggml-vulkan/vulkan-shaders/im2col.comp
patch: @@ -40,12 +40,10 @@ void main() {
     const uint src_base = ic * p.offset_delta + batch * p.batch_offset;
     const uint dst_base = ((batch * p.OH + oh) * p.OW) * p.CHW + ic * (p.KW * p.KH);
     const int oh_s1 = int(oh) * p.s1;
-    const uint ksize = p.OW * (p.KH > 1 ? p.KW : 1);
+    const uint ksize = p.OW * p.KH;
 
     const uint base_linear_idx = gidx * NUM_ITER;
 
-    const uint max_ky = ksize / p.OW;
-
     uint current_kx = base_linear_idx / ksize;
     const uint rem = base_linear_idx - (current_kx * ksize);
     uint current_ky = rem / p.OW;
@@ -76,7 +74,7 @@ void main() {
 
         if (++current_ix == p.OW) {
             current_ix = 0;
-            if (++current_ky == max_ky) {
+            if (++current_ky == p.KH) {
                 current_ky = 0;
                 current_kx++;
             }

filename: tests/test-backend-ops.cpp
patch: @@ -5093,6 +5093,7 @@ static std::vector<std::unique_ptr<test_case>> make_test_cases_eval() {
     test_cases.emplace_back(new test_im2col(GGML_TYPE_F32, GGML_TYPE_F16, GGML_TYPE_F16, {12, 12, 2, 2048}, {3, 3, 2, 2048}, 1, 1, 1, 1, 1, 1, true));
     test_cases.emplace_back(new test_im2col(GGML_TYPE_F32, GGML_TYPE_F16, GGML_TYPE_F16, {12, 12, 1, 2560}, {3, 3, 1, 2560}, 1, 1, 1, 1, 1, 1, true));
     test_cases.emplace_back(new test_im2col(GGML_TYPE_F32, GGML_TYPE_F16, GGML_TYPE_F16, {12, 12, 2, 2560}, {3, 3, 2, 2560}, 1, 1, 1, 1, 1, 1, true));
+    test_cases.emplace_back(new test_im2col(GGML_TYPE_F32, GGML_TYPE_F16, GGML_TYPE_F16, {5, 5, 1, 32}, {3, 4, 1, 32}, 1, 1, 0, 0, 1, 1, true));
 
 // Conv_2D test cases
 #ifdef DETAILED_TESTS
Repository: facebook/react
Pull request: [cleanup] remove unused values from ReactFeatureFlags.www-dynamic

These values are never imported into `ReactFeatureFlags.www.js`, so they're unused:
- `allowConcurrentByDefault`
- `consoleManagedByDevToolsDuringStrictMode`

These values are never set in the WWW module (https://fburl.com/code/dsb2ohv8), so they're always `undefined` on www:
- `createRootStrictEffectsByDefault`
- `enableClientRenderFallbackOnTextMismatch`


Changed files:
filename: packages/shared/forks/ReactFeatureFlags.www-dynamic.js
patch: @@ -25,9 +25,7 @@ export const disableSchedulerTimeoutInWorkLoop = __VARIANT__;
 export const enableLazyContextPropagation = __VARIANT__;
 export const enableSyncDefaultUpdates = __VARIANT__;
 export const enableUnifiedSyncLane = __VARIANT__;
-export const consoleManagedByDevToolsDuringStrictMode = __VARIANT__;
 export const enableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay = __VARIANT__;
-export const enableClientRenderFallbackOnTextMismatch = __VARIANT__;
 export const enableTransitionTracing = __VARIANT__;
 // Enable this flag to help with concurrent mode debugging.
 // It logs information to the console about React scheduling, rendering, and commit phases.
@@ -57,7 +55,5 @@ export const replayFailedUnitOfWorkWithInvokeGuardedCallback = __DEV__;
 export const enableTrustedTypesIntegration = false;
 export const disableSchedulerTimeoutBasedOnReactExpirationTime = false;
 export const disableNativeComponentFrames = false;
-export const createRootStrictEffectsByDefault = false;
-export const allowConcurrentByDefault = true;
 // You probably *don't* want to add more hardcoded ones.
 // Instead, try to add them above with the __VARIANT__ value.

filename: packages/shared/forks/ReactFeatureFlags.www.js
patch: @@ -25,15 +25,13 @@ export const {
   deferRenderPhaseUpdateToNextBatch,
   enableDebugTracing,
   skipUnmountedBoundaries,
-  createRootStrictEffectsByDefault,
   enableUseRefAccessWarning,
   disableNativeComponentFrames,
   disableSchedulerTimeoutInWorkLoop,
   enableLazyContextPropagation,
   enableSyncDefaultUpdates,
   enableUnifiedSyncLane,
   enableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay,
-  enableClientRenderFallbackOnTextMismatch,
   enableTransitionTracing,
 } = dynamicFeatureFlags;
 
@@ -48,6 +46,7 @@ export const enableProfilerNestedUpdateScheduledHook: boolean =
   __PROFILE__ && dynamicFeatureFlags.enableProfilerNestedUpdateScheduledHook;
 export const enableUpdaterTracking = __PROFILE__;
 
+export const createRootStrictEffectsByDefault = false;
 export const enableSuspenseAvoidThisFallback = true;
 export const enableSuspenseAvoidThisFallbackFizz = false;
 export const enableCPUSuspense = true;
@@ -56,6 +55,7 @@ export const enableUseHook = true;
 export const enableUseMemoCacheHook = true;
 export const enableUseEffectEventHook = true;
 export const enableHostSingletons = true;
+export const enableClientRenderFallbackOnTextMismatch = false;
 
 // Logs additional User Timing API marks for use with an experimental profiling tool.
 export const enableSchedulingProfiler: boolean =
Repository: huggingface/transformers
Pull request: Remove custom pytest and pluggy

# What does this PR do?

Revert #37996 which means to be temporary.

Changed files:
filename: .circleci/create_circleci_config.py
patch: @@ -110,7 +110,6 @@ def __post_init__(self):
             print(f"Using {self.docker_image} docker image")
         if self.install_steps is None:
             self.install_steps = ["uv venv && uv pip install ."]
-        self.install_steps.append("uv venv && uv pip install git+https://github.com/ydshieh/pytest.git@8.3.5-ydshieh git+https://github.com/ydshieh/pluggy.git@1.5.0-ydshieh")
         if self.pytest_options is None:
             self.pytest_options = {}
         if isinstance(self.tests_to_run, str):