helloadhavan/github_issues huggingface dataset:
Repository: facebook/react
Pull request: [DevTools] Swap Components tab layout based on container size


This is mostly relevant for using React DevTools inline where the devtools container width is not equal to the viewport width (e.g. in the test fixture).

[Container queries are available in all evergreen browsers and iOS 16](https://developer.mozilla.org/en-US/docs/Web/CSS/@container#browser_compatibility)

Before:

https://github.com/user-attachments/assets/43b6cb3c-98f4-4898-857f-0820fb2e5ab9



After:

https://github.com/user-attachments/assets/9082c11b-b0be-43fb-b0ba-a17e023c2513





Changed files:
filename: packages/react-devtools-shared/src/devtools/views/Components/Components.css
patch: @@ -38,7 +38,7 @@
   cursor: ew-resize;
 }
 
-@media screen and (max-width: 600px) {
+@container devtools (width < 600px) {
   .Components {
     flex-direction: column;
   }

filename: packages/react-devtools-shared/src/devtools/views/DevTools.css
patch: @@ -5,6 +5,8 @@
   flex-direction: column;
   background-color: var(--color-background);
   color: var(--color-text);
+  container-name: devtools;
+  container-type: inline-size;
 }
 
 .TabBar {

filename: packages/react-devtools-shared/src/devtools/views/portaledContent.js
patch: @@ -36,7 +36,12 @@ export default function portaledContent(
         <ThemeProvider>
           <div
             data-react-devtools-portal-root={true}
-            style={{width: '100vw', height: '100vh'}}>
+            style={{
+              width: '100vw',
+              height: '100vh',
+              containerName: 'devtools',
+              containerType: 'inline-size',
+            }}>
             {children}
           </div>
         </ThemeProvider>
Repository: huggingface/transformers
Pull request: Fix mistral checkpoint loading in `utils/fetch_hub_objects_for_ci.py`: avoid too many requests and/or timeout

# What does this PR do?

Just reuse the local files as much as possible

Changed files:
filename: utils/fetch_hub_objects_for_ci.py
patch: @@ -265,20 +265,40 @@ def download_test_file(url):
 
         # For `tests/test_tokenization_mistral_common.py:TestMistralCommonBackend`, which eventually calls
         # `mistral_common.tokens.tokenizers.utils.download_tokenizer_from_hf_hub` which (probably) doesn't have the cache.
+        # For `revision=None`, see https://github.com/huggingface/transformers/pull/40623
         if is_mistral_common_available():
             from mistral_common.tokens.tokenizers.mistral import MistralTokenizer
+            from mistral_common.tokens.tokenizers.utils import list_local_hf_repo_files
 
             from transformers import AutoTokenizer
             from transformers.tokenization_mistral_common import MistralCommonBackend
 
             repo_id = "hf-internal-testing/namespace-mistralai-repo_name-Mistral-Small-3.1-24B-Instruct-2503"
-            AutoTokenizer.from_pretrained(repo_id, tokenizer_type="mistral")
-            MistralCommonBackend.from_pretrained(repo_id)
-            MistralTokenizer.from_hf_hub(repo_id)
+
+            # determine if we already have this downloaded
+            local_files_only = len(list_local_hf_repo_files(repo_id, revision=None)) > 0
+
+            # This will go the path `transformers/tokenization_mistral_common.py::MistralCommonBackend::from_pretrained --> mistral_common.tokens.tokenizers.utils.download_tokenizer_from_hf_hub`.
+            # No idea at all why we need the statement below again (`MistralCommonBackend.from_pretrained`).
+            AutoTokenizer.from_pretrained(
+                repo_id, tokenizer_type="mistral", local_files_only=local_files_only, revision=None
+            )
+
+            _ = MistralCommonBackend.from_pretrained(
+                repo_id,
+                local_files_only=local_files_only,
+                # This is a hack as `list_local_hf_repo_files` from `mistral_common` has a bug
+                # TODO: Discuss with `mistral-common` maintainers: after a fix being done there, remove this `revision` hack
+                revision=None,
+            )
+
+            MistralTokenizer.from_hf_hub(repo_id, local_files_only=local_files_only)
 
             repo_id = "mistralai/Voxtral-Mini-3B-2507"
-            AutoTokenizer.from_pretrained(repo_id)
-            MistralTokenizer.from_hf_hub(repo_id)
+            local_files_only = len(list_local_hf_repo_files(repo_id, revision=None)) > 0
+
+            AutoTokenizer.from_pretrained(repo_id, local_files_only=local_files_only, revision=None)
+            MistralTokenizer.from_hf_hub(repo_id, local_files_only=local_files_only)
 
     # Download files from URLs to local directory
     for url in URLS_FOR_TESTING_DATA:
Repository: ollama/ollama
Pull request: image: add vision capability tag for projector-based models

Most vision models in the ollama library use projectors and don't have the "vision" tag in the capabilities list.
```console
$ for i in gemma3 mistral-small3.1 llava llama3.2-vision minicpm-v llava-llama3 moondream bakllava llava-phi3 granite3.2-vision ; do printf "%-20s " $i ; curl -s localhost:11434/api/show -d '{"model":"'$i'"}' | jq -c .capabilities ; done
gemma3               ["completion","vision"]
mistral-small3.1     ["completion","vision","tools"]
llava                ["completion"]
llama3.2-vision      ["completion"]
minicpm-v            ["completion"]
llava-llama3         ["completion"]
moondream            ["completion"]
bakllava             ["completion"]
llava-phi3           ["completion"]
granite3.2-vision    ["completion","tools"]
```

Changed files:
filename: server/images.go
patch: @@ -106,6 +106,11 @@ func (m *Model) Capabilities() []model.Capability {
 		capabilities = append(capabilities, model.CapabilityInsert)
 	}
 
+	// Check for vision capability in projector-based models
+	if len(m.ProjectorPaths) > 0 {
+		capabilities = append(capabilities, model.CapabilityVision)
+	}
+
 	return capabilities
 }
Repository: nodejs/node
Pull request: test: update WPT for url to 81a2aed262

This is an automated update of the WPT for url to https://github.com/web-platform-tests/wpt/commit/81a2aed262a6e82824afa19509583a736da580ed.

Changed files:
filename: test/fixtures/wpt/README.md
patch: @@ -28,7 +28,7 @@ Last update:
 - resource-timing: https://github.com/web-platform-tests/wpt/tree/22d38586d0/resource-timing
 - resources: https://github.com/web-platform-tests/wpt/tree/1d2c5fb36a/resources
 - streams: https://github.com/web-platform-tests/wpt/tree/bc9dcbbf1a/streams
-- url: https://github.com/web-platform-tests/wpt/tree/593c46cf18/url
+- url: https://github.com/web-platform-tests/wpt/tree/81a2aed262/url
 - urlpattern: https://github.com/web-platform-tests/wpt/tree/a2e15ad405/urlpattern
 - user-timing: https://github.com/web-platform-tests/wpt/tree/5ae85bf826/user-timing
 - wasm/jsapi: https://github.com/web-platform-tests/wpt/tree/cde25e7e3c/wasm/jsapi

filename: test/fixtures/wpt/url/resources/urltestdata.json
patch: @@ -6065,6 +6065,36 @@
     "search": "",
     "hash": ""
   },
+  {
+    "input": "https://0x.0x.0x.0x",
+    "base": null,
+    "href": "https://0.0.0.0/",
+    "origin": "https://0.0.0.0",
+    "protocol": "https:",
+    "username": "",
+    "password": "",
+    "host": "0.0.0.0",
+    "hostname": "0.0.0.0",
+    "port": "",
+    "pathname": "/",
+    "search": "",
+    "hash": ""
+  },
+  {
+    "input": "https://00.00.00.00",
+    "base": null,
+    "href": "https://0.0.0.0/",
+    "origin": "https://0.0.0.0",
+    "protocol": "https:",
+    "username": "",
+    "password": "",
+    "host": "0.0.0.0",
+    "hostname": "0.0.0.0",
+    "port": "",
+    "pathname": "/",
+    "search": "",
+    "hash": ""
+  },
   "More IPv4 parsing (via https://github.com/jsdom/whatwg-url/issues/92)",
   {
     "input": "https://0x100000000/test",

filename: test/fixtures/wpt/versions.json
patch: @@ -72,7 +72,7 @@
     "path": "streams"
   },
   "url": {
-    "commit": "593c46cf18ee325a8740d3f0f4c447840fb9919a",
+    "commit": "81a2aed262a6e82824afa19509583a736da580ed",
     "path": "url"
   },
   "urlpattern": {
Repository: electron/electron
Pull request: fix: restore macos 12 support in Node 24

#### Description of Change

Addresses #49691
Ref https://github.com/nodejs/node/commit/8b4022177750530d2c142a5a0349d98fb82f16e2

This PR fixes an unintentional/unannounced breaking change, where certain native modules would no longer build for MacOS 12 (which has been EOL'ed by Apple and Node). Electron will follow Chromium's lead and deprecate MacOS 12 with M151 (see https://crbug.com/473856753), and so we should allow for building until then.

This patch can be removed at the M151 branch point.

#### Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

- [ ] PR description included
- [ ] I have built and tested this PR
- [ ] `npm test` passes
- [ ] tests are [changed or added](https://github.com/electron/electron/blob/main/docs/development/testing.md)
- [ ] relevant API documentation, tutorials, and examples are updated and follow the [documentation style guide](https://github.com/electron/electron/blob/main/docs/development/style-guide.md)
- [ ] [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: Fixed an issue where native modules would either crash or not compile for MacOS 12.


Changed files:
filename: patches/node/.patches
patch: @@ -46,3 +46,4 @@ test_make_buffer_sizes_32bit-aware_in.patch
 src_refactor_module_wrap_cc_to_update_fixedarray_get_params.patch
 src_refactor_wasmstreaming_finish_to_accept_a_callback.patch
 src_stop_using_v8_propertycallbackinfo_t_this.patch
+build_restore_macos_deployment_target_to_12_0.patch

filename: patches/node/build_restore_macos_deployment_target_to_12_0.patch
patch: @@ -0,0 +1,24 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Keeley Hammond <vertedinde@electronjs.org>
+Date: Thu, 5 Feb 2026 15:29:44 -0800
+Subject: build: restore macos deployment target to 12.0
+
+Partially reverts https://github.com/nodejs/node/commit/8b4022177750530d2c142a5a0349d98fb82f16e2
+Electron will follow Chromium's lead and deprecate macos 12 with
+M151, and so we should allow for building until then.
+
+This patch can be removed at the M151 branch point.
+
+diff --git a/common.gypi b/common.gypi
+index bdadbdaa607b2f668749fc484271de8d126bbd17..8df2802191b7fe6ae14edbd85cb3a5d16eb5a76a 100644
+--- a/common.gypi
++++ b/common.gypi
+@@ -677,7 +677,7 @@
+           'GCC_ENABLE_PASCAL_STRINGS': 'NO',        # No -mpascal-strings
+           'GCC_STRICT_ALIASING': 'NO',              # -fno-strict-aliasing
+           'PREBINDING': 'NO',                       # No -Wl,-prebind
+-          'MACOSX_DEPLOYMENT_TARGET': '13.5',       # -mmacosx-version-min=13.5
++          'MACOSX_DEPLOYMENT_TARGET': '12.0',       # -mmacosx-version-min=12.0
+           'USE_HEADERMAP': 'NO',
+           'WARNING_CFLAGS': [
+             '-Wall',
Repository: electron/electron
Pull request: ci: fix patches changes detected in apply patches workflow

Backport of #49701

See that PR for details.


Notes: none <!-- Please add a one-line description for app developers to read in the release notes, or 'none' if no notes relevant to app developers. Examples and help on special cases: https://github.com/electron/clerk/blob/main/README.md#examples -->


Changed files:
filename: .github/workflows/apply-patches.yml
patch: @@ -66,6 +66,7 @@ jobs:
         git config user.name "Electron Bot"
         git fetch origin refs/pull/${PR_NUMBER}/head
         git merge --squash FETCH_HEAD
+        git commit -n -m "Squashed commits"
     - name: Checkout & Sync & Save
       uses: ./src/electron/.github/actions/checkout
       with:
Repository: huggingface/transformers
Pull request: fix(converter): speed up `MistralConverter.extract_vocab_merges_from_model`

# What does this PR do?

This test was taking 3 to 4mn on the CI  `test_voxtral_tokenizer_converts_from_tekken`

https://github.com/huggingface/transformers/blob/main/tests/models/auto/test_tokenization_auto.py#L213

Turns out we have a super slow function on large vocabularies (100k+ tokens)

This patch improves `MistralConverter.extract_vocab_merges_from_model`

Performance improvement:
- Before: O(n) linear search for each lookup, causing O(n²) behavior overall - 3/4mn
- After: O(1) dictionary lookup, reducing to O(n log n) for sorting - 1 second



Changed files:
filename: src/transformers/convert_slow_tokenizer.py
patch: @@ -1943,6 +1943,7 @@ def token_bytes_to_string(b):
             vocab[token.content] = idx
         bpe_ranks = [base64.b64decode(k["token_bytes"]) for k in bpe_ranks]
         rank_set = set(bpe_ranks)
+        token_to_rank = {token: rank for rank, token in enumerate(bpe_ranks)}
         for rank, token in enumerate(tqdm(bpe_ranks, desc="Converting tekken.json to tokenizer.json")):
             vocab[token_bytes_to_string(token)] = rank
             if len(token) == 1:
@@ -1952,7 +1953,7 @@ def token_bytes_to_string(b):
                 piece_l, piece_r = token[:index], token[index:]
                 if piece_l in rank_set and piece_r in rank_set and (piece_l + piece_r) in rank_set:
                     local.append((piece_l, piece_r, rank))
-            local = sorted(local, key=lambda x: (bpe_ranks.index(x[0]), bpe_ranks.index(x[1])), reverse=False)
+            local = sorted(local, key=lambda x: (token_to_rank[x[0]], token_to_rank[x[1]]), reverse=False)
             merges.extend(local)
         merges = sorted(merges, key=lambda val: val[2], reverse=False)
         merges = [(token_bytes_to_string(val[0]), token_bytes_to_string(val[1])) for val in merges]
Repository: ollama/ollama
Pull request: kvcache: Log batch size if we can't find a slot

In some cases, we can't find a cache slot when using sliding window attention. It would be helpful in this (and other cases) to know what the batch size is.

Bug #10127

Changed files:
filename: kvcache/causal.go
patch: @@ -239,7 +239,7 @@ func (c *Causal) findStartLoc() (int, error) {
 		}
 	}
 
-	return 0, fmt.Errorf("%w (length: %v)", ErrKvCacheFull, len(c.cells))
+	return 0, fmt.Errorf("%w (cache: %v batch: %v)", ErrKvCacheFull, len(c.cells), c.curBatchSize)
 }
 
 func (c *Causal) updateSlidingWindow() {
Repository: vuejs/vue
Pull request: [automated] Patreon backers update (Apr 2020

This is an automated pull request.

Changed files:
filename: BACKERS.md
patch: @@ -330,7 +330,7 @@ Funds donated via Patreon go directly to support Evan You's full-time work on Vu
 
 <!--50 start-->
 - Wasim Khamlichi
-- errorrik
+- errorrik 
 - Konstantin Levinski
 - Sean Ferguson
 - Johnny Ray Austin
@@ -343,86 +343,85 @@ Funds donated via Patreon go directly to support Evan You's full-time work on Vu
 - Masahiro Tanaka
 - Shawn Wildermuth
 - Keisuke Kita
-- Benjamin Listwon
 - Lars Andreas Ness
+- Benjamin Listwon
 - Kirk Lewis
+- Victor Tolbert
 - Wen-Tien Chang
 - Stephen Michael Hartley
-- Victor Tolbert
-- Luiz Tanure
-- Barbara Liau
+- Luiz 
 - James J. Ye
+- Barbara Liau
 - Matsumoto Takamasa
-- Matt Jones
 - Guy Gavergun
+- Matt Jones
 - Niannian Modisette
 - Bernhard E. Reiter
-- Zoran Knezevic
 - Asaf Yishai
-- username
+- username 
+- Zoran Knezevic
 - Jon Hobbs-Smith
 - Pierre Vanhulst
+- Akiho Nagao
 - Anthony Estebe
 - Haim Yulzari
-- Akiho Nagao
 - Jim Raden
 - Jeremy Tan
-- IMGNRY
-- Tyler
-- Mickaël Andrieu
+- IMGNRY 
+- Tyler 
 - Guilherme S L de Souza
 - Vivekanandhan Natarajan
 - Joe Gregory
 - Jordan Oroshiba
 - Marcos Moura
 - Jessie Hernandez
-- Eric
+- Eric 
 - Bohdan Kokotko
+- Oskar Lindgren
 - Jere Sjöroos
 - Donald Fischer
-- David Ang
-- Oskar Lindgren
-- Wakana Seki
 - Alexander Weiher
+- Wakana Seki
+- David Ang
 - Jaeyoung Lee
 - David Kaplan
+- Andy 
 - Philip John Basile
-- Andy
 - Matt Sencenbaugh
+- Juan Bermudez
 - Elon Hung
+- Chris Calo
 - Daniel Mattingley
 - Hannes Kochniß
-- Juan Bermudez
-- Chris Calo
 - Soichiro Isshiki
 - Andrew Willis
 - Yusuke Kawabata
 - Nick Dandakis
 - Peter Matkovsky
-- 龙腾道
+- 龙腾道 
 - Fabien GuySake Ungerer
 - Bill Condo
-- Nathan Mallison
 - Pierre Lebrun
 - Ryan Brewer
 - Martin Bastien
 - Alfonso Herrera
 - Bichinger Software & Consulting
-- Nicolaas
-- Riki Fridrich
 - Afif Sohaili
-- Parham
+- Nicolaas 
+- Riki Fridrich
 - Tomasz Kleszczewski
-- 琚致远
-- Allan McKernan
+- 琚致远 
 - Diana Bergholz
-- Ronni Lin
+- Parham 
+- Allan McKernan
 - Roy Segall
-- Santi Sanchez Canals
+- Ronni Lin
 - Thomas Wiedemann
+- lucien144 
 - Nobuhide Esaki
-- lucien144
+- Santi Sanchez Canals
 - Zeth Odderskov
+- Evgeny Zislis
 <!--10 end-->
 
 <h2 align="center">Backers via OpenCollective</h2>
Repository: electron/electron
Pull request: ci: fix patches changes detected in apply patches workflow

#### Description of Change

<!--
Thank you for your Pull Request. Please provide a description above and review
the requirements below.

Contributors guide: https://github.com/electron/electron/blob/main/CONTRIBUTING.md
-->

Fast follow-up to #49667, because _"It leaves the changes staged rather than committing them since it's just for checking purposes."_ turned out to be famous last words.

I didn't account for the part of our CI workflow which tries to detect patch changes by re-exporting them after sync, which was flagging the staged changes as a change to a patch and failing out. This was not caught originally when testing #49667 as there was a cache match (expected) so the sync never took place. This PR has been tested with the cache disabled to ensure a more complete E2E test.

#### Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

- [x] PR description included

#### Release Notes

Notes: none <!-- Please add a one-line description for app developers to read in the release notes, or 'none' if no notes relevant to app developers. Examples and help on special cases: https://github.com/electron/clerk/blob/main/README.md#examples -->


Changed files:
filename: .github/workflows/apply-patches.yml
patch: @@ -66,6 +66,7 @@ jobs:
         git config user.name "Electron Bot"
         git fetch origin refs/pull/${PR_NUMBER}/head
         git merge --squash FETCH_HEAD
+        git commit -n -m "Squashed commits"
     - name: Checkout & Sync & Save
       uses: ./src/electron/.github/actions/checkout
       with:
Repository: facebook/react
Pull request: [DevTools] Silence unactionable bundle warnings in shell

We access legacy APIs conditionally based on the React version which Webpack flags as accessing non-existent exports in development. react-native-web also accesses these legacy APIs statically.

The warnings are just noise when working with `react-devtools-shell`.

Changed files:
filename: packages/react-devtools-shell/webpack-server.js
patch: @@ -47,7 +47,31 @@ const E2E_APP_BUILD_DIR = process.env.REACT_VERSION
 const makeConfig = (entry, alias) => ({
   mode: __DEV__ ? 'development' : 'production',
   devtool: __DEV__ ? 'cheap-source-map' : 'source-map',
-  stats: 'normal',
+  stats: {
+    preset: 'normal',
+    warningsFilter: [
+      warning => {
+        const message = warning.message;
+        // We use ReactDOM legacy APIs conditionally based on the React version.
+        // react-native-web also accesses legacy APIs statically but we don't end
+        // up using them at runtime.
+        return (
+          message.startsWith(
+            `export 'findDOMNode' (imported as 'findDOMNode') was not found in 'react-dom'`,
+          ) ||
+          message.startsWith(
+            `export 'hydrate' (reexported as 'hydrate') was not found in 'react-dom'`,
+          ) ||
+          message.startsWith(
+            `export 'render' (imported as 'render') was not found in 'react-dom'`,
+          ) ||
+          message.startsWith(
+            `export 'unmountComponentAtNode' (imported as 'unmountComponentAtNode') was not found in 'react-dom'`,
+          )
+        );
+      },
+    ],
+  },
   entry,
   output: {
     publicPath: '/dist/',
Repository: nodejs/node
Pull request: test: skip --build-sea tests on platforms where SEA is flaky

They were missing from the skip pattern due to different naming.

<!--
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: test/sea/sea.status
patch: @@ -14,10 +14,12 @@ test-build-sea*: SKIP
 [$system==linux && $arch==ppc64]
 # https://github.com/nodejs/node/issues/59561
 test-single-executable-application*: SKIP
+test-build-sea*: SKIP
 
 [$system==linux && $arch==riscv64]
 # https://github.com/nodejs/node/issues/61110
 test-single-executable-application*: SKIP
+test-build-sea*: SKIP
 
 [$system==win32]
 # https://github.com/nodejs/node/issues/49630