repo stringclasses 15
values | fix_commit stringlengths 40 40 | buggy_commit stringlengths 40 40 | message stringlengths 3 64.3k | files listlengths 1 300 | timestamp timestamp[s]date 2013-03-13 20:45:00 2026-04-11 07:48:46 |
|---|---|---|---|---|---|
rust-lang/rust | 75c330bb7f58d0cc781c054126620b0a396e928a | 62fd159a5d565aa571b70b31d5dfefc2b6fdbcfd | Fix `ptr_arg` suggests changes when it's actually better not to bother
changelog: fix false positive: [`ptr_arg`] no longer triggers with
underscore binding to `&mut` argument | [
{
"path": "clippy_lints/src/ptr.rs",
"patch": "@@ -584,7 +584,13 @@ fn check_ptr_arg_usage<'tcx>(cx: &LateContext<'tcx>, body: &Body<'tcx>, args: &[\n Some((Node::Stmt(_), _)) => (),\n Some((Node::LetStmt(l), _)) => {\n // Only trace simple bindings. e.g `... | 2025-06-22T19:48:00 |
golang/go | e704ef2b8529119a11694b4cb15215d3dd6b0a9f | e3982660a73b04a87c08215cb5aaa16d816ea573 | go/doc: fix incorrect identifier parsing in comments
This code was trying to iterate codepoints, but didn't reslice the string,
so it was reading the first codepoint over and over, if the string length was
not a multiple of the first codepoint length, this would cause to overshoot
past the end of the string.
This was... | [
{
"path": "src/go/doc/comment/parse.go",
"patch": "@@ -1063,7 +1063,7 @@ func ident(s string) (id string, ok bool) {\n \t\t\t}\n \t\t\tbreak\n \t\t}\n-\t\tr, nr := utf8.DecodeRuneInString(s)\n+\t\tr, nr := utf8.DecodeRuneInString(s[n:])\n \t\tif unicode.IsLetter(r) {\n \t\t\tn += nr\n \t\t\tcontinue",
"... | 2022-04-15T22:02:21 |
huggingface/transformers | a4a176171c47979125025041adc4f8d201aec310 | 349e00c1a367ce263624e525038250625dcf20c7 | [fix][wip] GlmMoeDsa: try implement DSA (#43912)
* init
Signed-off-by: JaredforReal <w13431838023@gmail.com>
* format
Signed-off-by: JaredforReal <w13431838023@gmail.com>
* not indexer_rope_interleave
Signed-off-by: JaredforReal <w13431838023@gmail.com>
* set MLA rope interleave to False
Signed-off-by: Jaredfor... | [
{
"path": "src/transformers/models/glm_moe_dsa/configuration_glm_moe_dsa.py",
"patch": "@@ -35,90 +35,91 @@ class GlmMoeDsaConfig(PreTrainedConfig):\n \n Args:\n vocab_size (`int`, *optional*, defaults to 154880):\n- Vocabulary size of the Deep model. Defines the number of different t... | 2026-02-16T18:06:03 |
nodejs/node | f4f856b2381d10de48534e0de97df142f3e29994 | 3ebaf6b9bc495e5931e0ef2cd0726e8b5ea3d0b1 | test: fix flaky doctool and test
Doctool tests have been failing a lot in CI on Win2008 R2. It appears
async functions and callback-based functions are being used in
combination such that the callback-based function cannot guarantee that
it will invoke its callback. Convert the callback-based functions to
async functi... | [
{
"path": "test/doctool/test-doctool-html.js",
"patch": "@@ -22,7 +22,7 @@ const remark2rehype = require('remark-rehype');\n const raw = require('rehype-raw');\n const htmlStringify = require('rehype-stringify');\n \n-function toHTML({ input, filename, nodeVersion }, cb) {\n+async function toHTML({ input, f... | 2019-10-15T06:15:28 |
vercel/next.js | 25e6db42746b8603e362e26e8f7a12241cf0d03f | 9483ff170a92ebba3447ef643817f60d8185136d | Turbopack: add edge app routes (#53387)
### What?
* adds middleware manifest and other missing items for edge app routes
* fixes react-server condition in edge context
* fixes node.js route context
---------
Co-authored-by: Alex Kirszenberg <alex.kirszenberg@vercel.com> | [
{
"path": "packages/next-swc/crates/next-api/src/app.rs",
"patch": "@@ -1,4 +1,4 @@\n-use anyhow::{Context, Result};\n+use anyhow::{bail, Context, Result};\n use next_core::{\n all_server_paths,\n app_structure::{\n@@ -18,8 +18,10 @@ use next_core::{\n ClientReferenceGraph, ClientReferenceTy... | 2023-08-07T11:00:06 |
huggingface/transformers | 349e00c1a367ce263624e525038250625dcf20c7 | 2bd902dbc45ff87d6cd1986f8d2d40765bc34853 | Fix early image processor return not raising error (#43981)
* Fix early return not raising error
* Fix the test instead
* Revert other changes
* Apply suggestion from @Rocketknight1 | [
{
"path": "tests/models/llava/test_image_processing_llava.py",
"patch": "@@ -225,6 +225,11 @@ def pad_to_square_original(\n np.testing.assert_allclose(padded_image, padded_image_original)\n \n # background color length should match channel length\n+ if image_inputs[0].... | 2026-02-16T16:40:39 |
golang/go | e3982660a73b04a87c08215cb5aaa16d816ea573 | df08c9a82152fd6f2b2811db03b40fea8b6e5e9e | runtime: don't block preemption signal in new M's or ensureSigM
No test because we already have a test in the syscall package.
The issue reports 1 failure per 100,000 iterations, which is rare enough
that our builders won't catch the problem.
Fixes #52226
Change-Id: I17633ff6cf676b6d575356186dce42cdacad0746
Reviewed... | [
{
"path": "src/runtime/signal_unix.go",
"patch": "@@ -1247,6 +1247,7 @@ func unminitSignals() {\n // blockableSig reports whether sig may be blocked by the signal mask.\n // We never want to block the signals marked _SigUnblock;\n // these are the synchronous signals that turn into a Go panic.\n+// We never... | 2022-04-15T20:46:00 |
electron/electron | 7807310c02ff93944ee606001ae937d2776354a7 | 6d2e633c82541fb49d0e79cc08b67ff7a86b8470 | fix a typo. | [
{
"path": "docs-translations/zh-CN/development/setting-up-symbol-server.md",
"patch": "@@ -30,9 +30,9 @@ SRV*c:\\code\\symbols\\*http://msdl.microsoft.com/download/symbols;SRV*c:\\code\\symb\n \n ## Troubleshooting: Symbols will not load\n \n-在 Windbg 中输入下列命令,打印出未什么 symbols 没有加载 :\n+在 Windbg 中输入下列命令,打印出为什么 ... | 2016-07-13T16:37:55 |
huggingface/transformers | 2bd902dbc45ff87d6cd1986f8d2d40765bc34853 | 2546978b80b90b02d7099bd0c3e8718a6bfac3a9 | Update assignee for generate in bug report template (#44042)
Joao is regrettably no longer with us :saluting_face: so we should really stop getting users to ping him! This PR makes @cyrilvallez responsible for `generate` issues outside of VLMs. | [
{
"path": ".github/ISSUE_TEMPLATE/bug-report.yml",
"patch": "@@ -44,7 +44,7 @@ body:\n \n Library:\n \n- - generate: @zucchini-nlp (visual-language models) or @gante (all others)\n+ - generate: @zucchini-nlp (visual-language models) or @cyrilvallez (all others)\n - contin... | 2026-02-16T16:08:41 |
vercel/next.js | b993afbf7c6be786a1b9c37ff05c3e19602679ab | 78b04980bea2678652c58ba901966892c9c40aab | Fix action failures due to state tree encoding (#53655)
fixes #53654
### Related PRs
- #51017 | [
{
"path": "packages/next/src/client/components/router-reducer/reducers/server-action-reducer.ts",
"patch": "@@ -52,7 +52,7 @@ async function fetchServerAction(\n headers: {\n Accept: RSC_CONTENT_TYPE_HEADER,\n 'Next-Action': actionId,\n- [NEXT_ROUTER_STATE_TREE]: JSON.stringify(state.tr... | 2023-08-07T10:02:48 |
golang/go | 0c6d8bb109adfa188190b2e6de59b88853ded378 | df2421de60215cfc314fe6772ff6c2c6201f7abb | debug/pe: read string table in 10M chunks
No separate test because this makes no difference for valid PE files.
Fixes #52350
Change-Id: I2aa011a4e8b34cb08052222e94c52627ebe99fbf
Reviewed-on: https://go-review.googlesource.com/c/go/+/400378
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Dmitri Shuralyov ... | [
{
"path": "src/debug/pe/string.go",
"patch": "@@ -44,8 +44,29 @@ func readStringTable(fh *FileHeader, r io.ReadSeeker) (StringTable, error) {\n \t\treturn nil, nil\n \t}\n \tl -= 4\n-\tbuf := make([]byte, l)\n-\t_, err = io.ReadFull(r, buf)\n+\n+\t// If the string table is large, the file may be corrupt.\n+... | 2022-04-14T23:25:43 |
huggingface/transformers | 2546978b80b90b02d7099bd0c3e8718a6bfac3a9 | 08c4ad95d4b3e995e3b61e50ffc4f3ba66642663 | Add a dim check mechanism in Transpose and fix qwen3_vl_moe weight mapping (#44037)
* start
* test
* betetr
* fix
* change name
* cannot revert | [
{
"path": "src/transformers/conversion_mapping.py",
"patch": "@@ -141,17 +141,14 @@ def _build_checkpoint_conversion_mapping():\n ],\n \"qwen3_vl_moe\": [\n WeightConverter(\n- source_patterns=[\n- \"mlp.experts.*.gate_proj.weight\",\n- ... | 2026-02-16T16:01:10 |
rust-lang/rust | 90660f4d5068772bf48340a871be9b7a20a06419 | ad635e5d0696076b4412dd7db7b7e8c0867d6e0c | tiercheck: clippy fixes | [
{
"path": "src/tools/tier-check/src/main.rs",
"patch": "@@ -25,29 +25,27 @@ fn main() {\n let doc_targets: HashSet<_> = doc_targets_md\n .lines()\n .filter(|line| line.starts_with(&['`', '['][..]) && line.contains('|'))\n- .map(|line| line.split('`').skip(1).next().expect(\"expect... | 2025-07-14T08:19:58 |
nodejs/node | 3ebaf6b9bc495e5931e0ef2cd0726e8b5ea3d0b1 | ed5eaa0495fb54f3a29c39d0d4eefd5e258f5b05 | deps: update npm to 6.12.0
Update npm to 6.12.0
Now `npm ci` runs prepare scripts for git dependencies, and respects the
`--no-optional` argument. Warnings for `engine` mismatches are printed
again. Various other fixes and cleanups.
PR-URL: https://github.com/nodejs/node/pull/29885
Reviewed-By: Sam Roberts <vieuxt... | [
{
"path": "deps/npm/.travis.yml",
"patch": "@@ -1,4 +1,3 @@\n-sudo: true\n # need to declare the language as well as the matrix below\n language: node_js\n ",
"additions": 0,
"deletions": 1,
"language": "YAML"
},
{
"path": "deps/npm/AUTHORS",
"patch": "@@ -656,3 +656,9 @@ Olivier Che... | 2019-10-08T15:57:31 |
electron/electron | db39867ad967a43252e40b35f9317de29857c812 | 6d2e633c82541fb49d0e79cc08b67ff7a86b8470 | Add more detail attributes for certificate-error | [
{
"path": "atom/common/native_mate_converters/net_converter.cc",
"patch": "@@ -46,6 +46,12 @@ v8::Local<v8::Value> Converter<scoped_refptr<net::X509Certificate>>::ToV8(\n encoded_data.size()).ToLocalChecked();\n dict.Set(\"data\", buffer);\n dict.Set(\"issuerName\", va... | 2016-07-12T17:05:28 |
vercel/next.js | 78b04980bea2678652c58ba901966892c9c40aab | 498692b69812a096178eaabfea766f4d8fa82413 | update eslint config (#53637)
## Fixing a bug
- I checked the eslint config and found that override property is not supposed to be inside another override property.
- I couldn't checked the entire file as it was a big config file, but I guess it was supposed to be a part of global overrides array of eslint.
Co-author... | [
{
"path": ".eslintrc.json",
"patch": "@@ -112,16 +112,14 @@\n \"no-useless-constructor\": \"off\",\n \"@typescript-eslint/no-useless-constructor\": \"warn\",\n \"@typescript-eslint/prefer-literal-enum-member\": \"error\"\n- },\n- \"overrides\": [\n- {\n- \"f... | 2023-08-07T09:41:14 |
golang/go | 082cfabf126d63e952e1ac29d47c2a47f1c64bee | 5c707f5f3ace728f08997960ec67d9f55cdbf1a3 | crypto/x509: don't create certs with negative serials
Refuse to create certificates with negative serial numbers, as they
are explicitly disallowed by RFC 5280.
We still allow parsing certificates with negative serial numbers,
because in the past there were buggy CA implementations which would
produce them (although ... | [
{
"path": "src/crypto/x509/x509.go",
"patch": "@@ -1478,13 +1478,17 @@ func CreateCertificate(rand io.Reader, template, parent *Certificate, pub, priv\n \t\treturn nil, errors.New(\"x509: no SerialNumber given\")\n \t}\n \n-\t// RFC 5280 Section 4.1.2.2: serial number must not be longer than 20 octets\n+\t/... | 2022-04-15T00:57:22 |
huggingface/transformers | 08c4ad95d4b3e995e3b61e50ffc4f3ba66642663 | 53f8a08290bf835c9891094352f9efd7da0ccece | fix(models): Unpack BitNet packed weights to fix CI failure (#43721)
* fix: Unpack packed weights in quantizer post-loading hook (AutoBitLinear)
* nit: Fix ci/circleci: check_code_quality
* fix: Simply unpack BitNet weights during loading itself
* fix: Address comments
* review: Add tests
* nit: Change the import... | [
{
"path": "src/transformers/integrations/bitnet.py",
"patch": "@@ -368,3 +368,38 @@ def replace_with_bitnet_linear(model, modules_to_not_convert: list[str] | None =\n )\n \n return model\n+\n+\n+class BitNetDeserialize:\n+ def __init__(self, hf_quantizer):\n+ self.hf_quantizer = hf_qua... | 2026-02-16T15:38:18 |
nodejs/node | 6afed1dc853cf2b040502d858caadc17575a7fdf | f9caee986cae09cd4cb47e0a02a5b8672ab2c16d | n-api: add `napi_detach_arraybuffer`
As ArrayBuffer#detach is an ecma spec operation
([Section 24.1.1.3](https://tc39.es/ecma262/#sec-detacharraybuffer)),
it might be good to have it in N-API.
Fixes https://github.com/nodejs/node/issues/29674
PR-URL: https://github.com/nodejs/node/pull/29768
Reviewed-By: Anna Hennin... | [
{
"path": "doc/api/n-api.md",
"patch": "@@ -371,6 +371,8 @@ typedef enum {\n napi_closing,\n napi_bigint_expected,\n napi_date_expected,\n+ napi_arraybuffer_expected,\n+ napi_detachable_arraybuffer_expected,\n } napi_status;\n ```\n \n@@ -3148,6 +3150,30 @@ Returns `napi_ok` if the API succeeded.\n ... | 2019-09-30T01:42:58 |
electron/electron | 4905d30dd620090f007c38f80aca3f7d9cc60045 | 5ab4fd261c2cd770a3bbc7bab54c5d87774a882c | fix heading levels on BrowserWindowProxy | [
{
"path": "docs/api/window-open.md",
"patch": "@@ -41,33 +41,37 @@ origin preference.\n The `BrowserWindowProxy` object is returned from `window.open` and provides\n limited functionality with the child window.\n \n-### `BrowserWindowProxy.blur()`\n+### Instance Methods\n+\n+The `BrowserWindowProxy` object ... | 2016-07-13T04:57:07 |
vercel/next.js | 0363cef4c0b0df4353c60a2594e1cbf421450b65 | 1e02a92a94bfeaafe7d54b671b5e2b17dc819620 | Fix: missing equal sign (#53650)
Missing an equal sign in Image docs
https://github.com/vercel/next.js/blob/1e02a92a94bfeaafe7d54b671b5e2b17dc819620/docs/02-app/02-api-reference/01-components/image.mdx#L690 | [
{
"path": "docs/02-app/02-api-reference/01-components/image.mdx",
"patch": "@@ -687,7 +687,7 @@ export default function Page({ photoUrl }) {\n height: 'auto',\n }}\n width={500}\n- height{300}\n+ height={300}\n />\n )\n }",
"additions": 1,
"deletions": 1,
"lan... | 2023-08-07T01:52:37 |
golang/go | 2c73f5f32fceb31b5da7f9a820c0c637f57a9ab5 | 35a92f92bd0ce15c658dd6794238ca90b71e4422 | net/http: remove cloneURL call in WithContext
Fixes #52239
Change-Id: I08b75e613e3c976855e39d01a6757d94e4207bf8
Reviewed-on: https://go-review.googlesource.com/c/go/+/399155
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
Run-Tr... | [
{
"path": "src/net/http/request.go",
"patch": "@@ -359,7 +359,6 @@ func (r *Request) WithContext(ctx context.Context) *Request {\n \tr2 := new(Request)\n \t*r2 = *r\n \tr2.ctx = ctx\n-\tr2.URL = cloneURL(r.URL) // legacy behavior; TODO: try to remove. Issue 23544\n \treturn r2\n }\n ",
"additions": 0,
... | 2022-04-08T19:21:33 |
huggingface/transformers | 53f8a08290bf835c9891094352f9efd7da0ccece | 9a9231632eeb8be48f31db992b6f212ce34ab30b | SINQ quantization strategy integration (adapted for Transformers V5) (#43112)
* sinq integration files
* sinq integration update
* sinq integration no lazy import
* Tests for sinq integration
* minor changes to sinq integration
* sinq integration documentation added
* small correction to sinq documentation
* sm... | [
{
"path": "docs/source/en/_toctree.yml",
"patch": "@@ -235,6 +235,8 @@\n title: SpQR\n - local: quantization/vptq\n title: VPTQ\n+ - local: quantization/sinq\n+ title: SINQ\n - local: quantization/contribute\n title: Contribute\n title: Quantization",
"additions": 2,
"deletions... | 2026-02-16T15:08:42 |
electron/electron | b20606c7187551ad184dc4cc15bf7952cab26db9 | 2486512c716a74f1e993ff7bc49d2dd492b92057 | fix heading levels in Menu doc | [
{
"path": "docs/api/menu.md",
"patch": "@@ -183,11 +183,11 @@ Menu.setApplicationMenu(menu);\n \n Creates a new menu.\n \n-## Methods\n+### Static Methods\n \n-The `menu` class has the following methods:\n+The `menu` class has the following static methods:\n \n-### `Menu.setApplicationMenu(menu)`\n+#### `Me... | 2016-07-13T04:47:28 |
nodejs/node | 7991b57cfdba96ddcd6553c8233cd6392e16a42a | c62503994a5db6cfca0597d36b05b39eecc6da27 | test: fix fs benchmark test
Add missing option "mode". Alphabetize options for easier maintenance.
PR-URL: https://github.com/nodejs/node/pull/29967
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com> | [
{
"path": "test/benchmark/test-benchmark-fs.js",
"patch": "@@ -7,16 +7,17 @@ const tmpdir = require('../common/tmpdir');\n tmpdir.refresh();\n \n runBenchmark('fs', [\n- 'n=1',\n- 'size=1',\n+ 'concurrent=1',\n+ 'dir=.github',\n 'dur=0.1',\n+ 'encodingType=buf',\n+ 'filesize=1024',\n 'len=1024',\n... | 2019-10-14T14:05:12 |
golang/go | 35a92f92bd0ce15c658dd6794238ca90b71e4422 | 5a4f0b6f1e6d3c022ee30884590526ab7d3f580b | encoding/binary: add AppendVarint AppendUvarint
This adds a straight-forward implementation of the functionality.
A more performant version could be added that unrolls the loop
as is done in google.golang.org/protobuf/encoding/protowire,
but usages that demand high performance can use that package instead.
Fixes #516... | [
{
"path": "api/next/51644.txt",
"patch": "@@ -0,0 +1,2 @@\n+pkg encoding/binary, func AppendUvarint([]uint8, uint64) []uint8 #51644\n+pkg encoding/binary, func AppendVarint([]uint8, int64) []uint8 #51644",
"additions": 2,
"deletions": 0,
"language": "Plain Text"
},
{
"path": "src/encodin... | 2022-04-13T20:21:30 |
vercel/next.js | bb380e77152f50678282234904e4b4baf44be757 | 3e637cab8cbcaf2e408423b33b4082b26ebd0849 | Fix other case for buildId mismatch (#53643)
Continues fix from https://github.com/vercel/next.js/pull/53596 and
applies it for the `x-matched-path` specific code path. | [
{
"path": "packages/next/src/server/base-server.ts",
"patch": "@@ -926,6 +926,16 @@ export default abstract class Server<ServerOptions extends Options = Options> {\n }\n parsedUrl.pathname = matchedPath\n url.pathname = parsedUrl.pathname\n+\n+ const normalizeResult = ... | 2023-08-06T22:47:20 |
huggingface/transformers | 360d72623e71adc475377f71a976612eed513395 | 8bb26307a61f97084b193e111da4190650507663 | [Deespeed] fix WeightConverter.convert() use (#43926)
* fix WeightConverter.convert() use
* fix tests
* directly checks no keys were missed
* Apply repo consistency fixes
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> | [
{
"path": "src/transformers/integrations/deepspeed.py",
"patch": "@@ -347,17 +347,12 @@ def _apply_weight_conversions_to_state_dict(model, state_dict, weight_mapping):\n # Sort keys to ensure consistent ordering (important for MoE conversions)\n # Iterate over sorted keys and pop from state_dict to ... | 2026-02-16T14:06:32 |
electron/electron | 749ed3473b9a4e9d350741b8abc6bd9166811f4b | e653c67153f6ba4b51321deb0ad970d263c585ac | spec: Fix js lint warning | [
{
"path": "spec/api-session-spec.js",
"patch": "@@ -4,7 +4,7 @@ const path = require('path')\n const fs = require('fs')\n \n const {ipcRenderer, remote} = require('electron')\n-const {ipcMain, session, webContents, BrowserWindow} = remote\n+const {ipcMain, session, BrowserWindow} = remote\n \n describe('ses... | 2016-07-13T04:34:19 |
nodejs/node | c62503994a5db6cfca0597d36b05b39eecc6da27 | 5f80df882057522c38c30b99f4bf25d82c68f662 | doc: fix --enable-source-maps flag in v12.12.0 changelog
Corrects "--source-map-support" to "--enable-source-maps".
Fixes: https://github.com/nodejs/node/issues/29959
PR-URL: https://github.com/nodejs/node/pull/29960
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Revi... | [
{
"path": "doc/changelogs/CHANGELOG_V12.md",
"patch": "@@ -58,7 +58,7 @@\n * **fs**:\n * Introduce `opendir()` and `fs.Dir` to iterate through directories [#29349](https://github.com/nodejs/node/pull/29349)\n * **process**:\n- * Add source-map support to stack traces by using `--source-map-support`[#2956... | 2019-10-14T02:03:38 |
golang/go | 5a4f0b6f1e6d3c022ee30884590526ab7d3f580b | 78bea702cd38ac5004a97f110e7f659336a04d57 | runtime: don't discard value from panic while panicking
In issue #17671, there are a endless loop if printing
the panic value panics, CL 30358 has fixed that.
As issue #52257 pointed out, above change should not
discard the value from panic while panicking.
With this CL, when we recover from a panic in error.Error()... | [
{
"path": "src/runtime/crash_test.go",
"patch": "@@ -800,3 +800,47 @@ func TestDoublePanic(t *testing.T) {\n \t\t}\n \t}\n }\n+\n+// Test that panic while panicking discards error message\n+// See issue 52257\n+func TestPanicWhilePanicking(t *testing.T) {\n+\ttests := []struct {\n+\t\tWant string\n+\t\tFunc... | 2022-04-12T09:46:36 |
huggingface/transformers | 3955dc76bf6ab1513835e016a7ec4552492130b8 | 33d9b320967d3a47781fbfed418764edd319f2fa | Improve use of torch.is_autocast_enabled (#43930)
* Improve use of torch.is_autocast_enabled
Signed-off-by: Yuanyuan Chen <cyyever@outlook.com>
* Fix documentation examples
Signed-off-by: Yuanyuan Chen <cyyever@outlook.com>
---------
Signed-off-by: Yuanyuan Chen <cyyever@outlook.com> | [
{
"path": "docs/source/en/debugging.md",
"patch": "@@ -288,8 +288,9 @@ One solution is to go back a few steps before the values started growing too lar\n import torch\n \n def forward(self, hidden_states):\n- if torch.is_autocast_enabled():\n- with torch.cuda.amp.autocast(enabled=False):\n+ dev... | 2026-02-16T13:54:59 |
vercel/next.js | 3e637cab8cbcaf2e408423b33b4082b26ebd0849 | bc8deab6effdc8d21e2c3284c6143ce25833171f | fix typo in image.mdx (#53638)
Fixed a typo in the api reference about the [\<Image\> component](https://nextjs.org/docs/pages/api-reference/components/image#fill).
Replaced "stetch" with "stretch" in the fourth paragraph | [
{
"path": "docs/02-app/02-api-reference/01-components/image.mdx",
"patch": "@@ -170,7 +170,7 @@ The parent element _must_ assign `position: \"relative\"`, `position: \"fixed\"`, or\n \n By default, the img element will automatically be assigned the `position: \"absolute\"` style.\n \n-If no styles are appli... | 2023-08-06T20:56:02 |
rust-lang/rust | 500b743f7ef8e38a0ad6154493a84c53e06ea888 | 855e0fe46e68d94e9f6147531b75ac2d488c548e | tests: Test line debuginfo for linebreaked function parameters | [
{
"path": "tests/codegen/fn-parameters-on-different-lines-debuginfo.rs",
"patch": "@@ -0,0 +1,22 @@\n+//! Make sure that line debuginfo of function parameters are correct even if\n+//! they are not on the same line. Regression test for\n+// <https://github.com/rust-lang/rust/issues/45010>.\n+\n+//@ compile-... | 2025-07-13T10:11:37 |
huggingface/transformers | b1141006cd2284aa19b2661d2575b5b26acd17e8 | b768d8b157e227c7c84e57014f5183d461556579 | docs: fix typos across documentation files (#43993) | [
{
"path": "docs/source/en/glossary.md",
"patch": "@@ -89,7 +89,7 @@ See [causal language modeling](#causal-language-modeling) and [decoder models](#\n \n ### backbone\n \n-The backbone is the network (embeddings and layers) that outputs the raw hidden states or features. It is usually connected to a [head](... | 2026-02-16T13:41:17 |
golang/go | 78bea702cd38ac5004a97f110e7f659336a04d57 | cc43e191ce562cd879a9baaf7a2e4fb1a7216d31 | cmd/compile: turn jump tables off with -N
The noopt builder is broken, because with -N we get two OpSB opcodes
(one for the function as a whole, one introduced by the jumptable
rewrite rule), and they fight each other for a register.
Without -N, the two OpSB get CSEd, so optimized builds are ok.
Maybe we fix regallo... | [
{
"path": "src/cmd/compile/internal/walk/switch.go",
"patch": "@@ -289,7 +289,7 @@ func (s *exprSwitch) tryJumpTable(cc []exprClause, out *ir.Nodes) bool {\n \tconst minCases = 8 // have at least minCases cases in the switch\n \tconst minDensity = 4 // use at least 1 out of every minDensity entries\n \n-\... | 2022-04-14T22:04:34 |
vercel/next.js | f11406015c9e282a9fcd4aad3839c781b585cd63 | 7bf3d77b5e3dce3f8d52e76ac84f91bfd44ef008 | Fix tracing in require-hook (#53642)
This ensures the resolve calls for `styled-jsx` are done in the correct context so that tracing can include the correct symlinks/package.json files.
x-ref: [slack thread](https://vercel.slack.com/archives/C03S8ED1DKM/p1691217652833079) | [
{
"path": "packages/next/src/bin/next.ts",
"patch": "@@ -126,7 +126,7 @@ if (!process.env.NEXT_MANUAL_SIG_HANDLE && command !== 'dev') {\n commands[command]()\n .then((exec) => exec(forwardedArgs))\n .then(() => {\n- if (command === 'build') {\n+ if (command === 'build' || command === 'experimenta... | 2023-08-06T20:23:20 |
golang/go | 01b9ae22ed3c0f9c9ea29adbcd23bd97de6d18dd | 1ba96d8c0909eca59e28c048150c3834982f79fb | cmd/compile: constant-fold switches early in compilation
So that the inliner knows all the other cases are dead and doesn't
accumulate any cost for them.
The canonical case for this is switching on runtime.GOOS, which occurs
several places in the stdlib.
Fixes #50253
Change-Id: I44823aaebb6c1b03c9b0c12d10086db81954... | [
{
"path": "src/cmd/compile/internal/deadcode/deadcode.go",
"patch": "@@ -6,6 +6,7 @@ package deadcode\n \n import (\n \t\"go/constant\"\n+\t\"go/token\"\n \n \t\"cmd/compile/internal/base\"\n \t\"cmd/compile/internal/ir\"\n@@ -86,6 +87,85 @@ func stmts(nn *ir.Nodes) {\n \t\t\t\t}\n \t\t\t}\n \t\t}\n+\t\tif ... | 2022-02-07T07:25:04 |
vercel/next.js | 5f9d2c55ca3ca3bd6a01cf60ced69d3dd2c64bf4 | 6beec2f6b1794a4c1f50d2e67f9f0b1fc4b33de3 | docs: fix the link to another document (#53599)
The link used to be "https://github.com/acdlite/rfcs/blob/first-class-promises/text/0000-first-class-support-for-promises" but actually "https://github.com/acdlite/rfcs/blob/first-class-promises/text/0000-first-class-support-for-promises.md" is correct (needs ".md" at th... | [
{
"path": "docs/02-app/01-building-your-application/02-data-fetching/01-fetching-caching-and-revalidating.mdx",
"patch": "@@ -16,7 +16,7 @@ There are three main ways you can fetch data:\n \n Next.js extends the native [`fetch` Web API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) to allow you... | 2023-08-05T17:06:21 |
huggingface/transformers | b768d8b157e227c7c84e57014f5183d461556579 | 737f1777d90aaf7ec94e8c72ac135b876f25a576 | Add Voxtral Realtime (#43769)
* draft structure
* intermediary ckpt
* matching generate
* conv cache draft
* cache update
* update
* use appropirate text model
* add processor
* streaming -> realtime
* nit
* handle max tokens
* num_delay_tokens
* nit
* add tests
* nit
* test update
* handle generator i... | [
{
"path": "docs/source/en/_toctree.yml",
"patch": "@@ -1281,6 +1281,8 @@\n title: VisualBERT\n - local: model_doc/voxtral\n title: Voxtral\n+ - local: model_doc/voxtral_realtime\n+ title: VoxtralRealtime\n - local: model_doc/xclip\n title: X-CLIP\n title... | 2026-02-16T13:32:05 |
electron/electron | 6db75a345889b980718cf59a76fc403e35d9fe73 | fd73279d169a28875028673ce3f07fb3454807a9 | Fix building on Linux | [
{
"path": "atom/browser/api/atom_api_app.cc",
"patch": "@@ -497,7 +497,7 @@ bool App::IsAccessibilitySupportEnabled() {\n void App::ImportCertificate(\n const base::DictionaryValue& options,\n const net::CompletionCallback& callback) {\n- auto browser_context = brightray::BrowserContext::From(\"\",... | 2016-07-12T13:45:15 |
huggingface/transformers | 8ead2903d5ea3799cc3bb43670fddccac1d80f23 | d4bea33f493f11ee775df9e820fb88916afc9a88 | stable grouped_mm API (#43977)
* use stable api
* keep torch 2.9 support
* fix
* don't pass bias
* last
* keep private
* revert
* fix dtype mismatch from mixed precision | [
{
"path": "docs/source/en/experts_interface.md",
"patch": "@@ -19,11 +19,11 @@ All Mixture-of-Experts (MoE) implementations perform the same high-level computa\n \n The [`ExpertsInterface`] provides optimized experts backends. It decouples the experts implementation from the model code to simplify experimen... | 2026-02-16T11:09:30 |
golang/go | 1ba96d8c0909eca59e28c048150c3834982f79fb | dd97871282c28f1572f7cfe67395f848f69abb4b | cmd/compile: implement jump tables
Performance is kind of hard to exactly quantify.
One big difference between jump tables and the old binary search
scheme is that there's only 1 branch statement instead of O(n) of
them. That can be both a blessing and a curse, and can make evaluating
jump tables very hard to do.
Th... | [
{
"path": "src/cmd/compile/internal/amd64/ssa.go",
"patch": "@@ -1400,6 +1400,16 @@ func ssaGenBlock(s *ssagen.State, b, next *ssa.Block) {\n \t\t\t}\n \t\t}\n \n+\tcase ssa.BlockAMD64JUMPTABLE:\n+\t\t// JMP *(TABLE)(INDEX*8)\n+\t\tp := s.Prog(obj.AJMP)\n+\t\tp.To.Type = obj.TYPE_MEM\n+\t\tp.To.Reg = b... | 2021-10-04T19:17:46 |
vercel/next.js | 081151fed120012da8fdb98934702c8163905cf9 | f47081f15b46b2e6021dfda445c526d50b0ea41b | (Docs) Remove `appDir` from experimental flag in `mdx` configuration docs. (#53610)
<!-- Thanks for opening a PR! Your contribution is much appreciated.
To make sure your PR is handled as smoothly as possible we request that
you follow the checklist sections below.
Choose the right checklist for the change(s) that ... | [
{
"path": "docs/02-app/01-building-your-application/07-configuring/05-mdx.mdx",
"patch": "@@ -248,11 +248,7 @@ import remarkGfm from 'remark-gfm'\n import createMDX from '@next/mdx'\n \n /** @type {import('next').NextConfig} */\n-const nextConfig = {\n- experimental: {\n- appDir: true,\n- },\n-}\n+cons... | 2023-08-05T14:14:00 |
huggingface/transformers | d4bea33f493f11ee775df9e820fb88916afc9a88 | 0dda1ffbf39c8dabeb4511af86745fb74b10e5aa | Remove `other_workflow_run_ids` for `issue_comment` in `utils/notification_service.py` (#44036)
fix
Co-authored-by: ydshieh <ydshieh@users.noreply.github.com> | [
{
"path": "utils/notification_service.py",
"patch": "@@ -1511,18 +1511,6 @@ def pop_default(l: list[Any], i: int, default: Any) -> Any:\n token=os.environ[\"ACCESS_REPO_INFO_TOKEN\"], workflow_id=other_workflow_id, commit_sha=ci_sha\n )\n other_workflow_run_ids.append... | 2026-02-16T10:21:54 |
nodejs/node | f8f6a21580544146d5a8527333e1130b336dc094 | ba45367830f6a5c73c20e64ee71265d3aa4af719 | stream: throw unhandled error for readable with autoDestroy
If autoDestroy then we should still throw on unhandled
errors.
PR-URL: https://github.com/nodejs/node/pull/29806
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@... | [
{
"path": "lib/_stream_readable.js",
"patch": "@@ -777,8 +777,13 @@ Readable.prototype.pipe = function(dest, pipeOpts) {\n debug('onerror', er);\n unpipe();\n dest.removeListener('error', onerror);\n- if (EE.listenerCount(dest, 'error') === 0)\n- errorOrDestroy(dest, er);\n+ if (EE.li... | 2019-10-01T21:59:59 |
golang/go | dd97871282c28f1572f7cfe67395f848f69abb4b | 62b8ec744b8e10b80f9271fed93116387c9128ef | debug/dwarf: better stmt list attr checking in LineReader
Check for insane statement list attribute values when
constructing LineReader's for a compilation unit.
Fixes #52354.
Change-Id: Icb5298db31f6c5fe34c44e0ed4fe277a7cd676b9
Reviewed-on: https://go-review.googlesource.com/c/go/+/400255
Run-TryBot: Than McIntosh ... | [
{
"path": "src/debug/dwarf/line.go",
"patch": "@@ -152,7 +152,7 @@ func (d *Data) LineReader(cu *Entry) (*LineReader, error) {\n \t\t// cu has no line table.\n \t\treturn nil, nil\n \t}\n-\tif off > int64(len(d.line)) {\n+\tif off < 0 || off > int64(len(d.line)) {\n \t\treturn nil, errors.New(\"AttrStmtList... | 2022-04-14T15:14:36 |
rust-lang/rust | d77c38727298ee442db4d927c13bc8b2de1db448 | e9182f195b8505c87c4bd055b9f6e114ccda0981 | Fixes for Arm64EC | [
{
"path": "tests/ui/cfg/conditional-compile-arch.rs",
"patch": "@@ -38,3 +38,6 @@ pub fn main() { }\n \n #[cfg(target_arch = \"loongarch64\")]\n pub fn main() { }\n+\n+#[cfg(target_arch = \"arm64ec\")]\n+pub fn main() { }",
"additions": 3,
"deletions": 0,
"language": "Rust"
},
{
"path": ... | 2025-07-13T22:01:48 |
vercel/next.js | b7aa7d4aa48c786f0d9f491b62b17a9e162b4dfe | e06880ea4c061fc5c298b262d01f347edd8dce74 | docs: fix typo on caching page (#53597)
- reduce: `MISS`
- reduces: `HIT` | [
{
"path": "docs/02-app/01-building-your-application/04-caching/index.mdx",
"patch": "@@ -4,7 +4,7 @@ nav_title: Caching\n description: An overview of caching mechanisms in Next.js.\n ---\n \n-Next.js improves your application's performance and reduce costs by caching rendering work and data requests. This p... | 2023-08-04T23:55:20 |
huggingface/transformers | 44412f6e74114b8157fd1c168cfc6f462a284844 | 8008e6c83e1467dbe0ae3c81d19b29c17f4ff456 | Fix TypeError in dot_natural_key when state_dict keys have mixed types at same position (#43966)
* Fix TypeError in dot_natural_key when state_dict keys have mixed types
When a model has sub-models with different naming conventions (e.g.
'model.layers.26.self_attn...' vs 'desc_model.roberta.encoder...'),
dot_natural_... | [
{
"path": "src/transformers/core_model_loading.py",
"patch": "@@ -812,12 +812,17 @@ def _job():\n \n \n def dot_natural_key(s: str):\n- parts = s.split(\".\")\n- for i, p in enumerate(parts):\n- # whole-segment digits -> int; otherwise leave as str\n+ \"\"\"Sort key for state-dict names: spl... | 2026-02-13T17:39:51 |
nodejs/node | 6f814013f45698a9178203331b62e3fe07fdb7d5 | 545f7282d126ee43cf9cfeb66c83d0cbd2c60614 | build: fix version checks in gyp files
Make `distutils.version.StrictVersion` available as a helper to
gyp expressions so they can do proper version checks and update
the gyp files accordingly.
Caveat emptor: `StrictVersion` does *not* like empty strings so
this commit adds truthiness guards. The helper could deal wi... | [
{
"path": "deps/openssl/openssl.gyp",
"patch": "@@ -21,7 +21,8 @@\n }, 'target_arch==\"arm64\" and OS==\"win\"', {\n # VC-WIN64-ARM inherits from VC-noCE-common that has no asms.\n 'includes': ['./openssl_no_asm.gypi'],\n- }, 'gas_version >= \"2.26\" or nasm_version >= \"2... | 2019-10-11T11:20:16 |
rust-lang/rust | 6760cd2859db68d47d62089d9805d860fb37d518 | 56835d7ac14da9f966e1ff39fd9ffd2e29b764d1 | core: make `str::split_at_unchecked()` inline
This PR adds `#[inline]` to the method `str::split_at_unchecked()`.
This is done for two reasons:
1. The method is tiny, e.g. on AMD-64 (<https://godbolt.org/z/ba68fdfxn>):
```asm
movq %rdi, %rax
subq %rcx, %rdx
movq %rsi, (%rdi)
addq %rcx, %rs... | [
{
"path": "library/core/src/str/mod.rs",
"patch": "@@ -952,6 +952,7 @@ impl str {\n ///\n /// The caller must ensure that `mid` is a valid byte offset from the start\n /// of the string and falls on the boundary of a UTF-8 code point.\n+ #[inline]\n const unsafe fn split_at_unchecked(&sel... | 2025-07-13T20:33:49 |
golang/go | cb702a2a5670d4fa599f573b37b1a01abc9f995a | d2552037426fe5a190c74172562d897d921fe311 | cmd/compile: fold constant shifts into (SHL|SHR|SAR)Xload ops
We should prefer a constant shift op to a X shift op.
That way we don't have to materialize the constant to shift by.
Should fix GOAMD64=v3 builder
Change-Id: I56b45d2940c959382b970e3f962ed4a09cc2a239
Reviewed-on: https://go-review.googlesource.com/c/go/+... | [
{
"path": "src/cmd/compile/internal/ssa/gen/AMD64.rules",
"patch": "@@ -2301,3 +2301,7 @@\n (SARX(Q|L) l:(MOV(Q|L)load [off] {sym} ptr mem) x) && canMergeLoad(v, l) && clobber(l) => (SARX(Q|L)load [off] {sym} ptr x mem)\n (SHLX(Q|L) l:(MOV(Q|L)load [off] {sym} ptr mem) x) && canMergeLoad(v, l) && clobber(l)... | 2022-04-14T00:33:24 |
huggingface/transformers | 0dfdd6247414d40a44ea28da1bf331a40f11b178 | f73a4db3a0bcf6523e9bfdaaf4afe81dffba4da8 | Fix sync gradient (#43919)
* fix sync gradient
* Fix
* style
* fix | [
{
"path": "src/transformers/trainer.py",
"patch": "@@ -218,6 +218,7 @@\n DataLoaderConfiguration,\n DistributedDataParallelKwargs,\n DistributedType,\n+ GradientAccumulationPlugin,\n load_fsdp_model,\n load_fsdp_optimizer,\n release_memory,\n@@ -1764,14... | 2026-02-13T14:38:07 |
electron/electron | 9ea4039887bbfe11da543da3b71e0e7ce895a4b2 | 039aebb74a9f5625c0f91600aa5fe2ef60b9619a | :memo: Fix grammatical typo
[ci skip] | [
{
"path": "docs/api/browser-window.md",
"patch": "@@ -197,7 +197,7 @@ supported values are:\n (`kCGDesktopWindowLevel - 1`). Note that desktop window will not receive\n focus, keyboard or mouse events, but you can use `globalShortcut` to receive\n input sparingly.\n-* On Windows, possible types ... | 2016-07-12T18:02:14 |
nodejs/node | ea3d5ff785e5f7b327942f9b47b3bd958e77c51f | 8728f8660a7f4b0df214379732beb830805ba3ac | tools: fix test runner in presence of NODE_REPL_EXTERNAL_MODULE
PR-URL: https://github.com/nodejs/node/pull/29956
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com> | [
{
"path": "tools/test.py",
"patch": "@@ -705,6 +705,10 @@ def Execute(args, context, timeout=None, env=None, disable_core_files=False, std\n if \"NODE_PATH\" in env_copy:\n del env_copy[\"NODE_PATH\"]\n \n+ # Remove NODE_REPL_EXTERNAL_MODULE\n+ if \"NODE_REPL_EXTERNAL_MODULE\" in env_copy:\n+ del... | 2019-10-13T19:43:57 |
rust-lang/rust | b0ab2bf68efae0b1ccaa2a1ed643083d94756bae | b01bbe06cc2fea18957895f2722d687b00efcbd7 | Fix LTO test | [
{
"path": ".github/workflows/release.yml",
"patch": "@@ -78,7 +78,7 @@ jobs:\n - name: Run tests\n run: |\n # FIXME(antoyo): we cannot enable LTO for stdarch tests currently because of some failing LTO tests using proc-macros.\n- echo -n 'lto = \"fat\"' >> build_system/build_sysroot... | 2025-07-13T20:14:50 |
huggingface/transformers | f73a4db3a0bcf6523e9bfdaaf4afe81dffba4da8 | 3e4b8d63ef4b3e04add27827abbf30d6a8640f30 | Inclusion of process_group in the gather_full_tensor function in tensor_parallel.py (#43932)
* Bug fix on gather_full_tensor for upstreaming.
* Made correct usage of process_group in all_gather now. | [
{
"path": "src/transformers/integrations/tensor_parallel.py",
"patch": "@@ -1156,14 +1156,16 @@ def gather_full_tensor(local_tensor: torch.Tensor, shard_dim: int, device_mesh)\n The full reconstructed tensor (same on all ranks)\n \"\"\"\n world_size = device_mesh.size()\n+ # In case of TP... | 2026-02-13T14:20:47 |
golang/go | 9298f604f474ef6dcd5fdfb73877d63b1972c29f | d65a41329ee87f46f35719129d1d4b03d4a07cc8 | crypto/x509: add CertPool.Clone
Export the previously private method copy as Clone.
Fixes #35044
Change-Id: I5403d6a3b9f344c980c1c89a6823e1a49dcda26b
Reviewed-on: https://go-review.googlesource.com/c/go/+/400175
Run-TryBot: Roland Shoemaker <roland@golang.org>
Auto-Submit: Roland Shoemaker <roland@golang.org>
Review... | [
{
"path": "api/next/35044.txt",
"patch": "@@ -0,0 +1 @@\n+pkg crypto/x509, method (*CertPool) Clone() *CertPool #35044\n\\ No newline at end of file",
"additions": 1,
"deletions": 0,
"language": "Plain Text"
},
{
"path": "src/crypto/x509/cert_pool.go",
"patch": "@@ -77,7 +77,8 @@ fun... | 2022-04-13T18:49:15 |
electron/electron | 039aebb74a9f5625c0f91600aa5fe2ef60b9619a | 19765e70cf914140a1f8ec8ea132719d041d8abf | :memo: Fix isolated link
[ci skip] | [
{
"path": "docs/tutorial/quick-start.md",
"patch": "@@ -47,7 +47,7 @@ In Electron, we have several ways to communicate between the main process and\n renderer processes. Like [`ipcRenderer`](../api/ipc-renderer.md) and\n [`ipcMain`](../api/ipc-main.md) modules for sending messages, and the\n [remote](../api... | 2016-07-12T17:59:29 |
vercel/next.js | e06880ea4c061fc5c298b262d01f347edd8dce74 | e4aecabc7d8e781712f5f0495f59bb4f9b893603 | Implement new forking technique for vendored packages. (#51083)
## Vendoring
Updates all module resolvers (node, webpack, nft for entrypoints, and nft for next-server) to consider whether vendored packages are suitable for a given resolve request and resolves them in an import semantics preserving way.
### Problem
... | [
{
"path": ".eslintignore",
"patch": "@@ -16,6 +16,7 @@ examples/with-tigris/db/models/todoItems.ts\n packages/next/src/bundles/webpack/packages/*.runtime.js\n packages/next/src/bundles/webpack/packages/lazy-compilation-*.js\n packages/next/src/compiled/**/*\n+packages/next/vendored/**/*\n packages/react-ref... | 2023-08-04T23:47:10 |
rust-lang/rust | b01bbe06cc2fea18957895f2722d687b00efcbd7 | 623609e7132b80425e8661c9753bce78cab49bce | Fix no-f16-f128 feature name | [
{
"path": ".github/workflows/m68k.yml",
"patch": "@@ -82,14 +82,14 @@ jobs:\n - name: Build sample project with target defined as JSON spec\n run: |\n ./y.sh prepare --only-libcore --cross\n- ./y.sh build --sysroot --features compiler_builtins/no-f16-f128 --target-triple m68k-unknow... | 2025-07-13T20:36:41 |
huggingface/transformers | 403990cadb8aceac02aaa2b6ec1016105249a738 | 5405f80e0e7bca9206445e36f510821b294bf051 | fix(models): Preserve custom token IDs through DiaConfig save and load (#43928)
* fix: Preserve custom token IDs in DiaConfig save and load
* refactor: Address review comments | [
{
"path": "src/transformers/models/dia/configuration_dia.py",
"patch": "@@ -145,6 +145,12 @@ class DiaDecoderConfig(PreTrainedConfig):\n Whether or not the model should return the last key/values attentions (not used by all models).\n is_encoder_decoder (`bool`, *optional*, defaults to `... | 2026-02-13T09:28:26 |
nodejs/node | 8728f8660a7f4b0df214379732beb830805ba3ac | 6c205aba00d8a3ebad95eec60b0fcee46484cf4a | tools: fix GYP MSVS solution generator for Python 3
PR-URL: https://github.com/nodejs/node/pull/29897
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com> | [
{
"path": "tools/gyp/pylib/gyp/MSVSNew.py",
"patch": "@@ -7,6 +7,7 @@\n import hashlib\n import os\n import random\n+from operator import attrgetter\n \n import gyp.common\n \n@@ -86,7 +87,7 @@ def __init__(self, path, name = None, entries = None,\n self.guid = guid\n \n # Copy passed lists (or set ... | 2019-10-09T08:59:13 |
golang/go | d65a41329ee87f46f35719129d1d4b03d4a07cc8 | a78db879b31b072c37c6d46cc404d8e131d54349 | crypto/x509: support nil pools in CertPool.Equal
Otherwise we panic if either pool is nil.
Change-Id: I8598e3c0f3a5294135f1c330e319128d552ebb67
Reviewed-on: https://go-review.googlesource.com/c/go/+/399161
Reviewed-by: Damien Neil <dneil@google.com>
Run-TryBot: Roland Shoemaker <roland@golang.org>
Auto-Submit: Roland... | [
{
"path": "src/crypto/x509/cert_pool.go",
"patch": "@@ -252,6 +252,9 @@ func (s *CertPool) Subjects() [][]byte {\n \n // Equal reports whether s and other are equal.\n func (s *CertPool) Equal(other *CertPool) bool {\n+\tif s == nil || other == nil {\n+\t\treturn s == other\n+\t}\n \tif s.systemPool != othe... | 2022-04-13T15:58:01 |
electron/electron | 19765e70cf914140a1f8ec8ea132719d041d8abf | d842604d166df62162279e586f0efd7e921ec104 | :memo: Fix typo
[ci skip] | [
{
"path": "docs/api/browser-window.md",
"patch": "@@ -197,7 +197,7 @@ supported values are:\n (`kCGDesktopWindowLevel - 1`). Note that desktop window will not receive\n focus, keyboard or mouse events, but you can use `globalShortcut` to receive\n input sparingly.\n-* On Windows, possible types ... | 2016-07-12T17:57:11 |
huggingface/transformers | 5405f80e0e7bca9206445e36f510821b294bf051 | d0c054bae1c0a83173dba18cf2b17996a0f8dae1 | [Doc tests] Fix bug (#43729)
* Fix bug
* Remove BUG.md | [
{
"path": "docs/source/en/model_doc/eomt_dinov3.md",
"patch": "@@ -52,30 +52,26 @@ Below is a minimal example showing how to run panoptic segmentation with a DINOv\n image processor can be reused for semantic or instance segmentation simply by swapping the checkpoint.\n \n ```python\n-import matplotlib.pypl... | 2026-02-13T09:17:43 |
vercel/next.js | e4aecabc7d8e781712f5f0495f59bb4f9b893603 | acf5e8455692150cba94a3a12ad89473d9fa94b3 | Update ISR revalidateTag handling (#53595)
This ensures `revalidateTag()` doesn't cause an async/background revalidation unexpectedly and instead does a blocking revalidate so fresh data is shown right away when a path is using ISR.
Test deployment with patch can be seen here: https://next-revalidation-test-47rqf8q5... | [
{
"path": "packages/next/src/server/lib/incremental-cache/file-system-cache.ts",
"patch": "@@ -255,8 +255,12 @@ export default class FileSystemCache implements CacheHandler {\n (data?.lastModified || Date.now())\n )\n })\n+\n+ // we trigger a blocking validation if an ISR page... | 2023-08-04T23:31:18 |
rust-lang/rust | 56a82a2402e369ba999e88de125e27014f975f17 | 1954034e3472d2c8c8229e029e92b81db5809f9c | Fix empty backtrace | [
{
"path": "build_system/src/build.rs",
"patch": "@@ -139,6 +139,9 @@ pub fn build_sysroot(env: &HashMap<String, String>, config: &ConfigInfo) -> Resu\n rustflags.push_str(&cg_rustflags);\n }\n \n+ args.push(&\"--features\");\n+ args.push(&\"backtrace\");\n+\n let mut env = env.clone();... | 2025-07-13T20:14:30 |
nodejs/node | 02b3722b30f9219491587376abb11c1489e512c7 | 773769df60ac4f2448fa88b2ece035de2512928f | doc,meta: reduce npm PR wait period to one week
The two-week wait period for merging npm releases is one of those rule
exceptions that would be great to get rid of (in my opinion at least).
There are too many exceptions to our rules and they tend to be scattered
across multiple documents. People don't feel confident t... | [
{
"path": "doc/guides/maintaining-npm.md",
"patch": "@@ -4,7 +4,7 @@ New pull requests should be opened when a \"next\" version of npm has\n been released. Once the \"next\" version has been promoted to \"latest\"\n the PR should be updated as necessary.\n \n-Two weeks after the \"latest\" release has been ... | 2019-10-10T19:07:17 |
golang/go | a78db879b31b072c37c6d46cc404d8e131d54349 | 66f03f79dadc6005d30a6edf4419b8f6c0fa6398 | crypto/x509: omit empty extensions SEQUENCE
In CreateCertificate, if there are no extensions, don't include the
extensions SEQUENCE in the encoded certificate.
Why, you might ask, does the encoding/asn1 tag 'optional' not do
the same thing as 'omitempty'? Good question, no clue, fixing that
would probably break thing... | [
{
"path": "src/crypto/x509/x509.go",
"patch": "@@ -155,7 +155,7 @@ type tbsCertificate struct {\n \tPublicKey publicKeyInfo\n \tUniqueId asn1.BitString `asn1:\"optional,tag:1\"`\n \tSubjectUniqueId asn1.BitString `asn1:\"optional,tag:2\"`\n-\tExtensions []pkix.Extension `as... | 2022-04-13T04:22:22 |
huggingface/transformers | d0c054bae1c0a83173dba18cf2b17996a0f8dae1 | 609e3d585bfe2f78e95f18761dd85ae753da5f1b | [kernels] fix kernel versions (#43955)
fix | [
{
"path": "src/transformers/integrations/hub_kernels.py",
"patch": "@@ -274,9 +274,9 @@ def register_kernel_mapping_transformers(*args, **kwargs):\n \n \n _HUB_KERNEL_MAPPING: dict[str, dict[str, str]] = {\n- \"causal-conv1d\": {\"repo_id\": \"kernels-community/causal-conv1d\"},\n- \"mamba-ssm\": {\"r... | 2026-02-13T07:32:30 |
electron/electron | 3d358ee7ea1c7438d1b266d7f1e44686bbef6cf4 | af907163a29f575e37a5c21d5ee201d64444d8f9 | Fix Windows compilation issues | [
{
"path": "atom/browser/browser_win.cc",
"patch": "@@ -274,47 +274,35 @@ bool Browser::SetBadgeCount(int count) {\n }\n \n void Browser::SetLoginItemSettings(LoginItemSettings settings) {\n- base::FilePath path;\n- if (!PathService::Get(base::FILE_EXE, &path)) {\n- LOG(ERROR) << \"Error getting app exe... | 2016-07-11T19:29:01 |
vercel/next.js | 1df2686bc9964f1a86c444701fa5cbf178669833 | 1d8a633595fbbeb80848961c71ff33135313292f | Remove Base Path from usePathname output (#53582)
This removes the `basePath` from the output of `usePathname`. Previously this always resulted in hydration errors, this now strips the `basePath` when it's found/configured.
Now when you configure `basePath`, you don't have to factor it into your application logic and... | [
{
"path": "packages/next/src/client/components/app-router.tsx",
"patch": "@@ -57,6 +57,8 @@ import { RedirectBoundary } from './redirect-boundary'\n import { findHeadInCache } from './router-reducer/reducers/find-head-in-cache'\n import { createInfinitePromise } from './infinite-promise'\n import { NEXT_RSC... | 2023-08-04T22:10:00 |
nodejs/node | 039eb5624950ca5eba46fad8ab78924441d7acfc | c64ed10d8067fc3b21578d3eafe322d0e9496980 | doc: fix some recent nits in fs.md
* Fix sorting of sections.
* Fix sorting of bottom references.
* Wrap lines at 80 chars.
* Fix a heading level.
PR-URL: https://github.com/nodejs/node/pull/29906
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Jeremiah ... | [
{
"path": "doc/api/fs.md",
"patch": "@@ -291,7 +291,8 @@ added: v12.12.0\n \n A class representing a directory stream.\n \n-Created by [`fs.opendir()`][], [`fs.opendirSync()`][], or [`fsPromises.opendir()`][].\n+Created by [`fs.opendir()`][], [`fs.opendirSync()`][], or\n+[`fsPromises.opendir()`][].\n \n ```... | 2019-10-09T13:10:19 |
golang/go | fc1d4c11dfff3cad0389b32e9fa698a389807e3a | 6183920a33c21725ad21d67bee8c1eebb5d30a90 | cmd/go: fix TestScript/test_fuzz_minimize_interesting flake
check_testdata/check_testdata.go used the encoding of the corpus entry
file, rather than the input string itself, when checking the expected
size of the minimized value. Instead, use the actual byte length, which
should bypass flakiness.
While we are here, u... | [
{
"path": "src/cmd/go/testdata/script/test_fuzz_minimize_interesting.txt",
"patch": "@@ -18,30 +18,27 @@ env GOCACHE=$WORK/gocache\n exec ./fuzz.test$GOEXE -test.fuzzcachedir=$GOCACHE/fuzz -test.fuzz=FuzzMinCache -test.fuzztime=1000x\n go run check_cache/check_cache.go $GOCACHE/fuzz/FuzzMinCache\n \n-go tes... | 2022-04-12T00:52:55 |
huggingface/transformers | 609e3d585bfe2f78e95f18761dd85ae753da5f1b | c8f112d449ffa330887838218dccbe2ab9e4c99e | Fix LASR test layerdrop issue (#43954)
Fix LASR layerdrop issue | [
{
"path": "tests/models/lasr/test_modeling_lasr.py",
"patch": "@@ -54,6 +54,7 @@ def __init__(\n subsampling_conv_channels=32,\n subsampling_conv_kernel_size=5,\n subsampling_conv_stride=2,\n+ layerdrop=0.0,\n ):\n # testing suite parameters\n self.parent =... | 2026-02-12T17:03:40 |
rust-lang/rust | 901ab5b8bd84cc69b6a979847141d5077cc5b693 | 7e2d26f4b29f316dd049750b35f9004bb43aece7 | fix: `manual_assert` suggests wrongly for macros | [
{
"path": "clippy_lints/src/manual_assert.rs",
"patch": "@@ -60,7 +60,8 @@ impl<'tcx> LateLintPass<'tcx> for ManualAssert {\n ExprKind::Unary(UnOp::Not, e) => (e, \"\"),\n _ => (cond, \"!\"),\n };\n- let cond_sugg = sugg::Sugg::hir_with_applicability(cx... | 2025-07-13T12:55:06 |
vercel/next.js | a66aca1e67d64b1581de6ae658d718e487e33868 | aac4d9c3f7999f6ef590f8282d34f75599f9ca9c | EXAMPLE: fix with-supabase signup button style (#53531)
### What?
Fix example `with-supabase` https://github.com/vercel/next.js/tree/canary/examples/with-supabase signup button
### Why?
Signup button text color is not the right one so the developer is not able to see the text.
### How?
Updated the style using tailwi... | [
{
"path": "examples/with-supabase/app/login/page.tsx",
"patch": "@@ -54,7 +54,7 @@ export default function Login() {\n </button>\n <button\n formAction=\"/auth/sign-up\"\n- className=\"border border-gray-700 rounded px-4 py-2 text-white mb-2\"\n+ className=\"borde... | 2023-08-04T20:36:52 |
nodejs/node | c64ed10d8067fc3b21578d3eafe322d0e9496980 | 88e815649bbc9529e23bef22dda17570bd972683 | crypto: reject public keys properly
Fixes: https://github.com/nodejs/node/issues/29904
PR-URL: https://github.com/nodejs/node/pull/29913
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhui... | [
{
"path": "lib/internal/crypto/keys.js",
"patch": "@@ -270,7 +270,10 @@ function prepareAsymmetricKey(key, ctx) {\n ...(ctx !== kCreatePrivate ? ['KeyObject'] : [])],\n key);\n }\n- return { data, ...parseKeyEncoding(key, undefined) };\n+\n+ const isPublic =\n+ (ctx === kCons... | 2019-10-10T00:41:30 |
golang/go | f66925e854e71e0c54b581885380a490d7afa30c | 4569fe64101c2209e3429bd1c953b5f4021fc43d | syscall: check correct group in Faccessat
The Faccessat call checks the user, group, or other permission bits of a
file to see if the calling process can access it. The test to see if the
group permissions should be used was made with the wrong group id, using
the process's group id rather than the file's group id. Fi... | [
{
"path": "src/syscall/syscall_linux.go",
"patch": "@@ -109,7 +109,7 @@ func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {\n \t\t\tgid = Getgid()\n \t\t}\n \n-\t\tif uint32(gid) == st.Gid || isGroupMember(gid) {\n+\t\tif uint32(gid) == st.Gid || isGroupMember(int(st.Gid)) {\n \t\t\... | 2022-04-12T20:38:17 |
huggingface/transformers | c8f112d449ffa330887838218dccbe2ab9e4c99e | 53a49c482a3ec1fdf97a6e60785790a7c99858fd | Fix typos in docstrings, comments, and error messages (#43949)
* Fix: Correct typos in docstrings and error messages across src/transformers
* Fix: Address code review feedback (grammar, typos, and filename corrections)
* Fix: Address minor code review feedback(filename fix) | [
{
"path": "src/transformers/cache_utils.py",
"patch": "@@ -878,7 +878,7 @@ def max_cache_len(self) -> int:\n \n @property\n def is_compileable(self) -> bool:\n- \"\"\"Return whether the cache is compileable\"\"\"\n+ \"\"\"Return whether the cache is compilable\"\"\"\n # For Dyn... | 2026-02-12T16:26:09 |
electron/electron | 2ee8142136c93f4edd66ff0f329566802a7821c3 | 056166ea17b6a67abe07a210acb11cd5808912ea | Fix transparent window having border on OS X 10.9 | [
{
"path": "atom/browser/native_window_mac.mm",
"patch": "@@ -1082,7 +1082,10 @@ static bool FromV8(v8::Isolate* isolate, v8::Handle<v8::Value> val,\n \n void NativeWindowMac::InstallView() {\n // Make sure the bottom corner is rounded: http://crbug.com/396264.\n- [[window_ contentView] setWantsLayer:YES]... | 2016-07-12T06:01:37 |
vercel/next.js | e7a3fd91637b803d0ee78bac302750c21d3a476c | 542c4fc26a31ed74668270bfc73c5a337d84f7d5 | chore(lint): fix lint warning about unused import `current_dir` (#53587)
<img width="660" alt="image" src="https://github.com/vercel/next.js/assets/229881/a9cc7270-7aee-4258-b30e-b371d9924a64"> | [
{
"path": "packages/next-swc/crates/core/src/lib.rs",
"patch": "@@ -32,7 +32,7 @@ DEALINGS IN THE SOFTWARE.\n #![deny(clippy::all)]\n #![feature(box_patterns)]\n \n-use std::{cell::RefCell, env::current_dir, path::PathBuf, rc::Rc, sync::Arc};\n+use std::{cell::RefCell, path::PathBuf, rc::Rc, sync::Arc};\n \... | 2023-08-04T20:14:34 |
huggingface/transformers | 53a49c482a3ec1fdf97a6e60785790a7c99858fd | 3b8f0948af563f86539d570c9091e1ca02f88730 | Fix `get_number_of_image_tokens` (#43948)
* fix
* fix tests
* this test not needed anymore, teh new one tests better | [
{
"path": "src/transformers/models/emu3/image_processing_emu3.py",
"patch": "@@ -217,11 +217,10 @@ def _preprocess(\n # We assume that all images have the same channel dimension format.\n input_data_format = infer_channel_dimension_format(images[0])\n \n- height, width = get_i... | 2026-02-12T16:23:37 |
nodejs/node | 075c7ebeb5234b148566c2aed6511357b775c2f6 | 1447a79dc435578bffba32ead9b2ffa0425fc30a | src: fix largepages regression
During the addition of macOS support for large pages, a `memcpy` ended
up under the wrong preprocessor directive. As a result, the newly
allocated large pages were not initialized with a copy of the text
section.
Thanks to Suresh Srinivas <suresh.srinivas@intel.com>!
PR-URL: https://gi... | [
{
"path": "src/large_pages/node_large_page.cc",
"patch": "@@ -359,6 +359,7 @@ MoveTextRegionToLargePages(const text_region& r) {\n }\n return -1;\n }\n+ memcpy(start, nmem, size);\n #elif defined(__FreeBSD__)\n tmem = mmap(start, size,\n PROT_READ | PROT_WRITE | PROT_EXEC,\n@@ -39... | 2019-10-09T22:50:21 |
golang/go | 4569fe64101c2209e3429bd1c953b5f4021fc43d | 6f5590edf6883583a801ceb9309f074c0cd7c1cd | cmd/go: allow '-buildvcs=auto' and treat it as the default
When we added VCS stamping in the Go 1.18 release, we defaulted to
-buildvcs=true, on the theory that most folks will actually want VCS
information stamped.
We also made -buildvcs=true error out if a VCS directory is found and
no VCS tool is available, on the... | [
{
"path": "src/cmd/go/alldocs.go",
"patch": "@@ -136,11 +136,13 @@\n //\t-buildmode mode\n //\t\tbuild mode to use. See 'go help buildmode' for more.\n //\t-buildvcs\n-//\t\tWhether to stamp binaries with version control information. By default,\n-//\t\tversion control information is stamped into a binary i... | 2022-04-07T21:25:23 |
huggingface/transformers | 3b8f0948af563f86539d570c9091e1ca02f88730 | 0aebdc5c699796bf162e768defa34ffb9a02cc3a | Fix qwen-vl position ids when generating several times (#43952)
* fix
* rope delta can't be negative
* extend the test to check `generate` as well | [
{
"path": "src/transformers/models/ernie4_5_vl_moe/modeling_ernie4_5_vl_moe.py",
"patch": "@@ -1716,9 +1716,12 @@ def _prepare_position_ids_for_generation(self, inputs_tensor, model_kwargs):\n text_positions = super()._prepare_position_ids_for_generation(inputs_tensor, model_kwargs)\n \n # E... | 2026-02-12T16:22:38 |
vercel/next.js | 99372fbedfadff54dcdb88d61deee9473e0d5307 | ab14895ada176c091df0c8594451e753a90f1aaf | Add test for catching metadata error in error boundaries (#53581) | [
{
"path": "test/e2e/app-dir/global-error/basic/app/metadata-error-with-boundary/error.js",
"patch": "@@ -0,0 +1,5 @@\n+'use client'\n+\n+export default function Error() {\n+ return <p id=\"error\">Local error boundary</p>\n+}",
"additions": 5,
"deletions": 0,
"language": "JavaScript"
},
{
... | 2023-08-04T18:57:49 |
nodejs/node | 1447a79dc435578bffba32ead9b2ffa0425fc30a | aca1c283bd8c6778b477286b8516f7c38dc9cefb | net: treat ENOTCONN at shutdown as success
While it is not entirely clear why this condition is being
triggered, it does resolve a reported bug.
Fixes: https://github.com/nodejs/node/issues/26315
PR-URL: https://github.com/nodejs/node/pull/29912
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca... | [
{
"path": "lib/net.js",
"patch": "@@ -39,7 +39,8 @@ const {\n const assert = require('internal/assert');\n const {\n UV_EADDRINUSE,\n- UV_EINVAL\n+ UV_EINVAL,\n+ UV_ENOTCONN\n } = internalBinding('uv');\n \n const { Buffer } = require('buffer');\n@@ -403,7 +404,7 @@ Socket.prototype._final = function(c... | 2019-10-10T00:22:38 |
golang/go | 6f5590edf6883583a801ceb9309f074c0cd7c1cd | 5bf6c97e76c721242a9b064950cd901c33f6f0b9 | cmd/compile: always write fun[0] in incomplete itab
runtime.getitab need filled fun[0] to identify whether
implemented the interface.
Fixes #51700
Fixes #52228
Change-Id: I0173b98f4e1b45e3a0183a5b60229d289140d1e6
Reviewed-on: https://go-review.googlesource.com/c/go/+/399058
Reviewed-by: Keith Randall <khr@golang.org... | [
{
"path": "src/cmd/compile/internal/reflectdata/reflect.go",
"patch": "@@ -1328,21 +1328,21 @@ func writeITab(lsym *obj.LSym, typ, iface *types.Type, allowNonImplement bool) {\n \t// type itab struct {\n \t// inter *interfacetype\n \t// _type *_type\n-\t// hash uint32\n+\t// hash uint32 // cop... | 2022-04-08T15:44:40 |
huggingface/transformers | 2a232cd952b81253762f86bb0e6ca3170a685e31 | 2caa05deb31d7a8e641bbf6b64571fa4fc9c593e | fix: Better weight decay exclusion in `run_*_no‑trainer.py` examples (#43947)
more robust weight decay detection | [
{
"path": "examples/pytorch/image-classification/run_image_classification_no_trainer.py",
"patch": "@@ -41,6 +41,7 @@\n from accelerate.utils import set_seed\n from datasets import load_dataset\n from huggingface_hub import HfApi\n+from torch import nn\n from torch.utils.data import DataLoader\n from torchv... | 2026-02-12T14:36:36 |
electron/electron | 01cb024f4435c669b3ece9e809fd02a45eedccf4 | 1a080266c5cd714c8bb7873de23b5415d82c80c2 | fix broken link
fixed broken link "how to share data between web pages" in section "Differences Between Main Process and Renderer Process" | [
{
"path": "docs/tutorial/quick-start.md",
"patch": "@@ -47,7 +47,7 @@ In Electron, we have several ways to communicate between the main process and\n renderer processes. Like [`ipcRenderer`](../api/ipc-renderer.md) and\n [`ipcMain`](../api/ipc-main.md) modules for sending messages, and the\n [remote](../api... | 2016-07-11T23:31:18 |
vercel/next.js | ab14895ada176c091df0c8594451e753a90f1aaf | cc4879d1dc516cd9e760271bbff343fe82c90f33 | Fix dynamic route not-found boundary matching (#53564)
### What & Why
The dynamic not-found boundary didn't work as expected as it was using the `pathname` to match how many levels of the segements should be matched. For dynamic routes this doesn't work, unlike normal page, the unmatched segment can also hit the not ... | [
{
"path": "packages/next/src/server/app-render/app-render.tsx",
"patch": "@@ -111,15 +111,14 @@ function createNotFoundLoaderTree(loaderTree: LoaderTree): LoaderTree {\n function findMatchedComponent(\n loaderTree: LoaderTree,\n componentType: Exclude<keyof ComponentsType, 'metadata'>,\n- depth: number... | 2023-08-04T16:07:58 |
nodejs/node | a350d8b7805765744a10415551bd4a741b6519ff | 6b962ddf01f404a51deed683b3a88ea19276107c | deps: V8: cherry-pick 53e62af
Original commit message:
[build] Include string in v8.h
Explicitly #include<string> in v8.h, since std::string is referenced
in it. In the C++ STL shipped with Visual Studio 2019, none of the
headers included in v8.h ends up including the C++ string header, which
cau... | [
{
"path": "common.gypi",
"patch": "@@ -39,7 +39,7 @@\n \n # Reset this number to 0 on major V8 upgrades.\n # Increment by one for each non-official patch applied to deps/v8.\n- 'v8_embedder_string': '-node.13',\n+ 'v8_embedder_string': '-node.14',\n \n ##### V8 defaults for Node.js #####\n... | 2019-10-09T09:16:40 |
golang/go | 5bf6c97e76c721242a9b064950cd901c33f6f0b9 | 8f1d5d0a41840c1e6b36c94d493af8aae1302fd0 | cmd/go: open correct path when loading embeds from root directory
The existing implementation of `load.resolveEmbed`
uses an expression like `path[len(pkgdir)+1:]`.
Though the `+1` is intended to remove a prefix slash,
the expression returns an incorrect path when `pkgdir`
is "/". (ex.: when removing "/" from "/foo", ... | [
{
"path": "src/cmd/go/internal/load/pkg.go",
"patch": "@@ -2056,7 +2056,8 @@ func resolveEmbed(pkgdir string, patterns []string) (files []string, pmap map[st\n \t\t// then there may be other things lying around, like symbolic links or .git directories.)\n \t\tvar list []string\n \t\tfor _, file := range mat... | 2022-03-30T06:30:19 |
huggingface/transformers | 2caa05deb31d7a8e641bbf6b64571fa4fc9c593e | a4fdaa5f72bdbdd1285baee05cf4c75820917fd2 | Fix weight decay exclusions in `run_*_no‑trainer.py` examples (#42769)
* fix(run_*_no_trainer.py): re-using `trainer.py` way to handle decay parameters
* added back useful comment
* Apply repo consistency fixes
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> | [
{
"path": "examples/pytorch/language-modeling/run_clm_no_trainer.py",
"patch": "@@ -52,6 +52,7 @@\n from accelerate.utils import set_seed\n from datasets import load_dataset\n from huggingface_hub import HfApi\n+from torch import nn\n from torch.utils.data import DataLoader\n from tqdm.auto import tqdm\n \n... | 2026-02-12T14:24:54 |
vercel/next.js | cc4879d1dc516cd9e760271bbff343fe82c90f33 | f04dc5ad5138a1d851c9cfe45854033b9027f6b2 | Move metadata error under error boundaries (#53551)
### What & Why
Using `notFound()` in `generateMetadata()` or in page will lead to unacught global not found error when you do navigation, this is because `head` cache is actually not inside the error boundary as designed to stay in the beginning of the content. But ... | [
{
"path": "packages/next/src/lib/metadata/metadata.tsx",
"patch": "@@ -21,8 +21,13 @@ import { MetaFilter } from './generate/meta'\n import { ResolvedMetadata } from './types/metadata-interface'\n import { createDefaultMetadata } from './default-metadata'\n \n-// Generate the actual React elements from the ... | 2023-08-04T15:32:36 |
nodejs/node | 2664dacf7e0e13dc24485836e66081fb07ee1289 | 3aeae8d81b7b78668c37f7a07a72d94781126d49 | util: validate formatWithOptions inspectOptions
This makes sure that the `inspectOptions` are validated. This could
otherwise cause confusion.
Fixes: https://github.com/nodejs/node/issues/29726
PR-URL: https://github.com/nodejs/node/pull/29824
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: James M Sn... | [
{
"path": "lib/internal/util/inspect.js",
"patch": "@@ -1542,11 +1542,6 @@ function reduceToSingleString(\n return `${braces[0]}${ln}${join(output, `,\\n${indentation} `)} ${braces[1]}`;\n }\n \n-function format(...args) {\n- return formatWithOptions(undefined, ...args);\n-}\n-\n-\n const firstErrorLine... | 2019-10-03T00:38:37 |
golang/go | 45c3387d777caf28f4b992ad9a6216e3085bb8fe | 9ccf5b8e86ce98494a2127196fbc47d72b0a71a5 | encoding/pem: fix stack overflow in Decode
Previously, Decode called decodeError, a recursive function that was
prone to stack overflows when given a large PEM file containing errors.
Credit to Juho Nurminen of Mattermost who reported the error.
Fixes CVE-2022-24675
Fixes #51853
Change-Id: Iffe768be53c8ddc0036fea06... | [
{
"path": "src/encoding/pem/pem.go",
"patch": "@@ -90,122 +90,96 @@ func Decode(data []byte) (p *Block, rest []byte) {\n \t// pemStart begins with a newline. However, at the very beginning of\n \t// the byte array, we'll accept the start string without it.\n \trest = data\n-\tif bytes.HasPrefix(data, pemSta... | 2022-03-01T16:19:38 |
Subsets and Splits
Assembly Language GitHub Issues
Retrieves a sample of assembly-language related commits with their details, but doesn't provide meaningful analysis or patterns beyond basic filtering.
Swift Compiler Issues Analysis
Retrieves all training data for the Swift programming language repository, providing basic filtering but offering limited analytical insight beyond identifying relevant code examples.