helloadhavan/github_issues huggingface dataset:
Repository: vercel/next.js
Pull request: Cleanup `config.experimental.reactOwnerstack`

Removed in https://github.com/vercel/next.js/pull/76021

Had some leftovers in Turbopack that I missed due to different casing.

Changed files:
filename: crates/next-core/src/next_config.rs
patch: @@ -725,7 +725,6 @@ pub struct ExperimentalConfig {
     /// directory.
     ppr: Option<ExperimentalPartialPrerendering>,
     taint: Option<bool>,
-    react_owner_stack: Option<bool>,
     #[serde(rename = "routerBFCache")]
     router_bfcache: Option<bool>,
     proxy_timeout: Option<f64>,
@@ -1417,11 +1416,6 @@ impl NextConfig {
         Vc::cell(self.experimental.taint.unwrap_or(false))
     }
 
-    #[turbo_tasks::function]
-    pub fn enable_react_owner_stack(&self) -> Vc<bool> {
-        Vc::cell(self.experimental.react_owner_stack.unwrap_or(false))
-    }
-
     #[turbo_tasks::function]
     pub fn enable_router_bfcache(&self) -> Vc<bool> {
         Vc::cell(self.experimental.router_bfcache.unwrap_or(false))

filename: crates/next-core/src/next_import_map.rs
patch: @@ -120,7 +120,6 @@ pub async fn get_next_client_import_map(
         ClientContextType::App { app_dir } => {
             let react_flavor = if *next_config.enable_ppr().await?
                 || *next_config.enable_taint().await?
-                || *next_config.enable_react_owner_stack().await?
                 || *next_config.enable_view_transition().await?
                 || *next_config.enable_router_bfcache().await?
             {
@@ -700,10 +699,9 @@ async fn rsc_aliases(
 ) -> Result<()> {
     let ppr = *next_config.enable_ppr().await?;
     let taint = *next_config.enable_taint().await?;
-    let react_owner_stack = *next_config.enable_react_owner_stack().await?;
     let router_bfcache = *next_config.enable_router_bfcache().await?;
     let view_transition = *next_config.enable_view_transition().await?;
-    let react_channel = if ppr || taint || react_owner_stack || view_transition || router_bfcache {
+    let react_channel = if ppr || taint || view_transition || router_bfcache {
         "-experimental"
     } else {
         ""
Repository: facebook/react
Pull request: Improved Workers filenames in devtools-core

<!--
  Thanks for submitting a pull request!
  We appreciate you spending the time to work on these changes. Please provide enough information so that others can review your pull request. The three fields below are mandatory.

  Before submitting a pull request, please make sure the following is done:

  1. Fork [the repository](https://github.com/facebook/react) and create your branch from `main`.
  2. Run `yarn` in the repository root.
  3. If you've fixed a bug or added code that should be tested, add tests!
  4. Ensure the test suite passes (`yarn test`). Tip: `yarn test --watch TestName` is helpful in development.
  5. Run `yarn test --prod` to test in the production environment. It supports the same options as `yarn test`.
  6. If you need a debugger, run `yarn debug-test --watch TestName`, open `chrome://inspect`, and press "Inspect".
  7. Format your code with [prettier](https://github.com/prettier/prettier) (`yarn prettier`).
  8. Make sure your code lints (`yarn lint`). Tip: `yarn linc` to only check changed files.
  9. Run the [Flow](https://flowtype.org/) type checks (`yarn flow`).
  10. If you haven't already, complete the CLA.

  Learn more about contributing: https://reactjs.org/docs/how-to-contribute.html
-->

## Summary

Currently, when building `react-devtools-core`  by using `yarn build` , Webpack bundles and add the files to `dist` directory.
In `dist` there are weird naming of worker files with names like `jafje9390303kdjlfa29e02.worker.js`
This PR improves this and added worker names to files.
This is very similar to one of my previous PR #22322 
 
## How did you test this change?
Using `yarn build`

These are the file names after building. 

![image](https://user-images.githubusercontent.com/51379307/137337840-d05823ed-f15e-4df1-8d55-d89252afde82.png)



Changed files:
filename: packages/react-devtools-core/webpack.standalone.js
patch: @@ -103,6 +103,7 @@ module.exports = {
             loader: 'workerize-loader',
             options: {
               inline: true,
+              name: '[name]',
             },
           },
           {
Repository: nodejs/node
Pull request: buffer: fix out of range for toString

Fixes: https://github.com/nodejs/node/issues/52298

<!--
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/buffer.js
patch: @@ -843,12 +843,12 @@ Buffer.prototype.toString = function toString(encoding, start, end) {
   else if (start >= len)
     return '';
   else
-    start |= 0;
+    start = MathTrunc(start) || 0;
 
   if (end === undefined || end > len)
     end = len;
   else
-    end |= 0;
+    end = MathTrunc(end) || 0;
 
   if (end <= start)
     return '';

filename: test/parallel/test-buffer-tostring-range.js
patch: @@ -1,6 +1,6 @@
 'use strict';
 
-require('../common');
+const common = require('../common');
 const assert = require('assert');
 
 const rangeBuffer = Buffer.from('abc');
@@ -98,3 +98,11 @@ assert.throws(() => {
   name: 'TypeError',
   message: 'Unknown encoding: null'
 });
+
+// Must not throw when start and end are within kMaxLength
+// Cannot test on 32bit machine as we are testing the case
+// when start and end are above the threshold
+common.skipIf32Bits();
+const threshold = 0xFFFFFFFF;
+const largeBuffer = Buffer.alloc(threshold + 20);
+largeBuffer.toString('utf8', threshold, threshold + 20);
Repository: ggml-org/llama.cpp
Pull request: llava: add performance print for gemma3 example


Add the `llama_perf_context_print` function to `gemma3-cli` for easier performance measurement and to keep it consistent with the other llava examples.

Changed files:
filename: examples/llava/gemma3-cli.cpp
patch: @@ -317,6 +317,6 @@ int main(int argc, char ** argv) {
             is_first_msg = false;
         }
     }
-
+    llama_perf_context_print(ctx.lctx);
     return 0;
 }
Repository: denoland/deno
Pull request: fix: revert accidentally added `parentPath` on `DirEntry`

Reverts the accidentally added `.parentPath` on dir entries in https://github.com/denoland/deno/pull/24257/files

This should not have been added to the public api and is not documented.

Changed files:
filename: cli/standalone/virtual_fs.rs
patch: @@ -787,7 +787,6 @@ impl FileBackedVfs {
         .entries
         .iter()
         .map(|entry| FsDirEntry {
-          parent_path: path.to_string_lossy().into_owned(),
           name: entry.name().to_string(),
           is_file: matches!(entry, VfsEntry::File(_)),
           is_directory: matches!(entry, VfsEntry::Dir(_)),

filename: ext/fs/interface.rs
patch: @@ -69,10 +69,10 @@ pub enum FsFileType {
   Junction,
 }
 
+/// WARNING: This is part of the public JS Deno API.
 #[derive(Serialize)]
 #[serde(rename_all = "camelCase")]
 pub struct FsDirEntry {
-  pub parent_path: String,
   pub name: String,
   pub is_file: bool,
   pub is_directory: bool,

filename: ext/fs/std_fs.rs
patch: @@ -814,7 +814,6 @@ fn read_dir(path: &Path) -> FsResult<Vec<FsDirEntry>> {
         };
       }
       Some(FsDirEntry {
-        parent_path: path.to_string_lossy().to_string(),
         name,
         is_file: method_or_false!(is_file),
         is_directory: method_or_false!(is_dir),

filename: ext/node/polyfills/_fs/_fs_dirent.ts
patch: @@ -2,7 +2,7 @@
 import { notImplemented } from "ext:deno_node/_utils.ts";
 
 export default class Dirent {
-  constructor(private entry: Deno.DirEntry) {}
+  constructor(private entry: Deno.DirEntry & { parentPath: string }) {}
 
   isBlockDevice(): boolean {
     notImplemented("Deno does not yet support identification of block devices");

filename: ext/node/polyfills/_fs/_fs_readdir.ts
patch: @@ -11,7 +11,7 @@ import { getValidatedPath } from "ext:deno_node/internal/fs/utils.mjs";
 import { Buffer } from "node:buffer";
 import { promisify } from "ext:deno_node/internal/util.mjs";
 
-function toDirent(val: Deno.DirEntry): Dirent {
+function toDirent(val: Deno.DirEntry & { parentPath: string }): Dirent {
   return new Dirent(val);
 }
 
@@ -67,13 +67,15 @@ export function readdir(
   }
 
   try {
-    asyncIterableToCallback(Deno.readDir(path.toString()), (val, done) => {
+    path = path.toString();
+    asyncIterableToCallback(Deno.readDir(path), (val, done) => {
       if (typeof path !== "string") return;
       if (done) {
         callback(null, result);
         return;
       }
       if (options?.withFileTypes) {
+        val.parentPath = path;
         result.push(toDirent(val));
       } else result.push(decode(val.name));
     }, (e) => {
@@ -130,8 +132,10 @@ export function readdirSync(
   }
 
   try {
-    for (const file of Deno.readDirSync(path.toString())) {
+    path = path.toString();
+    for (const file of Deno.readDirSync(path)) {
       if (options?.withFileTypes) {
+        file.parentPath = path;
         result.push(toDirent(file));
       } else result.push(decode(file.name));
     }
Repository: ggml-org/llama.cpp
Pull request: CUDA: compress-mode size

This patch sets cuda compression mode to `size` for >= 12.8

cuda 12.8 added the [option](https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html#compress-mode-default-size-speed-balance-none-compress-mode) to specify stronger compression for binaries.

I ran some tests in CI with the [new ubuntu 12.8 docker image](https://hub.docker.com/r/nvidia/cuda/):


## `89-real` arch
In this scenario, it appears it is not compressing by default at all?
| mode | ggml-cuda.so |
|--------|--------|
| none | 64M |
| speed (default) | 64M |
| balance | 64M |
| size | 18M |

## `60;61;70;75;80` arches
| mode | ggml-cuda.so |
|--------|--------|
| none | 994M |
| speed (default) | 448M |
| balance | 368M |
| size | 127M |

---

I did not test the runtime load overhead this should incur. But for most ggml-cuda usecases, the processes are usually long(er) lived, so the trade-off seems reasonable to me.

Changed files:
filename: ggml/CMakeLists.txt
patch: @@ -155,6 +155,9 @@ option(GGML_CUDA_NO_VMM                     "ggml: do not try to use CUDA VMM"
 option(GGML_CUDA_FA                         "ggml: compile ggml FlashAttention CUDA kernels"  ON)
 option(GGML_CUDA_FA_ALL_QUANTS              "ggml: compile all quants for FlashAttention"     OFF)
 option(GGML_CUDA_GRAPHS                     "ggml: use CUDA graphs (llama.cpp only)"          ${GGML_CUDA_GRAPHS_DEFAULT})
+set   (GGML_CUDA_COMPRESSION_MODE "size" CACHE STRING
+                                            "ggml: cuda link binary compression mode; requires cuda 12.8+")
+set_property(CACHE GGML_CUDA_COMPRESSION_MODE PROPERTY STRINGS "none;speed;balance;size")
 
 option(GGML_HIP                             "ggml: use HIP"                                   OFF)
 option(GGML_HIP_GRAPHS                      "ggml: use HIP graph, experimental, slow"         OFF)

filename: ggml/src/ggml-cuda/CMakeLists.txt
patch: @@ -102,6 +102,15 @@ if (CUDAToolkit_FOUND)
 
     set(CUDA_FLAGS -use_fast_math)
 
+    if (CUDAToolkit_VERSION VERSION_GREATER_EQUAL "12.8")
+        # Options are:
+        # - none (not recommended)
+        # - speed (nvcc's default)
+        # - balance
+        # - size
+        list(APPEND CUDA_FLAGS -compress-mode=${GGML_CUDA_COMPRESSION_MODE})
+    endif()
+
     if (GGML_FATAL_WARNINGS)
         list(APPEND CUDA_FLAGS -Werror all-warnings)
     endif()
Repository: facebook/react
Pull request: Enable experimental Cache API in www TestRenderer

## Summary

Enables the Cache API for the (Facebook) www TestRenderer - I think. I'm not quite sure what each of these files corresponds to but I tried to use this internally on Facebook www, and @acdlite pointed me to this file.

## How did you test this change?

👀

Changed files:
filename: packages/shared/forks/ReactFeatureFlags.testing.www.js
patch: @@ -23,7 +23,7 @@ export const enableUpdaterTracking = false;
 export const enableSuspenseServerRenderer = true;
 export const enableSelectiveHydration = true;
 export const enableLazyElements = false;
-export const enableCache = false;
+export const enableCache = true;
 export const disableJavaScriptURLs = true;
 export const disableInputAttributeSyncing = false;
 export const enableSchedulerDebugging = false;
Repository: denoland/deno
Pull request: fix(node/http): don't throw on .address() before .listen()

It's perfectly valid to access `server.address()` before calling `.listen()`. Until a server actively listens on a socket Node will return `null` here, but we threw a "Cannot access property 'port' of undefined" instead.

This was discovered when inspecting failures in Koa's test suite with Deno.

Changed files:
filename: ext/node/polyfills/http.ts
patch: @@ -1657,7 +1657,7 @@ export class ServerImpl extends EventEmitter {
   #httpConnections: Set<Deno.HttpConn> = new Set();
   #listener?: Deno.Listener;
 
-  #addr: Deno.NetAddr;
+  #addr: Deno.NetAddr | null = null;
   #hasClosed = false;
   #server: Deno.HttpServer;
   #unref = false;
@@ -1843,6 +1843,7 @@ export class ServerImpl extends EventEmitter {
   }
 
   address() {
+    if (this.#addr === null) return null;
     return {
       port: this.#addr.port,
       address: this.#addr.hostname,

filename: tests/unit_node/http_test.ts
patch: @@ -1251,3 +1251,8 @@ Deno.test("[node/http] http.request() post streaming body works", async () => {
   clearTimeout(timeout);
   assertEquals(server.listening, false);
 });
+
+Deno.test("[node/http] Server.address() can be null", () => {
+  const server = http.createServer((_req, res) => res.end("it works"));
+  assertEquals(server.address(), null);
+});
Repository: denoland/deno
Pull request: feat(ext/crypto): make deriveBits length parameter optional and nullable

Updates SubtleCrypto.prototype.deriveBits as per https://github.com/w3c/webcrypto/pull/345

(WPT update in https://github.com/web-platform-tests/wpt/pull/43400)

Changed files:
filename: ext/crypto/00_crypto.js
patch: @@ -1131,10 +1131,10 @@ class SubtleCrypto {
    * @param {number | null} length
    * @returns {Promise<ArrayBuffer>}
    */
-  async deriveBits(algorithm, baseKey, length) {
+  async deriveBits(algorithm, baseKey, length = null) {
     webidl.assertBranded(this, SubtleCryptoPrototype);
     const prefix = "Failed to execute 'deriveBits' on 'SubtleCrypto'";
-    webidl.requiredArguments(arguments.length, 3, prefix);
+    webidl.requiredArguments(arguments.length, 2, prefix);
     algorithm = webidl.converters.AlgorithmIdentifier(
       algorithm,
       prefix,

filename: tests/wpt/runner/expectation.json
patch: @@ -909,10 +909,12 @@
     "historical.any.html": false,
     "historical.any.worker.html": false,
     "idlharness.https.any.html": [
-      "Window interface: attribute crypto"
+      "Window interface: attribute crypto",
+      "SubtleCrypto interface: operation deriveBits(AlgorithmIdentifier, CryptoKey, unsigned long)"
     ],
     "idlharness.https.any.worker.html": [
-      "WorkerGlobalScope interface: attribute crypto"
+      "WorkerGlobalScope interface: attribute crypto",
+      "SubtleCrypto interface: operation deriveBits(AlgorithmIdentifier, CryptoKey, unsigned long)"
     ],
     "import_export": {
       "ec_importKey.https.any.html": [
Repository: vercel/next.js
Pull request: Turbopack: add debug assertion to check for duplicate modules

### What?

Quick debug check to panic for duplicate modules

Closes PACK-4325

Changed files:
filename: turbopack/crates/turbopack-core/src/module_graph/mod.rs
patch: @@ -325,6 +325,21 @@ impl SingleModuleGraph {
 
         graph.shrink_to_fit();
 
+        #[cfg(debug_assertions)]
+        {
+            let mut duplicates = Vec::new();
+            let mut set = FxHashSet::default();
+            for &module in modules.keys() {
+                let ident = module.ident().to_string().await?;
+                if !set.insert(ident.clone()) {
+                    duplicates.push(ident);
+                }
+            }
+            if !duplicates.is_empty() {
+                panic!("Duplicate module idents in graph: {:#?}", duplicates);
+            }
+        }
+
         Ok(SingleModuleGraph {
             graph: TracedDiGraph::new(graph),
             number_of_modules,
Repository: facebook/react
Pull request: Enabled scheduling profiler marks for React Native FB target

This will let @feedthejim and I look at Systrace data with the Scheduling Profiler marks in order to figure out how to parse this data. Note that this change *only impacts DEV and PRODUCTION build targets* and so will have *no impact* on public React Native apps.

Changed files:
filename: packages/shared/forks/ReactFeatureFlags.native-fb.js
patch: @@ -20,7 +20,7 @@ export const {enablePersistentOffscreenHostContainer} = dynamicFlags;
 
 // The rest of the flags are static for better dead code elimination.
 export const enableDebugTracing = false;
-export const enableSchedulingProfiler = false;
+export const enableSchedulingProfiler = true;
 export const enableProfilerTimer = __PROFILE__;
 export const enableProfilerCommitHooks = __PROFILE__;
 export const enableProfilerNestedUpdatePhase = __PROFILE__;
Repository: nodejs/node
Pull request: doc: correct peformance entry types

Fixes: https://github.com/nodejs/node/issues/54212
Fixes: https://github.com/nodejs/node/issues/50290

<!--
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/perf_hooks.md
patch: @@ -509,13 +509,16 @@ changes:
 
 The type of the performance entry. It may be one of:
 
-* `'node'` (Node.js only)
-* `'mark'` (available on the Web)
-* `'measure'` (available on the Web)
-* `'gc'` (Node.js only)
+* `'dns'` (Node.js only)
 * `'function'` (Node.js only)
+* `'gc'` (Node.js only)
 * `'http2'` (Node.js only)
 * `'http'` (Node.js only)
+* `'mark'` (available on the Web)
+* `'measure'` (available on the Web)
+* `'net'` (Node.js only)
+* `'node'` (Node.js only)
+* `'resource'` (available on the Web)
 
 ### `performanceEntry.name`
Repository: ggml-org/llama.cpp
Pull request: [CANN]: Fix crash when running on multiple cann devices

This PR fixes a crash that occurred when llama-bench was run on multiple cann devices(#9250).

- [x] I have read the [contributing guidelines](https://github.com/ggerganov/llama.cpp/blob/master/CONTRIBUTING.md)
- Self-reported review complexity:
  - [ ] Low
  - [x] Medium
  - [ ] High

before the fix：
![image](https://github.com/user-attachments/assets/66521556-684b-4083-8454-fc341037aabb)

after the fix:
![image](https://github.com/user-attachments/assets/7c7d4af0-457b-47a4-bb89-cadf8bd11b84)





Changed files:
filename: ggml/src/ggml-cann/common.h
patch: @@ -227,6 +227,7 @@ struct ggml_backend_cann_context {
      * @brief Destructor for cleaning up resources.
      */
     ~ggml_backend_cann_context() {
+        ggml_cann_set_device(device);
         if (copy_event != nullptr) {
             ACL_CHECK(aclrtDestroyEvent(copy_event));
         }