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
nodejs/node
639770c8d61572576d8b431802b904ff52b037ed
8331f571edb27491161589f30e88962dfe436c2c
tools: autofixer for lowercase-name-for-primitive PR-URL: https://github.com/nodejs/node/pull/17715 Refs: https://github.com/nodejs/node/issues/16636 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Weijia Wang <starkwang@126.com>
[ { "path": "test/parallel/test-eslint-lowercase-name-for-primitive.js", "patch": "@@ -22,20 +22,28 @@ new RuleTester().run('lowercase-name-for-primitive', rule, {\n ],\n invalid: [\n {\n- code: 'new errors.TypeError(\"ERR_INVALID_ARG_TYPE\", \"a\", \"Number\")',\n- errors: [{ message: 'prim...
2017-12-17T10:41:34
golang/go
7f688d18c0ae6df3e895d21799b8ece7d5941293
d2b436d95d99cb3ff587bf0d2e893a8d027f8292
runtime: mlock signal stack on macOS/ARM64 Apparently, the macOS ARM64 kernel has a bug where when a signal arrives and the signal stack is not currently faulted in, it may kill the program with a SIGILL. Work around it by mlock the signal stacks. Fixes #42774. Change-Id: I99a4b3fdb6d8af1c945725ddc2c25568d81c510a Re...
[ { "path": "src/runtime/os_darwin.go", "patch": "@@ -283,6 +283,12 @@ func libpreinit() {\n func mpreinit(mp *m) {\n \tmp.gsignal = malg(32 * 1024) // OS X wants >= 8K\n \tmp.gsignal.m = mp\n+\tif GOOS == \"darwin\" && GOARCH == \"arm64\" {\n+\t\t// mlock the signal stack to work around a kernel bug where it...
2020-11-27T05:42:41
huggingface/transformers
e31a7a2638202187f810cd67e48554ee54ae5558
bd251e4955fee920dc770130da91b2cc802475ba
Fix `.push_to_hub(..., create_pr=True, revision="my-branch")` when creating PR on not-owned repo (#32094) Fix create_pr aagainst existing revision
[ { "path": "src/transformers/utils/hub.py", "patch": "@@ -49,6 +49,7 @@\n from huggingface_hub.utils import (\n EntryNotFoundError,\n GatedRepoError,\n+ HfHubHTTPError,\n HFValidationError,\n LocalEntryNotFoundError,\n OfflineModeIsEnabled,\n@@ -793,7 +794,16 @@ def _upload_modified_fi...
2024-08-12T14:35:32
rust-lang/rust
80ce9d1effd19b42a3eea3c571634960ab9a90ef
18061e2c42c719d0d483b9bebdc853ec189ba121
fix: `borrow_deref_ref` suggests wrongly when coerce to mut
[ { "path": "clippy_lints/src/borrow_deref_ref.rs", "patch": "@@ -2,7 +2,7 @@ use crate::reference::DEREF_ADDROF;\n use clippy_utils::diagnostics::span_lint_and_then;\n use clippy_utils::source::SpanRangeExt;\n use clippy_utils::ty::implements_trait;\n-use clippy_utils::{get_parent_expr, is_from_proc_macro, i...
2025-03-13T16:15:02
vercel/next.js
adf40a6fceec84f40ef0040c913b78b8ea083b4b
420d7850be578f0f74b3c8f0ac988c455174756f
chore: convert `with-dynamic-import` to TypeScript (#38844) Closes #38806 ## 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 reque...
[ { "path": "examples/with-dynamic-import/.gitignore", "patch": "@@ -32,3 +32,6 @@ yarn-error.log*\n \n # vercel\n .vercel\n+\n+# TypeScript\n+*.tsbuildinfo\n\\ No newline at end of file", "additions": 3, "deletions": 0, "language": "Unknown" }, { "path": "examples/with-dynamic-import/comp...
2022-07-21T02:22:58
nodejs/node
094d92bb57207fbc184bf15ef83591416333f1cf
457ceebabf9f3b82e45bba7c76be595e4d69fe4b
test: remove ambiguous error messages from test_error assert.strictEqual accepts 3 arguments, the last of which allows for user-specified error message to be thrown when the assertion fails. Unfortunately, this error message is less helpful than the default when it is vague. This commit removes vague, user-specified e...
[ { "path": "test/addons-napi/test_error/test.js", "patch": "@@ -83,56 +83,34 @@ common.expectsError(\n \n let error = test_error.createError();\n assert.ok(error instanceof Error, 'expected error to be an instance of Error');\n-assert.strictEqual(error.message, 'error', 'expected message to be \"error\"');\n...
2017-12-21T22:48:41
ollama/ollama
750c1c55f7ea65219e4e24d6107a4a3ad519b53f
ec4c35fe99e5e5e02f38d94d310615828dd3a2c8
server: fix race conditions during download (#5994) This fixes various data races scattered throughout the download/pull client where the client was accessing the download state concurrently. This commit is mostly a hot-fix and will be replaced by a new client one day soon. Also, remove the unnecessary opts ar...
[ { "path": "server/download.go", "patch": "@@ -44,17 +44,19 @@ type blobDownload struct {\n \n \tcontext.CancelFunc\n \n-\tdone bool\n+\tdone chan struct{}\n \terr error\n \treferences atomic.Int32\n }\n \n type blobDownloadPart struct {\n-\tN int\n-\tOffset int64\n-\tSize ...
2024-07-26T21:24:24
golang/go
d2b436d95d99cb3ff587bf0d2e893a8d027f8292
4f42a9b76b2ca2c261a4afec986b9518a61626ee
cmd/go: fix infinite loop in modload.keepSums Fixes #42891 Change-Id: I0cce4204a1c4959b896188a2ab3719c0507f95e6 Reviewed-on: https://go-review.googlesource.com/c/go/+/274172 Run-TryBot: Jay Conrod <jayconrod@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Michael Matloob <matloob@golang.org> Reviewe...
[ { "path": "src/cmd/go/internal/modload/init.go", "patch": "@@ -1018,7 +1018,7 @@ func keepSums(addDirect bool) map[module.Version]bool {\n \t\t\t}\n \t\t}\n \t\tfor _, pkg := range loaded.pkgs {\n-\t\t\tif pkg.testOf != nil || pkg.inStd {\n+\t\t\tif pkg.testOf != nil || pkg.inStd || module.CheckImportPath(p...
2020-11-30T20:46:33
huggingface/transformers
bd251e4955fee920dc770130da91b2cc802475ba
342e3f9f2067d45c27c30fbd4d748d233bca3adc
fix: Fixed conditional check for `encodec` model names (#32581) * Fixed conditional check for encodec model names. * Reformatted conditional check.
[ { "path": "src/transformers/models/encodec/convert_encodec_checkpoint_to_pytorch.py", "patch": "@@ -207,7 +207,7 @@ def should_ignore(name, ignore_keys):\n def recursively_load_weights(orig_dict, hf_model, model_name):\n unused_weights = []\n \n- if model_name == \"encodec_24khz\" or \"encodec_32khz\...
2024-08-12T11:07:46
nodejs/node
457ceebabf9f3b82e45bba7c76be595e4d69fe4b
81c2b59609b5a354219acc5cc0f376be5be86cc4
test: fix unreliable async-hooks/test-signalwrap Use an interval to keep the event loop open so the test does not exit before receiving all signals fom asynchronous `exec()` calls. PR-URL: https://github.com/nodejs/node/pull/17827 Fixes: https://github.com/nodejs/node/issues/14070 Reviewed-By: Colin Ihrig <cjihrig@gm...
[ { "path": "test/async-hooks/test-signalwrap.js", "patch": "@@ -1,7 +1,8 @@\n 'use strict';\n const common = require('../common');\n \n-if (common.isWindows) return common.skip('no signals in Windows');\n+if (common.isWindows)\n+ common.skip('no signals in Windows');\n \n const assert = require('assert');\n...
2017-12-22T18:21:39
ollama/ollama
a622c47bd32e4c7d8d6cd12ba8c7556fcc492524
ec4c35fe99e5e5e02f38d94d310615828dd3a2c8
fix nil deref in auth.go
[ { "path": "server/auth.go", "patch": "@@ -67,7 +67,7 @@ func getAuthorizationToken(ctx context.Context, challenge registryChallenge) (st\n \n \theaders.Add(\"Authorization\", signature)\n \n-\tresponse, err := makeRequest(ctx, http.MethodGet, redirectURL, headers, nil, nil)\n+\tresponse, err := makeRequest(...
2024-07-26T21:10:18
golang/go
4f42a9b76b2ca2c261a4afec986b9518a61626ee
7b192f33cf8e1391769353687e5b698d9f677109
net: add note about disabling loopback in ListenMulticastUDP() Fixes #41752 Change-Id: I83520d2303e5fd2e5f6329f092b40e73c13771a1 Reviewed-on: https://go-review.googlesource.com/c/go/+/271908 Reviewed-by: Ian Lance Taylor <iant@golang.org> Trust: Dmitri Shuralyov <dmitshur@golang.org>
[ { "path": "src/net/udpsock.go", "patch": "@@ -259,6 +259,9 @@ func ListenUDP(network string, laddr *UDPAddr) (*UDPConn, error) {\n // ListenMulticastUDP is just for convenience of simple, small\n // applications. There are golang.org/x/net/ipv4 and\n // golang.org/x/net/ipv6 packages for general purpose use...
2020-11-21T06:48:26
huggingface/transformers
342e3f9f2067d45c27c30fbd4d748d233bca3adc
8f2b6d5e3dcf40ab0d01f3c8117d1df09e465616
Fix sliding window attention used in Gemma2FlashAttention2 (#32522) * fix sliding window attention (flash2) in gemma2 model * [run-slow] gemma * fix slicing attention_mask for flash_attn2 * fix slicing attention_mask when flash_attn is used * add missing comment * slice the last seq_len tokens in the ke...
[ { "path": "src/transformers/models/gemma2/modeling_gemma2.py", "patch": "@@ -427,6 +427,7 @@ def forward(\n dropout=dropout_rate,\n softmax_scale=self.scaling,\n is_causal=self.is_causal,\n+ sliding_window=self.sliding_window,\n use_top_left_mask=se...
2024-08-12T09:18:15
ollama/ollama
3d9de805b777ca43746a6ae951b34689aa16e8e9
f5e3939220e9cd3d7a636708bc9df031ebfd4854
fix: model save stop parameter is saved as a slice which is incompatible with modelfile parsing
[ { "path": "cmd/interactive.go", "patch": "@@ -1,6 +1,7 @@\n package cmd\n \n import (\n+\t\"cmp\"\n \t\"errors\"\n \t\"fmt\"\n \t\"io\"\n@@ -9,13 +10,14 @@ import (\n \t\"path/filepath\"\n \t\"regexp\"\n \t\"slices\"\n-\t\"sort\"\n \t\"strings\"\n \n \t\"github.com/spf13/cobra\"\n+\t\"golang.org/x/exp/maps\...
2024-07-26T20:19:01
nodejs/node
81c2b59609b5a354219acc5cc0f376be5be86cc4
c08f0d16e7e4701119e5dac3ac3a859ede3dcc12
async_hooks: use CHECK instead of throwing error SetupHooks is only available via `process.binding('async_wrap')`, so there's no reason it shouldn't be called with the appropriate arguments, since it is an internal-only function. The only place this function is used is `lib/internal/async_hooks.js`. PR-URL: https://g...
[ { "path": "src/async_wrap.cc", "patch": "@@ -343,8 +343,7 @@ static void PromiseHook(PromiseHookType type, Local<Promise> promise,\n static void SetupHooks(const FunctionCallbackInfo<Value>& args) {\n Environment* env = Environment::GetCurrent(args);\n \n- if (!args[0]->IsObject())\n- return env->Thro...
2017-12-23T03:30:20
golang/go
848dff6dda4d38d3d2e9ab128954f50d085d9313
a45e12fd4bd2cc4d5970f374499b603bfb793891
test: update gofrontend expected errors This matches the error messages after CL 273890. syntax/semi4.go:11:9: error: unexpected semicolon or newline, expecting ‘{’ after for clause syntax/semi4.go:10:13: error: reference to undefined name ‘x’ syntax/semi4.go:12:17: error: reference to undefined name ‘z’ Change-Id: ...
[ { "path": "test/syntax/semi4.go", "patch": "@@ -8,5 +8,5 @@ package main\n \n func main() {\n \tfor x\t\t// GCCGO_ERROR \"undefined\"\n-\t{\t\t// ERROR \"unexpected {, expecting for loop condition\"\n-\t\tz\n+\t{\t\t// ERROR \"unexpected {, expecting for loop condition|expecting .*{.* after for clause\"\n+\...
2020-11-29T03:10:57
huggingface/transformers
8f2b6d5e3dcf40ab0d01f3c8117d1df09e465616
7c1149120829eb58e42a1ba4dbd2a9fa98864707
Fix: FA2 with packed training (#32487) * fix check * add tests * [run-slow] llama, gemma2 * oops, whisper actually runs but needed some special treatment
[ { "path": "src/transformers/modeling_flash_attention_utils.py", "patch": "@@ -264,11 +264,10 @@ def _flash_attention_forward(\n )\n attn_output = pad_input(attn_output_unpad, indices_q, batch_size, query_length)\n \n- # if position_ids is provided and check not all examples (row) contain ...
2024-08-12T08:40:07
ollama/ollama
ce3c93b08f0b90496e86b9e0a5753334c2d21419
bb46bbcf5e90e5efab5ff946a6c798131907ba2d
Report better error on cuda unsupported os/arch If we detect an NVIDIA GPU, but nvidia doesn't support the os/arch, this will report a better error for the user and point them to docs to self-install the drivers if possible.
[ { "path": "scripts/install.sh", "patch": "@@ -198,19 +198,29 @@ if check_gpu lspci amdgpu || check_gpu lshw amdgpu; then\n exit 0\n fi\n \n+CUDA_REPO_ERR_MSG=\"NVIDIA GPU detected, but your OS and Architecture are not supported by NVIDIA. Please install the CUDA driver manually https://docs.nvidia.com/...
2024-07-25T00:09:20
nodejs/node
c08f0d16e7e4701119e5dac3ac3a859ede3dcc12
359819e76052f456beeefeef9bed4062b6c9e7b0
test: fix flaky test-benchmark-fs test-benchmark-fs uses common.tmpDir without first insuring it exists by calling common.refreshTmpDir(). Add that function call. PR-URL: https://github.com/nodejs/node/pull/17853 Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
[ { "path": "test/parallel/test-benchmark-fs.js", "patch": "@@ -3,6 +3,8 @@\n const common = require('../common');\n const runBenchmark = require('../common/benchmark');\n \n+common.refreshTmpDir();\n+\n runBenchmark('fs', [\n 'n=1',\n 'size=1',", "additions": 2, "deletions": 0, "language": "J...
2017-12-24T22:10:20
golang/go
a45e12fd4bd2cc4d5970f374499b603bfb793891
d6abf298cf1ef56dc8cbec2ee9a18c071bb6eb3c
test: recognize gofrontend error messages shift1.go:76:16: error: shift of non-integer operand shift1.go:77:16: error: shift of non-integer operand Change-Id: I48584c0b01f9f6912a93b5f9bba55b5803fbeced Reviewed-on: https://go-review.googlesource.com/c/go/+/273888 Trust: Ian Lance Taylor <iant@golang.org> Run-TryBot: I...
[ { "path": "test/shift1.go", "patch": "@@ -73,8 +73,8 @@ func _() {\n \t// non constants arguments trigger a different path\n \tf2 := 1.2\n \ts2 := \"hi\"\n-\t_ = f2 << 2 // ERROR \"shift of type float64\"\n-\t_ = s2 << 2 // ERROR \"shift of type string\"\n+\t_ = f2 << 2 // ERROR \"shift of type float64|non-...
2020-11-29T02:14:38
vercel/next.js
755f13adf8e7f8b7c2bfc82b2d1990cc3d9c8923
6609022f91eb46c0c3482c6c07974e299809b41a
ignore parse error in the build script
[ { "path": "crates/turbo-tasks-build/src/lib.rs", "patch": "@@ -81,123 +81,129 @@ pub fn generate_register() {\n while let Some((mod_path, file_path)) = queue.pop() {\n println!(\"cargo:rerun-if-changed={}\", file_path.to_string_lossy());\n let src = std::fs::read_to_string(&f...
2022-07-20T22:07:33
huggingface/transformers
7c1149120829eb58e42a1ba4dbd2a9fa98864707
48101cf8d127bbf22d751c7df118a6ce357e2e27
Add new model (#32615) * v1 - working version * fix * fix * fix * fix * rename to correct name * fix title * fixup * rename files * fix * add copied from on tests * rename to `FalconMamba` everywhere and fix bugs * fix quantization + accelerate * fix copies * add `torch.compil...
[ { "path": "docs/source/en/_toctree.yml", "patch": "@@ -370,6 +370,8 @@\n title: ESM\n - local: model_doc/falcon\n title: Falcon\n+ - local: model_doc/falcon_mamba\n+ title: FalconMamba\n - local: model_doc/fastspeech2_conformer\n title: FastSpeech2Conformer\n ...
2024-08-12T06:22:47
ollama/ollama
ac33aa7d3782887878e6e24fb4a6238356a489a6
a6cd8f6169c029c92105962017562274bd90626b
Fix Embed Test Flakes (#5893) * float cmp * increase tolerance
[ { "path": "integration/embed_test.go", "patch": "@@ -4,12 +4,45 @@ package integration\n \n import (\n \t\"context\"\n+\t\"math\"\n \t\"testing\"\n \t\"time\"\n \n \t\"github.com/ollama/ollama/api\"\n )\n \n+func floatsEqual32(a, b float32) bool {\n+\treturn math.Abs(float64(a-b)) <= 1e-4\n+}\n+\n+func floa...
2024-07-24T18:15:46
nodejs/node
359819e76052f456beeefeef9bed4062b6c9e7b0
d610fad39018a7f21904f2f8fa496c21472f05cb
module: print better message on esm import error Use the same approach as a previous PR to include the offending line in the output and underline imports of inexistent exports. PR-URL: https://github.com/nodejs/node/pull/17786 Fixes: https://github.com/nodejs/node/issues/17785 Refs: https://github.com/nodejs/node/pul...
[ { "path": "lib/internal/loader/ModuleJob.js", "patch": "@@ -2,6 +2,7 @@\n \n const { ModuleWrap } = internalBinding('module_wrap');\n const { SafeSet, SafePromise } = require('internal/safe_globals');\n+const { decorateErrorStack } = require('internal/util');\n const assert = require('assert');\n const reso...
2017-12-20T09:42:24
vercel/next.js
97478b7df9e6056852173cb1291398a20737213d
1e4df8d98faa1924585e8b722062fa4a247dc54b
Handle exports in .d.ts files without crashing
[ { "path": "crates/turbopack-ecmascript/src/references/esm/export.rs", "patch": "@@ -29,6 +29,7 @@ pub enum EsmExport {\n LocalBinding(String),\n ImportedBinding(EsmAssetReferenceVc, String),\n ImportedNamespace(EsmAssetReferenceVc),\n+ Error,\n }\n \n #[turbo_tasks::function]\n@@ -120,6 +121,...
2022-07-20T22:06:44
golang/go
d6abf298cf1ef56dc8cbec2ee9a18c071bb6eb3c
c193279e2c9e62e8ddc0893484251b4411461d62
test: recognize new gofrontend error message As of https://golang.org/cl/273886: fixedbugs/bug340.go:15:18: error: reference to method ‘x’ in interface with no methods For golang/go#10700 Change-Id: Id29eb0e34bbb524117614229c4c27cfd17dae286 Reviewed-on: https://go-review.googlesource.com/c/go/+/273887 Trust: Ian La...
[ { "path": "test/fixedbugs/bug340.go", "patch": "@@ -12,6 +12,6 @@ func main() {\n \tvar x interface{}\n \tswitch t := x.(type) {\n \tcase 0:\t\t// ERROR \"type\"\n-\t\tt.x = 1 // ERROR \"type interface \\{\\}|reference to undefined field or method\"\n+\t\tt.x = 1 // ERROR \"type interface \\{\\}|reference t...
2020-11-29T01:51:18
huggingface/transformers
48101cf8d127bbf22d751c7df118a6ce357e2e27
e7f4ace0929600606424efd4cd91947bd567d323
🌐 [i18n-KO] Translated `agent.md` to Korean (#32351) * docs: ko: main_classes/agent * feat: chatgpt draft * fix: manual edits * fix: resolve suggestions Co-authored-by: Woojun Jung <46880056+jungnerd@users.noreply.github.com> Co-authored-by: thsamaji <60818655+thsamajiki@users.noreply.github.com> Co-au...
[ { "path": "docs/source/ko/_toctree.yml", "patch": "@@ -266,8 +266,8 @@\n title: (번역중) 개념 가이드\n - sections:\n - sections:\n- - local: in_translation\n- title: (번역중) Agents and Tools\n+ - local: main_classes/agent\n+ title: 에이전트와 도구\n - local: in_translation\n title: (번역중) Auto C...
2024-08-09T16:58:52
nodejs/node
d022cb1bdd20f10483cbe988a950548df2dfd48c
4d74b52979c60391bc369be69a34463eba61f383
lib: combine similar error codes There two similar error codes in lib: "ERR_VALUE_OUT_OF_RANGE" and "ERR_OUT_OF_RANGE". This change is to reduce them into "ERR_VALUE_OUT_OF_RANGE" Fixes: https://github.com/nodejs/node/issues/17603 PR-URL: https://github.com/nodejs/node/pull/17648 Fixes: https://github.com/nodejs/nod...
[ { "path": "doc/api/errors.md", "patch": "@@ -1340,7 +1340,7 @@ An operation caused an out-of-memory condition.\n <a id=\"ERR_OUT_OF_RANGE\"></a>\n ### ERR_OUT_OF_RANGE\n \n-An input argument value was outside an acceptable range.\n+A given value is out of the accepted range.\n \n <a id=\"ERR_PARSE_HISTORY_D...
2017-12-13T12:48:43
huggingface/transformers
e7f4ace0929600606424efd4cd91947bd567d323
e4522fe399641add9b1f3207923752a35ea7fdbb
fix non contiguous tensor value error in save_pretrained (#32422) Signed-off-by: duzhanwei <duzhanwei@bytedance.com> Co-authored-by: duzhanwei <duzhanwei@bytedance.com>
[ { "path": "src/transformers/modeling_utils.py", "patch": "@@ -2746,7 +2746,7 @@ def save_pretrained(\n if module_map:\n filename_to_tensors = logging.tqdm(filename_to_tensors, desc=\"Saving checkpoint shards\")\n for shard_file, tensors in filename_to_tensors:\n- shard...
2024-08-09T11:59:43
golang/go
c193279e2c9e62e8ddc0893484251b4411461d62
294c214ccac877be8d8ce16b0302434a15a2476b
os: return proper user directories on iOS Separating iOS into its own runtime constant broke the logic here to derive the correct home, cache, and config directories on iOS devices. Fixes #42878 Change-Id: Ie4ff57895fcc34b0a9af45554ea3a346447d2e7a GitHub-Last-Rev: 5e74e64917fa46e9c6e0d963cab5194ab89e2f64 GitHub-Pull...
[ { "path": "src/os/file.go", "patch": "@@ -406,7 +406,7 @@ func UserCacheDir() (string, error) {\n \t\t\treturn \"\", errors.New(\"%LocalAppData% is not defined\")\n \t\t}\n \n-\tcase \"darwin\":\n+\tcase \"darwin\", \"ios\":\n \t\tdir = Getenv(\"HOME\")\n \t\tif dir == \"\" {\n \t\t\treturn \"\", errors.New...
2020-11-29T23:58:29
vercel/next.js
cdb0c47455aadcb0eeea4e250a669b4000b90e63
672bdaee403c5f6ab3c7181c683849dfcf94942f
Improve `next/image` error message when `src` prop is missing (#38847) Currently, when a user forgets the `src` prop on an image, an error is thrown. However that error doesn't include any of the the user's code in the stack trace, so its nearly impossible to figure out which image is the culprit if there are multiple...
[ { "path": "packages/next/client/future/image.tsx", "patch": "@@ -357,10 +357,6 @@ export default function Image({\n }\n src = typeof src === 'string' ? src : staticSrc\n \n- const widthInt = getInt(width)\n- const heightInt = getInt(height)\n- const qualityInt = getInt(quality)\n-\n let isLazy =\n ...
2022-07-20T21:26:38
ollama/ollama
db0968f30c895b9f2059da48800018739ef9bca7
c0648233f2236f82f6830d2aaed552ae0f72379b
fix dupe err message (#5857)
[ { "path": "server/routes.go", "patch": "@@ -609,10 +609,9 @@ func (s *Server) CreateModelHandler(c *gin.Context) {\n \t\tdefer cancel()\n \n \t\tquantization := cmp.Or(r.Quantize, r.Quantization)\n-\t\tif err := CreateModel(ctx, name, filepath.Dir(r.Path), strings.ToUpper(quantization), f, fn); err != nil {...
2024-07-22T22:48:15
nodejs/node
b98aaa312ebecd45dfe3f1a557860d1cce4028bf
8599465d33b16b12da844f115fd10f9af4ad530f
net: migrate errors to internal/errors Throw ERR_SOCKET_CLOSED and ERR_SERVER_NOT_RUNNING instead of the old-style errors in net.js. PR-URL: https://github.com/nodejs/node/pull/17766 Refs: https://github.com/nodejs/node/issues/17709 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipin...
[ { "path": "doc/api/errors.md", "patch": "@@ -1364,7 +1364,14 @@ Script execution was interrupted by `SIGINT` (For example, when Ctrl+C was press\n \n The [`server.listen()`][] method was called while a `net.Server` was already\n listening. This applies to all instances of `net.Server`, including HTTP, HTTPS...
2017-12-19T23:07:41
huggingface/transformers
e4522fe399641add9b1f3207923752a35ea7fdbb
7728b788550aeb47fe959bf6c71bf28ba74e3451
fix slow integration gemma2 test (#32534) no empty revision
[ { "path": "tests/models/gemma/test_tokenization_gemma.py", "patch": "@@ -138,7 +138,6 @@ def test_tokenizer_integration(self):\n self.tokenizer_integration_test_util(\n expected_encoding=expected_encoding,\n model_name=\"google/gemma-2b\",\n- revision=\"\",\n ...
2024-08-09T09:28:22
golang/go
e5da18df52e3f81534d7cdb6920cf993b5f079d2
4ce0a7cea6805277c3bfecbaab2170e5c2543cba
os/exec: constrain thread usage in leaked descriptor test on illumos On illumos systems, libc can under some conditions make use of files from /proc. In the case of this test, the creation of new threads was (in the target thread) causing libc to open and close "/proc/self/lwp/5/lwpname" to set the thread name, which...
[ { "path": "src/os/exec/exec_test.go", "patch": "@@ -691,6 +691,18 @@ func TestExtraFiles(t *testing.T) {\n \tc.Stdout = &stdout\n \tc.Stderr = &stderr\n \tc.ExtraFiles = []*os.File{tf}\n+\tif runtime.GOOS == \"illumos\" {\n+\t\t// Some facilities in illumos are implemented via access\n+\t\t// to /proc by li...
2020-11-30T01:18:51
vercel/next.js
672bdaee403c5f6ab3c7181c683849dfcf94942f
4e6b4ef13e47cd5a645d8a266b278f94a86928b6
fix: don't treat `output: "standalone"` as custom server (#38831) Fixes #38742 ## 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 ...
[ { "path": "packages/next/build/utils.ts", "patch": "@@ -1230,6 +1230,7 @@ server.listen(currentPort, (err) => {\n port: currentPort,\n dir: path.join(__dirname),\n dev: false,\n+ customServer: false,\n conf: ${JSON.stringify({\n ...serverConfig,\n distDir: `./${path.relative(d...
2022-07-20T19:52:01
ollama/ollama
e12fff8810e37bfabe4416f7f41902387ff3aae1
c0648233f2236f82f6830d2aaed552ae0f72379b
Enable windows error dialog for subprocess startup Make sure if something goes wrong spawning the process, the user gets enough info to be able to try to self correct, or at least file a bug with details so we can fix it. Once the process starts, we immediately change back to the recommended setting to prevent the bl...
[ { "path": "llm/ext_server/server.cpp", "patch": "@@ -41,6 +41,7 @@\n \n #if defined(_WIN32)\n #include <windows.h>\n+#include <errhandlingapi.h>\n #endif\n \n #include <cstddef>\n@@ -2737,6 +2738,9 @@ int wmain(int argc, wchar_t **wargv) {\n for (int i = 0; i < argc; ++i) {\n argv[i] = wchar_to_...
2024-07-15T16:25:56
nodejs/node
8599465d33b16b12da844f115fd10f9af4ad530f
ae2bed993884573f88da906d435c992e445c3834
fs: migrate errors to internal/errors Throw ERR_INVALID_ARG_TYPE when validating arguments passed to WriteStream.prototype._write. Refs: https://github.com/nodejs/node/issues/17709 PR-URL: https://github.com/nodejs/node/pull/17719 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Matteo Collina <matteo.col...
[ { "path": "lib/fs.js", "patch": "@@ -2554,8 +2554,13 @@ WriteStream.prototype.open = function() {\n \n \n WriteStream.prototype._write = function(data, encoding, cb) {\n- if (!(data instanceof Buffer))\n- return this.emit('error', new Error('Invalid data'));\n+ if (!(data instanceof Buffer)) {\n+ co...
2017-12-17T19:55:22
golang/go
4ce0a7cea6805277c3bfecbaab2170e5c2543cba
358d35455d06b1ebee948efff123842490dcb797
runtime/pprof: ignore test failures on windows/arm This is blocking forward progress of the de-bitrotting work, and I don't know off hand how to fix this. Seeing as its disabled on other platforms, I suspect pprof might not be a very reliable feature, so just allow for the tests to fail for now, until somebody more mo...
[ { "path": "src/runtime/pprof/pprof_test.go", "patch": "@@ -286,6 +286,10 @@ func testCPUProfile(t *testing.T, matches matchFunc, need []string, avoid []stri\n \t\tif runtime.GOARCH == \"arm\" || runtime.GOARCH == \"arm64\" {\n \t\t\tbroken = true\n \t\t}\n+\tcase \"windows\":\n+\t\tif runtime.GOARCH == \"ar...
2020-11-28T13:38:29
vercel/next.js
ca846882298de121c45c2f481c7c02155a7f58c7
3102899f6972225d27fd57a363f28b421bf1d319
chore: TS improvments (#38834) I noticed our internal comments about exported functions that should not be used in application code. TSDoc has the [`@internal`](https://tsdoc.org/pages/tags/internal/) option that can be used together with TS's [`stripInternal: true` compiler option](https://www.typescriptlang.org/tsc...
[ { "path": "packages/next/client/router.ts", "patch": "@@ -5,10 +5,6 @@ import type { NextRouter } from '../shared/lib/router/router'\n import { RouterContext } from '../shared/lib/router-context'\n import isError from '../lib/is-error'\n \n-type ClassArguments<T> = T extends new (...args: infer U) => any ? ...
2022-07-20T16:48:45
huggingface/transformers
7728b788550aeb47fe959bf6c71bf28ba74e3451
838d141fb47dd05c3ea9afeeaf7a263b16aba031
Fix a bug in Qwen2Audio (#32552) fix _update_model_kwargs_for_generation
[ { "path": "src/transformers/models/qwen2_audio/modeling_qwen2_audio.py", "patch": "@@ -1328,13 +1328,10 @@ def _update_model_kwargs_for_generation(\n outputs: ModelOutput,\n model_kwargs: Dict[str, Any],\n is_encoder_decoder: bool = False,\n- standardize_cache_format: bool = F...
2024-08-09T08:25:00
nodejs/node
79261f3003719264bc03f6a5b54cf9eddbc8b48e
0b7889582428b3cf1ea0ee48768854a2ca63478c
tls: migrate errors in _tls_wrap.js This migrates the old style error in _tls_wrap.js to the new style error ERR_TLS_RENEGOTIATION_DISABLED. Refs: https://github.com/nodejs/node/issues/17709 PR-URL: https://github.com/nodejs/node/pull/17792 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Jon Moss <me@j...
[ { "path": "doc/api/errors.md", "patch": "@@ -1513,6 +1513,11 @@ a hostname in the first parameter.\n An excessive amount of TLS renegotiations is detected, which is a potential\n vector for denial-of-service attacks.\n \n+<a id=\"ERR_TLS_RENEGOTIATION_DISABLED\"></a>\n+### ERR_TLS_RENEGOTIATION_DISABLED\n+\...
2017-12-20T11:58:03
huggingface/transformers
838d141fb47dd05c3ea9afeeaf7a263b16aba031
85817d98fb60977c97e3014196a462b732d2ed1a
Gemma2: fix FA2 generation (#32553) fix FA2
[ { "path": "src/transformers/models/gemma2/modeling_gemma2.py", "patch": "@@ -1093,7 +1093,11 @@ def prepare_inputs_for_generation(\n # The clone here is for the same reason as for `position_ids`.\n model_inputs = {\"input_ids\": input_ids.clone(memory_format=torch.contiguous_format),...
2024-08-09T07:22:16
vercel/next.js
3102899f6972225d27fd57a363f28b421bf1d319
9416e00bb1c3e09445d619791c220d52d65099d6
Fix squoosh image optimization for Node.js 18 (#38833) Starting in Node.js 18, the `fetch` global was made available and that caused the squoosh implementation to assume it was on a web browser and try to fetch the wasm file instead of reading it from the filesystem. This PR deletes the code trying to fetch since we k...
[ { "path": "packages/next/server/lib/squoosh/avif/avif_node_dec.js", "patch": "@@ -379,22 +379,6 @@ var Module = (function () {\n }\n }\n function getBinaryPromise() {\n- if (!wasmBinary && (ENVIRONMENT_IS_WEB || ENVIRONMENT_IS_WORKER)) {\n- if (typeof fetch === 'function') {\n- ...
2022-07-20T16:24:50
golang/go
b94346e69bb01e1cd522ddfa9d09f41d9d4d3e98
cb84d831c956026f477b52c9f8a7c1ed2b2724ad
test: match gofrontend error messages These changes match the following gofrontend error messages: blank1.go:16:1: error: may not define methods on non-local type chan/perm.go:28:9: error: expected channel chan/perm.go:29:11: error: left operand of ‘<-’ must be channel chan/perm.go:69:9: error: argument must be chan...
[ { "path": "test/blank1.go", "patch": "@@ -13,7 +13,7 @@ var t struct {\n \t_ int\n }\n \n-func (x int) _() { // ERROR \"cannot define new methods on non-local type\"\n+func (x int) _() { // ERROR \"methods on non-local type\"\n \tprintln(x)\n }\n ", "additions": 1, "deletions": 1, "language": "G...
2020-11-26T20:26:02
nodejs/node
c339931d8b3dbf3fb2a4fa4164bbf585759831c0
66e6affb428efdfc8de1db4bd9d6dfd7984ebb44
test: do not open fixture files for writing Use temp directory for open with `O_DSYNC` (which indicates a write may occur) rather than `fixtures` directory. Additionally, test can be run on macOS so allow that in addition to Linux. PR-URL: https://github.com/nodejs/node/pull/17810 Reviewed-By: Colin Ihrig <cjihrig@gm...
[ { "path": "test/parallel/test-fs-open-flags.js", "patch": "@@ -22,10 +22,12 @@\n // Flags: --expose_internals\n 'use strict';\n const common = require('../common');\n+\n const fixtures = require('../common/fixtures');\n-const assert = require('assert');\n \n+const assert = require('assert');\n const fs = re...
2017-12-21T22:46:46
huggingface/transformers
54ac39c648e20ce2329529e07fcc03eee58dda18
0164560353aab22b9c7769d344f833ae8a16f478
Fix code example to load bigcode starcoder2 7b (#32474)
[ { "path": "src/transformers/models/starcoder2/configuration_starcoder2.py", "patch": "@@ -25,7 +25,7 @@ class Starcoder2Config(PretrainedConfig):\n r\"\"\"\n This is the configuration class to store the configuration of a [`Starcoder2Model`]. It is used to instantiate a\n Starcoder2 model accord...
2024-08-08T20:42:58
vercel/next.js
7020ad6026bf001f75d2a26260c75fc53175d1b2
437a8540403c625d17bb673ed5476ecd25d8fd30
move `handle_resolve_error` to `turbopack-core`
[ { "path": "crates/turbopack-core/src/resolve/mod.rs", "patch": "@@ -796,3 +796,34 @@ impl AssetReference for AffectingResolvingAssetReference {\n )))\n }\n }\n+\n+pub async fn handle_resolve_error(\n+ result: ResolveResultVc,\n+ request_type: &str,\n+ context_path: FileSystemPathVc,\n+ ...
2022-07-20T15:56:09
golang/go
cb84d831c956026f477b52c9f8a7c1ed2b2724ad
0252cfd84d6268985199f96239e65a0b0d32363c
cmd/link: mark windows/arm as all PIE If the linker thinks that it's in exe mode instead of pie mode, it won't emit relocations when generating the pcln table, and we wind up with crashes like this on windows/arm, where all binaries are in fact relocated: Building Go toolchain2 using go_bootstrap and Go toolchain...
[ { "path": "src/cmd/link/internal/ld/config.go", "patch": "@@ -35,11 +35,12 @@ func (mode *BuildMode) Set(s string) error {\n \tdefault:\n \t\treturn fmt.Errorf(\"invalid buildmode: %q\", s)\n \tcase \"exe\":\n-\t\tif objabi.GOOS == \"darwin\" && objabi.GOARCH == \"arm64\" {\n-\t\t\t*mode = BuildModePIE // O...
2020-11-26T21:38:45
huggingface/transformers
0164560353aab22b9c7769d344f833ae8a16f478
044281605f5fc037e1048d4360da971fdfbca370
Fixed test `test_static_cache_exportability` with torch 2.4.0 (#32516) Workaround the export issue in torch 2.4 Co-authored-by: Guang Yang <guangyang@fb.com>
[ { "path": "tests/utils/test_cache_utils.py", "patch": "@@ -174,6 +174,8 @@ def test_static_cache_exportability(self):\n \"\"\"\n Tests that static cache works with `torch.export()`\n \"\"\"\n+ import torch\n+\n if version.parse(torch.__version__) < version.parse(\"2.3\...
2024-08-08T17:13:40
nodejs/node
66e6affb428efdfc8de1db4bd9d6dfd7984ebb44
4d1baf82ae0e3458d0038e0ca02d215740cdb77b
tools: fix man pages linking regex The change to word boundary was breaking many doc pages. This reverts the word boundary back to space. PR-URL: https://github.com/nodejs/node/pull/17724 Fixes: https://github.com/nodejs/node/issues/17694 Refs: https://github.com/nodejs/node/pull/17479 Reviewed-By: Gireesh Punathil <...
[ { "path": "tools/doc/html.js", "patch": "@@ -416,15 +416,15 @@ const BSD_ONLY_SYSCALLS = new Set(['lchmod']);\n // '<a href=\"http://man7.org/linux/man-pages/man2/open.2.html\">open(2)</a>'\n function linkManPages(text) {\n return text.replace(\n- /\\b([a-z.]+)\\((\\d)([a-z]?)\\)/gm,\n- (match, name...
2017-12-18T02:46:37
vercel/next.js
851e9aeba9cf6137da0d9e28815f7096fa9a2f55
20b63e13ab2631d6043277895d373aa31a1b327c
fix(edge-runtime): undefined global in edge runtime. (#38769) ## How to reproduce 1. create a next.js app with a middleware (or an edge route) that imports a node.js module: ```js // middleware.js import { NextResponse } from 'next/server' import { basename } from 'path' export default async functi...
[ { "path": "packages/next/build/webpack/loaders/next-edge-function-loader.ts", "patch": "@@ -16,14 +16,9 @@ export default function middlewareLoader(this: any) {\n }\n \n return `\n- import { adapter } from 'next/dist/server/web/adapter'\n+ import { adapter, enhanceGlobals } from 'next/dist...
2022-07-20T14:53:27
golang/go
0252cfd84d6268985199f96239e65a0b0d32363c
91f77ca2f8590ed2051ee9a62d52676cf1bff98d
runtime: adjust address calculation in identifying abort on windows/arm Apparently we're being called on arm 1 byte off, just like on 386 and amd64, so unify the handler for isAbortPC. Fixes #42859. Updates #29050. Change-Id: I97fffeb4a33d93ca3397ce1c9ba2b05137f391ca Reviewed-on: https://go-review.googlesource.com/c...
[ { "path": "src/runtime/signal_windows.go", "patch": "@@ -43,16 +43,9 @@ func initExceptionHandler() {\n //\n //go:nosplit\n func isAbort(r *context) bool {\n-\tswitch GOARCH {\n-\tcase \"386\", \"amd64\":\n-\t\t// In the case of an abort, the exception IP is one byte after\n-\t\t// the INT3 (this differs fr...
2020-11-27T21:07:23
rust-lang/rust
ccde0a22035dee21373c5c7f47c50aaa484ba70e
82a79b99e1279ad72cb93c2ad10c6be1facaca4a
Fix formatting (line too long)
[ { "path": "tests/codegen/issues/issue-129795.rs", "patch": "@@ -2,7 +2,8 @@\n //@ min-llvm-version: 20\n #![crate_type = \"lib\"]\n \n-// Ensure that a modulo operation with an operand that is known to be a power-of-two is properly optimized.\n+// Ensure that a modulo operation with an operand that is known...
2025-03-14T00:45:10
nodejs/node
4d1baf82ae0e3458d0038e0ca02d215740cdb77b
f454e14b223b87e2fcbefbb8b9398f438d8c12ce
doc: fix links in errors.md PR-URL: https://github.com/nodejs/node/pull/17829 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me>
[ { "path": "doc/api/errors.md", "patch": "@@ -1615,8 +1615,8 @@ Creation of a [`zlib`][] object failed due to incorrect configuration.\n [`dgram.createSocket()`]: dgram.html#dgram_dgram_createsocket_options_callback\n [`ERR_INVALID_ARG_TYPE`]: #ERR_INVALID_ARG_TYPE\n [`EventEmitter`]: events.html#events_clas...
2017-12-22T22:00:08
huggingface/transformers
044281605f5fc037e1048d4360da971fdfbca370
b01f9c484cd24596b274589222746446372ce043
Fix generate with `inputs_embeds` as input (#32493) * I think inputs_embeds has ndim == 3 * fix sequence length catch * add generate test * [run-slow]olmo, persimmon, gemma, gemma2, qwen2, llama * skip whisper * fix bart test * more fixes
[ { "path": "src/transformers/models/codegen/modeling_codegen.py", "patch": "@@ -756,17 +756,18 @@ def prepare_inputs_for_generation(\n \n # if `inputs_embeds` are passed, we only want to use them in the 1st generation step\n if inputs_embeds is not None and cache_position[0] == 0:\n- ...
2024-08-08T16:44:53
ollama/ollama
cc269ba0943ee1fa0bddcce8027d0a6d1b86fec5
80ee9b5e47fc0ea99d1f3f33224923266627c15c
Remove no longer supported max vram var The OLLAMA_MAX_VRAM env var was a temporary workaround for OOM scenarios. With Concurrency this was no longer wired up, and the simplistic value doesn't map to multi-GPU setups. Users can still set `num_gpu` to limit memory usage to avoid OOM if we get our predictions wrong.
[ { "path": "cmd/cmd.go", "patch": "@@ -1344,7 +1344,6 @@ func NewCLI() *cobra.Command {\n \t\t\t\tenvVars[\"OLLAMA_TMPDIR\"],\n \t\t\t\tenvVars[\"OLLAMA_FLASH_ATTENTION\"],\n \t\t\t\tenvVars[\"OLLAMA_LLM_LIBRARY\"],\n-\t\t\t\tenvVars[\"OLLAMA_MAX_VRAM\"],\n \t\t\t})\n \t\tdefault:\n \t\t\tappendEnvDocs(cmd, ...
2024-07-22T16:08:11
vercel/next.js
20b63e13ab2631d6043277895d373aa31a1b327c
47cb2364d2a4e83c5464f2134714b90bdb37546e
Fix usage of `experimental-edge` in `pages/api/index` (#38024) * Added failing test * Added a fix
[ { "path": "packages/next/build/entries.ts", "patch": "@@ -176,7 +176,7 @@ export function getEdgeServerEntry(opts: {\n return `next-middleware-loader?${stringify(loaderParams)}!`\n }\n \n- if (opts.page.startsWith('/api/')) {\n+ if (opts.page.startsWith('/api/') || opts.page === '/api') {\n cons...
2022-07-20T00:33:00
golang/go
91f77ca2f8590ed2051ee9a62d52676cf1bff98d
926994fd7cf65b2703552686965fb05569699897
runtime: return 0 from C function in test This function's prototype includes a return value, so return a value. Otherwise clang gets upset: --- FAIL: TestDLLPreloadMitigation (1.40s) syscall_windows_test.go:986: failed to build dll: exit status 1 - nojack.c:7:1: error: non-void function does not return a ...
[ { "path": "src/runtime/syscall_windows_test.go", "patch": "@@ -969,8 +969,9 @@ func TestDLLPreloadMitigation(t *testing.T) {\n #include <stdint.h>\n #include <windows.h>\n \n-uintptr_t cfunc() {\n+uintptr_t cfunc(void) {\n SetLastError(123);\n+ return 0;\n }\n `\n \tsrcname := \"nojack.c\"", "addit...
2020-11-27T19:45:15
huggingface/transformers
b01f9c484cd24596b274589222746446372ce043
496207a166213d9a54cb2dd13bbfcbe5089a2a1c
🌐 [i18n-KO] Translated `bitsandbytes.md` to Korean (#32408) * docs: ko: quantization/bitsandbytes.md * feat: nmt draft * fix: minor typos * fix: manual edits * fix: manual edits * fix: resolve suggestions Co-authored-by: wony617 <49024958+Jwaminju@users.noreply.github.com> Co-authored-by: YONGSANG ...
[ { "path": "docs/source/ko/_toctree.yml", "patch": "@@ -138,6 +138,28 @@\n - local: in_translation\n title: (번역중) Interoperability with GGUF files\n title: (번역중) 개발자 가이드\n+- sections:\n+ - local: in_translation\n+ title: (번역중) Getting started\n+ - local: quantization/bitsandbytes\n+ title: bi...
2024-08-08T16:40:50
nodejs/node
f454e14b223b87e2fcbefbb8b9398f438d8c12ce
bbaea1236f9a788fcb3f76113dd0c3bae83a551b
deps: V8: cherry-pick ac0fe8ec from upstream Original commit message: [interpreter] Remove TryInstallOptimizedCode Removes the interrupt check and runtime call to TryInstallOptimizedCode from the optimization marker checks (i.e. CompileLazy and InterpreterEntryTrampoline). Instead, we rely on the other interr...
[ { "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-15T06:12:55
ollama/ollama
a3c20e3f181607760ee86893baaf31b3c7fd3012
80ee9b5e47fc0ea99d1f3f33224923266627c15c
Refine error reporting for subprocess crash On windows, the exit status winds up being the search term many users search for and end up piling in on issues that are unrelated. This refines the reporting so that if we have a more detailed message we'll suppress the exit status portion of the message.
[ { "path": "llm/server.go", "patch": "@@ -417,7 +417,17 @@ func NewLlamaServer(gpus gpu.GpuInfoList, model string, ggml *GGML, adapters, pr\n \n \t\t// reap subprocess when it exits\n \t\tgo func() {\n-\t\t\ts.done <- s.cmd.Wait()\n+\t\t\terr := s.cmd.Wait()\n+\t\t\t// Favor a more detailed message over the ...
2024-07-22T15:52:16
vercel/next.js
47cb2364d2a4e83c5464f2134714b90bdb37546e
81c3cd682b301d623df450c69ad2cf225b5aa570
Fix export issue in with-fauna example (#38812) * Fix export issue in with-fauna example * lint fix * Apply suggestions from code review * update Co-authored-by: JJ Kasper <jj@jjsweb.site>
[ { "path": "examples/with-fauna/lib/constants.js", "patch": "@@ -0,0 +1,7 @@\n+const resolveDbDomain = () => {\n+ return process.env.FAUNA_DB_DOMAIN ?? 'db.fauna.com'\n+}\n+\n+module.exports = {\n+ resolveDbDomain,\n+}", "additions": 7, "deletions": 0, "language": "JavaScript" }, { "pat...
2022-07-20T00:13:56
golang/go
f0ff6d4a67ec9a956aa655d487543da034cf576b
4481ad6eb6c2b4ee52d949289da82cc00cc829fa
reflect: fix Value.Convert for int-to-string conversions (regression) The bug was introduced by https://golang.org/cl/220844. Updates #42792. Fixes #42835. Change-Id: I03065c7526488aded35ef2f800b7162e1606877a Reviewed-on: https://go-review.googlesource.com/c/go/+/273326 Trust: Robert Griesemer <gri@golang.org> Run-T...
[ { "path": "src/reflect/all_test.go", "patch": "@@ -4007,9 +4007,12 @@ var convertTests = []struct {\n \t{V(int16(-3)), V(string(\"\\uFFFD\"))},\n \t{V(int32(-4)), V(string(\"\\uFFFD\"))},\n \t{V(int64(-5)), V(string(\"\\uFFFD\"))},\n+\t{V(int64(-1 << 32)), V(string(\"\\uFFFD\"))},\n+\t{V(int64(1 << 32)), V(...
2020-11-25T21:47:42
huggingface/transformers
496207a166213d9a54cb2dd13bbfcbe5089a2a1c
e0396bdaa0de1b328422bf1952cf79025680d481
🌐 [i18n-KO] Translated `fsdp.md` to Korean (#32261) * docs: ko: fsdp.md * feat: nmt draft * fix: manual edits * Apply suggestions from code review Co-authored-by: 김준재 <55151385+junejae@users.noreply.github.com> Co-authored-by: Minki Kim <100768622+1kmmk1@users.noreply.github.com> * fix: resolve sugges...
[ { "path": "docs/source/ko/_toctree.yml", "patch": "@@ -170,8 +170,8 @@\n title: (번역중) Methods and tools for efficient training on a single GPU\n - local: perf_train_gpu_many\n title: 다중 GPU에서 훈련 진행하기\n- - local: in_translation\n- title: (번역중) Fully Sharded Data Parallel\n+ - local...
2024-08-08T16:40:03
nodejs/node
92fc14a4595d460394cad8ad5a091dcc450068a5
ab5a2aba38c7de995d7bb56750ab90c0c7849157
test: do not open fixture files for writing test-fs-fsync makes a copy of a fixture file, but then doesn't do anything with it and instead operates on the original fixture file. This appears to be in error, and this change fixes that. PR-URL: https://github.com/nodejs/node/pull/17808 Reviewed-By: Jon Moss <me@jonatha...
[ { "path": "test/parallel/test-fs-fsync.js", "patch": "@@ -34,7 +34,7 @@ const fileTemp = path.join(common.tmpDir, 'a.js');\n common.refreshTmpDir();\n fs.copyFileSync(fileFixture, fileTemp);\n \n-fs.open(fileFixture, 'a', 0o777, common.mustCall(function(err, fd) {\n+fs.open(fileTemp, 'a', 0o777, common.must...
2017-12-21T22:38:02
vercel/next.js
81c3cd682b301d623df450c69ad2cf225b5aa570
5ea3077021f8e6b83dc48c4e2ade3d92ec8d83ad
[ESLint] Make `src/` a default linting directory (#38810) Fixes #38533 by including `src/` as a default linting directory where all files within are linted ## Bug - [X] Related issues linked using `fixes #number` - [X] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md`
[ { "path": "docs/basic-features/eslint.md", "patch": "@@ -126,7 +126,7 @@ If you're using `eslint-plugin-next` in a project where Next.js isn't installed\n \n ## Linting Custom Directories and Files\n \n-By default, Next.js will run ESLint for all files in the `pages/`, `components/`, and `lib/` directories....
2022-07-19T20:58:13
huggingface/transformers
e0396bdaa0de1b328422bf1952cf79025680d481
96ba7f0c51a28df6781faca0c5df105035255396
🌐 [i18n-KO] Translated `eetq.md` to Korean (#32352) * docs: ko: quantization/eetq.md * feat: nmt draft * fix docs: ko: quantization/eetq.md * fix docs: ko: quantization/eetq.md * fix: resolve suggestions Co-authored-by: Jiwook Han <33192762+mreraser@users.noreply.github.com> * fix: resolve suggestio...
[ { "path": "docs/source/ko/_toctree.yml", "patch": "@@ -151,8 +151,8 @@\n title: (번역중) AQLM\n - local: quantization/quanto\n title: Quanto\n- - local: in_translation\n- title: (번역중) EETQ\n+ - local: quantization/eetq\n+ title: EETQ\n - local: in_translation\n title: (번역중) HQQ\n - lo...
2024-08-08T16:39:35
golang/go
88e33f6ecb9ea44a464bd3863f8037bc081b2a6e
40f5bc4d556a3687ad68d6a6bc074ff4d2a1d06b
[dev.regabi] cmd/compile: fix latent import/export issue with break/continue In CL 145200, I changed OBREAK, OCONTINUE, OGOTO, and OLABEL to just use Sym instead of Node. However, within the export data, I forgot to update the code for OBREAK and OCONTINUE. This isn't currently an issue because the inliner currently ...
[ { "path": "src/cmd/compile/internal/gc/iexport.go", "patch": "@@ -1146,18 +1146,17 @@ func (w *exportWriter) stmt(n ir.Node) {\n \t\tw.op(ir.OFALL)\n \t\tw.pos(n.Pos())\n \n-\tcase ir.OBREAK, ir.OCONTINUE:\n-\t\tw.op(op)\n-\t\tw.pos(n.Pos())\n-\t\tw.exprsOrNil(n.Left(), nil)\n-\n \tcase ir.OEMPTY:\n \t\t// ...
2020-11-25T22:02:46
nodejs/node
ab5a2aba38c7de995d7bb56750ab90c0c7849157
0b0a4fc8ecdab89074630bd814f26780a4cf9eda
repl: migrate errors to internal/errors PR-URL: https://github.com/nodejs/node/pull/17716 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Ruben Bridgewater <rube...
[ { "path": "doc/api/errors.md", "patch": "@@ -1348,6 +1348,11 @@ The `REPL` module was unable parse data from the REPL history file.\n \n An attempt was made to `require()` an [ES6 module][].\n \n+<a id=\"ERR_SCRIPT_EXECUTION_INTERRUPTED\"></a>\n+### ERR_SCRIPT_EXECUTION_INTERRUPTED\n+\n+Script execution was...
2017-12-17T11:29:35
ollama/ollama
69a2d4ccffa7532680bed245fad77bb166ec0bb9
e8b954c646544d40d84be50aae9cd909fcbd8f41
Fix generate test flakyness (#5804)
[ { "path": "server/routes_generate_test.go", "patch": "@@ -73,8 +73,8 @@ func TestGenerateChat(t *testing.T) {\n \t\t\tgetCpuFn: gpu.GetCPUInfo,\n \t\t\treschedDelay: 250 * time.Millisecond,\n \t\t\tloadFn: func(req *LlmRequest, ggml *llm.GGML, gpus gpu.GpuInfoList, numParallel int) {\n-\t\t\t\t// add ...
2024-07-20T02:11:25
vercel/next.js
5ea3077021f8e6b83dc48c4e2ade3d92ec8d83ad
20486c159d8538a337da6b07b0b4490a3a0d6b91
Fixup main Fauna example and drop support for outdated one (#38692) - Drop support for Fauna example with cookie auth - Fixup GraphQL endpoints in Fauna example ## Testing Deployed the example to my own Vercel account to ensure I was able to standup the sample guestbook. Confirmed that entries reached my database for...
[ { "path": "examples/with-cookie-auth-fauna/README.md", "patch": "@@ -1,67 +1 @@\n-# With Cookie Auth and Fauna\n-\n-In this example, we authenticate users and store a token in a secure (non-JS) cookie. The example only shows how the user session works, keeping a user logged in between pages.\n-\n-This examp...
2022-07-19T20:16:48
huggingface/transformers
96ba7f0c51a28df6781faca0c5df105035255396
43f3fe879c82052d1ae81ae7a49f16b1dbf4bbe4
🌐 [i18n-KO] Translated `trainer.md` to Korean (#32260) * docs: ko: ko-trainer * feat: nmt draft * fix: manual edits * fix: manual edits * fix: glossary * fix: glossary * Apply suggestions from code review Co-authored-by: Jinuk <45095330+JinukHong@users.noreply.github.com> Co-authored-by: SeongWo...
[ { "path": "docs/source/ko/_toctree.yml", "patch": "@@ -117,8 +117,8 @@\n title: 사용자 정의 모델 공유하기\n - local: chat_templating\n title: 챗봇 템플릿 익히기\n- - local: in_translation\n- title: (번역중) Trainer\n+ - local: trainer\n+ title: Trainer 사용하기\n - local: sagemaker\n title: Amazon SageMaker에서...
2024-08-08T16:38:58
golang/go
4481ad6eb6c2b4ee52d949289da82cc00cc829fa
ef603bead5d336e81954f890e20efa0261581792
doc/go1.16: consolidate stdlib changes in "Minor changes" section Many of the standard library changes that were added before CL 272871 ended up in the "Core library" section. That section is meant for major changes like new packages, and most of these aren't. Consolidate all changes in the "Minor changes to the libr...
[ { "path": "doc/go1.16.html", "patch": "@@ -216,7 +216,7 @@ <h4 id=\"list-buildid\">The <code>list</code> command</h4>\n \n <h3 id=\"cgo\">Cgo</h3>\n \n-<p> <!-- CL 252378 -->\n+<p><!-- CL 252378 -->\n The <a href=\"/cmd/cgo\">cgo</a> tool will no longer try to translate\n C struct bitfields into Go stru...
2020-11-25T19:07:30
rust-lang/rust
88aaf1d25a1f54e257c81e24ddbe9bf4a9f476b1
27d71f0946559de7e47d504756e0935cd0dde7cd
Fix grammar and remove redundant info
[ { "path": "src/doc/rustc-dev-guide/src/solve/trait-solving.md", "patch": "@@ -2,8 +2,7 @@\n \n This chapter describes how trait solving works with the new WIP solver located in\n [`rustc_trait_selection/solve`][solve]. Feel free to also look at the docs for\n-[the current solver](../traits/resolution.md) an...
2025-03-13T22:56:04
nodejs/node
4dc930147eb58ab889f5788ae6977d0dbc1c2dbc
1d8789188fa156d5eb75c155f6c648c2bd96b842
tls: comment about old-style errors Old style errors are being migrated to internal/errors.js, however, due to depreciation of _tls_legacy.js, it isn't worth the effort to migrate and potentially force users to update their code for this error change. This comment clarifies the reason why this error is not migrated. ...
[ { "path": "lib/_tls_legacy.js", "patch": "@@ -632,6 +632,8 @@ function onhandshakestart() {\n // state machine and OpenSSL is not re-entrant. We cannot allow the user's\n // callback to destroy the connection right now, it would crash and burn.\n setImmediate(function() {\n+ // Old-style er...
2017-12-19T15:58:14
ollama/ollama
c57317cbf0c865dd1fbe4852e1cce3cf4703b7ee
51b2fd299cd568093ce796aef3e7e37ae656b02a
OpenAI: Function Based Testing (#5752) * distinguish error forwarding * more coverage * rm comment
[ { "path": "openai/openai.go", "patch": "@@ -877,6 +877,7 @@ func ChatMiddleware() gin.HandlerFunc {\n \t\tchatReq, err := fromChatRequest(req)\n \t\tif err != nil {\n \t\t\tc.AbortWithStatusJSON(http.StatusBadRequest, NewError(http.StatusBadRequest, err.Error()))\n+\t\t\treturn\n \t\t}\n \n \t\tif err := js...
2024-07-19T18:37:12
huggingface/transformers
43f3fe879c82052d1ae81ae7a49f16b1dbf4bbe4
cc832cbd191176dd95c591c6fa0c847fd3f9c7bb
🌐 [i18n-KO] Translated `ko-llm_tutorial_optimization.md` to Korean (#32372) * docs: ko: llm_tutorial_optimization.md * feat: nmt draft * fix: manual edits * Update docs/source/ko/llm_tutorial_optimization.md Co-authored-by: Chaewon Song <chaewon1019@ewhain.net> * Update docs/source/ko/llm_tutorial_opti...
[ { "path": "docs/source/ko/_toctree.yml", "patch": "@@ -239,8 +239,8 @@\n title: 추론 웹 서버를 위한 파이프라인\n - local: model_memory_anatomy\n title: 모델 학습 해부하기\n- - local: in_translation\n- title: (번역중) Getting the most out of LLMs\n+ - local: llm_tutorial_optimization\n+ title: LLM을 최대한 활용하기\n ti...
2024-08-08T16:37:39
vercel/next.js
20486c159d8538a337da6b07b0b4490a3a0d6b91
9b312dbbe09461c336ca9c929511ce3c41084980
[edge] allow importing blob assets (#38492) * [edge] allow importing blob assets * Fix test * extract to a new file, to make it easier to read and review * Use webpack asset discovery and transform with a loader * fix tests * don't prefix assets * use emitFile * rename assets to blobs to be more s...
[ { "path": "packages/next/build/webpack-config.ts", "patch": "@@ -1272,6 +1272,7 @@ export default async function getBaseWebpackConfig(\n 'next-middleware-loader',\n 'next-edge-function-loader',\n 'next-edge-ssr-loader',\n+ 'next-middleware-asset-loader',\n 'next-middle...
2022-07-19T17:27:15
golang/go
ef603bead5d336e81954f890e20efa0261581792
9dc2350d8cb10f8af5f3551aeb5e3e8bf820c071
cmd/dist: restore GOARM=7 default for android/arm Fixes the android/arm builder. Without it, the builder reported unexpected stale targets during bootstrap: https://build.golang.org/log/b951f1171be54cf4a12c2a0720ffaf07f8a11377 Tighten the GOARM=7 default in cmd/internal/objabi while here. Change-Id: I944744910193e7...
[ { "path": "src/cmd/dist/util.go", "patch": "@@ -383,6 +383,12 @@ func xsamefile(f1, f2 string) bool {\n }\n \n func xgetgoarm() string {\n+\tif goos == \"android\" {\n+\t\t// Assume all android devices have VFPv3.\n+\t\t// These ports are also mostly cross-compiled, so it makes little\n+\t\t// sense to auto...
2020-11-25T18:12:13
rust-lang/rust
bebd91feb32667b6a1bb7a11da91ab8a935b4c24
958bc7b3655a0880361b11f9052fab84030cde26
Fix HIR param pretty printing some more. Anonymous params are currently represented with `kw::Empty`, so handle that properly. (Subsequent commits will get rid of the `kw::Empty`.)
[ { "path": "compiler/rustc_hir_pretty/src/lib.rs", "patch": "@@ -2148,9 +2148,11 @@ impl<'a> State<'a> {\n s.print_implicit_self(&decl.implicit_self);\n } else {\n if let Some(arg_name) = arg_names.get(i) {\n- s.word(arg_name.to_string());\n- ...
2025-03-13T20:29:19
nodejs/node
1d8789188fa156d5eb75c155f6c648c2bd96b842
c90b10d9f2ddc6f9b57036d51d7b0d67df92389a
test: improve flaky test-listen-fd-ebadf.js Find an invalid file descriptor rather than assuming 42 will be invalid. PR-URL: https://github.com/nodejs/node/pull/17797 Fixes: https://github.com/nodejs/node/issues/17762 Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Re...
[ { "path": "test/parallel/test-listen-fd-ebadf.js", "patch": "@@ -21,12 +21,24 @@\n \n 'use strict';\n const common = require('../common');\n+\n const assert = require('assert');\n+const fs = require('fs');\n const net = require('net');\n \n net.createServer(common.mustNotCall()).listen({ fd: 2 })\n .on('e...
2017-12-20T21:59:14
huggingface/transformers
cc832cbd191176dd95c591c6fa0c847fd3f9c7bb
16ed0640be71cd38208eed87bdcf39be29a83b5d
filter flash_attn optional imports loading remote code (#30954) * filter flash_attn optional imports loading remote code * improve pattern * fix code style * Update src/transformers/dynamic_module_utils.py Co-authored-by: Matt <Rocketknight1@users.noreply.github.com> --------- Co-authored-by: Matt <R...
[ { "path": "src/transformers/dynamic_module_utils.py", "patch": "@@ -149,6 +149,10 @@ def get_imports(filename: Union[str, os.PathLike]) -> List[str]:\n \n # filter out try/except block so in custom code we can have try/except imports\n content = re.sub(r\"\\s*try\\s*:\\s*.*?\\s*except\\s*.*?:\", \"\...
2024-08-08T16:21:42
vercel/next.js
9b312dbbe09461c336ca9c929511ce3c41084980
bae0482b19d629f9d2b94a9bd06afe9109b30e51
Ensure route group with separate root layout does not get wrapped in <div> (#38792) Ensures the `<html>` is not wrapped in an extra div when the root layout is nested in a route group. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see...
[ { "path": "packages/next/client/components/layout-router.client.tsx", "patch": "@@ -56,6 +56,7 @@ export function InnerLayoutRouter({\n tree,\n // isActive,\n path,\n+ rootLayoutIncluded,\n }: {\n parallelRouterKey: string\n url: string\n@@ -65,6 +66,7 @@ export function InnerLayoutRouter({\n t...
2022-07-19T13:42:37
rust-lang/rust
958bc7b3655a0880361b11f9052fab84030cde26
9714f60f1d54450ac4d17416947d1c659429c311
Handle `_` properly in a couple of places. Currently (PatKind::Wild` (i.e. `_`) gets turned by `lower_fn_params_to_names` into an empty identifier, which means it is printed incorrectly by HIR pretty printing. And likewise for `lower_fn_params_to_names`, which affects some error messages. This commit fixes them. Thi...
[ { "path": "compiler/rustc_ast_lowering/src/lib.rs", "patch": "@@ -1516,7 +1516,14 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {\n fn lower_fn_params_to_names(&mut self, decl: &FnDecl) -> &'hir [Ident] {\n self.arena.alloc_from_iter(decl.inputs.iter().map(|param| match param.pat.kind {\n ...
2025-03-13T21:40:43
nodejs/node
c90b10d9f2ddc6f9b57036d51d7b0d67df92389a
901e9a1983e30cd3913378b80be85f703be5fbc6
test: refactor test-repl-definecommand The test was writing to both REPL input and output but only checking output. Sending output to both streams seems like it was an error. PR-URL: https://github.com/nodejs/node/pull/17795 Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: James M Snell <jasnell@gmail.com>
[ { "path": "test/parallel/test-repl-definecommand.js", "patch": "@@ -23,14 +23,14 @@ r.defineCommand('say1', {\n help: 'help for say1',\n action: function(thing) {\n output = '';\n- this.write(`hello ${thing}`);\n+ this.output.write(`hello ${thing}\\n`);\n this.displayPrompt();\n }\n });\...
2017-12-20T20:31:22
ollama/ollama
43606d6d6a0d5e4105692d6d1233cfaa96a562b0
70b1010fa53095b4f8699b04375fa29f8c3e54b0
fix parsing tool calls
[ { "path": "server/model.go", "patch": "@@ -348,7 +348,7 @@ func (m *Model) parseToolCalls(s string) ([]api.ToolCall, bool) {\n \tfor offset := 0; offset < len(s); {\n \t\tvar obj map[string]any\n \t\tdecoder := json.NewDecoder(strings.NewReader(s[offset:]))\n-\t\tif err := decoder.Decode(&obj); errors.Is(er...
2024-07-18T19:07:59
huggingface/transformers
16ed0640be71cd38208eed87bdcf39be29a83b5d
b51d4145bbfa9bd90dc878e552d5cdc5133dabc2
Add Qwen2-Audio (#32137) * add qwen2audio * Update check_repo.py * fix style * fix test * fix style * add model size * Qwen2AudioEncoderModel->Qwen2AudioEncoder; add copy info * Update src/transformers/models/qwen2_audio/modeling_qwen2_audio.py Co-authored-by: Yoach Lacombe <52246514+ylacombe@u...
[ { "path": "docs/source/en/_toctree.yml", "patch": "@@ -506,6 +506,8 @@\n title: QDQBert\n - local: model_doc/qwen2\n title: Qwen2\n+ - local: model_doc/qwen2_audio\n+ title: Qwen2Audio\n - local: model_doc/qwen2_moe\n title: Qwen2MoE\n - local: model_doc...
2024-08-08T13:47:24
golang/go
41f3af9d04362a56c1af186af134c704a03fa97b
4d0d9c2c5c35377b0662f2fd0995867919552251
[dev.regabi] cmd/compile: replace *Node type with an interface Node [generated] The plan is to introduce a Node interface that replaces the old *Node pointer-to-struct. The previous CL defined an interface INode modeling a *Node. This CL: - Changes all references outside internal/ir to use INode, along with many...
[ { "path": "src/cmd/compile/fmtmap_test.go", "patch": "@@ -22,14 +22,7 @@ package main_test\n var knownFormats = map[string]string{\n \t\"*bytes.Buffer %s\": \"\",\n \t\"*cmd/compile/internal/gc.EscLocation %v\": \"\",\n-\t\"*cmd/compile/internal/ir.Node %#v\": ...
2020-11-25T06:11:56
huggingface/transformers
b51d4145bbfa9bd90dc878e552d5cdc5133dabc2
d3b3551750ad1c85410e1dfed7aa0e8013ed1d37
Fix add-new-model-like (#31773) * handle (processor_class, None) returned by ModelPatterns * handle (slow, fast) image processors in add model * handle old image processor case
[ { "path": "src/transformers/commands/add_new_model_like.py", "patch": "@@ -761,7 +761,12 @@ def retrieve_info_for_model(model_type, frameworks: Optional[List[str]] = None):\n tokenizer_class = tokenizer_classes[0] if tokenizer_classes[0] is not None else tokenizer_classes[1]\n else:\n to...
2024-08-08T13:10:00
ollama/ollama
f02f83660c2e6f0741932bb31a28b82950144dfc
b23424bb3c5771dca6628b70638ade3b9fdbd069
bump go version to 1.22.5 to fix security vulnerabilities
[ { "path": "Dockerfile", "patch": "@@ -1,4 +1,4 @@\n-ARG GOLANG_VERSION=1.22.1\n+ARG GOLANG_VERSION=1.22.5\n ARG CMAKE_VERSION=3.22.1\n # this CUDA_VERSION corresponds with the one specified in docs/gpu.md\n ARG CUDA_VERSION=11.3.1", "additions": 1, "deletions": 1, "language": "Unknown" } ]
2024-07-17T21:44:19
nodejs/node
1af82f3d0e13a175c424017565189fffb2f49e83
40bab30067aaa464a03150529f652b853f58b024
test: fix buggy getTTYfd() implementation PR-URL: https://github.com/nodejs/node/pull/17781 Ref: https://github.com/nodejs/node/pull/17781#discussion_r158030728 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> ...
[ { "path": "test/sequential/test-async-wrap-getasyncid.js", "patch": "@@ -249,28 +249,25 @@ if (common.hasCrypto) { // eslint-disable-line crypto-check\n // Do our best to grab a tty fd.\n function getTTYfd() {\n const tty = require('tty');\n- let tty_fd = 0;\n- if (!tty.isatty(tty_fd)) tty_fd+...
2017-12-20T14:19:10
huggingface/transformers
d3b3551750ad1c85410e1dfed7aa0e8013ed1d37
e28784f821b14e84b96ce94c5d8a23b72741cf2d
Uniformize kwargs for processors - GroundingDINO (#31964) * fix typo * uniform kwargs * make style * add comments * remove return_tensors * remove common_kwargs from processor since it propagates * make style * return_token_type_ids to True * revert the default imagekwargs since does not accept...
[ { "path": "src/transformers/models/grounding_dino/modeling_grounding_dino.py", "patch": "@@ -1580,7 +1580,7 @@ def _set_gradient_checkpointing(self, module, value=False):\n Indices of input sequence tokens in the vocabulary. Padding will be ignored by default should you provide\n it....
2024-08-08T13:03:08
ollama/ollama
0d41623b52b77725624a9f4dbc4c0f9a356a9021
499e87c9ba9b2b0f30b33cba2faba8a80454fb74
OpenAI: Add Suffix to `v1/completions` (#5611) * add suffix * remove todo * remove TODO * add to test * rm outdated prompt tokens info md * fix test * fix test
[ { "path": "docs/openai.md", "patch": "@@ -103,10 +103,6 @@ curl http://localhost:11434/v1/chat/completions \\\n - [ ] `user`\n - [ ] `n`\n \n-#### Notes\n-\n-- `usage.prompt_tokens` will be 0 for completions where prompt evaluation is cached\n-\n ## Models\n \n Before using a model, pull it locally `ollama ...
2024-07-17T03:50:14
nodejs/node
a4f44acd6962e470006c75774f4f0b22325a9bbb
7a0f774bb5086dddcc36f2c3987ee602d7c9bf74
doc: warn about using util.inspect/util.format Because of the potential performance bottlenecks that may be introduced by `util.inspect()` and `util.format()` in production hot path code. Based on real user feedback, it is not obvious that these are intended to be debugging tools. PR-URL: https://github.com/nodejs/n...
[ { "path": "doc/api/util.md", "patch": "@@ -250,6 +250,11 @@ without any formatting.\n util.format('%% %s'); // '%% %s'\n ```\n \n+Please note that `util.format()` is a synchronous method that is mainly\n+intended as a debugging tool. Some input values can have a significant\n+performance overhead that can b...
2017-12-20T15:50:47
vercel/next.js
99580b964f500de02c8e44bc374a5faaf7483f92
a575d8ac373bed647b928a04bc0d362aee798c41
Add unreachable error message
[ { "path": "crates/turbopack-ecmascript/src/references/cjs.rs", "patch": "@@ -280,6 +280,8 @@ impl CodeGenerateable for CjsRequireResolveAssetReference {\n Some(ExprOrSpread { expr, spread: None }) => pm.apply(*expr),\n _ => pm.create(),\n }...
2022-07-19T13:07:38
huggingface/transformers
1c944ac1e1c1878074a657e7eb09cdd6553d45f7
aefd3e2ae1e2ae5ae555028c0409118bae9e12ee
Fix issue #32518: Update llm_tutorial.md (#32523) Update llm_tutorial.md remove comma re: issue 32518 https://github.com/huggingface/transformers/issues/32518
[ { "path": "docs/source/zh/llm_tutorial.md", "patch": "@@ -21,7 +21,7 @@ rendered properly in your Markdown viewer.\n \n LLMs,即大语言模型,是文本生成背后的关键组成部分。简单来说,它们包含经过大规模预训练的transformer模型,用于根据给定的输入文本预测下一个词(或更准确地说,下一个`token`)。由于它们一次只预测一个`token`,因此除了调用模型之外,您需要执行更复杂的操作来生成新的句子——您需要进行自回归生成。\n \n-自回归生成是在给定一些初始输入,通过迭代调用模型及...
2024-08-08T09:54:02
rust-lang/rust
e88512214729e7bde2ed91faf6e49b50c6d3677b
249cb84316401daf040832cdbb8a45e0f5ab6af8
Add a pretty printing test for fn params. Note that multiple parts of the output are incorrect. The following commits will fix this.
[ { "path": "tests/pretty/hir-fn-params.pp", "patch": "@@ -0,0 +1,38 @@\n+#[prelude_import]\n+use ::std::prelude::rust_2015::*;\n+#[macro_use]\n+extern crate std;\n+//@ pretty-compare-only\n+//@ pretty-mode:hir\n+//@ pp-exact:hir-fn-params.pp\n+\n+// This tests the pretty-printing of various kinds of function...
2025-03-12T05:48:52
golang/go
84e2bd611f9b62ec3b581f8a0d932dc4252ceb67
331b8b4797bc4e134a8d8b78bf1c060689144145
[dev.regabi] cmd/compile: introduce cmd/compile/internal/ir [generated] If we want to break up package gc at all, we will need to move the compiler IR it defines into a separate package that can be imported by packages that gc itself imports. This CL does that. It also removes the TINT8 etc aliases so that all code is...
[ { "path": "src/cmd/compile/fmtmap_test.go", "patch": "@@ -22,14 +22,14 @@ package main_test\n var knownFormats = map[string]string{\n \t\"*bytes.Buffer %s\": \"\",\n \t\"*cmd/compile/internal/gc.EscLocation %v\": \"\",\n-\t\"*cmd/compile/internal/gc.Node %#v\": ...
2020-11-20T02:09:22
nodejs/node
7352bf2f7c12f716eec2eeeb04891ea0d750e3ed
410ce2164ece66a6b8467e0c0bf541c095c6ac50
test: refactor test-net-connect-buffer - Use arrow functions, `common.mustCall()` - Remove redundant `console.log()`s/turn them into assertions - Use `common.expectsError()` PR-URL: https://github.com/nodejs/node/pull/17710 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Luigi Pinca <luigipinca@gma...
[ { "path": "test/parallel/test-net-connect-buffer.js", "patch": "@@ -20,68 +20,59 @@\n // USE OR OTHER DEALINGS IN THE SOFTWARE.\n \n 'use strict';\n-require('../common');\n+const common = require('../common');\n const assert = require('assert');\n const net = require('net');\n \n-let dataWritten = false;\n-...
2017-12-13T17:31:00