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
621911a67702661b3ce4f2ce482193407d2fc412
b27a2bbe26b5d4499ca71091e955e7bc7b8b1a4a
Fix various typos in lint messages, descriptions and comments
[ { "path": "clippy_lints/src/attrs/repr_attributes.rs", "patch": "@@ -30,7 +30,7 @@ pub(super) fn check(cx: &LateContext<'_>, item_span: Span, attrs: &[Attribute],\n diag.warn(\n \"unqualified `#[repr(packed)]` defaults to `#[repr(Rust, packed)]`, which has no stab...
2025-03-24T14:58:40
huggingface/transformers
8258219c4cd15b997f1d0c2219a27563ffb366a3
253a9a9d6fc9f83b829388de002abd756210df6a
🌐 [i18n-KO] Translated `auto.md` to Korean (#33590) * docs: ko: model_doc/auto.md * feat: nmt draft * fix: manual edits * fix: resolve suggestions Co-authored-by: wony617 <49024958+Jwaminju@users.noreply.github.com> Co-authored-by: YONGSANG <71686691+4N3MONE@users.noreply.github.com> * fix: resolve su...
[ { "path": "docs/source/ko/_toctree.yml", "patch": "@@ -270,8 +270,8 @@\n - sections:\n - local: main_classes/agent\n title: 에이전트와 도구\n- - local: in_translation\n- title: (번역중) Auto Classes\n+ - local: model_doc/auto\n+ title: 자동 클래스\n - local: in_translation\n title: (번...
2024-10-07T22:34:45
ollama/ollama
97fe45e36da2880bef95398fda711f09c3028998
64a9cc8f05c44a7267c73eaa8bd61ea077c5280a
server: add `OpenAI-Beta` header to CORS safelist alphabetized the compat list and then added a single header fixes: #9801
[ { "path": "server/routes.go", "patch": "@@ -1152,17 +1152,18 @@ func (s *Server) GenerateRoutes(rc *ollama.Registry) (http.Handler, error) {\n \t\t\"X-Requested-With\",\n \n \t\t// OpenAI compatibility headers\n+\t\t\"OpenAI-Beta\",\n+\t\t\"x-stainless-arch\",\n+\t\t\"x-stainless-async\",\n+\t\t\"x-stainles...
2025-04-14T22:36:10
nodejs/node
a27e443df3ae17e9110df043ca2a54d4bd8686f0
18e728474031911650992fee9cd113be0d00d67e
test: fix missing param in benchmark-timers PR-URL: https://github.com/nodejs/node/pull/18734 Fixes: https://github.com/nodejs/node/issues/18730 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
[ { "path": "test/parallel/test-benchmark-timers.js", "patch": "@@ -7,6 +7,7 @@ const runBenchmark = require('../common/benchmark');\n runBenchmark('timers',\n [\n 'type=depth',\n+ 'n=1',\n 'millions=0.000001',\n 'thousands=0.001'\n ...
2018-02-12T14:20:59
vercel/next.js
391f6a95595556cc729b26c9e180bc423a6c14b6
d0fc673f5217ecdf4e53b739ce89a864fd970e0b
Fix styled-jsx macro imports (#40234) x-ref: https://github.com/vercel/next.js/runs/8189857484?check_suite_focus=true run with `test/e2e/swc-warnings/index.test.ts` locally it passed
[ { "path": "packages/next/package.json", "patch": "@@ -74,7 +74,7 @@\n \"@swc/helpers\": \"0.4.11\",\n \"caniuse-lite\": \"^1.0.30001332\",\n \"postcss\": \"8.4.14\",\n- \"styled-jsx\": \"5.0.5\",\n+ \"styled-jsx\": \"5.0.6\",\n \"use-sync-external-store\": \"1.2.0\"\n },\n \"peerDe...
2022-09-05T18:39:42
huggingface/transformers
253a9a9d6fc9f83b829388de002abd756210df6a
178d707b7e80c04bf7ae9ecd6dc5ae29c88029a7
🌐 [i18n-KO] Translated `logging.md` to Korean (#33543) * docs: ko: main_classes/logging.md * feat: nmt-draft * fix: update toctree.yml * Update docs/source/ko/main_classes/logging.md Co-authored-by: Sungmin Oh <fabxoe.kor@gmail.com> * Update docs/source/ko/main_classes/logging.md Co-authored-by: Hye...
[ { "path": "docs/source/ko/_toctree.yml", "patch": "@@ -282,8 +282,8 @@\n title: (번역중) Data Collator\n - local: in_translation\n title: (번역중) Keras callbacks\n- - local: in_translation\n- title: (번역중) Logging\n+ - local: main_classes/logging\n+ title: 로깅\n - local: in_tran...
2024-10-07T22:34:34
rust-lang/rust
856a181570371e1622bcb42ef94fc23090f93a12
ae8ab87de4d8caab5d91a027bc19bb5d5e8a3691
Fix autofix for `self` and `self as …` in `unused_imports` lint This fixes two problems with the autofixes for the `unused_imports` lint: - `use std::collections::{HashMap, self as coll};` would suggest, when `HashMap` is unused, the incorrect `use std::collections::self as coll;` which does not compile. - `use ...
[ { "path": "compiler/rustc_resolve/src/check_unused.rs", "patch": "@@ -337,7 +337,8 @@ fn calc_unused_spans(\n }\n }\n contains_self |= use_tree.prefix == kw::SelfLower\n- && matches!(use_tree.kind, ast::UseTreeKind::Simple(None));\n+ ...
2025-03-24T10:53:09
ollama/ollama
f50d691254e671e69975c4e54fc4d0469b538f10
34c3b68fc8a14eb5a93f6bdd175fa94e2e8fa12b
ggml: Fix memory leak on input tensors For every forward pass through the model, we need to allocate input tensors: tokens, images, positions, outputs and masks. These get allocated in system memory. However, when we close the context that the tensors were allocated through, the metadata gets freed but the actual bac...
[ { "path": "ml/backend/ggml/ggml.go", "patch": "@@ -447,13 +447,16 @@ func (b *Backend) NewContextSize(n int) ml.Context {\n \t\tpanic(fmt.Errorf(\"requested number of graph nodes (%v) for new context exceeds maximum (%v)\", n, b.maxGraphNodes))\n \t}\n \n+\tvar allocatedBuffers []*C.struct_ggml_backend_buff...
2025-04-08T19:11:55
nodejs/node
18e728474031911650992fee9cd113be0d00d67e
c3ff89920e43a246324842c915d33893a7456568
test: fix and improve error message Add unexpected value to dgram socket type assertion and fix the size entry. PR-URL: https://github.com/nodejs/node/pull/18449 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
[ { "path": "test/parallel/test-dgram-createSocket-type.js", "patch": "@@ -52,10 +52,12 @@ validTypes.forEach((validType) => {\n // note: linux will double the buffer size\n assert.ok(socket.getRecvBufferSize() === 10000 ||\n socket.getRecvBufferSize() === 20000,\n- 'SO_RCVB...
2018-02-01T23:57:37
huggingface/transformers
178d707b7e80c04bf7ae9ecd6dc5ae29c88029a7
13432f84090b0fdb4d1a2c0413aa97af526c3e66
🌐 [i18n-KO] Translated `chameleon.md` to Korean (#33799) * docs: ko: chameleon.md * feat: nmt draft * fix: manual edits * fix: resolve suggestions Co-authored-by: Jiwook Han <33192762+mreraser@users.noreply.github.com> Co-authored-by: Chulhwa (Evan) Han <cjfghk5697@ajou.ac.kr> --------- Co-authored...
[ { "path": "docs/source/ko/_toctree.yml", "patch": "@@ -667,6 +667,8 @@\n title: (번역중) BLIP-2\n - local: in_translation\n title: (번역중) BridgeTower\n+ - local: model_doc/chameleon\n+ title: Chameleon\n - local: in_translation\n title: (번역중) Chinese-CLIP\n ...
2024-10-07T22:06:13
vercel/next.js
5a04e82ba9ea96e9f6fae8ac096e05f0196c25e0
591321e8826e35a6bbc1a8580a9b0fb25f4645b8
fix(cli): do not throw error when extracting examples in Node 18+ (#40182) `create-next-app` currently cannot extract examples/git repos in Node 18+, because of an issue with `node-tar` (https://github.com/npm/node-tar/issues/321). The files are extracted, but an error is thrown that the stream has been prematurely cl...
[ { "path": "packages/create-next-app/helpers/examples.ts", "patch": "@@ -3,6 +3,9 @@ import got from 'got'\n import tar from 'tar'\n import { Stream } from 'stream'\n import { promisify } from 'util'\n+import { join } from 'path'\n+import { tmpdir } from 'os'\n+import { createWriteStream } from 'fs'\n \n con...
2022-09-05T16:11:12
rust-lang/rust
02e1f118cd5adb995c3801cc7703faaba8910ccc
ae8ab87de4d8caab5d91a027bc19bb5d5e8a3691
Fix ui pattern_types test for big-endian platforms The newly added pattern types validity tests fail on s390x and presumably other big-endian systems, due to print of raw values with padding bytes. To fix the tests remove the raw output values in the error note by `normalize-stderr`.
[ { "path": "tests/ui/type/pattern_types/validity.rs", "patch": "@@ -1,4 +1,6 @@\n //! Check that pattern types have their validity checked\n+// Strip out raw byte dumps to make tests platform-independent:\n+//@ normalize-stderr: \"([[:xdigit:]]{2}\\s){4,8}\\s+│\\s.{4,8}\" -> \"HEX_DUMP\"\n \n #![feature(patt...
2025-03-24T10:54:44
golang/go
9aa950c40789223d9e8df7d1ec657cd313e6c7aa
eb626409d152caabac418eccbe86b49d1fc6a6f5
[dev.regabi] cmd/compile: make ir.OuterValue safer For OINDEX expressions, ir.OuterValue depends on knowing the indexee's type. Rather than silently acting as though it's not an array, make it loudly fail. The only code that needs to be fixed to support this is checkassign during typechecking, which needs to avoid ca...
[ { "path": "src/cmd/compile/internal/ir/node.go", "patch": "@@ -568,7 +568,10 @@ func OuterValue(n Node) Node {\n \t\t\tcontinue\n \t\tcase OINDEX:\n \t\t\tnn := nn.(*IndexExpr)\n-\t\t\tif nn.X.Type() != nil && nn.X.Type().IsArray() {\n+\t\t\tif nn.X.Type() == nil {\n+\t\t\t\tbase.Fatalf(\"OuterValue needs t...
2021-01-05T11:28:06
nodejs/node
c3ff89920e43a246324842c915d33893a7456568
2287deab94cb409ee808d0c6338bc5b08a0c6c80
test: add useful info to error msg and refactor Add useful info about process.domain to error meesages in the uncaughtException event listener and the beforeExit event listener. Refactor code such as using template literals, and also make sure uncaughtException listner is detached after firing once to avoid endless l...
[ { "path": "test/parallel/test-domain-stack-empty-in-process-uncaughtexception.js", "patch": "@@ -6,15 +6,18 @@ const assert = require('assert');\n \n const d = domain.create();\n \n-process.on('uncaughtException', common.mustCall(function onUncaught() {\n+process.once('uncaughtException', common.mustCall(fu...
2018-02-02T23:03:07
huggingface/transformers
13432f84090b0fdb4d1a2c0413aa97af526c3e66
e9fbe6296547f7d3e086bf8dd2bb08fd065da84f
🌐 [i18n-KO] Translated `trainer.md` to Korean (#33797) * docs: ko: trainer.md * feat: nmt draft * fix: manual edits * fix: resolve suggestions Co-authored-by: Jiwook Han <33192762+mreraser@users.noreply.github.com> Co-authored-by: Chulhwa (Evan) Han <cjfghk5697@ajou.ac.kr> --------- Co-authored-by:...
[ { "path": "docs/source/ko/_toctree.yml", "patch": "@@ -302,8 +302,8 @@\n title: (번역중) Quantization\n - local: in_translation\n title: (번역중) Tokenizer\n- - local: in_translation\n- title: (번역중) Trainer\n+ - local: main_classes/trainer\n+ title: Trainer\n - local: deepspeed...
2024-10-07T22:05:57
rust-lang/rust
3aaa12f622f294fd0d5f86a31415eb1fb4669bdd
a28d5092e9da9973fd56a4de5e85a632400c85f0
Fix some formatting.
[ { "path": "compiler/rustc_span/src/symbol.rs", "patch": "@@ -128,8 +128,8 @@ symbols! {\n MacroRules: \"macro_rules\",\n Raw: \"raw\",\n Reuse: \"reuse\",\n- ContractEnsures: \"contract_ensures\",\n- ContractRequires: \"contract_requ...
2025-03-12T05:18:40
vercel/next.js
591321e8826e35a6bbc1a8580a9b0fb25f4645b8
866de416819ff3442e914a4f68a2c36b785e2c56
fix(examples/with-styled-components-babel): list should have unique key (#40215) Fixes #40201 ## Bug - [ ] Related issues linked using `fixes #40201` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md`
[ { "path": "examples/with-styled-components-babel/package.json", "patch": "@@ -7,16 +7,16 @@\n },\n \"dependencies\": {\n \"next\": \"latest\",\n- \"react\": \"^17.0.2\",\n- \"react-dom\": \"^17.0.2\",\n- \"react-is\": \"^17.0.2\",\n- \"styled-components\": \"^5.2.3\"\n+ \"react\": \"^...
2022-09-05T14:35:13
golang/go
c28ca67a961a0c1d149a249918a15ed74c61af27
f24e40c14a0a767b6663c85dc900bb9e6b7c2d8e
[dev.regabi] cmd/compile: fix ir.Dump for []*CaseClause, etc Dump uses reflection to print IR nodes, and it only knew how to print out the Nodes slice type itself. This CL adds support for printing any slice whose element type implements Node, such as SwitchStmt and SelectStmt's clause lists. Change-Id: I2fd8defe1186...
[ { "path": "src/cmd/compile/internal/ir/fmt.go", "patch": "@@ -1237,10 +1237,25 @@ func dumpNode(w io.Writer, n Node, depth int) {\n \t\t\t\tfmt.Fprintf(w, \"%+v-%s\", n.Op(), name)\n \t\t\t}\n \t\t\tdumpNodes(w, val, depth+1)\n+\t\tdefault:\n+\t\t\tif vf.Kind() == reflect.Slice && vf.Type().Elem().Implement...
2021-01-05T06:58:24
nodejs/node
0cdc87778e9c871e8bbbb081f4dc52fb17248e58
656a5d042d30c8c5dbb49a9a9b38ea0df81ec1ca
assert: show proper differences Right now it is possible to get an AssertionError from input that has the customInspect function set to always return the same value. That way the error message is actually misleading because the output is going to look the same. This fixes it by deactivating the custom inspect functio...
[ { "path": "lib/internal/errors.js", "patch": "@@ -164,9 +164,9 @@ function createErrDiff(actual, expected, operator) {\n var skipped = false;\n const util = lazyUtil();\n const actualLines = util\n- .inspect(actual, { compact: false }).split('\\n');\n+ .inspect(actual, { compact: false, customIn...
2018-02-07T01:23:40
huggingface/transformers
e9fbe6296547f7d3e086bf8dd2bb08fd065da84f
9c61ba2f25ce9393a7052c94caf6f7e80aad0d5f
🌐 [i18n-KO] Translated `pipelines_utils.md` to Korean (#33809) * docs: ko: pipelines_utils.md * feat: nmt draft * fix: manual edits
[ { "path": "docs/source/ko/_toctree.yml", "patch": "@@ -753,8 +753,8 @@\n - sections:\n - local: in_translation\n title: (번역중) Custom Layers and Utilities\n- - local: in_translation\n- title: (번역중) Utilities for pipelines\n+ - local: internal/pipelines_utils\n+ title: 파이프라인을 위한 유틸...
2024-10-07T22:05:17
vercel/next.js
dcd4197c4c91a7fdaadd05f5b4f3a6cbd9ee6130
17e84fed3969f8ef3b53370360830fc4e50725d3
Remove extra "d" in comment (#40212) Super simple typo fix :)
[ { "path": "examples/cms-sanity/lib/sanity.server.js", "patch": "@@ -12,7 +12,7 @@ export const previewClient = createClient({\n ...sanityConfig,\n useCdn: false,\n // Fallback to using the WRITE token until https://www.sanity.io/docs/vercel-integration starts shipping a READ token.\n- // As this clie...
2022-09-05T02:33:58
ollama/ollama
bc108b9ad61da81a5d170e0f487b7603fbeb768f
ef65174df23fb2efb499a18d7071348cc0ec58da
ggml: Log filesystem errors Sometimes loading the GGUF file fails with: panic: context canceled This is probably a filesystem error but it doesn't provide any information about what happened.
[ { "path": "ml/backend/ggml/ggml.go", "patch": "@@ -332,6 +332,7 @@ func New(ctx context.Context, r *os.File, params ml.BackendParams) (ml.Backend,\n \t\t\t// seeking around within an FD shared between all goroutines.\n \t\t\tfile, err := os.Open(r.Name())\n \t\t\tif err != nil {\n+\t\t\t\tslog.Warn(\"file o...
2025-04-10T18:55:05
golang/go
9eef49cfa6eb016e3b20df189e540c6c5a71f365
b01fb2af9ed6a3b90dd89d548ceef38b4ec1fc94
math/rand: fix typo in comment Change-Id: I57fbabf272bdfd61918db155ee6f7091f18e5979 GitHub-Last-Rev: e138804b1ab8086b3742861873b077d6cca8108a GitHub-Pull-Request: golang/go#43495 Reviewed-on: https://go-review.googlesource.com/c/go/+/281373 Reviewed-by: Ian Lance Taylor <iant@golang.org> Trust: Alberto Donizetti <alb....
[ { "path": "src/math/rand/gen_cooked.go", "patch": "@@ -4,7 +4,7 @@\n \n // +build ignore\n \n-// This program computes the value of rng_cooked in rng.go,\n+// This program computes the value of rngCooked in rng.go,\n // which is used for seeding all instances of rand.Source.\n // a 64bit and a 63bit version...
2021-01-04T12:58:18
nodejs/node
656a5d042d30c8c5dbb49a9a9b38ea0df81ec1ca
1fc373bdf6758dcf045db21e4a075e4099ca7c19
assert: fix infinite loop In rare cirumstances it is possible to get a identical error diff. In such a case the advances diffing runs into a infinite loop. This fixes it by properly checking for extra entries. PR-URL: https://github.com/nodejs/node/pull/18611 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-B...
[ { "path": "lib/internal/errors.js", "patch": "@@ -184,6 +184,8 @@ function createErrDiff(actual, expected, operator) {\n }\n actualLines.pop();\n expectedLines.pop();\n+ if (actualLines.length === 0 || expectedLines.length === 0)\n+ break;\n a = actualLines[actualLines.length - 1];\n...
2018-02-07T01:15:23
huggingface/transformers
9c61ba2f25ce9393a7052c94caf6f7e80aad0d5f
9c8bd3fc1befe54f3efb9f385561eef49f060a70
🌐 [i18n-KO] Translated `time_series_utils.md` to Korean (#33806) * docs: ko: time_series_utils.md * feat: nmt draft * fix: manual edits
[ { "path": "docs/source/ko/_toctree.yml", "patch": "@@ -767,7 +767,7 @@\n title: 오디오 처리를 위한 유틸리티\n - local: in_translation\n title: (번역중) General Utilities\n- - local: in_translation\n- title: (번역중) Utilities for Time Series\n+ - local: internal/time_series_utils\n+ title: 시계열...
2024-10-07T22:05:00
vercel/next.js
17e84fed3969f8ef3b53370360830fc4e50725d3
6356095481f0ecca38302c4e059e1d9470f4e08d
fix: scripts comment typos (#40207) ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementati...
[ { "path": "scripts/trace-dd.mjs", "patch": "@@ -99,7 +99,7 @@ const collectTraces = async (filePath, metadata) => {\n const traces = new Map()\n const rootTraces = []\n \n- // Input trace file contains newline-seperated sets of traces, where each line is valid JSON\n+ // Input trace file contains newl...
2022-09-05T02:26:54
ollama/ollama
42ecb9f13896c5329764e1946ec3ab1aad2de0a1
5c0331fd83877a5a91ec216c6d40b7ceaa8ff51e
fix(scheduler): make model unload order deterministic (#10185)
[ { "path": "server/sched.go", "patch": "@@ -667,13 +667,19 @@ func (runner *runnerRef) waitForVRAMRecovery() chan any {\n \treturn finished\n }\n \n-type ByDuration []*runnerRef\n-\n-func (a ByDuration) Len() int { return len(a) }\n-func (a ByDuration) Swap(i, j int) { a[i], a[j] = a[j], a[i] }\n-func (...
2025-04-09T23:01:02
golang/go
b01fb2af9ed6a3b90dd89d548ceef38b4ec1fc94
3dd58676054223962cd915bb0934d1f9f489d4d2
testing/fstest: fix typo in error message Change-Id: Iac59f5271c79c46b39733fdf0eb4bf9b0fc0bdca GitHub-Last-Rev: 03f96e32a81d1516a9307b6578c930434783e3d3 GitHub-Pull-Request: golang/go#43450 Reviewed-on: https://go-review.googlesource.com/c/go/+/280953 Trust: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Tobias...
[ { "path": "src/testing/fstest/testfs.go", "patch": "@@ -121,7 +121,7 @@ func (t *fsTester) openDir(dir string) fs.ReadDirFile {\n \td, ok := f.(fs.ReadDirFile)\n \tif !ok {\n \t\tf.Close()\n-\t\tt.errorf(\"%s: Open returned File type %T, not a io.ReadDirFile\", dir, f)\n+\t\tt.errorf(\"%s: Open returned Fil...
2021-01-04T11:26:46
huggingface/transformers
9c8bd3fc1befe54f3efb9f385561eef49f060a70
6996f2186ab1100896162e5fd2fb4f17c31ad51d
🌐 [i18n-KO] Translated `esm.md` to Korean (#33796) * docs: ko: esm.md * feat: nmt draft * fix: manual edits
[ { "path": "docs/source/ko/_toctree.yml", "patch": "@@ -378,8 +378,8 @@\n title: (번역중) ERNIE\n - local: in_translation\n title: (번역중) ErnieM\n- - local: in_translation\n- title: (번역중) ESM\n+ - local: model_doc/esm\n+ title: ESM\n - local: in_translation\n ...
2024-10-07T20:39:22
nodejs/node
1a5f6705c611bc9376e8cd49ff2b03b08c3b97b0
ba944b16972c4b248e946d4bacb2141e5ef7eba9
tools: fix eslint isRequired Currently the call can lead to a TypeError with the message: `Cannot read property 'value' of undefined`. This fixes it by first checking that the first argument is truthy. PR-URL: https://github.com/nodejs/node/pull/18729 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By...
[ { "path": "tools/eslint-rules/rules-utils.js", "patch": "@@ -8,7 +8,7 @@\n * require calls.\n */\n module.exports.isRequired = function(node, modules) {\n- return node.callee.name === 'require' &&\n+ return node.callee.name === 'require' && node.arguments.length !== 0 &&\n modules.includes(node.argu...
2018-02-12T11:31:23
vercel/next.js
f9706e036579b5b2a79cf2e39f9f57203b056e55
885defd442fe2b5c5e75c4bf7e0c63cd1e1dfce5
next/script: simplify logic and update tests (#40026) The PR is the first step toward fixing #40025. The PR makes the `script-loader` integration test run on both dev and production modes. Some existing test cases are skipped in dev mode because corresponding features are not strict mode resilient and thus will fai...
[ { "path": "packages/next/client/script.tsx", "patch": "@@ -1,4 +1,4 @@\n-import React, { useEffect, useContext } from 'react'\n+import React, { useEffect, useContext, useRef } from 'react'\n import { ScriptHTMLAttributes } from 'react'\n import { HeadManagerContext } from '../shared/lib/head-manager-context...
2022-09-02T22:25:44
huggingface/transformers
6996f2186ab1100896162e5fd2fb4f17c31ad51d
410c73af1d026cf412dc25b7da6111b1c4be82b7
🌐 [i18n-KO] Translated `audio_utils.md` to Korean (#33802) * docs: ko: audio_utils.md * feat: nmt draft * fix: manual edits
[ { "path": "docs/source/ko/_toctree.yml", "patch": "@@ -763,8 +763,8 @@\n title: (번역중) Utilities for Generation\n - local: in_translation\n title: (번역중) Utilities for Image Processors\n- - local: in_translation\n- title: (번역중) Utilities for Audio processing\n+ - local: internal/aud...
2024-10-07T20:39:10
ollama/ollama
5c0331fd83877a5a91ec216c6d40b7ceaa8ff51e
e7019c94554e6d93bf216cb484c8c1c69df98fcb
Fix dockerfile. (#9855) Signed-off-by: zhanluxianshen <zhanluxianshen@163.com>
[ { "path": "Dockerfile", "patch": "@@ -104,8 +104,8 @@ COPY --from=cuda-12 dist/lib/ollama/cuda_v12 /lib/ollama/cuda_v12\n FROM --platform=linux/arm64 scratch AS arm64\n COPY --from=cuda-11 dist/lib/ollama/cuda_v11 /lib/ollama/cuda_v11\n COPY --from=cuda-12 dist/lib/ollama/cuda_v12 /lib/ollama/cuda_v12\n-COP...
2025-04-09T20:24:56
golang/go
f24e40c14a0a767b6663c85dc900bb9e6b7c2d8e
d89705e08742c0f4fdf5d2bdbab6f344c6be884f
[dev.regabi] cmd/compile: remove Name.Class_ accessors These aren't part of the Node interface anymore, so no need to keep them around. Passes toolstash -cmp. [git-generate] cd src/cmd/compile/internal/ir : Fix one off case that causes trouble for rf. sed -i -e 's/n.SetClass(ir.PAUTO)/n.Class_ = ir.PAUTO/' ../ssa/e...
[ { "path": "src/cmd/compile/internal/dwarfgen/dwarf.go", "patch": "@@ -76,7 +76,7 @@ func Info(fnsym *obj.LSym, infosym *obj.LSym, curfn interface{}) ([]dwarf.Scope,\n \t\t\tif n.Op() != ir.ONAME { // might be OTYPE or OLITERAL\n \t\t\t\tcontinue\n \t\t\t}\n-\t\t\tswitch n.Class_ {\n+\t\t\tswitch n.Class {\n...
2021-01-04T04:14:00
nodejs/node
9f6a56590129370f8b17c133f15a63e3832fa3cc
bd4773a0431da9c846c3b4a2f6459db1f151c115
async_hooks: rename PromiseWrap.parentId Rename the `parentId` property on the PromiseWrap object to a `isChainedPromise` property. The former wasn't quite useful as it was always defined to be the same value as the trigger id available in the init hook. Instead rename the property to be closer to the information it c...
[ { "path": "doc/api/async_hooks.md", "patch": "@@ -301,10 +301,10 @@ and document their own resource objects. For example, such a resource object\n could contain the SQL query being executed.\n \n In the case of Promises, the `resource` object will have `promise` property\n-that refers to the Promise that is...
2018-02-08T01:46:49
vercel/next.js
885defd442fe2b5c5e75c4bf7e0c63cd1e1dfce5
3647d7344d0b5991183e723ae7774266ad1bb1bf
Fix typo in error/middleware-upgrade-guide.md (#40176) No Reponse Body -> No Response Body <img width="330" alt="スクリーンショット 2022-09-02 16 40 04" src="https://user-images.githubusercontent.com/11132792/188084749-a1dd4ca6-b108-47ef-85d9-5f1602cb8cea.png">
[ { "path": "errors/middleware-upgrade-guide.md", "patch": "@@ -388,4 +388,4 @@ Prior to Next.js `v12.2`, Middleware was not executed for `_next` requests.\n \n For cases where Middleware is used for authorization, you should migrate to use `rewrite`/`redirect` to Pages that show an authorization error, login...
2022-09-02T18:20:22
huggingface/transformers
410c73af1d026cf412dc25b7da6111b1c4be82b7
6c18cefed043ac8ac78ce1f4849275f07731b5c5
🌐 [i18n-KO] Translated `swinv2.md` to Korean (#33566) * docs: ko: model_doc/swinv2.md * feat: nmt draft * fix: manual edits * fix: manual edits
[ { "path": "docs/source/ko/_toctree.yml", "patch": "@@ -591,8 +591,8 @@\n title: (번역중) SegFormer\n - local: in_translation\n title: (번역중) Swin Transformer\n- - local: in_translation\n- title: (번역중) Swin Transformer V2\n+ - local: model_doc/swinv2\n+ title: Swin T...
2024-10-07T19:50:43
ollama/ollama
e7019c94554e6d93bf216cb484c8c1c69df98fcb
d98bfe7e7083f54e4c9065d4138f53bd47348761
fix(integration): move waitgroup Add(1) outside goroutine to avoid potential issue (#10070) Signed-off-by: googs1025 <googs1025@gmail.com>
[ { "path": "integration/max_queue_test.go", "patch": "@@ -52,8 +52,8 @@ func TestMaxQueue(t *testing.T) {\n \tembedCtx := ctx\n \n \tvar genwg sync.WaitGroup\n+\tgenwg.Add(1)\n \tgo func() {\n-\t\tgenwg.Add(1)\n \t\tdefer genwg.Done()\n \t\tslog.Info(\"Starting generate request\")\n \t\tDoGenerate(ctx, t, cl...
2025-04-08T22:17:40
golang/go
d89705e08742c0f4fdf5d2bdbab6f344c6be884f
290b4154b73b54045a147f463c6988b935d75d49
[dev.regabi] cmd/compile: fix re-export of parameters When exporting signature types, we include the originating package, because it's exposed via go/types's API. And as a consistency check, we ensure that the parameter names came from that same package. However, we were getting this wrong in the case of exported var...
[ { "path": "src/cmd/compile/internal/typecheck/dcl.go", "patch": "@@ -486,6 +486,9 @@ func NewMethodType(sig *types.Type, recv *types.Type) *types.Type {\n \t\tnrecvs++\n \t}\n \n+\t// TODO(mdempsky): Move this function to types.\n+\t// TODO(mdempsky): Preserve positions, names, and package from sig+recv.\n+...
2021-01-03T22:37:06
rust-lang/rust
a41c4dcddd2dfb0b3feae037487af9f8dba10059
84340b33f985d36ee1ed9547eea367f94c7408a1
fix: Fix closure return inlayhints using macro ranges
[ { "path": "src/tools/rust-analyzer/crates/ide/src/inlay_hints/closure_ret.rs", "patch": "@@ -35,8 +35,9 @@ pub(super) fn hints(\n \n let param_list = closure.param_list()?;\n \n- let closure = sema.descend_node_into_attributes(closure).pop()?;\n- let ty = sema.type_of_expr(&ast::Expr::ClosureExpr(...
2025-03-24T06:22:16
nodejs/node
2aa3e3b00ff97e50f87a3345a33bcac9f424d0d7
316846b8decf7158dd73d0ee23999686eee863bd
timers: fix enroll deprecation wording PR-URL: https://github.com/nodejs/node/pull/18704 Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Jeremiah...
[ { "path": "lib/timers.js", "patch": "@@ -379,7 +379,7 @@ function enroll(item, msecs) {\n \n exports.enroll = util.deprecate(enroll,\n 'timers.enroll() is deprecated. ' +\n- 'Please use clearTimeout instead.',\n+ '...
2018-02-10T21:13:46
huggingface/transformers
6c18cefed043ac8ac78ce1f4849275f07731b5c5
c91fe85b7826fbb169a59800b355ad6ca9c975ac
🌐 [i18n-KO] Translated `gguf.md` to Korean (#33764) * docs: ko: gguf.md * feat nmt draft * fix: manual edits * fix: resolve suggestions Co-authored-by: Jiwook Han <33192762+mreraser@users.noreply.github.com> Co-authored-by: Chulhwa (Evan) Han <cjfghk5697@ajou.ac.kr> --------- Co-authored-by: Jiwook...
[ { "path": "docs/source/ko/_toctree.yml", "patch": "@@ -135,8 +135,8 @@\n title: 커뮤니티 리소스\n - local: troubleshooting\n title: 문제 해결\n- - local: in_translation\n- title: (번역중) Interoperability with GGUF files\n+ - local: gguf\n+ title: GGUF 파일들과의 상호 운용성\n title: (번역중) 개발자 가이드\n - sections:...
2024-10-07T19:49:08
vercel/next.js
abcf991d11131fe45298f57d3f98e5e23b7dfb3f
b9238ec973a7236e7bebdef502708a6e8fbe2e0a
Match data fetch and busting cache key when path URI encodes (#39568) Fixes #38581 <!-- Thanks for opening a PR! Your contribution is much appreciated. In order 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...
[ { "path": "packages/next/shared/lib/router/router.ts", "patch": "@@ -497,6 +497,7 @@ function withMiddlewareEffects<T extends FetchDataOutput>(\n getMiddlewareData(data.dataHref, data.response, options).then(\n (effect) => ({\n dataHref: data.dataHref,\n+ cac...
2022-09-02T04:22:17
ollama/ollama
dbb149e6f78673cc1c84e6527321c740d8d36a9a
a807985e598c7a905f563023e1f8ee04756e2e36
ollamarunner: Preallocate worst case graph at startup Currently, the KV cache and graph are lazily allocated as needed. The cache is fully allocated on first use of the corresponding layer whereas the graph grows with the size of the context. This can be an issue if another application allocates more VRAM after we do...
[ { "path": "kvcache/cache.go", "patch": "@@ -56,8 +56,9 @@ type Cache interface {\n \n \t// StartForward is called before the start of the model's forward pass.\n \t// For each token in the coming batch, there must be a corresponding\n-\t// entry in positions and seqs.\n-\tStartForward(ctx ml.Context, batch ...
2025-04-03T19:50:20
golang/go
290b4154b73b54045a147f463c6988b935d75d49
a30fd5288415cb1e4a91ec89fac725a9ee7a3d05
[dev.regabi] cmd/compile: fix ICE due to large uint64 constants It's an error to call Int64Val on constants that don't fit into int64. CL 272654 made the compiler stricter about detecting misuse, and revealed that we were using it improperly in detecting consecutive integer-switch cases. That particular usage actually...
[ { "path": "src/cmd/compile/internal/walk/switch.go", "patch": "@@ -201,10 +201,15 @@ func (s *exprSwitch) flush() {\n \n \t// Merge consecutive integer cases.\n \tif s.exprname.Type().IsInteger() {\n+\t\tconsecutive := func(last, next constant.Value) bool {\n+\t\t\tdelta := constant.BinaryOp(next, token.SUB...
2021-01-03T22:24:25
nodejs/node
01d049165c7d3ef9d102c85f0218044cb45f4787
540cbf84afddfbdd2e88ecbb92c28b7dcc582498
test: fix flaky repl-timeout-throw Don't disconnect the child until all exceptions are thrown. Fixes: https://github.com/nodejs/node/issues/18659 PR-URL: https://github.com/nodejs/node/pull/18692 Fixes: https://github.com/nodejs/node/issues/18659 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Ruben Bri...
[ { "path": "test/sequential/test-repl-timeout-throw.js", "patch": "@@ -1,5 +1,5 @@\n 'use strict';\n-const common = require('../common');\n+require('../common');\n const assert = require('assert');\n \n const spawn = require('child_process').spawn;\n@@ -13,6 +13,8 @@ child.stdout.setEncoding('utf8');\n child...
2018-02-10T08:32:49
huggingface/transformers
c91fe85b7826fbb169a59800b355ad6ca9c975ac
736c7cde51df63a49aefe7dd333dac39ff107010
Fix undefined default_config in configuration_utils.py (#33934)
[ { "path": "src/transformers/configuration_utils.py", "patch": "@@ -1036,6 +1036,7 @@ def _get_non_default_generation_parameters(self) -> Dict[str, Any]:\n if decoder_config is not self:\n default_config = decoder_config.__class__()\n else:\n+ default_co...
2024-10-07T16:32:20
vercel/next.js
8258c872c4b3d3c336c4811ddb570d72e78455bb
b47f0a52e8fb5d624a07c211e49b69f0eec4199e
Bump `@vercel/nft@0.22.1` (#40164) Bump `@vercel/nft` to version [0.22.1](https://github.com/vercel/nft/releases/tag/0.22.1) - Fixes #40130
[ { "path": "packages/next/package.json", "patch": "@@ -165,7 +165,7 @@\n \"@types/webpack-sources1\": \"npm:@types/webpack-sources@0.1.5\",\n \"@types/ws\": \"8.2.0\",\n \"@vercel/ncc\": \"0.34.0\",\n- \"@vercel/nft\": \"0.22.0\",\n+ \"@vercel/nft\": \"0.22.1\",\n \"acorn\": \"8.5.0\",\...
2022-09-01T21:46:39
rust-lang/rust
b672659472e792198390d94f926be61f894547b6
7290b04b0a46de2118968aa556bfc0970aac6661
Trusty: Fix build for anonymous pipes and std::sys::process PRs #136842 (Add libstd support for Trusty targets), #137793 (Stablize anonymous pipe), and #136929 (std: move process implementations to `sys`) merged around the same time, so update Trusty to take them into account.
[ { "path": "library/std/src/os/fd/owned.rs", "patch": "@@ -15,9 +15,8 @@ use crate::mem::ManuallyDrop;\n target_os = \"trusty\"\n )))]\n use crate::sys::cvt;\n-use crate::sys_common::FromInner;\n #[cfg(not(target_os = \"trusty\"))]\n-use crate::sys_common::{AsInner, IntoInner};\n+use crate::sys_common::{...
2025-03-24T02:32:20
ollama/ollama
a807985e598c7a905f563023e1f8ee04756e2e36
8643c4d5bfa8ba131661713029d09b9f1792761a
ggml: Check for OOM and return as Go errors If there is a CUDA OOM, we currently don't check the return value and will evetually segfault. This checks for the problem and generates a Go error. At the moment, this will still result in a panic but having the error is the first step to being able to handle it more gracef...
[ { "path": "ml/backend/ggml/ggml.go", "patch": "@@ -281,6 +281,10 @@ func New(ctx context.Context, r *os.File, params ml.BackendParams) (ml.Backend,\n \t\t}\n \n \t\tb := C.ggml_backend_alloc_ctx_tensors_from_buft(c, bt)\n+\t\tif b == nil {\n+\t\t\treturn nil, fmt.Errorf(\"unable to allocate memory from devi...
2025-04-04T22:04:25
golang/go
907a4bfdc75004bc31c30564734cffc61ab1e80c
f2e6dab04859a3211ce9f5bf5bac9edde0831ce1
[dev.regabi] cmd/compile: fix map assignment order After the previous cleanup/optimization CLs, ascompatee now correctly handles map assignments too. So remove the code from order.mapAssign, which causes us to assign to the map at the wrong point during execution. It's not every day you get to fix an issue by only rem...
[ { "path": "src/cmd/compile/internal/walk/order.go", "patch": "@@ -537,21 +537,7 @@ func (o *orderState) call(nn ir.Node) {\n \t}\n }\n \n-// mapAssign appends n to o.out, introducing temporaries\n-// to make sure that all map assignments have the form m[k] = x.\n-// (Note: expr has already been called on n,...
2021-01-03T08:16:46
huggingface/transformers
736c7cde51df63a49aefe7dd333dac39ff107010
55be7c4c483a01a7e03e55a8756fc4385ec08ffc
[`pytes collection`] Fix flax test collection (#34004) bit weird but to filter I had to use this
[ { "path": "tests/models/albert/test_modeling_flax_albert.py", "patch": "@@ -80,6 +80,7 @@ def __init__(\n self.type_sequence_label_size = type_sequence_label_size\n self.initializer_range = initializer_range\n self.num_choices = num_choices\n+ super().__init__()\n \n def p...
2024-10-07T16:11:13
nodejs/node
540cbf84afddfbdd2e88ecbb92c28b7dcc582498
4a1a4bfc7edf4ce209b5ed29ce7ff440e1457ed1
doc: add error check to fs example Previously, the err passed to the callback of fs.open() was not checked. PR-URL: https://github.com/nodejs/node/pull/18681 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed...
[ { "path": "doc/api/fs.md", "patch": "@@ -1397,6 +1397,7 @@ fs.open('myfile', 'wx', (err, fd) => {\n fs.exists('myfile', (exists) => {\n if (exists) {\n fs.open('myfile', 'r', (err, fd) => {\n+ if (err) throw err;\n readMyData(fd);\n });\n } else {", "additions": 1, "deletions"...
2018-02-09T16:20:20
vercel/next.js
57fdff135dbdc5c40f4b6063d2c21dbd1faed34b
2de7b43b7819b4148f019ec560651e54e9ba562c
ignore EEXIST errors when creating symlinks for output standalone (#40150) I think the `EEXIST` error may be because next already copies some files here https://github.com/vercel/next.js/blob/e91cbcc03d7226cc6f2edb66c656ae08bdf5b903/packages/next/build/index.ts#L2442 partially fixes #36386 when using pnpm linker ...
[ { "path": "packages/next/build/utils.ts", "patch": "@@ -1371,7 +1371,13 @@ export async function copyTracedFiles(\n const symlink = await fs.readlink(tracedFilePath).catch(() => null)\n \n if (symlink) {\n- await fs.symlink(symlink, fileOutputPath)\n+ try {\n+ ...
2022-09-01T18:20:08
ollama/ollama
8643c4d5bfa8ba131661713029d09b9f1792761a
b0c3aba5906ebc51b1c4cbb4532173559ba6e6ed
readme: fix url for big-AGI in community integrations (#10173)
[ { "path": "README.md", "patch": "@@ -291,7 +291,7 @@ See the [API documentation](./docs/api.md) for all endpoints.\n - [Typescript UI](https://github.com/ollama-interface/Ollama-Gui?tab=readme-ov-file)\n - [Minimalistic React UI for Ollama Models](https://github.com/richawo/minimal-llm-ui)\n - [Ollamac](htt...
2025-04-08T02:42:26
golang/go
b1747756e30a4e1ea0698ddbbb08f5cb7d97b1ba
f2538033c08a8c215a19610680d66f5909c5bcdd
[dev.regabi] cmd/compile: reorganize escape analysis somewhat To do closure conversion during escape analysis, we need to walk the AST in order. So this CL makes a few changes: 1. Function literals are walked where they appear in their enclosing function, rather than as independent functions. 2. Walking "range" and ...
[ { "path": "src/cmd/compile/internal/escape/escape.go", "patch": "@@ -201,10 +201,12 @@ func Batch(fns []*ir.Func, recursive bool) {\n \n \t// Construct data-flow graph from syntax trees.\n \tfor _, fn := range fns {\n-\t\tb.with(fn).initFunc()\n+\t\tb.initFunc(fn)\n \t}\n \tfor _, fn := range fns {\n-\t\tb....
2021-01-02T10:40:42
huggingface/transformers
55be7c4c483a01a7e03e55a8756fc4385ec08ffc
7bae833728c76345caa04a334368684ed2e77f66
Enable customized optimizer for DeepSpeed (#32049) * transformers: enable custom optimizer for DeepSpeed * transformers: modify error message --------- Co-authored-by: datakim1201 <roy.kim@maum.ai>
[ { "path": "src/transformers/trainer.py", "patch": "@@ -599,11 +599,11 @@ def __init__(\n \" `Trainer`. Make sure the lines `import torch_xla.core.xla_model as xm` and\"\n \" `model.to(xm.xla_device())` is performed before the optimizer creation in your script.\"\n ...
2024-10-07T13:36:54
nodejs/node
4a1a4bfc7edf4ce209b5ed29ce7ff440e1457ed1
d1e80e7cf1aa70fc2a22aea887063f4fa87fc4a9
build: no longer have v8-debug.h as dependency. Ref: https://github.com/nodejs/node/issues/18643 PR-URL: https://github.com/nodejs/node/pull/18677 Refs: https://github.com/nodejs/node/issues/18643 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewat...
[ { "path": "node.gyp", "patch": "@@ -393,7 +393,6 @@\n 'src/util-inl.h',\n 'deps/http_parser/http_parser.h',\n 'deps/v8/include/v8.h',\n- 'deps/v8/include/v8-debug.h',\n # javascript files to make for an even more pleasant IDE experience\n '<@(library_files)',\n...
2018-02-09T13:23:42
vercel/next.js
2de7b43b7819b4148f019ec560651e54e9ba562c
9d30ef15e134132eec9c86f0f87d12a098ba70b8
fix: detect ESLint config in package.json (#40158) Fixes #40133 Fixes a small regression introduced in #39872. We should be able to detect if a non-empty `package.json#eslintConfig` property is present. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful ...
[ { "path": "packages/next/lib/eslint/hasEslintConfiguration.ts", "patch": "@@ -33,12 +33,10 @@ export async function hasEslintConfiguration(\n }\n return { ...configObject, exists: true }\n } else if (packageJsonConfig?.eslintConfig) {\n- if (Object.entries(packageJsonConfig?.eslintConfig).lengt...
2022-09-01T16:23:03
golang/go
68e6fa4f6852b4ef0fe61789618c093f4e2185c9
3a4474cdfda0096b5d88c769f81ad81d6f0168c7
[dev.regabi] cmd/compile: fix package-initialization order This CL fixes package initialization order by creating the init task before the general deadcode-removal pass. It also changes noder to emit zero-initialization assignments (i.e., OAS with nil RHS) for package-block variables, so that initOrder can tell the v...
[ { "path": "src/cmd/compile/internal/gc/main.go", "patch": "@@ -208,6 +208,11 @@ func Main(archInit func(*ssagen.ArchInfo)) {\n \tdwarfgen.RecordPackageName()\n \tssagen.CgoSymABIs()\n \n+\t// Build init task.\n+\tif initTask := pkginit.Task(); initTask != nil {\n+\t\ttypecheck.Export(initTask)\n+\t}\n+\n \t...
2021-01-01T07:45:36
huggingface/transformers
7bae833728c76345caa04a334368684ed2e77f66
e782e95e3465b66a377c0a7fe95f8f10cd87459d
properly fix and RUN_SLOW (#33965) * properly fix and RUN_SLOW * lots of models were affected * fix-copies * more fixes
[ { "path": "src/transformers/models/altclip/modeling_altclip.py", "patch": "@@ -1024,15 +1024,15 @@ def interpolate_pos_encoding(self, embeddings: torch.Tensor, height: int, width:\n \"\"\"\n \n num_patches = embeddings.shape[1] - 1\n- self.position_embeddings = self.position_embedding...
2024-10-07T12:45:57
nodejs/node
2bead4ba9e1f92f1cf07fdaaa32197fff7600172
fafd5b07588733ef87767cf9e156f62bcb8f09c0
doc: fix exporting a function example Missing the length argument in napi_create_function. PR-URL: https://github.com/nodejs/node/pull/18661 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M S...
[ { "path": "doc/api/n-api.md", "patch": "@@ -918,7 +918,7 @@ For example, to set a function to be returned by the `require()` for the addon:\n napi_value Init(napi_env env, napi_value exports) {\n napi_value method;\n napi_status status;\n- status = napi_create_function(env, \"exports\", Method, NULL, &...
2018-02-08T22:01:23
vercel/next.js
40767e5ce7b2581d462d8f74a1d9433496dd553e
4cc7f11da2194aa9ffce4e04b8a0c6ee340f4f85
fix(#40066): preserve error status code from serveStatic (#40128) The PR fixes #40066. Next.js' `serveStatic` method is powered by the [send](https://github.com/pillarjs/send) module, which could throw errors under specific circumstances. Currently, Next.js only preserves the 412 Error from send, hence issue #40066 (...
[ { "path": "packages/next/server/next-server.ts", "patch": "@@ -153,6 +153,41 @@ function getMiddlewareMatcher(\n return matcher\n }\n \n+/**\n+ * Hardcoded every possible error status code that could be thrown by \"serveStatic\" method\n+ * This is done by searching \"this.error\" inside \"send\" module's...
2022-08-31T23:08:56
huggingface/transformers
e782e95e3465b66a377c0a7fe95f8f10cd87459d
9b4b0c07db0d9f962bc476e59148f263d1035264
Fix Tensor + Embedding error in some cases when using SiglipVisionModel (#33994) Fix Tensor + Embedding error in some cases Co-authored-by: kaitolucifer <kaito.o@ghelia.com>
[ { "path": "src/transformers/models/siglip/modeling_siglip.py", "patch": "@@ -283,7 +283,7 @@ def interpolate_pos_encoding(self, embeddings: torch.Tensor, height: int, width:\n \n # always interpolate when tracing to ensure the exported model works for dynamic input shapes\n if not torch.jit....
2024-10-07T09:17:34
ollama/ollama
c38680b8a1058b79a98d87aa671361cafed09536
16fca86c4a6c43e2752062e7f82d20f00d9fd292
CONTRIBUTING: fix code block formatting There were only 3 spaces instead of 4, so the example was being considered to include html elements
[ { "path": "CONTRIBUTING.md", "patch": "@@ -51,7 +51,7 @@ see if the change were accepted.\n \n The title should look like:\n \n- <package>: <short description>\n+ <package>: <short description>\n \n The package is the most affected Go package. If the change does not affect Go\n code, then use the direc...
2025-04-07T20:53:33
huggingface/transformers
9b4b0c07db0d9f962bc476e59148f263d1035264
ad1a250719a508524d1b0d089f7a3c5c0e9b6725
[`Red CIs`] Fix hub failures (#34001) maybe setup should work?
[ { "path": "tests/models/myt5/test_tokenization_myt5.py", "patch": "@@ -38,7 +38,8 @@ def str_to_hex(line: str, sep: str = \" \") -> str:\n \n \n class TestByteRewriter(unittest.TestCase):\n- tokenizer = MyT5Tokenizer.from_pretrained(\"Tomlim/myt5-base\")\n+ def setUp(self) -> None:\n+ self.toke...
2024-10-07T08:56:24
ollama/ollama
b51e0f397ced70bbfa7f22e9b3c94953967cb8e5
b42970063d8f05c47dd6d9a6b71f1e14cc4805c9
model: fix issues with spm tokenizer for Gemma 3 (#10081)
[ { "path": "model/models/gemma2/model.go", "patch": "@@ -38,7 +38,6 @@ const (\n func New(c ml.Config) (model.Model, error) {\n \tm := Model{\n \t\tSentencePieceModel: model.NewSentencePieceModel(\n-\t\t\tc.String(\"tokenizer.ggml.pretokenizer\", `(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?\\p{L}+|\\...
2025-04-02T20:22:56
vercel/next.js
643447ed03919c41ab2229079f0918df2985f5d2
92aafcbcf15b8e0318dc1e889e27a4fba8c06bf6
Allow port 0 in `next dev` and `next start` (#40118) This addresses a bug where invoking `next dev` or `next start` with `--port 0` would fall back to the default port of 3000 instead of binding to port 0 (which typically results in the operating system assigning a free port). I couldn't find a straightforward way ...
[ { "path": "packages/next/cli/next-dev.ts", "patch": "@@ -2,7 +2,7 @@\n import arg from 'next/dist/compiled/arg/index.js'\n import { existsSync, watchFile } from 'fs'\n import { startServer } from '../server/lib/start-server'\n-import { printAndExit } from '../server/lib/utils'\n+import { getPort, printAndEx...
2022-08-31T22:13:39
huggingface/transformers
4953ddf0365c89242183bc6c83ccac91dd857476
1bd604d11c405dfb8b78bda4062d88fc75c17de0
Add position ids in forward pass to opt model (#33121) * start working on adding position ids * add docs * Refactor modeling_biogpt.py and modeling_opt.py for code consistency * fix 2 PR comments * move position_ids to end of args * remove trailing white space * add comment with TODO * bug fix gra...
[ { "path": "src/transformers/models/biogpt/modeling_biogpt.py", "patch": "@@ -47,7 +47,8 @@\n _CONFIG_FOR_DOC = \"BioGptConfig\"\n \n \n-# Copied from transformers.models.opt.modeling_opt.OPTLearnedPositionalEmbedding with OPT->BioGpt\n+# copied from transformers.models.opt.modeling_opt.OPTLearnedPositionalE...
2024-10-07T07:20:49
ollama/ollama
b2a465296d7131ca440fd81c1bee888f4103a585
5d097277ef8b08c86f354b54596976869998257d
runner: Release semaphore and improve error messages on failures If we have an error after creating a new sequence but before finding a slot for it, we return without releasing the semaphore. This reduces our parallel sequences and eventually leads to deadlock. In practice this should never happen because once we hav...
[ { "path": "runner/llamarunner/runner.go", "patch": "@@ -599,7 +599,7 @@ func (s *Server) completion(w http.ResponseWriter, r *http.Request) {\n \t\tif errors.Is(err, context.Canceled) {\n \t\t\tslog.Info(\"aborting completion request due to client closing the connection\")\n \t\t} else {\n-\t\t\tslog.Error(...
2025-03-15T00:24:46
golang/go
b8fd3440cd3973a16184c4c878b557cf6c6703e4
fd22df990545bce77ff78b27c4f7220c7a666a84
[dev.regabi] cmd/compile: report unused variables during typecheck Unused variables are a type-checking error, so they should be reported during typecheck rather than walk. One catch is that we only want to report unused-variable errors for functions that type check successfully, but some errors are reported during n...
[ { "path": "src/cmd/compile/internal/typecheck/typecheck.go", "patch": "@@ -171,6 +171,7 @@ func FuncBody(n *ir.Func) {\n \tdecldepth = 1\n \terrorsBefore := base.Errors()\n \tStmts(n.Body)\n+\tCheckUnused(n)\n \tCheckReturn(n)\n \tif base.Errors() > errorsBefore {\n \t\tn.Body.Set(nil) // type errors; do no...
2021-01-01T05:32:52
vercel/next.js
e7e567b1fc6d61fd21124e96f08141c4b774f9dc
abddee7413f96cb5af16bad33bf992587f43e684
[docs] Functional syntax for _document example in Basic Features: Font Optimization (#40140) ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make s...
[ { "path": "docs/basic-features/font-optimization.md", "patch": "@@ -27,28 +27,24 @@ To add a web font to your Next.js application, add the font to a [Custom `Docume\n ```js\n // pages/_document.js\n \n-import Document, { Html, Head, Main, NextScript } from 'next/document'\n-\n-class MyDocument extends Docum...
2022-08-31T19:46:55
nodejs/node
c5c9515c1b8abea2fd98cdd1319176ea1c367764
df2f4ad22b27bc4cf26e1c5552d037327850bef4
fs: fix stack overflow in fs.readdirSync Previously, fs.readdirSync calls the function returned by env->push_values_to_array_function() in batch and check the returned Maybe right away in C++, which can lead to assertions if the call stack already reaches the maximum size. This patch fixes that by returning early the ...
[ { "path": "src/node_file.cc", "patch": "@@ -1132,14 +1132,20 @@ static void ReadDir(const FunctionCallbackInfo<Value>& args) {\n name_v[name_idx++] = filename.ToLocalChecked();\n \n if (name_idx >= arraysize(name_v)) {\n- fn->Call(env->context(), names, name_idx, name_v)\n- .To...
2018-02-08T17:22:37
huggingface/transformers
1bd604d11c405dfb8b78bda4062d88fc75c17de0
5ef432e4742cc505f610f8e54ac1cd2e1dfd265e
[WIP] Add Tokenizer for MyT5 Model (#31286) * Initial commit for MyT5 model * custom implementation of MyT5 tokenizer, unused files deleted * unittest for myt5 tokenizer * upadate of import structure and style * removed remmanents of MyT5Config * fixed docstrings * Updates after review: filled docume...
[ { "path": "docs/source/en/_toctree.yml", "patch": "@@ -494,6 +494,8 @@\n title: MT5\n - local: model_doc/mvp\n title: MVP\n+ - local: model_doc/myt5\n+ title: myt5\n - local: model_doc/nemotron\n title: Nemotron\n - local: model_doc/nezha", "addition...
2024-10-06T08:33:16
ollama/ollama
5d097277ef8b08c86f354b54596976869998257d
071a9872cb76f07d09dc8a3c65046d35d921f4e6
ollamarunner: Ensure batch size limits are not exceeded With the llama runner, we can generate up to NUM_PARALLEL batches at once, which will then get broken up to into individual batches to get executed by llama.cpp (i.e. we add up to 2048 tokens and this gets split into 4 batches of 512 tokens at default settings). ...
[ { "path": "runner/ollamarunner/runner.go", "patch": "@@ -267,6 +267,9 @@ type Server struct {\n \t// KV cache\n \tcache *InputCache\n \n+\t// next sequence for prompt processing to avoid starvation\n+\tnextSeq int\n+\n \t// multimodalHash generates hashes for comparing equality\n \t// of non-text data\n \tm...
2025-03-27T21:00:05
golang/go
477b049060966e90124edf950413575f84a9aa74
178c667db2858f52965609b24857d5448dfb12c4
[dev.regabi] cmd/compile: fix printing of method expressions OTYPE and OMETHEXPR were missing from OpPrec. So add them with the same precedences as OT{ARRAY,MAP,STRUCT,etc} and ODOT{,METH,INTER,etc}, respectively. However, ODEREF (which is also used for pointer types *T) has a lower precedence than other types, so poi...
[ { "path": "src/cmd/compile/internal/ir/fmt.go", "patch": "@@ -216,6 +216,7 @@ var OpPrec = []int{\n \tOTINTER: 8,\n \tOTMAP: 8,\n \tOTSTRUCT: 8,\n+\tOTYPE: 8,\n \tOINDEXMAP: 8,\n \tOINDEX: 8,\n \tOSLICE: 8,\n@@ -232,6 +233,7 @@ var OpPrec = []int{\n \tODOT...
2020-12-31T02:43:10
huggingface/transformers
5ef432e4742cc505f610f8e54ac1cd2e1dfd265e
22e102ad981a33341a2d815d29d04045594a381e
[`TF`] Fix Tensorflow XLA Generation on limited seq_len models (#33903) * fix tf xla generation on limited seq_len models * [run-slow] opt * [run-slow] opt
[ { "path": "tests/test_modeling_tf_common.py", "patch": "@@ -1715,10 +1715,9 @@ def test_dataset_conversion(self):\n model.train_on_batch(test_batch, test_batch_labels)\n \n def _test_xla_generate(self, **generate_kwargs):\n- def _generate_and_check_results(model, inputs_dict):\n- ...
2024-10-05T14:20:50
nodejs/node
1729af2ce907bd1c97b501fb2dce3d94ccc2174c
93bbe4e3ee034d22657e263a2fc6972589e6723f
test: convert new tests to use error types PR-URL: https://github.com/nodejs/node/pull/18581 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
[ { "path": "test/addons-napi/test_typedarray/test.js", "patch": "@@ -60,7 +60,7 @@ arrayTypes.forEach((currentType) => {\n const template = Reflect.construct(currentType, buffer);\n assert.throws(() => {\n test_typedarray.CreateTypedArray(template, buffer, 0, 136);\n- }, /Invalid typed array length/...
2018-02-05T19:00:33
vercel/next.js
b522b94cce523631b5d2aa5d86e437f51ae029ac
481950c34b9c7b2eeb051eb4dc966d0ed3bb9605
feat(next): Support has match and locale option on middleware config (#39257) ## Feature As the title, support `has` match, `local` that works the same with the `rewrites` and `redirects` of next.config.js on middleware config. With this PR, you can write the config like the following: ```js export const confi...
[ { "path": "packages/next/build/analysis/get-page-static-info.ts", "patch": "@@ -1,5 +1,6 @@\n import { isServerRuntime } from '../../server/config-shared'\n import type { NextConfig } from '../../server/config-shared'\n+import type { Middleware, RouteHas } from '../../lib/load-custom-routes'\n import {\n ...
2022-08-31T16:23:30
ollama/ollama
0bd0454ea7f51b1ddf527b4ebdaf1e614df211bc
01aa7887221e7bd286ebcb14a088c94ba1c22a99
server: organize error types (#9465) Co-authored-by: Bruce MacDonald <brucewmacdonald@gmail.com>
[ { "path": "server/download.go", "patch": "@@ -29,8 +29,9 @@ import (\n const maxRetries = 6\n \n var (\n-\terrMaxRetriesExceeded = errors.New(\"max retries exceeded\")\n-\terrPartStalled = errors.New(\"part stalled\")\n+\terrMaxRetriesExceeded = errors.New(\"max retries exceeded\")\n+\terrPartStall...
2025-03-28T18:50:22
golang/go
20d0991b86f533a734cad96b2002678d9750e6d8
ed301733bb228653f98ee9381e90bccf7a3e3bb6
lib/time, time/tzdata: update tzdata to 2020f Changelog 'make rearguard_tarballs' no longer generates a bad rearguard.zi, fixing a 2020e bug. No actual changes to timezones data. See http://mm.icann.org/pipermail/tz-announce/2020-December/000064.html Updates #22487 Change-Id: I78f7adba1c3c1d3489b0da870601117b...
[ { "path": "lib/time/update.bash", "patch": "@@ -8,8 +8,8 @@\n # Consult https://www.iana.org/time-zones for the latest versions.\n \n # Versions to use.\n-CODE=2020e\n-DATA=2020e\n+CODE=2020f\n+DATA=2020f\n \n set -e\n rm -rf work", "additions": 2, "deletions": 2, "language": "Unknown" } ]
2020-12-30T16:18:55
huggingface/transformers
22e102ad981a33341a2d815d29d04045594a381e
56be9f192501577a579e47757d163afcef2249fe
Bug fix gguf qwen2moe (#33940) * fix qwen2moe tensors mapping, add unit tests * add expert tensor split logic, test refactoring * small params refactoring * add comment to tensor reshaping
[ { "path": "src/transformers/integrations/ggml.py", "patch": "@@ -82,10 +82,15 @@\n \"qwen2moe\": {\n \"token_embd\": \"model.embed_tokens\",\n \"blk\": \"model.layers\",\n- \"ffn_up\": \"mlp.up_proj\",\n- \"ffn_down\": \"mlp.down_proj\",\n- \"ffn_gate\": \"mlp.gate_p...
2024-10-05T14:19:01
nodejs/node
b8f47b27571f8d763f811f017be3fb37d466c4fc
9b4aa78f720284b5ad43850bbef90400ca010845
src: add "icu::" prefix before ICU symbols In ICU 61.x, icu4c will no longer put its declarations in the global namespace. Everything will be in the "icu::" namespace (or icu_60:: in the linker). Prepare for this. https://ssl.icu-project.org/trac/ticket/13460
[ { "path": "src/inspector_io.cc", "patch": "@@ -74,11 +74,11 @@ std::string StringViewToUtf8(const StringView& view) {\n \n size_t result_length = view.length() * sizeof(*source);\n std::string result(result_length, '\\0');\n- UnicodeString utf16(unicodeSource, view.length());\n+ icu::UnicodeString utf...
2018-02-08T00:42:21
vercel/next.js
5d38d2e6c8c2200fb9f9916ecebd6d410cb273bf
96c26ef4590f6b285e8ff69449d645b9d255da1b
Respect the npm_config_local_prefix env variable in npm workspace (#307)
[ { "path": "packages/webpack-nmt/src/index.ts", "patch": "@@ -140,7 +140,7 @@ function traceChunks(\n PATH: paths,\n RUST_BACKTRACE: '1',\n },\n- cwd: cwd ?? process.cwd(),\n+ cwd: cwd ?? process.env.npm_config_local_prefix ?? process.cwd(),\n })\n return new Promise<void>((resolve,...
2022-08-31T14:38:47
ollama/ollama
f66216e3990b73869341c58ac9561b26c468c558
f4f0992b6ea5d651eff609461c24ece936bd5708
ggml: Support heterogeneous KV cache layer sizes in memory estimation Gemma3 uses sliding windows for its context on 5/6 layers, significantly reducing memory usage but leading to uneven usage across layers, which makes allocation to the correct GPU difficult. We currently estimate very conservatively by assuming all ...
[ { "path": "fs/ggml/ggml.go", "patch": "@@ -413,7 +413,7 @@ func Decode(rs io.ReadSeeker, maxArraySize int) (*GGML, int64, error) {\n \t}, offset, nil\n }\n \n-func (f GGML) GraphSize(context, batch uint64, kvCacheType string) (kv, partialOffload, fullOffload uint64) {\n+func (f GGML) GraphSize(context, batc...
2025-03-24T20:39:07
golang/go
178c667db2858f52965609b24857d5448dfb12c4
f0d99def5b8919292a76b19dfdaf601e25dc6157
[dev.regabi] cmd/compile: fix OSLICEARR comments Change-Id: Ia6e734977a2cd80c91c28f4525be403f062dccc6 Reviewed-on: https://go-review.googlesource.com/c/go/+/280651 Trust: Keith Randall <khr@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
[ { "path": "src/cmd/compile/internal/ir/node.go", "patch": "@@ -218,10 +218,10 @@ const (\n \tOPAREN // (Left)\n \tOSEND // Left <- Right\n \tOSLICE // Left[List[0] : List[1]] (Left is untypechecked or slice)\n-\tOSLICEARR // Left[List[0] : List[1]] (Left is array)\n+\tOSLICEARR // L...
2020-12-29T18:07:38
huggingface/transformers
56be9f192501577a579e47757d163afcef2249fe
a7e4e1a77ccd8396ab2326f2f4805de5b60a3b4b
add test for Jamba with new model jamba-tiny-dev (#33863) * add test for jamba with new model * ruff fix --------- Co-authored-by: Yehoshua Cohen <yehoshuaco@ai21.com>
[ { "path": "tests/models/jamba/test_modeling_jamba.py", "patch": "@@ -653,7 +653,7 @@ class JambaModelIntegrationTest(unittest.TestCase):\n \n @classmethod\n def setUpClass(cls):\n- model_id = \"ai21labs/Jamba-tiny-random\"\n+ model_id = \"ai21labs/Jamba-tiny-dev\"\n cls.model =...
2024-10-05T14:03:12
nodejs/node
37c88f080de987d6adf9e2b4f7fe65cca1f5ecc2
edffad075e1dac0ebea7e70b05e4e49528fc59d2
doc: fix links to Style Guide and CPP Style Guide PR-URL: https://github.com/nodejs/node/pull/18683 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin ...
[ { "path": "doc/guides/contributing/pull-requests.md", "patch": "@@ -109,12 +109,12 @@ If you are modifying code, please be sure to run `make lint` from time to\n time to ensure that the changes follow the Node.js code style guide.\n \n Any documentation you write (including code comments and API documentati...
2018-02-09T17:02:50
vercel/next.js
481950c34b9c7b2eeb051eb4dc966d0ed3bb9605
591f341d8236d8c978fecbc5226440d6359ec281
Error for ssg and ssr exports from client components in build time (#40106) Follow up for #39953 Detect invalid gSSP/gSP exports in page or layout client components in build time instead of checking them in runtime, in this way we can: * Error to user eariler with traced file path, help user find the incorrect usage ...
[ { "path": "packages/next/build/webpack/loaders/next-flight-client-loader/index.ts", "patch": "@@ -5,31 +5,50 @@\n * LICENSE file in the root directory of this source tree.\n */\n \n+import path from 'path'\n import { checkExports } from '../../../analysis/get-page-static-info'\n import { parse } from '../...
2022-08-31T13:13:47
ollama/ollama
f4f0992b6ea5d651eff609461c24ece936bd5708
1feff619779115d76f033eb59a7a896aad6c2e18
llm: Fix debug logging for memory estimates
[ { "path": "llm/memory.go", "patch": "@@ -374,7 +374,7 @@ func (m MemoryEstimate) LogValue() slog.Value {\n \t\t\tslog.Group(\n \t\t\t\t\"weights\",\n \t\t\t\t// memory of the weights\n-\t\t\t\t\"total\", format.HumanBytes2(m.memoryWeights),\n+\t\t\t\t\"total\", format.HumanBytes2(m.memoryWeights+m.memoryLay...
2025-03-25T18:41:26
huggingface/transformers
612065efeba61b9ee9f45e80aa4c1368d6d43934
38f9f10dd9240619ea17fb6c7acb51b3bc592232
Paligemma: fix static cache test (#33941) * fix * not flaky anymore + style
[ { "path": "examples/modular-transformers/modeling_dummy.py", "patch": "@@ -881,9 +881,7 @@ def forward(\n return_dict = return_dict if return_dict is not None else self.config.use_return_dict\n \n if (input_ids is None) ^ (inputs_embeds is not None):\n- raise ValueError(\n- ...
2024-10-05T07:47:37
golang/go
0c1a899a6c61dc59032ead0602d1cc6b918f7669
f9b67f76a59cb9adf5d04e9b559cda98afb3c6f4
[dev.regabi] cmd/compile: fix defined-pointer method call check The compiler has logic to check whether we implicitly dereferenced a defined pointer while trying to select a method. However, rather than checking whether there were any implicit dereferences of a defined pointer, it was finding the innermost dereference...
[ { "path": "src/cmd/compile/internal/typecheck/typecheck.go", "patch": "@@ -1328,6 +1328,7 @@ func lookdot(n *ir.SelectorExpr, t *types.Type, dostrcmp int) *types.Field {\n \t\t\t// Already in the process of diagnosing an error.\n \t\t\treturn f2\n \t\t}\n+\t\torig := n.X\n \t\ttt := n.X.Type()\n \t\ttypes.C...
2020-12-26T09:06:03
rust-lang/rust
5100bfd57a77c3cf635a88835a10a70801bc25cb
84340b33f985d36ee1ed9547eea367f94c7408a1
fix(ide-assists): `let else` to `if let else` Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
[ { "path": "src/tools/rust-analyzer/crates/ide-assists/src/handlers/replace_let_with_if_let.rs", "patch": "@@ -45,19 +45,31 @@ pub(crate) fn replace_let_with_if_let(acc: &mut Assists, ctx: &AssistContext<'_>\n let mut editor = builder.make_editor(let_stmt.syntax());\n let make = Synta...
2025-03-23T19:37:35
nodejs/node
edffad075e1dac0ebea7e70b05e4e49528fc59d2
523a1550a3d07ecc3d13e071cb0f1c732bae3bad
test: add url type check in Module options The code coverage in `root/internal/vm/Module.js` lacked test coverage for the url options paramter. The test adds a check to ensure error is thrown. PR-URL: https://github.com/nodejs/node/pull/18664 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ih...
[ { "path": "test/parallel/test-vm-module-errors.js", "patch": "@@ -44,7 +44,7 @@ async function checkArgType() {\n });\n \n for (const invalidOptions of [\n- 0, 1, null, true, 'str', () => {}, Symbol.iterator\n+ 0, 1, null, true, 'str', () => {}, { url: 0 }, Symbol.iterator\n ]) {\n common.ex...
2018-02-08T23:38:38
vercel/next.js
29582c8b1ca967b1855db96c8b4d801050a04a45
68fb39a034d1b5d7eb8f2af23ca563956f1fa3be
Fix edge rewrite handling (#40115) Follow-up to https://github.com/vercel/next.js/pull/40076 this ensures we handle rendering correctly when the URL doesn't match the edge function exactly e.g. when rewriting since it looks like we don't currently have access to the `x-matched-path` header like we do for serverless fu...
[ { "path": "packages/next/server/base-server.ts", "patch": "@@ -1578,6 +1578,18 @@ export default abstract class Server<ServerOptions extends Options = Options> {\n if (result !== false) return result\n }\n }\n+\n+ // currently edge functions aren't receiving the x-matched-path\n...
2022-08-30T23:30:49
ollama/ollama
ce929984a33230269905e0e3cfa335cb8d6ba781
4b34930a31ceb9cc10d95b8bcd60c319f47d8043
server/internal/client/ollama: fix file descriptor management in Pull (#9931) Close chunked writers as soon as downloads complete, rather than deferring closure until Pull exits. This prevents exhausting file descriptors when pulling many layers. Instead of unbounded defers, use a WaitGroup and background goroutine t...
[ { "path": "server/internal/client/ollama/registry.go", "patch": "@@ -486,44 +486,43 @@ func (r *Registry) Pull(ctx context.Context, name string) error {\n \t\texpected += l.Size\n \t}\n \n-\tvar total atomic.Int64\n+\tvar received atomic.Int64\n \tvar g errgroup.Group\n \tg.SetLimit(r.maxStreams())\n \tfor ...
2025-03-21T23:16:38
huggingface/transformers
38f9f10dd9240619ea17fb6c7acb51b3bc592232
f92d354823ca38cbb71441f763711a66fe90d7d4
Cache: revert DynamicCache init for BC (#33861) * tmp commit * tmp commit * make fixup * missing removal * fix condition * fix end-to-end compilation * if -> elif * BC * BC * use @deprecate_kwarg("num_hidden_layers", version="4.47.0") * wups the import * 🥴 --------- Co-authored-...
[ { "path": "src/transformers/cache_utils.py", "patch": "@@ -16,6 +16,7 @@\n is_torchdynamo_compiling,\n logging,\n )\n+from .utils.deprecation import deprecate_kwarg\n \n \n if is_hqq_available():\n@@ -361,15 +362,12 @@ class DynamicCache(Cache):\n ```\n \"\"\"\n \n+ @deprecate_kwarg(\...
2024-10-04T20:47:08
golang/go
f9b67f76a59cb9adf5d04e9b559cda98afb3c6f4
499851bac88dfa2a85c39a2123f092071098cada
[dev.regabi] cmd/compile: change ir.DoChildren to use bool result type After using the IR visitor code for a bit, it seems clear that a simple boolean result type is adequate for tree traversals. This CL updates ir.DoChildren to use the same calling convention as ir.Any, and updates mknode.go to generate code accordin...
[ { "path": "src/cmd/compile/internal/inline/inl.go", "patch": "@@ -265,7 +265,7 @@ var errBudget = errors.New(\"too expensive\")\n func (v *hairyVisitor) tooHairy(fn *ir.Func) bool {\n \tv.do = v.doNode // cache closure\n \n-\terr := ir.DoChildren(fn, v.do)\n+\terr := errChildren(fn, v.do)\n \tif err != nil ...
2020-12-30T03:46:31
nodejs/node
523a1550a3d07ecc3d13e071cb0f1c732bae3bad
0f9efef05deb11dbbdf5adf96460839f5b332207
async_hooks: deprecate unsafe emit{Before,After} The emit{Before,After} APIs in AsyncResource are problematic. * emit{Before,After} are named to suggest that the only thing they do is emit the before and after hooks. However, they in fact, mutate the current execution context. * They must be properly nested. Fail...
[ { "path": "doc/api/async_hooks.md", "patch": "@@ -599,10 +599,6 @@ own resources.\n \n The `init` hook will trigger when an `AsyncResource` is instantiated.\n \n-The `before` and `after` calls must be unwound in the same order that they\n-are called. Otherwise, an unrecoverable exception will occur and the ...
2018-02-01T23:25:41
huggingface/transformers
f92d354823ca38cbb71441f763711a66fe90d7d4
f319ba16fa89d4a48864af94d1da4abb98c4a8ab
fix red check-copies (#33964)
[ { "path": "src/transformers/models/paligemma/modeling_paligemma.py", "patch": "@@ -46,7 +46,7 @@\n _CONFIG_FOR_DOC = \"PaliGemmaConfig\"\n \n \n-# Adapted from transformers.models.llama.modeling_llama._prepare_4d_causal_attention_mask_with_cache_position\n+# Adapted from transformers.models.llama.modeling_l...
2024-10-04T20:45:37