helloadhavan/github_issues huggingface dataset:
Repository: nodejs/node
Pull request: lib: runtime deprecate punycode

It has been *almost* 2 years (in a month) since[ we deprecated punycode](https://github.com/nodejs/node/pull/38444) as Documentation-only. 

From my understanding, the next step of the deprecation process is a runtime process. The following change proposes that.

Changed files:
filename: doc/api/deprecations.md
patch: @@ -872,6 +872,9 @@ The [`require.extensions`][] property is deprecated.
 
 <!-- YAML
 changes:
+  - version: REPLACEME
+    pr-url: https://github.com/nodejs/node/pull/47202
+    description: Runtime deprecation.
   - version: v16.6.0
     pr-url: https://github.com/nodejs/node/pull/38444
     description: Added support for `--pending-deprecation`.
@@ -880,7 +883,7 @@ changes:
     description: Documentation-only deprecation.
 -->
 
-Type: Documentation-only (supports [`--pending-deprecation`][])
+Type: Runtime
 
 The [`punycode`][] module is deprecated. Please use a userland alternative
 instead.

filename: lib/punycode.js
patch: @@ -1,14 +1,11 @@
 'use strict';
 
-const { getOptionValue } = require('internal/options');
-if (getOptionValue('--pending-deprecation')){
-	process.emitWarning(
-		'The `punycode` module is deprecated. Please use a userland ' +
-		'alternative instead.',
-		'DeprecationWarning',
-		'DEP0040',
-	);
-}
+process.emitWarning(
+  'The `punycode` module is deprecated. Please use a userland ' +
+  'alternative instead.',
+  'DeprecationWarning',
+  'DEP0040',
+);
 
 /** Highest positive signed 32-bit float value */
 const maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1

filename: test/message/core_line_numbers.out
patch: @@ -1,9 +1,9 @@
-node:punycode:52
+node:punycode:49
 	throw new RangeError(errors[type]);
 	^
 
 RangeError: Invalid input
-    at error (node:punycode:52:8)
+    at error (node:punycode:49:8)
     at Object.decode (node:punycode:*:*)
     at Object.<anonymous> (*test*message*core_line_numbers.js:*:*)
Repository: ggml-org/llama.cpp
Pull request: llava: add more helper functions to check projector types

This commit add more helper functions to check various projector types within the clip context. The following
functions have been added:

 • `clip_is_llava`: Checks if the context has a llava projector.
 • `clip_is_gemma3`: Determines if the projector type is GEMMA3.


Changed files:
filename: examples/llava/clip.cpp
patch: @@ -2840,10 +2840,19 @@ int clip_is_minicpmv(const struct clip_ctx * ctx) {
 bool clip_is_glm(const struct clip_ctx * ctx) {
     return ctx->has_glm_projector;
 }
+
 bool clip_is_qwen2vl(const struct clip_ctx * ctx) {
     return ctx->has_qwen2vl_merger;
 }
 
+bool clip_is_llava(const struct clip_ctx * ctx) {
+    return ctx->has_llava_projector;
+}
+
+bool clip_is_gemma3(const struct clip_ctx * ctx) {
+    return ctx->proj_type == PROJECTOR_TYPE_GEMMA3;
+}
+
 // Determine the number of encoder layers to iterate over
 int get_deepest_feature_layer(const struct clip_ctx * ctx) {
     // Get the index of the second to last layer; this is the

filename: examples/llava/clip.h
patch: @@ -106,6 +106,8 @@ CLIP_API bool clip_model_quantize(const char * fname_inp, const char * fname_out
 CLIP_API int clip_is_minicpmv(const struct clip_ctx * ctx);
 CLIP_API bool clip_is_glm(const struct clip_ctx * ctx);
 CLIP_API bool clip_is_qwen2vl(const struct clip_ctx * ctx);
+CLIP_API bool clip_is_llava(const struct clip_ctx * ctx);
+CLIP_API bool clip_is_gemma3(const struct clip_ctx * ctx);
 
 CLIP_API int get_deepest_feature_layer(const struct clip_ctx * ctx);
Repository: vercel/next.js
Pull request: Turbopack: only invalidate removed cells once

### What?

When cells are removed, dependents on these cells should be invalidated.
But we want to make sure to invalidate them only once (when the cells are removed), otherwise we could end up in an invalidation cycle, since dependents are only removed when the dependent tasks is finished.

Closes PACK-4305

Changed files:
filename: turbopack/crates/turbo-tasks-backend/src/backend/mod.rs
patch: @@ -1332,10 +1332,11 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> {
         }
 
         // handle cell counters: update max index and remove cells that are no longer used
-        let mut old_counters: FxHashMap<_, _> =
+        let old_counters: FxHashMap<_, _> =
             get_many!(task, CellTypeMaxIndex { cell_type } max_index => (cell_type, *max_index));
+        let mut counters_to_remove = old_counters.clone();
         for (&cell_type, &max_index) in cell_counters.iter() {
-            if let Some(old_max_index) = old_counters.remove(&cell_type) {
+            if let Some(old_max_index) = counters_to_remove.remove(&cell_type) {
                 if old_max_index != max_index {
                     task.insert(CachedDataItem::CellTypeMaxIndex {
                         cell_type,
@@ -1349,7 +1350,7 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> {
                 });
             }
         }
-        for (cell_type, _) in old_counters {
+        for (cell_type, _) in counters_to_remove {
             task.remove(&CachedDataItemKey::CellTypeMaxIndex { cell_type });
         }
 
@@ -1404,14 +1405,17 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> {
                             .get(&cell.type_id)
                             .is_none_or(|start_index| cell.index >= *start_index)
                         {
-                            Some(OutdatedEdge::RemovedCellDependent {
-                                task_id: task,
-                                #[cfg(feature = "trace_task_dirty")]
-                                value_type_id: cell.type_id,
-                            })
-                        } else {
-                            None
+                            if let Some(old_counter) = old_counters.get(&cell.type_id) {
+                                if cell.index < *old_counter {
+                                    return Some(OutdatedEdge::RemovedCellDependent {
+                                        task_id: task,
+                                        #[cfg(feature = "trace_task_dirty")]
+                                        value_type_id: cell.type_id,
+                                    });
+                                }
+                            }
                         }
+                        None
                     },
                 ),
             );
Repository: electron/electron
Pull request: fix: accidental handle copying in a range loop

Backport of #43260

See that PR for details.


Notes: none.

Changed files:
filename: shell/browser/api/message_port.cc
patch: @@ -9,6 +9,7 @@
 #include <utility>
 
 #include "base/containers/contains.h"
+#include "base/containers/to_vector.h"
 #include "base/strings/string_number_conversions.h"
 #include "base/task/single_thread_task_runner.h"
 #include "gin/arguments.h"
@@ -242,11 +243,7 @@ std::vector<blink::MessagePortChannel> MessagePort::DisentanglePorts(
   }
 
   // Passed-in ports passed validity checks, so we can disentangle them.
-  std::vector<blink::MessagePortChannel> channels;
-  channels.reserve(ports.size());
-  for (auto port : ports)
-    channels.push_back(port->Disentangle());
-  return channels;
+  return base::ToVector(ports, [](auto& port) { return port->Disentangle(); });
 }
 
 void MessagePort::Pin() {
Repository: facebook/react
Pull request: Move lint job to new, combined CI workflow

Moves the lint job our new, combined CI workflow.

After this, there is only one job remaining to be migrated. Then we can delete the old workflow and build script.

Changed files:
filename: .circleci/config.yml
patch: @@ -343,16 +343,6 @@ jobs:
 
 workflows:
   version: 2
-  stable:
-    unless: << pipeline.parameters.prerelease_commit_sha >>
-    jobs:
-      - setup
-      - yarn_lint:
-          requires:
-            - setup
-      - RELEASE_CHANNEL_stable_yarn_build:
-          requires:
-            - setup
 
   experimental:
     unless: << pipeline.parameters.prerelease_commit_sha >>
@@ -378,6 +368,9 @@ workflows:
       - sync_reconciler_forks:
           requires:
             - setup
+      - yarn_lint:
+          requires:
+            - setup
       - yarn_test:
           requires:
             - setup
Repository: nodejs/node
Pull request: doc: move `ERR_INVALID_PERFORMANCE_MARK` to legacy errors

The error was added in https://github.com/nodejs/node/pull/14680/files#diff-670bf55805b781d9a3579f8bca9104c04d94af87cc33220149fd7d37b095ca1cR237, and removed in https://github.com/nodejs/node/pull/39297/files#diff-670bf55805b781d9a3579f8bca9104c04d94af87cc33220149fd7d37b095ca1cL1269-L1270, but it was still documented as a valid error code.

Refs: https://github.com/nodejs/node/pull/14680
Refs: https://github.com/nodejs/node/pull/39297

<!--
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/errors.md
patch: @@ -2003,13 +2003,6 @@ An invalid [`package.json`][] file failed parsing.
 The `package.json` [`"exports"`][] field contains an invalid target mapping
 value for the attempted module resolution.
 
-<a id="ERR_INVALID_PERFORMANCE_MARK"></a>
-
-### `ERR_INVALID_PERFORMANCE_MARK`
-
-While using the Performance Timing API (`perf_hooks`), a performance mark is
-invalid.
-
 <a id="ERR_INVALID_PROTOCOL"></a>
 
 ### `ERR_INVALID_PROTOCOL`
@@ -3473,6 +3466,18 @@ removed: v15.0.0
 
 An invalid or unknown file encoding was passed.
 
+<a id="ERR_INVALID_PERFORMANCE_MARK"></a>
+
+### `ERR_INVALID_PERFORMANCE_MARK`
+
+<!-- YAML
+added: v8.5.0
+removed: v16.7.0
+-->
+
+While using the Performance Timing API (`perf_hooks`), a performance mark is
+invalid.
+
 <a id="ERR_INVALID_TRANSFER_OBJECT"></a>
 
 ### `ERR_INVALID_TRANSFER_OBJECT`
Repository: ggml-org/llama.cpp
Pull request: Include limits header file on AIX

The limits header file is present in /usr/include/sys on AIX


Changed files:
filename: common/arg.cpp
patch: @@ -163,6 +163,8 @@ struct common_hf_file_res {
 #   if !defined(PATH_MAX)
 #   define PATH_MAX MAX_PATH
 #   endif
+#elif defined(_AIX)
+#include <sys/limits.h>
 #else
 #include <sys/syslimits.h>
 #endif
Repository: huggingface/transformers
Pull request: fix: Add 'image-text-to-text' to `TASK_MAPPING`

# What does this PR do?

The `TASK_MAPPING` dictionary, mapping pipeline tags to the list of architectures that support that task, is missing the new [image-text-to-text pipeline tag](https://huggingface.co/models?pipeline_tag=image-text-to-text). This PR simply adds that missing one.


## Before submitting
- [ ] 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),
      Pull Request section?
- [ ] Was this discussed/approved via a Github issue or the [forum](https://discuss.huggingface.co/)? Please add a link
      to it if that's the case.
- [ ] Did you make sure to update the documentation with your changes? Here are the
      [documentation guidelines](https://github.com/huggingface/transformers/tree/main/docs), and
      [here are tips on formatting docstrings](https://github.com/huggingface/transformers/tree/main/docs#writing-source-documentation).
- [ ] Did you write any new necessary tests?


## Who can review?

@ArthurZucker @amyeroberts @qubvel 

Changed files:
filename: src/transformers/modelcard.py
patch: @@ -33,6 +33,7 @@
     MODEL_FOR_CTC_MAPPING_NAMES,
     MODEL_FOR_IMAGE_CLASSIFICATION_MAPPING_NAMES,
     MODEL_FOR_IMAGE_SEGMENTATION_MAPPING_NAMES,
+    MODEL_FOR_IMAGE_TEXT_TO_TEXT_MAPPING_NAMES,
     MODEL_FOR_MASKED_LM_MAPPING_NAMES,
     MODEL_FOR_OBJECT_DETECTION_MAPPING_NAMES,
     MODEL_FOR_QUESTION_ANSWERING_MAPPING_NAMES,
@@ -70,6 +71,7 @@
     "audio-classification": MODEL_FOR_AUDIO_CLASSIFICATION_MAPPING_NAMES,
     "automatic-speech-recognition": {**MODEL_FOR_CTC_MAPPING_NAMES, **MODEL_FOR_SPEECH_SEQ_2_SEQ_MAPPING_NAMES},
     "zero-shot-image-classification": MODEL_FOR_ZERO_SHOT_IMAGE_CLASSIFICATION_MAPPING_NAMES,
+    "image-text-to-text": MODEL_FOR_IMAGE_TEXT_TO_TEXT_MAPPING_NAMES,
 }
 
 logger = logging.get_logger(__name__)
Repository: denoland/deno
Pull request: fix(ext/node): Add SIGPOLL and SIGUNUSED signals

Fixes https://github.com/denoland/deno/issues/24227 on Linux

SIGPOLL is alias for SIGIO
SIGUNUSED is alias for SIGSYS


Changed files:
filename: cli/tsc/dts/lib.deno.ns.d.ts
patch: @@ -4416,6 +4416,8 @@ declare namespace Deno {
     | "SIGINFO"
     | "SIGINT"
     | "SIGIO"
+    | "SIGPOLL"
+    | "SIGUNUSED"
     | "SIGKILL"
     | "SIGPIPE"
     | "SIGPROF"

filename: runtime/ops/signal.rs
patch: @@ -339,9 +339,9 @@ pub fn signal_str_to_int(s: &str) -> Result<libc::c_int, AnyError> {
     "SIGVTALRM" => Ok(26),
     "SIGPROF" => Ok(27),
     "SIGWINCH" => Ok(28),
-    "SIGIO" => Ok(29),
+    "SIGIO" | "SIGPOLL" => Ok(29),
     "SIGPWR" => Ok(30),
-    "SIGSYS" => Ok(31),
+    "SIGSYS" | "SIGUNUSED" => Ok(31),
     _ => Err(type_error(format!("Invalid signal : {s}"))),
   }
 }

filename: tests/unit/signal_test.ts
patch: @@ -304,3 +304,15 @@ Deno.test(
     );
   },
 );
+
+Deno.test(
+  { ignore: Deno.build.os !== "linux" },
+  function signalAliasLinux() {
+    const i = () => {};
+    Deno.addSignalListener("SIGUNUSED", i);
+    Deno.addSignalListener("SIGPOLL", i);
+
+    Deno.removeSignalListener("SIGUNUSED", i);
+    Deno.removeSignalListener("SIGPOLL", i);
+  },
+);
Repository: facebook/react
Pull request: Move DOM fixtures test job to main CI workflow

Moves the RELEASE_CHANNEL_stable_yarn_test_dom_fixtures job to our new, combined CI workflow.

After this, there are only two jobs remaining to be migrated. Then we can delete the old workflow and build script.

Changed files:
filename: .circleci/config.yml
patch: @@ -274,7 +274,8 @@ jobs:
     environment: *environment
     steps:
       - checkout
-      - attach_workspace: *attach_workspace
+      - attach_workspace:
+          at: .
       - run: yarn workspaces info | head -n -1 > workspace_info.txt
       - *restore_node_modules
       - run:
@@ -352,9 +353,6 @@ workflows:
       - RELEASE_CHANNEL_stable_yarn_build:
           requires:
             - setup
-      - RELEASE_CHANNEL_stable_yarn_test_dom_fixtures:
-          requires:
-            - RELEASE_CHANNEL_stable_yarn_build
 
   experimental:
     unless: << pipeline.parameters.prerelease_commit_sha >>
@@ -457,6 +455,9 @@ workflows:
       - yarn_lint_build:
           requires:
             - yarn_build_combined
+      - RELEASE_CHANNEL_stable_yarn_test_dom_fixtures:
+          requires:
+            - yarn_build_combined
   fuzz_tests:
     unless: << pipeline.parameters.prerelease_commit_sha >>
     triggers:

filename: fixtures/dom/package.json
patch: @@ -20,7 +20,7 @@
   },
   "scripts": {
     "start": "react-scripts start",
-    "prestart": "cp ../../build/node_modules/scheduler/umd/scheduler-unstable_mock.development.js ../../build/node_modules/scheduler/umd/scheduler-unstable_mock.production.min.js ../../build/node_modules/react/umd/react.development.js ../../build/node_modules/react-dom/umd/react-dom.development.js ../../build/node_modules/react/umd/react.production.min.js ../../build/node_modules/react-dom/umd/react-dom.production.min.js ../../build/node_modules/react-dom/umd/react-dom-server.browser.development.js ../../build/node_modules/react-dom/umd/react-dom-server.browser.production.min.js ../../build/node_modules/react-dom/umd/react-dom-test-utils.development.js ../../build/node_modules/react-dom/umd/react-dom-test-utils.production.min.js public/ && cp -a ../../build/node_modules/. node_modules",
+    "prestart": "cp ../../build2/oss-stable/scheduler/umd/scheduler-unstable_mock.development.js ../../build2/oss-stable/scheduler/umd/scheduler-unstable_mock.production.min.js ../../build2/oss-stable/react/umd/react.development.js ../../build2/oss-stable/react-dom/umd/react-dom.development.js ../../build2/oss-stable/react/umd/react.production.min.js ../../build2/oss-stable/react-dom/umd/react-dom.production.min.js ../../build2/oss-stable/react-dom/umd/react-dom-server.browser.development.js ../../build2/oss-stable/react-dom/umd/react-dom-server.browser.production.min.js ../../build2/oss-stable/react-dom/umd/react-dom-test-utils.development.js ../../build2/oss-stable/react-dom/umd/react-dom-test-utils.production.min.js public/ && cp -a ../../build2/oss-stable/. node_modules",
     "build": "react-scripts build && cp build/index.html build/200.html",
     "test": "react-scripts test --env=jsdom",
     "eject": "react-scripts eject"
Repository: huggingface/transformers
Pull request: Add py.typed

py.typed is a marker file to support typing. See [pep 561](https://peps.python.org/pep-0561/). It's used to indicate that transformer has typing support in the source code and tools such as mypy and pylint can take advantage of that. Therefore, we don't need an additional pyi file for typing.

Changed files:
filename: setup.py
patch: @@ -458,7 +458,7 @@ def run(self):
     package_dir={"": "src"},
     packages=find_packages("src"),
     include_package_data=True,
-    package_data={"": ["**/*.cu", "**/*.cpp", "**/*.cuh", "**/*.h", "**/*.pyx"]},
+    package_data={"": ["**/*.cu", "**/*.cpp", "**/*.cuh", "**/*.h", "**/*.pyx", "py.typed"]},
     zip_safe=False,
     extras_require=extras,
     entry_points={"console_scripts": ["transformers-cli=transformers.commands.transformers_cli:main"]},
Repository: facebook/react
Pull request: Remove root Fiber fields that were used for hydrating `useMutableSource`



## Summary

Removes `mutableSourceEagerHydrationData` which was added in https://github.com/facebook/react/pull/18771 but is no longer read nor written to after initialization with https://github.com/facebook/react/pull/22292

## How did you test this change?

- [x] CI green


Changed files:
filename: packages/react-reconciler/src/ReactFiberRoot.new.js
patch: @@ -10,7 +10,7 @@
 import type {FiberRoot, SuspenseHydrationCallbacks} from './ReactInternalTypes';
 import type {RootTag} from './ReactRootTags';
 
-import {noTimeout, supportsHydration} from './ReactFiberHostConfig';
+import {noTimeout} from './ReactFiberHostConfig';
 import {createHostRootFiber} from './ReactFiber.new';
 import {
   NoLane,
@@ -59,10 +59,6 @@ function FiberRootNode(containerInfo, tag, hydrate) {
     this.pooledCacheLanes = NoLanes;
   }
 
-  if (supportsHydration) {
-    this.mutableSourceEagerHydrationData = null;
-  }
-
   if (enableSuspenseCallback) {
     this.hydrationCallbacks = null;
   }

filename: packages/react-reconciler/src/ReactFiberRoot.old.js
patch: @@ -10,7 +10,7 @@
 import type {FiberRoot, SuspenseHydrationCallbacks} from './ReactInternalTypes';
 import type {RootTag} from './ReactRootTags';
 
-import {noTimeout, supportsHydration} from './ReactFiberHostConfig';
+import {noTimeout} from './ReactFiberHostConfig';
 import {createHostRootFiber} from './ReactFiber.old';
 import {
   NoLane,
@@ -59,10 +59,6 @@ function FiberRootNode(containerInfo, tag, hydrate) {
     this.pooledCacheLanes = NoLanes;
   }
 
-  if (supportsHydration) {
-    this.mutableSourceEagerHydrationData = null;
-  }
-
   if (enableSuspenseCallback) {
     this.hydrationCallbacks = null;
   }
Repository: ggml-org/llama.cpp
Pull request: gguf-py : support lazy tensor splitting

Splitting usually involves returning tuples of tensors, which need to be handled properly to avoid early eager evaluation.

As explained in <https://github.com/ggml-org/llama.cpp/pull/12791#discussion_r2032047087>, this will likely help reducing the RAM usage when converting Llama4, since the approach in <https://github.com/ggml-org/llama.cpp/pull/12791> uses `torch.split` on the FFN projections.

# TODO:

- [x] Test conversion with Llama4 and make sure this helps with RAM usage and the output is the same
  - @bartowski1182 or @ddh0 if you have the hashes for a previous conversion of the slow-to-convert model(s) that would be helpful (although the hash may depend on the directory name of the source directory since the metadata of the model potentially includes part of it)

---

*Make sure to read the [contributing guidelines](https://github.com/ggml-org/llama.cpp/blob/master/CONTRIBUTING.md) before submitting a PR*


Changed files:
filename: gguf-py/gguf/lazy.py
patch: @@ -139,6 +139,16 @@ def wrapped_fn(*args, **kwargs):
 
             if isinstance(res, cls._tensor_type):
                 return cls(meta=cls.eager_to_meta(res), args=args, kwargs=kwargs, func=fn)
+            elif isinstance(res, tuple) and all(isinstance(t, cls._tensor_type) for t in res):
+                # share the evaluation between lazy tuple elements
+                shared_args: list = [args, None]
+
+                def eager_tuple_element(a: list[Any], i: int = 0, /, **kw) -> LazyBase:
+                    assert len(a) == 2
+                    if a[1] is None:
+                        a[1] = fn(*a[0], **kw)
+                    return a[1][i]
+                return tuple(cls(meta=cls.eager_to_meta(res[i]), args=(shared_args, i), kwargs=kwargs, func=eager_tuple_element) for i in range(len(res)))
             else:
                 del res  # not needed
                 # non-tensor return likely relies on the contents of the args