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
huggingface/transformers
940a6bd343cfd2ff4f4425b4cbc548d1e1d316da
3d99f1746e0d667cbec9e69b4ec11289c4752630
Use non nested images and batched text Idefics2/3 (#34222) * add support for non nested images and add tests * add tests error scenario * fix style * added single and no image to error tests
[ { "path": "src/transformers/models/idefics2/image_processing_idefics2.py", "patch": "@@ -99,6 +99,7 @@ def make_list_of_images(images: ImageInput) -> List[List[np.ndarray]]:\n isinstance(images, (list, tuple))\n and len(images) > 0\n and isinstance(images[0], (list, tuple))\n+ ...
2024-10-25T00:00:13
vercel/next.js
cbe0407b8b77d4cea988e766b7a6846f21017b83
24f2c530255defa1d02d9a675beb06f229f984fc
Update static-html-export.md (#40808) This fixes anchor link in `static-html-export.md` ## Documentation / Examples - [x] Make sure the linting passes by running `pnpm lint` - [x] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/ad...
[ { "path": "docs/advanced-features/static-html-export.md", "patch": "@@ -45,7 +45,7 @@ The majority of core Next.js features needed to build a static site are supporte\n - [Client-side data fetching](/docs/basic-features/data-fetching/client-side.md)\n - [`getStaticProps`](/docs/basic-features/data-fetching/...
2022-09-22T20:37:41
golang/go
ce8b318624adcdd45ecd53b33f6bae38bcccc7be
bf0f7c9d78fa28320a2c60d5a6d1956acfae4a89
net/http/fcgi: remove locking added to prevent a test-only race The race reported in issue #41167 was detected only because the ReadWriter used in test code happened to be a bytes.Buffer whose Read and Write operate (unsafely) on shared state. This is not the case in any realistic scenario where the FastCGI protocol i...
[ { "path": "src/net/http/fcgi/child.go", "patch": "@@ -171,12 +171,9 @@ func (c *child) serve() {\n \tdefer c.cleanUp()\n \tvar rec record\n \tfor {\n-\t\tc.conn.mutex.Lock()\n \t\tif err := rec.read(c.conn.rwc); err != nil {\n-\t\t\tc.conn.mutex.Unlock()\n \t\t\treturn\n \t\t}\n-\t\tc.conn.mutex.Unlock()\n ...
2021-01-25T22:54:20
nodejs/node
1d2fd8b65bacaf4401450edc8ed529106cbcfc67
cb5f9a6d871f6b2e0da8fa72dc2e91fb37ef9713
lib: port remaining errors to new system PR-URL: https://github.com/nodejs/node/pull/19137 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
[ { "path": "lib/_http_client.js", "patch": "@@ -39,15 +39,23 @@ const { Buffer } = require('buffer');\n const { urlToOptions, searchParamsSymbol } = require('internal/url');\n const { outHeadersKey, ondrain } = require('internal/http');\n const { nextTick } = require('internal/process/next_tick');\n-const er...
2018-03-04T21:16:24
ollama/ollama
29ddfc2cab7f5a83a96c3133094f67b22e4f27d1
71cb86af3e8b8006540550a8eeb9fed106b77eee
ggml: Disable flash attention for gemma2 Our new engine implementation of gemma2 doesn't support flash attention, which means that it also doesn't support KV cache quantization. Currently, it is possible to turn these two on, which will result in a crash.
[ { "path": "fs/ggml/ggml.go", "patch": "@@ -883,6 +883,10 @@ func (f GGML) SupportsFlashAttention() bool {\n \t\treturn false\n \t}\n \n+\tif arch := f.KV().Architecture(); slices.Contains([]string{\"gemma2\"}, arch) {\n+\t\treturn false\n+\t}\n+\n \t// Check head counts match and are non-zero\n \theadCountK...
2025-09-09T17:48:34
rust-lang/rust
814d7c37d4374f03b50fe8e656997fb2ccca9966
281ca97ba331c6316cf4a4f967521062a3d50a8e
Fix debug sourceFileMap when using cppvsdbg - Fix #18782
[ { "path": "src/tools/rust-analyzer/editors/code/src/debug.ts", "patch": "@@ -225,7 +225,7 @@ async function discoverSourceFileMap(\n const commitHash = rx.exec(data)?.[1];\n if (commitHash) {\n const rustlib = path.normalize(sysroot + \"/lib/rustlib/src/rust\");\n- ret...
2025-03-29T13:28:50
huggingface/transformers
3d99f1746e0d667cbec9e69b4ec11289c4752630
a308d28d397af77c6a6b6d3b397991b555677007
Fix glm (#34388) * Fix duplicated * fix import
[ { "path": "src/transformers/models/glm/modeling_glm.py", "patch": "@@ -30,35 +30,26 @@\n from ...cache_utils import Cache, DynamicCache, StaticCache\n from ...generation import GenerationMixin\n from ...modeling_attn_mask_utils import AttentionMaskConverter\n+from ...modeling_flash_attention_utils import Fl...
2024-10-24T17:17:52
golang/go
deaf29a8a8ab76613bf0d5d97c4e31bfbdc4c4e9
ad2ca26a521a5a642f51c3ef8e3004c9ce7af5aa
cmd/compile: fix order-of-assignment issue w/ defers CL 261677 fixed a logic issue in walk's alias detection, where it was checking the RHS expression instead of the LHS expression when trying to determine the kind of assignment. However, correcting this exposed a latent issue with assigning to result parameters in fu...
[ { "path": "src/cmd/compile/internal/gc/walk.go", "patch": "@@ -267,7 +267,7 @@ func walkstmt(n *Node) *Node {\n \t\tif n.List.Len() == 0 {\n \t\t\tbreak\n \t\t}\n-\t\tif (Curfn.Type.FuncType().Outnamed && n.List.Len() > 1) || paramoutheap(Curfn) {\n+\t\tif (Curfn.Type.FuncType().Outnamed && n.List.Len() > 1...
2021-01-22T03:27:12
huggingface/transformers
4c6e0c92527f54c51fc20c1781ab42aeb946f25e
1c5918d9106ba530c700f08ad7847b09a8b68457
Correct the new defaults (#34377) * Correct the new defaults * CIs * add check * Update utils.py * Update utils.py * Add the max_length in generate test checking shape without passing length * style * CIs * fix fx CI issue
[ { "path": "src/transformers/generation/utils.py", "patch": "@@ -1440,8 +1440,11 @@ def _prepare_generated_length(\n and not self.config.is_encoder_decoder\n ):\n generation_config.max_length -= inputs_tensor.shape[1]\n- else: # by default let's always generate 10 new ...
2024-10-24T16:42:03
ollama/ollama
e119783e66335c861e253734f36166d1a99f2e78
1a558f98e2d07885efb6cf82943ae029c647f3d0
llm: Clamp batch size to context size The context must always be able to store the current batch, so if the user requests a small context then we should also shrink the batch to match. This also fixes the TestLongInputContext test on the new engine. (The old engine already has this behavior.)
[ { "path": "integration/context_test.go", "patch": "@@ -36,7 +36,7 @@ func TestLongInputContext(t *testing.T) {\n \tif err := PullIfMissing(ctx, client, req.Model); err != nil {\n \t\tt.Fatalf(\"PullIfMissing failed: %v\", err)\n \t}\n-\tDoGenerate(ctx, t, client, req, []string{\"russia\", \"germany\", \"fra...
2025-09-09T00:33:31
nodejs/node
fc9ddd9cd9f9d3410f8f7aca2c5ee58ed4101c3b
b5825e125cf9a6c71c354eb006188c432414ee65
2018-03-06 Version 8.10.0 'Carbon' (LTS) Notable changes: * deps: * update V8 to 6.2.414.46 (Michaël Zasso) [#16413](https://github.com/nodejs/node/pull/16413) * revert ABI breaking changes in V8 6.2 (Anna Henningsen) [#16413](https://github.com/nodejs/node/pull/16413) * upgrade libuv to 1.19.1 (cjihrig) [#1826...
[ { "path": "CHANGELOG.md", "patch": "@@ -43,7 +43,8 @@ release.\n <a href=\"doc/changelogs/CHANGELOG_V9.md#9.0.0\">9.0.0</a><br/>\n </td>\n <td valign=\"top\">\n-<b><a href=\"doc/changelogs/CHANGELOG_V8.md#8.9.4\">8.9.4</a></b><br/>\n+<b><a href=\"doc/changelogs/CHANGELOG_V8.md#8.10.0\">8.10.0</a></b...
2018-01-24T01:02:55
vercel/next.js
75bbf00a8fd9f7b377132986cfc5dc85aba90b1b
77c8a2c4dde9baf17abcc648ffea3ac883558e6f
Add local font loader (#40801) Moves font related types to `next/font` so they can be reused in font loaders. Adds an argument to font loaders, the relative path from the app root to the module consuming the loader. Needed for resolving local files relative to the module calling it. Also used to improve error me...
[ { "path": "packages/font/local/index.d.ts", "patch": "@@ -0,0 +1 @@\n+export { default } from '../dist/local/index'", "additions": 1, "deletions": 0, "language": "Unknown" }, { "path": "packages/font/local/index.js", "patch": "@@ -0,0 +1 @@\n+throw new Error('@next/font/local is not ...
2022-09-22T19:49:02
huggingface/transformers
1c5918d9106ba530c700f08ad7847b09a8b68457
d9989e0b9a5633db923f12e61cb8b6e72cf71a7c
Fix `torch.fx` issue related to the new `loss_kwargs` keyword argument (#34380) * Fix FX * Unskip tests
[ { "path": "src/transformers/utils/fx.py", "patch": "@@ -1416,7 +1416,7 @@ def keys(self, obj: \"Proxy\") -> Any:\n your custom tracer.\n \"\"\"\n attribute = HFAttribute(obj, \"keys\")()\n- if obj.node.target == \"**kwargs\":\n+ if obj.node.target.startswith(\"**\"):\n ...
2024-10-24T16:34:28
rust-lang/rust
2df6bba5b06dfb073b93199517803a6bd0aa15a0
c033a4c741bc7e8db0ffa49c110377f602d5c61c
fix: `unnested_or_patterns` suggests wrongly in `let`
[ { "path": "clippy_lints/src/unnested_or_patterns.rs", "patch": "@@ -120,18 +120,25 @@ fn lint_unnested_or_patterns(cx: &EarlyContext<'_>, pat: &Pat) {\n \n /// Remove all `(p)` patterns in `pat`.\n fn remove_all_parens(pat: &mut P<Pat>) {\n- struct Visitor;\n+ #[derive(Default)]\n+ struct Visitor {...
2025-03-13T08:49:34
ollama/ollama
950d33aa3045581906c2db11f33d2a4c2bca3033
9714e38dd098a466d613edd87f3576ddd5c246f4
docs: show how to debug nvidia init failures (#12216) This debug setting can help troubleshoot obscure initialization failures.
[ { "path": "docs/troubleshooting.md", "patch": "@@ -92,6 +92,9 @@ If none of those resolve the problem, gather additional information and file an\n - Set `CUDA_ERROR_LEVEL=50` and try again to get more diagnostic logs\n - Check dmesg for any errors `sudo dmesg | grep -i nvrm` and `sudo dmesg | grep -i nvidia...
2025-09-08T18:39:00
vercel/next.js
be904d79ac47b70df6eab16c578d240c39cdb0fe
48292ba7b7d2099086fb5e9648178c91b39f6e8a
Open deploy link in new window for examples (#40804) Let's open the deploy link in a new window so the link isn't blocked when running an an iframe, such as Stackblitz. Previously, this would print the following error: > Refused to display 'https://vercel.com/' in a frame because it set 'X-Frame-Options' to 'd...
[ { "path": "examples/progressive-web-app/pages/index.tsx", "patch": "@@ -34,6 +34,8 @@ export default function Home() {\n \n <a\n href=\"https://vercel.com/new?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app\"\n+ target=\"_blank\"\n+ ...
2022-09-22T16:33:36
nodejs/node
b5825e125cf9a6c71c354eb006188c432414ee65
4e15679c026d2969efa276149282df388e0533b3
assert: improve error check Minor performance improvement. PR-URL: https://github.com/nodejs/node/pull/17574 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Revie...
[ { "path": "lib/internal/errors.js", "patch": "@@ -342,11 +342,14 @@ class AssertionError extends Error {\n red = '\\u001b[31m';\n }\n const util = lazyUtil();\n-\n- if (actual && actual.stack && actual instanceof Error)\n+ if (typeof actual === 'object' && actual !== null &&\n+...
2017-12-09T16:13:34
huggingface/transformers
d9989e0b9a5633db923f12e61cb8b6e72cf71a7c
fe3507331998e7154a206055b34e3ba338290d3d
[PEFT] Add warning for missing key in LoRA adapter (#34068) When loading a LoRA adapter, so far, there was only a warning when there were unexpected keys in the checkpoint. Now, there is also a warning when there are missing keys. This change is consistent with https://github.com/huggingface/peft/pull/2118 in PE...
[ { "path": "src/transformers/integrations/peft.py", "patch": "@@ -235,13 +235,29 @@ def load_adapter(\n )\n \n if incompatible_keys is not None:\n- # check only for unexpected keys\n+ err_msg = \"\"\n+ origin_name = peft_model_id if peft_model_id is not None e...
2024-10-24T15:56:40
rust-lang/rust
439048e074e1a4293e1839875e799329d92e4f81
928468c47c2a670bfa62727cfa2f14f75f5b7331
`BackendRepr::is_signed`: comment why this may panics
[ { "path": "compiler/rustc_abi/src/lib.rs", "patch": "@@ -1462,7 +1462,8 @@ impl BackendRepr {\n !self.is_unsized()\n }\n \n- /// Returns `true` if this is a single signed integer scalar\n+ /// Returns `true` if this is a single signed integer scalar.\n+ /// Sanity check: panics if this ...
2025-03-29T11:21:51
ollama/ollama
9714e38dd098a466d613edd87f3576ddd5c246f4
4378ae4ffaaf71b649efcf87a6a3f77cb923f822
fix: nil pointer dereference if cache is nil (#12215)
[ { "path": "runner/ollamarunner/cache.go", "patch": "@@ -70,11 +70,9 @@ func kvCacheTypeFromStr(s string) ml.DType {\n }\n \n func (c *InputCache) Close() {\n-\tif c == nil {\n-\t\treturn\n+\tif c != nil && c.cache != nil {\n+\t\tc.cache.Close()\n \t}\n-\n-\tc.cache.Close()\n }\n \n // Locking: Operations on...
2025-09-08T16:53:59
nodejs/node
9256dbb6115021fb69d5ccc2af0f7e27b0601007
ad721429c02a086373d841206927718048d6b521
perf_hooks: fix timing Fixes: https://github.com/nodejs/node/issues/17892 Fixes: https://github.com/nodejs/node/issues/17893 Fixes: https://github.com/nodejs/node/issues/18992 PR-URL: https://github.com/nodejs/node/pull/18993 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.n...
[ { "path": "doc/api/perf_hooks.md", "patch": "@@ -181,7 +181,8 @@ added: v8.5.0\n \n * Returns: {number}\n \n-Returns the current high resolution millisecond timestamp.\n+Returns the current high resolution millisecond timestamp, where 0 represents\n+the start of the current `node` process.\n \n ### performa...
2018-02-25T22:26:22
vercel/next.js
48292ba7b7d2099086fb5e9648178c91b39f6e8a
f16992a1560313fe992a765a094ba8a40a2cfda0
Fix required server files for font loader manifest (#40784) The manifest currently gets added without file extensions.
[ { "path": "packages/next/build/index.ts", "patch": "@@ -829,9 +829,12 @@ export default async function build(\n config.optimizeFonts ? path.join(serverDir, FONT_MANIFEST) : null,\n BUILD_ID_FILE,\n appDir ? path.join(serverDir, APP_PATHS_MANIFEST) : null,\n- co...
2022-09-22T16:10:36
huggingface/transformers
fe3507331998e7154a206055b34e3ba338290d3d
e2886166065db25029afb58c699d6272baf22965
Ignore unsupported kwarg in ProcessorMixin call (#34285) Fix accept any common kwargs
[ { "path": "src/transformers/processing_utils.py", "patch": "@@ -874,7 +874,11 @@ class MyProcessingKwargs(ProcessingKwargs, CommonKwargs, TextKwargs, ImagesKwarg\n else:\n # kwargs is a flat dictionary\n for key in kwargs:\n- if key not in used_keys:\n+ ...
2024-10-24T15:46:39
golang/go
3663a437a781f4e7ce242aa334af2f2ce71ecef9
3432d24bab848a4fbae182e7d4399aa34ff6e302
[dev.typeparams] go/constant: in ToFloat, convert to rational numbers, not floats Floating-point constants are represented as rational numbers when possible (i.e., when numerators and denominators are not too large). If we convert to floats when not necessary, we risk losing precision. This is the minimal fix for the...
[ { "path": "src/go/constant/value.go", "patch": "@@ -871,9 +871,9 @@ func ToInt(x Value) Value {\n func ToFloat(x Value) Value {\n \tswitch x := x.(type) {\n \tcase int64Val:\n-\t\treturn i64tof(x)\n+\t\treturn i64tor(x)\n \tcase intVal:\n-\t\treturn itof(x)\n+\t\treturn itor(x)\n \tcase ratVal, floatVal:\n ...
2021-01-25T23:18:56
ollama/ollama
8149a3c86e3dca30b4883bf581757402e2f246f5
0cc90a8186359a197aa10d1dad361bc81b6ec2b2
llm: Avoid underflow in free memory logging If a GPU's free memory is less than the reserved amount, we might get an underflow. Since it is an unsigned uint64, we print this as a large number rather than the more correct 0. This only affects logging, the actual layout code already handles this correctly. Bug #12138
[ { "path": "llm/server.go", "patch": "@@ -678,8 +678,12 @@ func (s *ollamaServer) Load(ctx context.Context, gpus discover.GpuInfoList, requ\n \n \tif !(len(gpus) == 1 && gpus[0].Library == \"cpu\") {\n \t\tfor _, gpu := range gpus {\n+\t\t\tavailable := gpu.FreeMemory - envconfig.GpuOverhead() - gpu.MinimumM...
2025-09-02T17:47:33
nodejs/node
1a5ec837ca56774f2a9ee54ee9a0f6cbfa01d4bc
5e3f51648ed5de36b01d53bde13fb6fb7b965667
doc: fix max length on stream.md See: https://github.com/nodejs/node/pull/18438 PR-URL: https://github.com/nodejs/node/pull/19169 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
[ { "path": "doc/api/stream.md", "patch": "@@ -1389,7 +1389,8 @@ constructor and implement the `writable._write()` method. The\n changes:\n - version: REPLACEME\n pr-url: https://github.com/nodejs/node/pull/18438\n- description: Add `emitClose` option to specify if `close` is emitted on destroy\n+ ...
2018-03-06T13:39:15
vercel/next.js
f16992a1560313fe992a765a094ba8a40a2cfda0
f662f1815939aaa39840196a0e23cd1c6c7ced94
docs: Remove extraneous FallbackComponent prop from error boundary docs (#40785) It looks like the code snippet was copied over from https://github.com/bvaughn/react-error-boundary but the `ErrorBoundary` component on this docs page does not have a `FallbackComponent` prop but renders the error message content itse...
[ { "path": "docs/advanced-features/error-handling.md", "patch": "@@ -88,7 +88,7 @@ import ErrorBoundary from '../components/ErrorBoundary'\n function MyApp({ Component, pageProps }) {\n return (\n // Wrap the Component prop with ErrorBoundary component\n- <ErrorBoundary FallbackComponent={ErrorFallb...
2022-09-22T16:04:44
huggingface/transformers
e2886166065db25029afb58c699d6272baf22965
450b9cbfacc5b5aaf18ecc25217ab80b6fc8cf99
refactor: remove redundant if-condition and improve type correctness for `convert_tokens_to_ids` (#34030) * chore: remove redundant if-condition * fix: import `Iterable`
[ { "path": "src/transformers/tokenization_utils_fast.py", "patch": "@@ -21,7 +21,7 @@\n import json\n import os\n from collections import defaultdict\n-from typing import Any, Dict, List, Optional, Tuple, Union\n+from typing import Any, Dict, Iterable, List, Optional, Tuple, Union\n \n import tokenizers.pre_...
2024-10-24T15:40:26
golang/go
3d85c69a0bf67adec57b76511ccc5e5b0ba9cdf4
54514c6b2896c6a634a7b8017ade909985172e4d
html/template: revert "avoid race when escaping updates template" This reverts CLs 274450 and 279492, except for the new tests. The new race test is changed to skip, as it now fails. We can try again for 1.17. Original CL descriptions: html/template: attach functions to namespace The text/template functions...
[ { "path": "src/html/template/exec_test.go", "patch": "@@ -1720,6 +1720,8 @@ var v = \"v\";\n `\n \n func TestEscapeRace(t *testing.T) {\n+\tt.Skip(\"this test currently fails with -race; see issue #39807\")\n+\n \ttmpl := New(\"\")\n \t_, err := tmpl.New(\"templ.html\").Parse(raceText)\n \tif err != nil {\n...
2021-01-22T22:54:23
ollama/ollama
0cc90a8186359a197aa10d1dad361bc81b6ec2b2
e42300f25b646c2b261261758edbacebd40f00f0
harden uncaught exception registration (#12120)
[ { "path": "llama/patches/0025-harden-uncaught-exception-registration.patch", "patch": "@@ -0,0 +1,28 @@\n+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001\n+From: Daniel Hiltgen <daniel@ollama.com>\n+Date: Fri, 29 Aug 2025 16:53:08 -0700\n+Subject: [PATCH] harden uncaught exception reg...
2025-09-02T16:43:55
nodejs/node
5e3f51648ed5de36b01d53bde13fb6fb7b965667
acac0f852a02c2b129adbc51e0bd8bd482d791af
stream: updated streams error handling This improves error handling for streams in a few ways. 1. It ensures that no user defined methods (_read, _write, ...) are run after .destroy has been called. 2. It introduces an explicit error to tell the user if they are write to write, etc to the stream after it has been des...
[ { "path": "doc/api/errors.md", "patch": "@@ -1449,6 +1449,12 @@ An unspecified or non-specific system error has occurred within the Node.js\n process. The error object will have an `err.info` object property with\n additional details.\n \n+<a id=\"ERR_STREAM_DESTROYED\"></a>\n+### ERR_STREAM_DESTROYED\n+\n+...
2018-01-29T18:32:34
vercel/next.js
f662f1815939aaa39840196a0e23cd1c6c7ced94
06682d27bb480fcacdc8072d620dd1e37f33040a
Fix flaky full reload hmr tests (#40786) The issue seems to be that ` await check(() => browser.elementByCss('p').text(), 'hello world!!!')` sometimes tries to get `.text()` from the DOM before the full reload and it times out. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests a...
[ { "path": "test/development/basic/hmr.test.ts", "patch": "@@ -793,13 +793,16 @@ describe('basic HMR', () => {\n )\n const newFileContent = currentFileContent.replace(\n '<p>hello world</p>',\n- '<p>hello world!!!</p>'\n+ '<p id=\"updated\">hello world!!!</p>'\n )\n ...
2022-09-22T15:56:42
rust-lang/rust
03cab8680b46716f99f94f2a6b0f6a8439653661
82440954730c8eb2984d628e3455010756f57f2f
fix: Fix, clarify and require a value for `proc_macro_cwd` of `CrateData`
[ { "path": "src/tools/rust-analyzer/.github/workflows/ci.yaml", "patch": "@@ -24,7 +24,6 @@ jobs:\n pull-requests: read\n outputs:\n typescript: ${{ steps.filter.outputs.typescript }}\n- proc_macros: ${{ steps.filter.outputs.proc_macros }}\n steps:\n - uses: actions/checkout@v4...
2025-03-29T06:59:59
golang/go
54514c6b2896c6a634a7b8017ade909985172e4d
6de8443f3b324be69a3082a67ce71fa869d1a32b
cmd/go: fix TestScript/cgo_path, cgo_path_space when CC set These tests failed if CC was set to a path containing a separator during make.bash. They now set CC explicitly. Fixes #43897 Change-Id: Ic6e7f192fcb363f0ac9f45b329113255453bf76f Reviewed-on: https://go-review.googlesource.com/c/go/+/286292 Run-TryBot: Jay C...
[ { "path": "src/cmd/go/testdata/script/cgo_path.txt", "patch": "@@ -1,5 +1,12 @@\n [!cgo] skip\n \n+# Set CC explicitly to something that requires a PATH lookup.\n+# Normally, the default is gcc or clang, but if CC was set during make.bash,\n+# that becomes the default.\n+[exec:clang] env CC=clang\n+[exec:gc...
2021-01-25T15:34:28
huggingface/transformers
6432ad8bb5dec9c7ece1041767c9e208ff6b4cbb
dd267fca729621cec18b6199b31671ed9513a82c
Fix pil_torch_interpolation_mapping import in image_processing_detr_fast (#34375) fix pil_torch_interpolation_mapping import
[ { "path": "src/transformers/models/detr/image_processing_detr_fast.py", "patch": "@@ -40,7 +40,6 @@\n get_image_type,\n infer_channel_dimension_format,\n make_list_of_images,\n- pil_torch_interpolation_mapping,\n validate_annotations,\n validate_kwargs,\n )\n@@ -72,7 +71,8 @@\n if is_...
2024-10-24T13:22:50
ollama/ollama
e42300f25b646c2b261261758edbacebd40f00f0
66e73809a1eff2568711739541474f55222d31d3
ml: fix struct field name in comment (#12123)
[ { "path": "ml/backend.go", "patch": "@@ -266,7 +266,7 @@ func (m DeviceMemory) LogValue() slog.Value {\n // allocation is guaranteed to be provided so that if it failed, the caller can\n // accommodate that to make forward progress.\n type BackendMemory struct {\n-\t// InputsWeights are always located on th...
2025-08-31T23:26:11
nodejs/node
acac0f852a02c2b129adbc51e0bd8bd482d791af
0c7e7d49d41cdb80b4fd88b400d2c699462965e5
test: move require http2 to after crypto check Currently test-http2-client-write-empty-string.js will throw "Error [ERR_NO_CRYPTO]: Node.js is not compiled with OpenSSL crypto support" when configured --without-ssl. This commit moves the require of http2 to after the crypto check to avoid this error. PR-URL: https:/...
[ { "path": "test/parallel/test-http2-client-write-empty-string.js", "patch": "@@ -1,12 +1,13 @@\n 'use strict';\n \n const assert = require('assert');\n-const http2 = require('http2');\n \n const common = require('../common');\n if (!common.hasCrypto)\n common.skip('missing crypto');\n \n+const http2 = req...
2018-03-03T18:05:12
rust-lang/rust
676e29ba7fa756f21f6072f6ca58985dd998e377
19f42cb9bb65555e7d95dab7d17573ae6c5d634c
fix docs for `Peekable::next_if{_eq}`
[ { "path": "library/core/src/iter/adapters/peekable.rs", "patch": "@@ -271,7 +271,7 @@ impl<I: Iterator> Peekable<I> {\n /// assert_eq!(iter.next_if(|&x| x == 0), Some(0));\n /// // The next item returned is now 1, so `next_if` will return `None`.\n /// assert_eq!(iter.next_if(|&x| x == 0), None)...
2025-03-28T22:17:31
golang/go
be9612a832186637173e35a2aa83ae193cf8d957
8ee3d398383170e21ba2a63b3a45e1577f97c329
[dev.regabi] os: disable TestDirFS until #42637 is fixed This test is causing nearly every trybot run on dev.regabi and dev.typeparams to fail. It's already a release blocker for Go 1.16, so the failures on the development branches is entirely noise; and because it causes the trybots to short-circuit, it risks masking...
[ { "path": "src/os/os_test.go", "patch": "@@ -2689,6 +2689,9 @@ func TestOpenFileKeepsPermissions(t *testing.T) {\n }\n \n func TestDirFS(t *testing.T) {\n+\tif runtime.GOOS == \"windows\" {\n+\t\tt.Skip(\"workaround for dev.regabi/dev.typeparams until #42637 is fixed\")\n+\t}\n \tif err := fstest.TestFS(Dir...
2021-01-25T05:26:14
huggingface/transformers
dd267fca729621cec18b6199b31671ed9513a82c
30c76d5b2836b9ba6b0e417aafb5ba77b4129ffe
Add T5 GGUF loading support (#33389) * add: GGUFT5Converter * add: tensormapping for t5 * add: test code for t5 * fix: Remove whitespace from blank line * add: t5 fp16 tests * fix: whitespace formatting * fix: minor formatting * fix: testing every weights
[ { "path": "docs/source/en/gguf.md", "patch": "@@ -85,6 +85,7 @@ For now the supported model architectures are the architectures that have been v\n - StableLM\n - GPT2\n - Starcoder2\n+- T5\n \n ## Example usage\n ", "additions": 1, "deletions": 0, "language": "Markdown" }, { "path": "src...
2024-10-24T13:10:59
vercel/next.js
06682d27bb480fcacdc8072d620dd1e37f33040a
c4647bb6300b9d016f0f196db28057913b3b9a82
Fix alias paths for bundling (#40800) In the server layer, we used to alias `react` to the resolved path e.g. `/next.js/node_modules/.pnpm/react@0.0.0-experimental-e6a062bd2-20220913/node_modules/react`, but it turns out that webpack's enhanced resolver can't handle it correctly together with conditions, and the final...
[ { "path": "packages/next/build/webpack-config.ts", "patch": "@@ -826,14 +826,6 @@ export default async function getBaseWebpackConfig(\n [COMPILER_NAMES.edgeServer]: ['browser', 'module', 'main'],\n }\n \n- const reactAliases = {\n- react: reactDir,\n- 'react-dom$': reactDomDir,\n- 'react-dom...
2022-09-22T14:39:19
ollama/ollama
ead4a9a1d073bdc2f175e429daa85f0e3a66fda7
4383a3ab7a075eff78b31f7dc84c747e2fcd22b8
Always filter devices (#12108) * Always filter devices Avoid crashing on unsupported AMD iGPUs * Remove cuda device filtering This interferes with mixed setups
[ { "path": "discover/amd_linux.go", "patch": "@@ -277,6 +277,7 @@ func AMDGetGPUInfo() ([]RocmGPUInfo, error) {\n \t\t\t\t\tFreeMemory: (totalMemory - usedMemory),\n \t\t\t\t},\n \t\t\t\tID: ID,\n+\t\t\t\tfilterID: gpuOrdinalID,\n \t\t\t\tName: name,\n \t\t\t\tCompute: fmt.Spr...
2025-08-29T19:17:31
nodejs/node
b32bcf7e9c4f7f1fa5433b44d2a0933692cf0951
13861da9c01a652191220a7648b7dd814d61d613
process: unify error message from chdir() errors PR-URL: https://github.com/nodejs/node/pull/19088 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo...
[ { "path": "src/node.cc", "patch": "@@ -1580,7 +1580,7 @@ static void Chdir(const FunctionCallbackInfo<Value>& args) {\n node::Utf8Value path(args.GetIsolate(), args[0]);\n int err = uv_chdir(*path);\n if (err) {\n- return env->ThrowUVException(err, \"uv_chdir\");\n+ return env->ThrowUVException(...
2018-03-02T15:31:51
huggingface/transformers
b29c24ff1ed130d717c59b58091cfedb652872d0
f0b3ef9e2e6a76bd22091502899091b47ce7e930
CI: fix failures (#34371) fix
[ { "path": "src/transformers/models/video_llava/modeling_video_llava.py", "patch": "@@ -561,6 +561,7 @@ def forward(\n )\n \n video_features = None\n+ num_frames = 0\n if pixel_values_videos is not None:\n video_features, num_frames = self.get_video_features(\n ...
2024-10-24T11:44:53
golang/go
493eb6e6ec916288ff0ebd8ba9e5cc0cccbdfc74
13f02018aff2b98be8b396635a0a73532ac1722e
[dev.typeparams] cmd/compile: fix -G=3 handling of blank methods Fixes "GO_GCFLAGS=-G=3 go run run.go -- blank.go interface/fail.go". Change-Id: I669ab06ae29366ce96e2948c89a5c1620afd53db Reviewed-on: https://go-review.googlesource.com/c/go/+/286214 Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Go B...
[ { "path": "src/cmd/compile/internal/noder/object.go", "patch": "@@ -79,7 +79,10 @@ func (g *irgen) obj(obj types2.Object) *ir.Name {\n \t\t\t}\n \t\t\ttyp = g.typ(sig)\n \t\t} else {\n-\t\t\tsym = ir.MethodSym(g.typ(recv.Type()), g.selector(obj))\n+\t\t\tsym = g.selector(obj)\n+\t\t\tif !sym.IsBlank() {\n+\...
2021-01-25T07:31:25
vercel/next.js
f51e49f8d54a4f3aa417c540338f1240ea41b9ea
4970d7a0e84dfa4101f09a4476cb123759712bb0
Update stats config for release stats (#40780) This keeps the necessary config for release stats for app dir x-ref: https://github.com/vercel/next.js/pull/40776 Fixes: https://github.com/vercel/next.js/actions/runs/3102008544/jobs/5025346767
[ { "path": "test/.stats-app/next.config.js", "patch": "@@ -1,9 +0,0 @@\n-const withBundleAnalyzer = require('@next/bundle-analyzer')({\n- enabled: !!process.env.TEST_ANALYZE,\n-})\n-\n-module.exports = withBundleAnalyzer({\n- experimental: {\n- appDir: true,\n- },\n-})", "additions": 0, "deleti...
2022-09-22T05:50:08
ollama/ollama
1081532430c68c95e84024af1b4830d48029f02b
59412fbb436f85f62b41231c1df91d1ebe286431
fix keep alive (#12041)
[ { "path": "api/types.go", "patch": "@@ -888,7 +888,7 @@ func (d *Duration) UnmarshalJSON(b []byte) (err error) {\n \t\tif t < 0 {\n \t\t\td.Duration = time.Duration(math.MaxInt64)\n \t\t} else {\n-\t\t\td.Duration = time.Duration(int(t) * int(time.Second))\n+\t\t\td.Duration = time.Duration(t * float64(time...
2025-08-27T18:51:25
huggingface/transformers
05863817d6bdf8183f9acc33c21b7e4fc026005a
65753d6065e4d6e79199c923494edbf0d6248fb1
Better defaults (#34026) * be nice to our usres * nit * fixup * default to -1 * oups * turbo nit * auto infer framework
[ { "path": "src/transformers/generation/utils.py", "patch": "@@ -1440,6 +1440,8 @@ def _prepare_generated_length(\n and not self.config.is_encoder_decoder\n ):\n generation_config.max_length -= inputs_tensor.shape[1]\n+ else: # by default let's always generate 10 new t...
2024-10-24T09:11:55
golang/go
13f02018aff2b98be8b396635a0a73532ac1722e
9456804e860ac6e5a60d4e479182d53328069d13
[dev.typeparams] test: enable more errorcheck tests w/ -G=3 Change-Id: I170e4f9c5a1db4bad02a5fe4bddc65d4c75f51e8 Reviewed-on: https://go-review.googlesource.com/c/go/+/286232 Run-TryBot: Matthew Dempsky <mdempsky@google.com> Trust: Matthew Dempsky <mdempsky@google.com> Trust: Robert Griesemer <gri@golang.org> Reviewed...
[ { "path": "test/run.go", "patch": "@@ -777,18 +777,7 @@ func (t *test) run() {\n \t\t// Excluded flags.\n \t\tfor _, flag := range flags {\n \t\t\tfor _, pattern := range []string{\n-\t\t\t\t\"-+\",\n-\t\t\t\t\"-0\",\n-\t\t\t\t\"-e=0\",\n \t\t\t\t\"-m\",\n-\t\t\t\t\"-live\",\n-\t\t\t\t\"-std\",\n-\t\t\t\t\"...
2021-01-25T05:04:39
vercel/next.js
4970d7a0e84dfa4101f09a4476cb123759712bb0
bf8ee1edb4f6b134ada58e2ea65e33670c0c08ea
Set `__NEXT_NEW_LINK_BEHAVIOR` in Jest tests when `newNextLinkBehavior` is true (#40702) Fixes #40463 Could use some help figuring out where to add a test! I looked around and found [`jest-next-swc.test.ts`](https://github.com/vercel/next.js/blob/canary/test/unit/jest-next-swc.test.ts), but I don't think I can u...
[ { "path": "packages/next/build/jest/jest.ts", "patch": "@@ -1,6 +1,7 @@\n import { loadEnvConfig } from '@next/env'\n import { resolve, join } from 'path'\n import loadConfig from '../../server/config'\n+import { NextConfigComplete } from '../../server/config-shared'\n import { PHASE_TEST } from '../../shar...
2022-09-22T05:36:59
ollama/ollama
86834a279781d04d701babd3f14f36be9cc961e5
85ccf7354dd8b32862e1a27398780094504c7fd8
convert: fix tensor sorting (#12015) there's two bugs here. 1. the check for a layer id is incorrect and should be >= 0 since layer 0 is valid 2. if both tensors have an layer identifier, it will only compare the layer id which will return 0 if the tensors are in the same layer. instead it should fallback to...
[ { "path": "fs/ggml/ggml.go", "patch": "@@ -7,6 +7,7 @@ import (\n \t\"fmt\"\n \t\"io\"\n \t\"log/slog\"\n+\t\"math\"\n \t\"slices\"\n \t\"strings\"\n \n@@ -276,7 +277,7 @@ type Tensor struct {\n \n func (t Tensor) block() (n int) {\n \tif _, err := fmt.Sscanf(t.Name, \"blk.%d.\", &n); err != nil {\n-\t\tret...
2025-08-26T20:57:46
huggingface/transformers
65753d6065e4d6e79199c923494edbf0d6248fb1
b0f0c61899019d316db17a493023828aa44db06d
Remove graph breaks for torch.compile() in flash_attention_forward when Lllama Model is padding free tuned (#33932) * fix: fixes for graph breaks Signed-off-by: Abhishek <maurya.abhishek@ibm.com> * fix: formatting Signed-off-by: Abhishek <maurya.abhishek@ibm.com> * fix: import error Signed-off-by: Abhis...
[ { "path": "docs/source/en/llm_optims.md", "patch": "@@ -348,6 +348,99 @@ model = AutoModelForCausalLM.from_pretrained(\n )\n ```\n \n+### Fine-Tuning with torch.compile and Padding-Free Data Collation\n+\n+In addition to optimizing inference, you can also enhance the training efficiency of large language mo...
2024-10-24T09:02:54
golang/go
ff82cc971aabd113f3b79afb054e287c0d5c5c00
044f937a73dc9a28c36a6c87d55c2211247e7d63
os: force consistent mtime before running fstest on directory on Windows FindFileNext sometimes returns a different mtime than looking at the file directly, because the MFT on NTFS is written to lazily. In order to keep these in sync, we use GetFileInformationByHandle to get the actual mtime, and then write it back to...
[ { "path": "src/os/os_test.go", "patch": "@@ -11,6 +11,7 @@ import (\n \t\"fmt\"\n \t\"internal/testenv\"\n \t\"io\"\n+\t\"io/fs\"\n \t\"os\"\n \t. \"os\"\n \tosexec \"os/exec\"\n@@ -2689,6 +2690,32 @@ func TestOpenFileKeepsPermissions(t *testing.T) {\n }\n \n func TestDirFS(t *testing.T) {\n+\t// On Windows...
2021-01-18T14:23:16
vercel/next.js
ef9ba4509a0dfc7b43df3f0f5bbedf78d6de8327
c2487ce2629a9d061a600c6ecb3b7d28492bead0
Fix: Contentful webhook body parse. (#40732) ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have a helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for i...
[ { "path": "examples/cms-contentful/pages/api/revalidate.js", "patch": "@@ -14,7 +14,7 @@ export default async function handler(req, res) {\n }\n \n try {\n- let postSlug = req.body.fields.slug['en-US']\n+ let postSlug = JSON.parse(req.body).fields.slug['en-US']\n \n // revalidate the individua...
2022-09-22T01:13:54
huggingface/transformers
b0f0c61899019d316db17a493023828aa44db06d
e50bf61decf741c6d59e4ba633b7392712673bda
Add SynthID (watermerking by Google DeepMind) (#34350) * Add SynthIDTextWatermarkLogitsProcessor * esolving comments. * Resolving comments. * esolving commits, * Improving SynthIDWatermark tests. * switch to PT version * detector as pretrained model + style * update training + style * rebase ...
[ { "path": "docs/source/en/internal/generation_utils.md", "patch": "@@ -185,6 +185,9 @@ generation.\n [[autodoc]] SuppressTokensLogitsProcessor\n - __call__\n \n+[[autodoc]] SynthIDTextWatermarkLogitsProcessor\n+ - __call__\n+\n [[autodoc]] TemperatureLogitsWarper\n - __call__\n \n@@ -418,5 +421,2...
2024-10-23T20:18:52
golang/go
044f937a73dc9a28c36a6c87d55c2211247e7d63
b634f5d97a6e65f19057c00ed2095a1a872c7fa8
doc/go1.16: fix WalkDir and Walk links Reported by Ben on golang-dev: https://groups.google.com/g/golang-dev/c/gsoj5Vv15j0/m/XR9CYSRkAgAJ For #40700. Change-Id: If4702cf0e9858aaef99c231251dc646a67d1026e Reviewed-on: https://go-review.googlesource.com/c/go/+/285718 Trust: Tobias Klauser <tobias.klauser@gmail.com> Rev...
[ { "path": "doc/go1.16.html", "patch": "@@ -895,9 +895,9 @@ <h3 id=\"minor_library_changes\">Minor changes to the library</h3>\n <dd>\n <p><!-- CL 267887 -->\n The new function\n- <a href=\"/pkg/path/filepath/WalkDir\"><code>WalkDir</code></a>\n+ <a href=\"/pkg/path/filepath/#WalkDir\">...
2021-01-25T10:14:57
ollama/ollama
2cb0a580f34377c8b014ce20d8fdb370cfc2a12e
7cce5aac76898099b954ee91f748f052d23e3253
thinking: fix double emit when no opening tag The thinking parser will automatically transition to being a pass-through if non-whitespace is seen before an opening tag. However, we weren't clearing the buffer after the first non-whitespace input, so in practice the first token would be emitted twice. Added a test tha...
[ { "path": "thinking/parser.go", "patch": "@@ -103,7 +103,9 @@ func eat(s *Parser) (string, string, bool) {\n \t\t\t// note that we use the original content, not the trimmed one because we\n \t\t\t// don't want to eat any whitespace in the real content if there were no\n \t\t\t// thinking tags\n-\t\t\treturn...
2025-08-22T04:03:12
nodejs/node
8a54f4f67613f63bb196c831af0d84d7c04abb5b
c221355c50f6ee4eafaf7f61e8a468acd061fdda
deps: cherry-pick 0bcb1d6f from upstream V8 Original commit message: Introduce --disallow-code-generation-from-strings Exposing the existing Context::AllowCodeGenerationFromStrings(false) API to the command line. Bug: v8:7134 Change-Id: I062ccff0b03c5bcf6878c41c455c0ded37a1d743 Reviewed-on: ...
[ { "path": "common.gypi", "patch": "@@ -27,7 +27,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.4',\n+ 'v8_embedder_string': '-node.5',\n \n # Enable disassembler for `--print-code...
2017-12-05T20:27:31
vercel/next.js
48264c263ac7cd2c3d183540fa04637ffd52d207
1d7ce56a703f93f80e22cd61842b898587ea7aa0
Update publish to scope as public for initializing (#40778) New scoped packages need to be initialized as public so this adds the `publishConfig` for this. Fixes: https://github.com/vercel/next.js/actions/runs/3101494786/jobs/5023375720
[ { "path": "packages/font/package.json", "patch": "@@ -15,5 +15,8 @@\n \"prepublishOnly\": \"cd ../../ && turbo run build\",\n \"dev\": \"tsc -d -w -p tsconfig.json\",\n \"typescript\": \"tsec --noEmit -p tsconfig.json\"\n+ },\n+ \"publishConfig\": {\n+ \"access\": \"public\"\n }\n }", ...
2022-09-21T23:32:49
huggingface/transformers
e50bf61decf741c6d59e4ba633b7392712673bda
c42b3223db0fc24ff9a694f19e6c78faf3ac58a1
Fix red CI: benchmark script (#34351) * dont'trigger always * fux * oups * update * ?? * ? * aie
[ { "path": ".github/workflows/benchmark.yml", "patch": "@@ -18,21 +18,17 @@ jobs:\n name: Benchmark\r\n runs-on:\r\n group: aws-g5-4xlarge-cache\r\n+ if: |\r\n+ (github.event_name == 'pull_request' && contains( github.event.pull_request.labels.*.name, 'run-benchmark') )||\r\n+ (git...
2024-10-23T16:33:52
ollama/ollama
073fa31df501d7cb943d3fa0fb19841da9651479
91fc3c48e38256e69eb0a52c4540bd9ae0b8a660
llm: Don't always evict models in CPU-only mode With old memory estimates, it's currently impossible to load more than one model at a time when no GPUs are available. This is because the check for whether we need to evict a model looks to see if all layers of the new model can be loaded onto GPUs, which is never true ...
[ { "path": "llm/memory.go", "patch": "@@ -30,7 +30,7 @@ func pickBestFullFitByLibrary(f *ggml.GGML, modelPath string, projectors []strin\n \t\t\t// Try to pack into as few GPUs as possible, starting from 1 GPU\n \t\t\tfor numGPUs := 1; numGPUs <= len(sgl); numGPUs++ {\n \t\t\t\tgpuSubset := sgl[:numGPUs]\n-\...
2025-08-20T19:51:45
rust-lang/rust
5952f01712521d6700a58eeb0ad8b25db7c8fd68
8ab414133f561e930e77ac2a33637d55f93c33c9
Fix trivial typo of `BoundVariableKind`
[ { "path": "src/doc/rustc-dev-guide/src/ty_module/binders.md", "patch": "@@ -40,7 +40,7 @@ We did not always explicitly track the set of bound vars introduced by each `Bin\n ```\n Binder(\n fn(&'^1_0 &'^1 T/#0),\n- &[BoundVariarbleKind::Region(...)],\n+ &[BoundVariableKind::Region(...)],\n )\n ```\...
2025-03-28T19:10:31
huggingface/transformers
d9f733625c43158f3fa52377f2f8bf49350160f3
1fb575fcf0ed6d1895a21e1c28b10b6287bd28ec
Enable Gradient Accumulation fix across all models + trainer fully in forward() (#34283) * Enable grad accum fix across all models + trainer fully in forward() * handle peft case * Account for DDP: need to run scale tests * Use accelerator state * Quality * Guard * Experiment w/ only fairseq fix *...
[ { "path": "src/transformers/models/cohere/modeling_cohere.py", "patch": "@@ -1114,6 +1114,7 @@ def forward(\n return_dict: Optional[bool] = None,\n cache_position: Optional[torch.LongTensor] = None,\n num_logits_to_keep: int = 0,\n+ **loss_kwargs,\n ) -> Union[Tuple, Causa...
2024-10-23T15:24:57
nodejs/node
1e8d110e640c658e4f6ed7540db62d063269ba6c
023f49c5a938ef631260b76876155eaf957084be
lib: port errors to new system This is a first batch of updates that touches non-underscored modules in lib. PR-URL: https://github.com/nodejs/node/pull/19034 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
[ { "path": "lib/assert.js", "patch": "@@ -25,7 +25,13 @@ const {\n isDeepEqual,\n isDeepStrictEqual\n } = require('internal/util/comparisons');\n-const { AssertionError, TypeError, errorCache } = require('internal/errors');\n+const {\n+ AssertionError,\n+ errorCache,\n+ codes: {\n+ ERR_INVALID_ARG_...
2018-02-27T13:55:32
golang/go
9456804e860ac6e5a60d4e479182d53328069d13
7947df436dbc45ae616ec1f1821266e0867aad80
[dev.typeparams] test: fix excluded files lookup so it works on Windows Updates #43866. Change-Id: I15360de11a48c6f23f25c5ff3a15c117a34127ff Reviewed-on: https://go-review.googlesource.com/c/go/+/286034 Trust: Robert Griesemer <gri@golang.org> Run-TryBot: Robert Griesemer <gri@golang.org> Reviewed-by: Matthew Dempsky...
[ { "path": "test/run.go", "patch": "@@ -766,9 +766,10 @@ func (t *test) run() {\n \t\t// eliminate the flag list.\n \n \t\t// Excluded files.\n-\t\tif excluded[t.goFileName()] {\n+\t\tfilename := strings.Replace(t.goFileName(), \"\\\\\", \"/\", -1) // goFileName() uses \\ on Windows\n+\t\tif excluded[filenam...
2021-01-23T19:43:46
vercel/next.js
1d7ce56a703f93f80e22cd61842b898587ea7aa0
4607140a7f1922190a0be8b3017e4fd8c39f69ed
chore(examples): lock `msw` version in `with-msw` example (#40777) Closes #40775 <!-- 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 that yo...
[ { "path": "examples/with-msw/package.json", "patch": "@@ -6,7 +6,7 @@\n \"start\": \"next start\"\n },\n \"dependencies\": {\n- \"msw\": \"^0.44.2\",\n+ \"msw\": \"0.47.3\",\n \"next\": \"latest\",\n \"react\": \"^18.2.0\",\n \"react-dom\": \"^18.2.0\"", "additions": 1, "de...
2022-09-21T23:06:29
rust-lang/rust
dd4f616423219d81ffd34786d6a589b3ad7ba803
2a06022951893fe5b5384f8dbd75b4e6e3b5cee0
std: deduplicate `errno` accesses By marking `__errno_location` as `#[ffi_const]` and `std::sys::os::errno` as `#[inline]`, this PR allows merging multiple calls to `io::Error::last_os_error()` into one.
[ { "path": "library/std/src/lib.rs", "patch": "@@ -297,6 +297,7 @@\n #![feature(extended_varargs_abi_support)]\n #![feature(f128)]\n #![feature(f16)]\n+#![feature(ffi_const)]\n #![feature(formatting_options)]\n #![feature(if_let_guard)]\n #![feature(intra_doc_pointers)]", "additions": 1, "deletions":...
2025-03-28T18:32:36
huggingface/transformers
343c8cb86f2ab6a51e7363ee11f69afb1c9e839e
5ba85de7a434dc6d81c4d2f9ece0ad930c66d043
Added Deberta model type support (#34308) * Added Deberta model type for 'add_prefix_space' functionality * housekeeping --------- Co-authored-by: Filippos Ventirozos <filippos.ventirozos@autotrader.co.uk>
[ { "path": "examples/pytorch/token-classification/run_ner.py", "patch": "@@ -366,7 +366,7 @@ def get_label_list(labels):\n )\n \n tokenizer_name_or_path = model_args.tokenizer_name if model_args.tokenizer_name else model_args.model_name_or_path\n- if config.model_type in {\"bloom\", \"gpt2\", \"ro...
2024-10-23T09:15:36
nodejs/node
023f49c5a938ef631260b76876155eaf957084be
ae3137049f619b0de01b063075ece994ff2dc741
module: fix cyclical dynamic import ensures that instantiation result is only used during initial loading PR-URL: https://github.com/nodejs/node/pull/18965 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Jeremiah Senkpiel ...
[ { "path": "lib/internal/loader/ModuleJob.js", "patch": "@@ -50,10 +50,11 @@ class ModuleJob {\n }\n \n async instantiate() {\n- if (this.instantiated) {\n- return this.instantiated;\n+ if (!this.instantiated) {\n+ return this.instantiated = this._instantiate();\n }\n- return this....
2018-02-23T20:21:49
golang/go
cd99385ff4a4b7534c71bb92420da6f462c5598e
66ee8b158f0a9e9fdc6cc2118926cb4bea497128
cmd/internal/obj/arm64: fix VMOVQ instruction encoding error The VMOVQ instruction moves a 128-bit constant into a V register, as 128-bit constant can't be loaded into a register directly, we split it into two 64-bit constants and load it from constant pool. Currently we add the 128-bit constant to literal pool by cal...
[ { "path": "src/cmd/internal/obj/arm64/asm7.go", "patch": "@@ -280,7 +280,7 @@ func MOVCONST(d int64, s int, rt int) uint32 {\n const (\n \t// Optab.flag\n \tLFROM = 1 << 0 // p.From uses constant pool\n-\tLFROM3 = 1 << 1 // p.From3 uses constant pool\n+\tLFROM128 = 1 << 1 // p.From3<<64+p.From forms...
2021-01-14T07:14:02
rust-lang/rust
7a295d1be07d191527dfcdf4613ced7ab6fa9676
90f5eab952728ac6edcf529a171f7de5c25e5d49
Fix TAIT & ATPIT feature gating in the presence of anon consts
[ { "path": "compiler/rustc_ast_passes/src/feature_gate.rs", "patch": "@@ -99,6 +99,13 @@ impl<'a> PostExpansionVisitor<'a> {\n }\n visit::walk_ty(self, ty);\n }\n+\n+ fn visit_anon_const(&mut self, _: &ast::AnonConst) -> Self::Result {\n+ ...
2025-03-28T14:14:35
ollama/ollama
fc5fb09f514758ae9f59b11632c3d8f32e951d49
048bd4472adf2bdb41c16010ab286e072252bfd2
model: fix boundary in bpe 0x007e is a tilde and was getting adjusted (+0x00a2) to 0x0120 in the encode, but then in the decode it was getting adjusted down (-0x0100) to 0x0020. The boundary for the +0x00a2 case has been adjusted to fix this Fixes: #11966
[ { "path": "model/bytepairencoding.go", "patch": "@@ -109,7 +109,7 @@ func (bpe BytePairEncoding) Encode(s string, addSpecial bool) ([]int32, error) {\n \t\t\t\t\tr = 0x0143\n \t\t\t\tcase r <= 0x0020:\n \t\t\t\t\tr = r + 0x0100\n-\t\t\t\tcase r >= 0x007e && r <= 0x00a0:\n+\t\t\t\tcase r >= 0x007f && r <= 0x...
2025-08-20T01:34:49
vercel/next.js
97b31873e174a35bb07533b9e8829013c16549bf
11dd1de655bfdab82d96b7bfe76c6fa1ef70337d
next-swc: add next-font-loaders to crates/core (#40221) For some context: https://vercel.slack.com/archives/CGU8HUTUH/p1662124179102509 Transforms call expressions of imported functions, only affects imports specified in SWC options. Each argument is turned into JSON and appended to the import as a query. The qu...
[ { "path": "packages/next-swc/crates/core/src/lib.rs", "patch": "@@ -36,6 +36,7 @@ use serde::Deserialize;\n use std::cell::RefCell;\n use std::rc::Rc;\n use std::{path::PathBuf, sync::Arc};\n+use swc_core::ecma::atoms::JsWord;\n \n use swc_core::{\n base::config::ModuleConfig,\n@@ -51,6 +52,7 @@ mod aut...
2022-09-21T20:35:49
huggingface/transformers
5ba85de7a434dc6d81c4d2f9ece0ad930c66d043
049682a5a63042f087fb45ff128bfe281b2ff98b
[docs] Fix Korean toctree (#34324) fix
[ { "path": "docs/source/ko/_toctree.yml", "patch": "@@ -332,7 +332,6 @@\n title: (번역중) BertGeneration\n - local: model_doc/bert-japanese\n title: 일본어 Bert\n- - local: in_translation\n - local: model_doc/bertweet\n title: Bertweet\n - local: in_translation", ...
2024-10-23T08:52:51
nodejs/node
29697ef3de024a20787064216cdcb8d2466a7921
35c7238bb793ee6c6aa9f5f4f3577e94ea2b9837
build: fix gocvr version used for coverage Fix the gcovr version to a fixed version and uses patches specific to that version. This avoids us being broken by changes in the gcovr repo. Using file name for patches specific to the version level will allow us to move up when necessary without breaking coverage for earlie...
[ { "path": "Makefile", "patch": "@@ -172,13 +172,13 @@ coverage-build: all\n \t\t$(NODE) ./deps/npm install istanbul-merge --no-save --no-package-lock; fi\n \tif [ ! -d node_modules/nyc ]; then \\\n \t\t$(NODE) ./deps/npm install nyc --no-save --no-package-lock; fi\n-\tif [ ! -d gcovr ]; then git clone --dep...
2018-03-02T18:39:10
golang/go
7947df436dbc45ae616ec1f1821266e0867aad80
a49e9410276975d187a5cfda1a396194c45d4464
[dev.typeparams] test: set -G=3 and enable more errorcheck tests in run.go Change-Id: I9591f7aeab0448aca661560bf3064e057b48293e Reviewed-on: https://go-review.googlesource.com/c/go/+/286012 Trust: Robert Griesemer <gri@golang.org> Trust: Dan Scales <danscales@google.com> Run-TryBot: Robert Griesemer <gri@golang.org> T...
[ { "path": "test/run.go", "patch": "@@ -786,13 +786,6 @@ func (t *test) run() {\n \t\t\t\t\"append\",\n \t\t\t\t\"slice\",\n \t\t\t\t\"typeassert\",\n-\t\t\t\t\"ssa/check_bce/debug\",\n-\t\t\t\t\"ssa/intrinsics/debug\",\n-\t\t\t\t\"ssa/opt/debug\",\n-\t\t\t\t\"ssa/prove/debug\",\n-\t\t\t\t\"ssa/likelyadjust/...
2021-01-23T01:49:57
huggingface/transformers
b03dc0a87e28601bdfbf2e5380f03e3e3b0fc203
4b14aa1bcd0c4bd5fe46c43330ef62d4d0b8f1b4
🌐 [i18n-KO] Translated `bert japanese.md` to Korean (#33890) * docs: ko: bert-japanese.md * Update _toctree.yml * fix: manual edits * Update docs/source/ko/_toctree.yml Co-authored-by: Sungmin Oh <fabxoe.kor@gmail.com> * Update docs/source/ko/_toctree.yml Co-authored-by: Sungmin Oh <fabxoe.kor@gmail...
[ { "path": "docs/source/ko/_toctree.yml", "patch": "@@ -330,8 +330,9 @@\n title: (번역중) BERT\n - local: in_translation\n title: (번역중) BertGeneration\n+ - local: model_doc/bert-japanese\n+ title: 일본어 Bert\n - local: in_translation\n- title: (번역중) BertJapanese\n ...
2024-10-22T16:46:31
vercel/next.js
11dd1de655bfdab82d96b7bfe76c6fa1ef70337d
6d4f263121d8453957250b5b1f06779707b7e932
Remove unnecessary experimental flag (#40766) `config.experimental.serverComponents` is currently required to be enabled or disabled together with `config.experimental.appDir` (which means `serverComponents === appDir` otherwise it will throw) so there is no reason to keep both of them. This PR removes `serverCompo...
[ { "path": "packages/next/build/index.ts", "patch": "@@ -270,11 +270,7 @@ export default async function build(\n setGlobal('phase', PHASE_PRODUCTION_BUILD)\n setGlobal('distDir', distDir)\n \n- // We enable concurrent features (Fizz-related rendering architecture) when\n- // using React...
2022-09-21T19:30:46
golang/go
48badc5fa863ce5e7e8ac9f268f13955483070e3
51e1819a8d2ecb6ed292ca363cbb8edfea4aea65
[dev.regabi] cmd/compile: fix escape analysis problem with closures In reflect.methodWrapper, we call escape analysis without including the full batch of dependent functions, including the closure functions. Because of this, we haven't created locations for the params/local variables of a closure when we are processin...
[ { "path": "src/cmd/compile/internal/escape/escape.go", "patch": "@@ -781,6 +781,16 @@ func (e *escape) exprSkipInit(k hole, n ir.Node) {\n \t\t\t\t}\n \t\t\t}\n \n+\t\t\tfor _, n := range fn.Dcl {\n+\t\t\t\t// Add locations for local variables of the\n+\t\t\t\t// closure, if needed, in case we're not includ...
2021-01-23T00:07:00
nodejs/node
0c25cdf39a40a94fcb829ea91caa217d640054b1
b24d65dcdc74074304405522a190daf782048133
tls,http2: handle writes after SSL destroy more gracefully This might otherwise result in a hard crash when trying to write to a socket after a sudden disconnect. Note that the test here uses an aborted `h2load` run to create the failing requests; That’s far from ideal, but it provides a reasonably reliably reproduct...
[ { "path": "src/tls_wrap.cc", "patch": "@@ -553,7 +553,12 @@ int TLSWrap::DoWrite(WriteWrap* w,\n size_t count,\n uv_stream_t* send_handle) {\n CHECK_EQ(send_handle, nullptr);\n- CHECK_NE(ssl_, nullptr);\n+\n+ if (ssl_ == nullptr) {\n+ ClearError();\n+ erro...
2018-02-25T20:56:08
huggingface/transformers
4b14aa1bcd0c4bd5fe46c43330ef62d4d0b8f1b4
688eeac81e6491d31746d8bef88429f96540daad
🌐 [i18n-KO] Translated `executorch.md` to Korean (#33888) * docs: ko: executorch.md * Update _toctree.yml * fix: manual edits * Update docs/source/ko/main_classes/executorch.md Co-authored-by: HyeokJun SHIN <96534680+jun048098@users.noreply.github.com> * Update docs/source/ko/_toctree.yml Co-authore...
[ { "path": "docs/source/ko/_toctree.yml", "patch": "@@ -308,6 +308,8 @@\n title: Trainer\n - local: deepspeed\n title: DeepSpeed\n+ - local: main_classes/executorch\n+ title: ExecuTorch\n - local: main_classes/feature_extractor\n title: 특성 추출기\n - local: in_translation",...
2024-10-22T16:46:20
vercel/next.js
6d4f263121d8453957250b5b1f06779707b7e932
c5f1e2f76d7928d705ee4b4bdc0729afdf48ded4
Improved bundling strategy for the server graph (#40739) This PR changes the external module resolution to eagerly bundle node_modules, and some specific Next.js internal modules, if on the `WEBPACK_LAYERS.server` layer. While resolving corresponding packages, we use the `react-server` export condition (fallbacks t...
[ { "path": "packages/next-swc/crates/core/src/react_server_components.rs", "patch": "@@ -395,8 +395,14 @@ pub fn server_components<C: Comments>(\n JsWord::from(\"client-only\"),\n JsWord::from(\"react-dom/client\"),\n JsWord::from(\"react-dom/server\"),\n+ // TO...
2022-09-21T18:45:33
rust-lang/rust
cdbb219f835ebb3dad05a02c48afa10c33f21f2b
524d0205a0b0ff0edc9cd72dae0e8fab29391357
Fix code generation link
[ { "path": "src/doc/rustc-dev-guide/src/tests/codegen-backend-tests/intro.md", "patch": "@@ -1,6 +1,6 @@\n # Codegen backend testing\n \n-See also the [Code generation](../../../src/backend/codegen.md) chapter.\n+See also the [Code generation](../../backend/codegen.md) chapter.\n \n In addition to the primar...
2025-03-28T15:38:32
nodejs/node
b24d65dcdc74074304405522a190daf782048133
a8b5192fefe54b140ae923e749104b49c5d3be49
lib: re-fix v8_prof_processor Make the script not error out immediately because of a missing pseudo-global. (Note that it seems like tests are still broken on `master`.) PR-URL: https://github.com/nodejs/node/pull/19059 Fixes: https://github.com/nodejs/node/issues/19044 Refs: https://github.com/nodejs/node/pull/18623...
[ { "path": "lib/internal/v8_prof_processor.js", "patch": "@@ -34,9 +34,9 @@ if (process.platform === 'darwin') {\n tickArguments.push('--windows');\n }\n tickArguments.push.apply(tickArguments, process.argv.slice(1));\n-script = `(function(require) {\n+script = `(function(module, require) {\n arguments =...
2018-02-28T14:23:08
vercel/next.js
c5f1e2f76d7928d705ee4b4bdc0729afdf48ded4
fc179d14aee09c25a401d0e27684b1abdeefb6af
Add test case for /404 client transition (#40734) This adds a test case verifying client transitions to `/404` or `/_error` are working properly. Test deployment with patched reproduction can be seen here https://router-bug-repro-4bozmev4p-ijjk-testing.vercel.app/blocked Closes: https://github.com/vercel/next....
[ { "path": "test/e2e/basepath.test.ts", "patch": "@@ -97,6 +97,36 @@ describe('basePath', () => {\n afterAll(() => next.destroy())\n \n const runTests = (isDev = false, isDeploy = false) => {\n+ it('should navigate to /404 correctly client-side', async () => {\n+ const browser = await webdriver(n...
2022-09-21T18:29:52
huggingface/transformers
688eeac81e6491d31746d8bef88429f96540daad
a65a6ce7fece0ec44970b2e142729f33a98ac801
[docs] fix typo (#34235) fix typo
[ { "path": "docs/source/en/quicktour.md", "patch": "@@ -360,17 +360,17 @@ One particularly cool 🤗 Transformers feature is the ability to save a model a\n ```py\n >>> from transformers import AutoModel\n \n->>> tokenizer = AutoTokenizer.from_pretrained(tf_save_directory)\n->>> pt_model = AutoModelForSequence...
2024-10-22T16:46:07
ollama/ollama
e3ade453a8f96a5534ae804e32a44aeb0159befa
ec8bf5e6c57a0a2a78c41cea4e9619b384f2ea39
llm: Check for nil memory data before printing We dump out our best memory estimate after we complete processing for any reason, including errors. This is helpful for finding what what stopped us in error conditions but in some cases we might not have gotten even the first result yet. Fixes #11957
[ { "path": "llm/server.go", "patch": "@@ -651,7 +651,9 @@ func (s *ollamaServer) Load(ctx context.Context, gpus discover.GpuInfoList, requ\n \t\tif !success {\n \t\t\ts.initModel(ctx, LoadRequest{}, LoadOperationClose)\n \t\t}\n-\t\ts.mem.Log(slog.LevelInfo)\n+\t\tif s.mem != nil {\n+\t\t\ts.mem.Log(slog.Lev...
2025-08-18T20:52:07
rust-lang/rust
0f418520c649f6bd0e731b4315a7c79b40df8e0e
e77a8f439cc87c5d67b007e9811578533de1de91
Fix formatting nit in process.rs
[ { "path": "library/std/src/process.rs", "patch": "@@ -1836,7 +1836,7 @@ impl crate::sealed::Sealed for ExitStatusError {}\n /// # if cfg!(unix) {\n /// use std::process::{Command, ExitStatusError};\n ///\n-/// fn run(cmd: &str) -> Result<(),ExitStatusError> {\n+/// fn run(cmd: &str) -> Result<(), ExitStatus...
2025-03-28T12:22:09
nodejs/node
a8b5192fefe54b140ae923e749104b49c5d3be49
648d668fcc29dafeb99f90d89087b682457f96b3
repl: make last error available as `_error` This is pretty useful when trying to inspect the last error caught by a REPL, and is made to be analogous to `_`, which contains the last successful completion value. PR-URL: https://github.com/nodejs/node/pull/18919 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By:...
[ { "path": "doc/api/repl.md", "patch": "@@ -142,6 +142,12 @@ global or scoped variable, the input `fs` will be evaluated on-demand as\n ```\n \n #### Assignment of the `_` (underscore) variable\n+<!-- YAML\n+changes:\n+ - version: REPLACEME\n+ pr-url: https://github.com/nodejs/node/pull/18919\n+ descr...
2018-02-21T20:50:20
huggingface/transformers
a65a6ce7fece0ec44970b2e142729f33a98ac801
e7c3fa7f57ea5df2eedc6c7766ade06d75060904
fix error in _get_eval_sampler when group_by_length enabled (#34237) * remove self in _get_eval_sampler * remove self in front of _get_eval_sampler
[ { "path": "src/transformers/trainer.py", "patch": "@@ -965,7 +965,7 @@ def get_train_dataloader(self) -> DataLoader:\n return self.accelerator.prepare(DataLoader(train_dataset, **dataloader_params))\n \n def _get_eval_sampler(self, eval_dataset: Dataset) -> Optional[torch.utils.data.Sampler]:\n-...
2024-10-22T16:02:42
nodejs/node
68d508a9e03923a5ae6a53a1adff66c4e3f97263
f2d93795bfe61a3260bf743d2247b56b83fc6f70
events: show throw stack trace for uncaught exception Show the stack trace for the `eventemitter.emit('error')` call in the case of an uncaught exception. Previously, there would be no clue in Node’s output about where the actual `throw` comes from. PR-URL: https://github.com/nodejs/node/pull/19003 Reviewed-By: Benj...
[ { "path": "lib/events.js", "patch": "@@ -98,6 +98,47 @@ EventEmitter.prototype.getMaxListeners = function getMaxListeners() {\n return $getMaxListeners(this);\n };\n \n+// Returns the longest sequence of `a` that fully appears in `b`,\n+// of length at least 3.\n+// This is a lazy approach but should work...
2018-02-26T14:46:50
ollama/ollama
8de1da4767d2e580977888a8f189b29bd81e1e51
d925b5350c75a66e7830e00f53b243084395821f
server: add debug option for printing out prompt instead of calling model
[ { "path": "api/types.go", "patch": "@@ -90,6 +90,10 @@ type GenerateRequest struct {\n \t// (request that thinking _not_ be used) and unset (use the old behavior\n \t// before this option was introduced)\n \tThink *ThinkValue `json:\"think,omitempty\"`\n+\n+\t// DebugRenderOnly is a debug option that, when ...
2025-08-15T20:52:50
golang/go
51e1819a8d2ecb6ed292ca363cbb8edfea4aea65
7e0a81d2806b073c6455f73b10fbf2c811703f46
[dev.regabi] cmd/compile: scan body of closure in tooHairy to check for disallowed nodes Several of the bugs in #43818 are because we were not scanning the body of an possibly inlined closure in tooHairy(). I think this scanning got lost in the rebase past some of the ir changes. This fixes the issue related to the SE...
[ { "path": "src/cmd/compile/internal/inline/inl.go", "patch": "@@ -354,10 +354,16 @@ func (v *hairyVisitor) doNode(n ir.Node) bool {\n \t\treturn true\n \n \tcase ir.OCLOSURE:\n-\t\t// TODO(danscales) - fix some bugs when budget is lowered below 30\n+\t\t// TODO(danscales) - fix some bugs when budget is lowe...
2021-01-22T22:32:06
huggingface/transformers
e7c3fa7f57ea5df2eedc6c7766ade06d75060904
96f67c068b43ef209f1d230d2eda4f1ab27b7550
Fix continue_final_message for image-text-to-text chat templates (#34236) * fix continue_final_message for vlms * Add one test for vlms continue_final_message chat template
[ { "path": "src/transformers/tokenization_utils_base.py", "patch": "@@ -1874,7 +1874,10 @@ def apply_chat_template(\n **template_kwargs,\n )\n if continue_final_message:\n- final_message = chat[-1][\"content\"].strip()\n+ final_mes...
2024-10-22T15:57:44
nodejs/node
7bc8eb8da7ccdcd67edaf612b6599ec04ab77cb1
f2b9805f85d3ff770892b37944a0890e0e60ca78
http2: refer to stream errors by name Display the constant name instead of a stream error code in the error message, because the numerical codes give absolutely no clue about what happened when an error is emitted. PR-URL: https://github.com/nodejs/node/pull/18966 Reviewed-By: James M Snell <jasnell@gmail.com> Review...
[ { "path": "lib/internal/http2/core.js", "patch": "@@ -63,7 +63,7 @@ const {\n } = require('internal/timers');\n \n const { ShutdownWrap, WriteWrap } = process.binding('stream_wrap');\n-const { constants } = binding;\n+const { constants, nameForErrorCode } = binding;\n \n const NETServer = net.Server;\n cons...
2018-02-23T21:28:29
ollama/ollama
6eaf194b8540bdec2b96eafcf98481f4400bdf1e
d5a0d8d904baaf66a5326463a409fe4fa09b2dd2
fix arm linux build when HWCAP2_SVE2 undefined (#11908)
[ { "path": "ml/backend/ggml/ggml/src/ggml-cpu/arch/arm/arm.go", "patch": "@@ -1,5 +1,5 @@\n package arm\n \n // #cgo CXXFLAGS: -std=c++17\n-// #cgo CPPFLAGS: -I${SRCDIR}/../.. -I${SRCDIR}/../../.. -I${SRCDIR}/../../../../include\n+// #cgo CPPFLAGS: -I${SRCDIR}/../.. -I${SRCDIR}/../../.. -I${SRCDIR}/../../../...
2025-08-14T23:38:53
huggingface/transformers
eef6b0ba42c062eb8b2180327045c89199ea93f8
c14ccbcd64948478a14a6a55ba2d5d788efa72f9
Add option for running ffmpeg_microphone_live as a background process (#32838) * Add option for running ffmpeg_microphone_live as a background process * Code quality checks for audio_utils * Code clean up for audio_utils * Fixing logic in ffmpeg_microphone calls in audio_utils * Allowing any arbitrary argu...
[ { "path": "src/transformers/pipelines/audio_utils.py", "patch": "@@ -51,6 +51,7 @@ def ffmpeg_microphone(\n chunk_length_s: float,\n format_for_conversion: str = \"f32le\",\n ffmpeg_input_device: Optional[str] = None,\n+ ffmpeg_additional_args: Optional[list[str]] = None,\n ):\n \"\"\"\n ...
2024-10-22T13:56:41
golang/go
25c39e4fb5e5fc7c3840228158cd6f2345c9dc07
eb21b31e487344fb0045b3ef7b14df9521b94952
io/ioutil: fix example test for WriteFile to allow it to run in the playground The example for WriteFile assumed the existence of a testdata/ directory, which is not present on the playground. The example now writes the file to the current working directory, rather than to testdata/. Fixes #32916 Change-Id: I577caac...
[ { "path": "src/io/ioutil/example_test.go", "patch": "@@ -125,7 +125,7 @@ func ExampleReadFile() {\n \n func ExampleWriteFile() {\n \tmessage := []byte(\"Hello, Gophers!\")\n-\terr := ioutil.WriteFile(\"testdata/hello\", message, 0644)\n+\terr := ioutil.WriteFile(\"hello\", message, 0644)\n \tif err != nil {...
2021-01-18T17:41:36
rust-lang/rust
3e960c12d8004135a2c864a6d54753df806aeff6
c2922d1213800157f013645d3dba6e8ed584b3a4
Make missing_const_for_fn operate on non-optimized MIR This has two reasons: First of all we don't need the optimized MIR for evaluating the checks of this lint, as const-eval anyways operates on `mir_for_ctf` which is derived from `mir_drops_elaborated_and_const_checked`. Second of all we might transform MIR in the o...
[ { "path": "clippy_lints/src/missing_const_for_fn.rs", "patch": "@@ -155,9 +155,9 @@ impl<'tcx> LateLintPass<'tcx> for MissingConstForFn {\n return;\n }\n \n- let mir = cx.tcx.optimized_mir(def_id);\n+ let mir = cx.tcx.mir_drops_elaborated_and_const_checked(def_id);\n \n- ...
2025-01-15T15:01:56
nodejs/node
584cfc9bae47197811126180c64f1983cad506ed
caaf7e3a9f119e8fec1018ea835210b50c6d47f7
http2: no stream destroy while its data is on the wire This fixes a crash that occurred when a `Http2Stream` write is completed after it is already destroyed. Instead, don’t destroy the stream in that case and wait for GC to take over. PR-URL: https://github.com/nodejs/node/pull/19002 Fixes: https://github.com/nodej...
[ { "path": "src/node_http2.cc", "patch": "@@ -1700,6 +1700,14 @@ void Http2Session::OnStreamRead(ssize_t nread, const uv_buf_t& buf) {\n stream_buf_ = uv_buf_init(nullptr, 0);\n }\n \n+bool Http2Session::HasWritesOnSocketForStream(Http2Stream* stream) {\n+ for (const nghttp2_stream_write& wr : outgoing_bu...
2018-02-26T14:23:25