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
c043b82655546e959754c89cda8d7029a051a8a3
9cef0603336e8fe39b11fee9e70dc1786f6cda64
test: fix flaky test-pipe-unref PR-URL: https://github.com/nodejs/node/pull/17950 Fixes: https://github.com/nodejs/node/issues/16875 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridge...
[ { "path": "test/parallel/test-pipe-unref.js", "patch": "@@ -2,10 +2,10 @@\n const common = require('../common');\n const net = require('net');\n \n+// This test should end immediately after `unref` is called\n+\n common.refreshTmpDir();\n \n const s = net.Server();\n s.listen(common.PIPE);\n s.unref();\n-\n...
2018-01-02T17:09:45
rust-lang/rust
eca391fbd4544e3f200f0ee08ef8d6f0a469542e
aa95b9648ad0383a3fd73b5271dd86f848b7c00c
Cleanup `LangString::parse` Flatten some `if`s into match patterns Use `str::strip_prefix` instead of `starts_with`+indexing Avoid redundant tests for `extra.is_some()`
[ { "path": "src/librustdoc/html/markdown.rs", "patch": "@@ -1200,11 +1200,12 @@ impl LangString {\n data.ignore = Ignore::All;\n seen_rust_tags = !seen_other_tags;\n }\n- LangStringToken::LangToken(x) if x.starts_with(\"ig...
2025-03-15T12:31:36
huggingface/transformers
f1d822ba337499d429f832855622b97d90ac1406
ee8c01f83994f4180009c6a928e4610d57c90dd1
fix: (issue #32689) `AttributeError` raised when using `Trainer` with `eval_on_start=True` in Jupyter Notebook. (#32849) fix: `AttributeError` raised when using `Trainer` with `eval_on_start=True` in Jupyter Notebook.
[ { "path": "src/transformers/utils/notebook.py", "patch": "@@ -114,6 +114,8 @@ def __init__(\n self.last_value = None\n self.comment = None\n self.output = None\n+ self.value = None\n+ self.label = None\n \n def update(self, value: int, force_update: bool = False, co...
2024-08-22T14:42:00
golang/go
dda2991c2ea0c5914714469c4defc2562a907230
58768ae15b3f892b9b1902220ba3564375e5c6de
internal/cpu: disable FMA when OSXSAVE is not enabled on x86 All instructions in the FMA extension on x86 are VEX prefixed. VEX prefixed instructions generally require OSXSAVE to be enabled. The execution of FMA instructions emitted by the Go compiler on amd64 will generate an invalid opcode exception if OSXSAVE is n...
[ { "path": "src/internal/cpu/cpu_x86.go", "patch": "@@ -75,13 +75,22 @@ func doinit() {\n \tX86.HasSSE3 = isSet(ecx1, cpuid_SSE3)\n \tX86.HasPCLMULQDQ = isSet(ecx1, cpuid_PCLMULQDQ)\n \tX86.HasSSSE3 = isSet(ecx1, cpuid_SSSE3)\n-\tX86.HasFMA = isSet(ecx1, cpuid_FMA)\n \tX86.HasSSE41 = isSet(ecx1, cpuid_SSE41)...
2020-12-03T15:41:57
ollama/ollama
bdc4308afb72d47ce63583427f810b02d569d58a
d29cd4c2ed104a1f6fba16a264c3cc7785a7d82f
fix: chmod new layer to 0o644 when creating it Signed-off-by: zwwhdls <zww@hdls.me>
[ { "path": "server/layer.go", "patch": "@@ -51,6 +51,9 @@ func NewLayer(r io.Reader, mediatype string) (Layer, error) {\n \t\tif err := os.Rename(temp.Name(), blob); err != nil {\n \t\t\treturn Layer{}, err\n \t\t}\n+\t\tif err := os.Chmod(blob, 0o644); err != nil {\n+\t\t\treturn Layer{}, err\n+\t\t}\n \t}\...
2024-08-16T03:43:19
vercel/next.js
4eac75bbc9bd020c17524f0c21f84752f3659228
377fddfaa9b82edb9f16050ea871a1a814b0870d
feat(next-swc): Update swc (#39055) ## 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": "packages/next-swc/Cargo.lock", "patch": "@@ -248,19 +248,19 @@ checksum = \"e3b5ca7a04898ad4bcd41c90c5285445ff5b791899bb1b0abdd2a2aa791211d7\"\n \n [[package]]\n name = \"bytecheck\"\n-version = \"0.6.8\"\n+version = \"0.6.9\"\n source = \"registry+https://github.com/rust-lang/crates.io-index\"\n...
2022-07-28T16:04:02
nodejs/node
9cef0603336e8fe39b11fee9e70dc1786f6cda64
5160dd0365a1493a0238a2119f2a7c185db49b46
test: fix flaky http-writable-true-after-close PR-URL: https://github.com/nodejs/node/pull/17952 Fixes: https://github.com/nodejs/node/issues/16321 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
[ { "path": "test/parallel/test-http-writable-true-after-close.js", "patch": "@@ -12,16 +12,16 @@ let external;\n \n // Proxy server\n const server = createServer(common.mustCall((req, res) => {\n- get(`http://127.0.0.1:${internal.address().port}`, common.mustCall((inner) => {\n- const listener = common.m...
2018-01-03T16:57:23
huggingface/transformers
bf97d4aa6d6ed9a3274fb9098a91d297d4ae2a43
9282413611f6bcca88655cb1aeea73cec699e2f7
Fix benchmark script (#32635) * fix * >= 0.3.0 --------- Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
[ { "path": ".github/workflows/benchmark.yml", "patch": "@@ -31,12 +31,12 @@ jobs:\n if: github.event_name == 'schedule'\r\n working-directory: /transformers\r\n run: |\r\n- python3 -m pip install optimum-benchmark>=0.2.0\r\n+ python3 -m pip install optimum-benchmark>...
2024-08-22T14:07:47
golang/go
58768ae15b3f892b9b1902220ba3564375e5c6de
932733d4212a7aa651f5060dff489f0819d928bb
test: match gccgo error messages assign.go:59:28: error: ‘x’ repeated on left side of := assign.go:65:20: error: ‘a’ repeated on left side of := method2.go:36:11: error: reference to method ‘val’ in type that is pointer to interface, not interface method2.go:37:11: error: reference to method ‘val’ in type that is poi...
[ { "path": "test/assign.go", "patch": "@@ -56,13 +56,13 @@ func main() {\n \t{\n \t\tvar x = 1\n \t\t{\n-\t\t\tx, x := 2, 3 // ERROR \"x repeated on left side of :=\"\n+\t\t\tx, x := 2, 3 // ERROR \".*x.* repeated on left side of :=\"\n \t\t\t_ = x\n \t\t}\n \t\t_ = x\n \t}\n \t{\n-\t\ta, a := 1, 2 // ERROR ...
2020-12-03T02:13:14
vercel/next.js
377fddfaa9b82edb9f16050ea871a1a814b0870d
70e4cf6d28ab6139f538db6ed55ad0d8cd42fd30
fix: missing semicolon on Dockerfile (#39142) The commit https://github.com/vercel/next.js/commit/0a781dd67510b679db178b17e30a1a06bb912398 changes the docker examples to use `if..elif..else` it is working fine tor the `with-docker` example, but not working for the `with-docker-compose` and `with-docker-multi-env` exa...
[ { "path": "examples/with-docker-compose/next-app/prod-without-multistage.Dockerfile", "patch": "@@ -6,9 +6,9 @@ WORKDIR /app\n COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./\n # Omit --production flag for TypeScript devDependencies\n RUN \\\n- if [ -f yarn.lock ] then yarn install --fro...
2022-07-28T15:23:11
huggingface/transformers
eeea71209a6a68f6e9724ecf4a5da4c29b88ce5b
8b94d28f97b7208d1ff3db201a3db49904b48bad
FIX / Hub: Also catch for `exceptions.ConnectionError` (#31469) * Update hub.py * Update errors * Apply suggestions from code review Co-authored-by: Lucain <lucainp@gmail.com> --------- Co-authored-by: Amy Roberts <22614925+amyeroberts@users.noreply.github.com> Co-authored-by: Lucain <lucainp@gmail.com...
[ { "path": "src/transformers/utils/hub.py", "patch": "@@ -660,7 +660,14 @@ def has_file(\n proxies=proxies,\n timeout=10,\n )\n- except OfflineModeIsEnabled:\n+ except (requests.exceptions.SSLError, requests.exceptions.ProxyError):\n+ # Actually raise for those su...
2024-08-22T13:29:21
nodejs/node
5160dd0365a1493a0238a2119f2a7c185db49b46
a2d0623fa8886553caceaed296bf53e7a1195b47
test: fix crypto test case to use correct encoding The callback would have errored out anyway due to the incorrect encoding, and that error is not the point of this test case. PR-URL: https://github.com/nodejs/node/pull/17956 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> ...
[ { "path": "test/parallel/test-crypto-authenticated.js", "patch": "@@ -389,7 +389,7 @@ for (const test of TEST_CASES) {\n assert.strictEqual(msg, test.plain);\n } else {\n // assert that final throws if input data could not be verified!\n- assert.throws(function() { decrypt.final('ascii'...
2018-01-02T22:32:55
golang/go
932733d4212a7aa651f5060dff489f0819d928bb
c519b156fcc5e53a2a91690303cc7502261dc57b
doc/go1.16: document embed, io/fs, runtime/metrics Fixes #42915. Change-Id: Ia6e205aaac3cbf4ba7340deafad444ac3e573559 Reviewed-on: https://go-review.googlesource.com/c/go/+/275114 Trust: Russ Cox <rsc@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
[ { "path": "doc/go1.16.html", "patch": "@@ -85,7 +85,7 @@ <h4 id=\"modules\">Modules</h4>\n <p><!-- golang.org/issue/41330 -->\n Module-aware mode is enabled by default, regardless of whether a\n <code>go.mod</code> file is present in the current working directory or a\n- parent directory. Specifically,...
2020-12-03T15:31:42
vercel/next.js
f1aac90c7bafd82a680cf7d11ab810fad19d0d24
c4d41255fe90cbd22241517fa934bf8c97158d71
Fix unhandled rejections with edge runtime (#39091) This corrects some unhandledRejection errors showing when a connection is canceled with the edge runtime since the changes needed for https://github.com/vercel/next.js/commit/14463ddd10eb24c308c96df12874fb9862abefe4. This also adds a regression test to ensure we don'...
[ { "path": "packages/next/server/body-streams.ts", "patch": "@@ -56,9 +56,13 @@ export function getClonableBody<T extends IncomingMessage>(\n ): ClonableBody {\n let buffered: Readable | null = null\n \n- const endPromise = new Promise((resolve, reject) => {\n- readable.on('end', resolve)\n- readabl...
2022-07-28T07:50:51
huggingface/transformers
c42d264549b31c104c812892978b83505c552125
6baa6f276a7b81776e426cdade06015aaf2baf80
FEAT / Trainer: Add adamw 4bit optimizer (#31865) * add 4bit optimizer * style * fix msg * style * add qgalore * Revert "add qgalore" This reverts commit 25278e805f24d5d48eaa0638abb48de1b783a3fb. * style * version check
[ { "path": "src/transformers/trainer.py", "patch": "@@ -168,6 +168,7 @@\n is_torch_npu_available,\n is_torch_xla_available,\n is_torch_xpu_available,\n+ is_torchao_available,\n logging,\n strtobool,\n )\n@@ -1451,7 +1452,23 @@ def optimizer_hook(param):\n \"gradient...
2024-08-22T13:07:09
ollama/ollama
a84c05cf9140c2eb288a6c7b56bb1c592bbaacc7
8200c371aed68dec5c74e869491ee8e5749ba1eb
fix: Add tooltip to system tray icon - Updated setIcon method to include tooltip text for the system tray icon. - Added NIF_TIP flag and set the tooltip text using UTF16 encoding. Resolves: #6372
[ { "path": "app/tray/wintray/tray.go", "patch": "@@ -11,6 +11,7 @@ import (\n \t\"path/filepath\"\n \t\"sort\"\n \t\"sync\"\n+\t\"syscall\"\n \t\"unsafe\"\n \n \t\"golang.org/x/sys/windows\"\n@@ -433,7 +434,12 @@ func (t *winTray) setIcon(src string) error {\n \tt.muNID.Lock()\n \tdefer t.muNID.Unlock()\n \t...
2024-08-15T22:00:12
nodejs/node
d72c78b19c5422197a44100201e771c0319e354e
b43a496092379edc450cb7aebe3528686a3f41d2
test: fix flaky test-resolve-async PR-URL: https://github.com/nodejs/node/pull/17957 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michael Dawson <michael_dawson...
[ { "path": "test/addons/callback-scope/test-resolve-async.js", "patch": "@@ -5,9 +5,6 @@ const assert = require('assert');\n const { testResolveAsync } = require(`./build/${common.buildType}/binding`);\n \n let called = false;\n-testResolveAsync().then(common.mustCall(() => {\n- called = true;\n-}));\n+test...
2018-01-03T01:35:19
golang/go
c519b156fcc5e53a2a91690303cc7502261dc57b
5246fa5e75b129a7dbd9722aa4de0cbaf7ceae43
doc/go1.16: more release notes Fixes #42899 (flag). Fixes #42900 (io). Fixes #42901 (log). Fixes #42902 (log/syslog). Fixes #42903 (mime/multipart). Fixes #42904 (net). Fixes #42905 (net/http). Fixes #42906 (net/http/httputil). Fixes #42907 (net/smtp). Fixes #42909 (os/signal). Fixes #42913 (syscall). Change-Id: Id09...
[ { "path": "doc/go1.16.html", "patch": "@@ -494,39 +494,51 @@ <h3 id=\"minor_library_changes\">Minor changes to the library</h3>\n <dl id=\"flag\"><dt><a href=\"/pkg/flag/\">flag</a></dt>\n <dd>\n <p><!-- CL 240014 -->\n- TODO: <a href=\"https://golang.org/cl/240014\">https://golang.org/cl/240014<...
2020-12-03T15:03:22
huggingface/transformers
6baa6f276a7b81776e426cdade06015aaf2baf80
af638c4afea81ac251f1ae63497789be79e0baaa
fix: no need to dtype A in jamba (#32924) Co-authored-by: Gal Cohen <galc@ai21.com>
[ { "path": "src/transformers/models/jamba/modeling_jamba.py", "patch": "@@ -630,7 +630,7 @@ def __init__(self, config: JambaConfig, layer_idx):\n \n # S4D real initialization. These are not discretized!\n # The core is to load them, compute the discrete states, then write the updated state. K...
2024-08-22T13:03:22
vercel/next.js
541d8c663d9b98e6412647bd4a30776258fc2dee
84fcbd56bcb9b18e27ee57d0f7f9ba43fe0a13e9
Update pre-compiled to fix check (#39089)
[ { "path": "packages/next/compiled/webpack/bundle5.js", "patch": "@@ -9372,7 +9372,7 @@ Long.fromBytesBE = function fromBytesBE(bytes, unsigned) {\n \n /***/ }),\n \n-/***/ 90099:\n+/***/ 81579:\n /***/ (function(__unused_webpack_module, exports, __webpack_require__) {\n \n \"use strict\";\n@@ -100575,7 +100...
2022-07-28T01:44:39
nodejs/node
b43a496092379edc450cb7aebe3528686a3f41d2
11dda69a33e4e9bbaa9ed9913a8bc7e470c4bd72
benchmark: fix timeout in write-stream-throughput PR-URL: https://github.com/nodejs/node/pull/17958 Fixes: https://github.com/nodejs/node/issues/17901 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <lu...
[ { "path": "benchmark/fs/write-stream-throughput.js", "patch": "@@ -41,10 +41,6 @@ function main(conf) {\n var started = false;\n var ending = false;\n var ended = false;\n- setTimeout(function() {\n- ending = true;\n- f.end();\n- }, dur * 1000);\n \n var f = fs.createWriteStream(filename);\n...
2018-01-03T01:58:35
golang/go
5246fa5e75b129a7dbd9722aa4de0cbaf7ceae43
07cba70d5794747044ce5f2f3b34de139193e2a5
mime/multipart: handle ReadForm(math.MaxInt64) better Returning an error about integer overflow is needlessly pedantic. The meaning of ReadForm(MaxInt64) is easily understood (accept a lot of data) and can be implemented. Fixes #40430. Change-Id: I8a522033dd9a2f9ad31dd2ad82cf08d553736ab9 Reviewed-on: https://go-revi...
[ { "path": "src/mime/multipart/formdata.go", "patch": "@@ -7,9 +7,9 @@ package multipart\n import (\n \t\"bytes\"\n \t\"errors\"\n-\t\"fmt\"\n \t\"io\"\n \t\"io/ioutil\"\n+\t\"math\"\n \t\"net/textproto\"\n \t\"os\"\n )\n@@ -43,7 +43,11 @@ func (r *Reader) readForm(maxMemory int64) (_ *Form, err error) {\n \...
2020-12-03T14:45:07
huggingface/transformers
af638c4afea81ac251f1ae63497789be79e0baaa
f6e2586a363abf35a494376ec42d1b8efc39df79
fix: Added missing `huggingface_hub` installation to workflows (#32891) Added missing huggingface_hub installation to workflows.
[ { "path": ".github/workflows/self-push-amd.yml", "patch": "@@ -324,6 +324,7 @@ jobs:\n # We pass `needs.setup_gpu.outputs.matrix` as the argument. A processing in `notification_service.py` to change\n # `models/bert` to `models_bert` is required, as the artifact names use `_` instead of `/`....
2024-08-22T11:51:12
rust-lang/rust
e84531811160308fbdd0a8ec3e9b697bb17ccd02
b4cccf01587ac672dee7a92df7e3e21728f5b7aa
Do not error out on missing parent metrics
[ { "path": "src/ci/citool/src/main.rs", "patch": "@@ -150,11 +150,24 @@ fn postprocess_metrics(\n return Ok(());\n };\n \n- let parent_metrics =\n- download_job_metrics(&job_name, &parent).context(\"cannot download parent metrics\")?;\n- let job_metrics =\n- HashMap::from([(jo...
2025-03-15T10:11:56
ollama/ollama
b3f75fc812fc1559090a7fd9739bd203817a5979
0a8d6ea86d54bbda9d701c38e4279a9c5c204cd9
fix noprune
[ { "path": "server/images.go", "patch": "@@ -215,25 +215,20 @@ func GetManifest(mp ModelPath) (*Manifest, string, error) {\n \t\treturn nil, \"\", err\n \t}\n \n-\tif _, err = os.Stat(fp); err != nil {\n-\t\treturn nil, \"\", err\n-\t}\n-\n-\tvar manifest *Manifest\n-\n-\tbts, err := os.ReadFile(fp)\n+\tf, e...
2024-08-14T21:37:51
nodejs/node
c3e75ae0ee97553f5f9c4150c936ae9d81fca558
26607b825ebebe78a182951af164fd1e319dfe27
doc: improve security section of README.md * Remove fluff text and get to the point: Report security flaws to security@nodejs.org. Please do not disclose security flaws publicly until they have been handled by the security team. * Fix somewhat confusing paragraph that says there are no "hard and fast rules" but ...
[ { "path": "README.md", "patch": "@@ -169,20 +169,19 @@ officially supported platforms.\n \n ## Security\n \n-All security bugs in Node.js are taken seriously and should be reported by\n-emailing security@nodejs.org. This will be delivered to a subset of the project\n-team who handle security issues. Please ...
2018-01-01T04:54:56
huggingface/transformers
c6d484e38ce4bc7ca106bc1126f02042545ad102
87134662f73d5e89bb015531ddd1d4662371d317
fix: [whisper] don't overwrite GenerationConfig's `return_timestamps` when `return_timestamps` is not passed to `generate` function (#31296) [whisper] don't overwrite return_timestamps when not passed to generate
[ { "path": "src/transformers/models/whisper/generation_whisper.py", "patch": "@@ -1170,6 +1170,9 @@ def _set_return_outputs(return_dict_in_generate, return_token_timestamps, logpro\n return return_dict_in_generate\n \n def _set_return_timestamps(self, return_timestamps, is_shortform, generation_c...
2024-08-21T19:21:27
golang/go
07cba70d5794747044ce5f2f3b34de139193e2a5
d0c0dc682c1fb15241d84df11715e706a5bc0da7
cmd/compile, runtime: use __msan_memmove for moving data, split msanread to fields Currently, for data moving, we generate an msanread of the source, followed by an msanwrite of the destination. msanread checks the source is initialized. This has a problem: if the source is an aggregate type containing alignment padd...
[ { "path": "misc/cgo/testsanitizers/msan_test.go", "patch": "@@ -28,6 +28,7 @@ func TestMSAN(t *testing.T) {\n \t\t{src: \"msan4.go\"},\n \t\t{src: \"msan5.go\"},\n \t\t{src: \"msan6.go\"},\n+\t\t{src: \"msan7.go\"},\n \t\t{src: \"msan_fail.go\", wantErr: true},\n \t}\n \tfor _, tc := range cases {", "ad...
2020-11-17T02:28:26
ollama/ollama
0a8d6ea86d54bbda9d701c38e4279a9c5c204cd9
8e1050f366e5451651f8385fa570b78b9c7d21cc
Fix typo and improve readability (#5964) * Fix typo and improve readability Summary: * Rename updatAvailableMenuID to updateAvailableMenuID * Replace unused cmd parameter with _ in RunServer function * Fix typos in comments (cherry picked from commit 5b8715f0b04773369e8eb1f9e6737995a0ab3ba7) * Update api/c...
[ { "path": "api/client.go", "patch": "@@ -298,7 +298,7 @@ func (c *Client) List(ctx context.Context) (*ListResponse, error) {\n \treturn &lr, nil\n }\n \n-// List running models.\n+// ListRunning lists running models.\n func (c *Client) ListRunning(ctx context.Context) (*ProcessResponse, error) {\n \tvar lr ...
2024-08-14T00:54:19
huggingface/transformers
1dde50c7d249adb4ea03151235d436e50194a58c
078d5a88cd54e910120406f88910a4ac1927ccff
link for optimizer names (#32400) * link for optimizer names Add a note and link to where the user can find more optimizer names easily because there are many more optimizers than are mentioned in the docstring. * make fixup
[ { "path": "src/transformers/training_args.py", "patch": "@@ -611,8 +611,9 @@ class TrainingArguments:\n \n The options should be separated by whitespaces.\n optim (`str` or [`training_args.OptimizerNames`], *optional*, defaults to `\"adamw_torch\"`):\n- The optimizer to use: a...
2024-08-20T22:28:24
nodejs/node
651ce28be949e0b435b4beb7e61547e31414c4f2
efdadcc193dc1a2b2121fecf1a3ef24d5c35b564
http2: properly handle already closed stream error PR-URL: https://github.com/nodejs/node/pull/17942 Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
[ { "path": "src/node_http2.cc", "patch": "@@ -457,6 +457,8 @@ Http2Session::Callbacks::Callbacks(bool kHasGetPaddingCallback) {\n callbacks, OnNghttpError);\n nghttp2_session_callbacks_set_send_data_callback(\n callbacks, OnSendData);\n+ nghttp2_session_callbacks_set_on_invalid_frame_recv_callback...
2018-01-02T01:51:34
golang/go
d0c0dc682c1fb15241d84df11715e706a5bc0da7
da54dfb6a1f3bef827b9ec3780c98fde77a97d11
doc/go1.16: document os package changes For #39444 For #40700 Fixes #42908 Change-Id: Idae35adecd79e9d7d207f9d78cb009a980e5c8a9 Reviewed-on: https://go-review.googlesource.com/c/go/+/274477 Trust: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Russ Cox <rsc@golang.org>
[ { "path": "doc/go1.16.html", "patch": "@@ -618,7 +618,10 @@ <h3 id=\"minor_library_changes\">Minor changes to the library</h3>\n <dl id=\"os\"><dt><a href=\"/pkg/os/\">os</a></dt>\n <dd>\n <p><!-- CL 242998 -->\n- TODO: <a href=\"https://golang.org/cl/242998\">https://golang.org/cl/242998</a>: ex...
2020-12-03T10:07:27
vercel/next.js
3a31b96f265ed8229d09ed46fff7b18f6b3ab9b7
600bdb1eb56cf6c5790a6db4e90036a7df3cfe9c
Ensure query is updated correctly with shallow and middleware (#39086) This ensures we properly update the query when doing a shallow navigation with middleware present and expands our test coverage of this kind of navigation. This also adds middleware rewrite coverage for the case described in https://github.com/verc...
[ { "path": "packages/next/shared/lib/router/router.ts", "patch": "@@ -1347,7 +1347,10 @@ export default class Router implements BaseRouter {\n if ('route' in routeInfo && isMiddlewareMatch) {\n pathname = routeInfo.route || route\n route = pathname\n- query = Object.assign({}, ro...
2022-07-28T00:52:56
ollama/ollama
2697d7f5aad27248aebbe5acff1dcbede5367b7b
4c4fe3f87fe1858b35bd0d41e093a0039ec4cee4
lint - fixes printf: non-constant format string in call to fmt.Printf - fixes SA1032: arguments have the wrong order - disables testifylint
[ { "path": ".golangci.yaml", "patch": "@@ -24,7 +24,6 @@ linters:\n - nosprintfhostport\n - staticcheck\n - tenv\n- - testifylint\n - unconvert\n - unused\n - usestdlibvars", "additions": 0, "deletions": 1, "language": "YAML" }, { "path": "readline/buffer.go", ...
2024-08-13T20:40:37
huggingface/transformers
c63a3d0f1791e018de447ac570fc7029d1ea19bd
01c4fc455bd0455023868be4b81bde0c4f974b36
Fix: Mamba2 `norm_before_gate` usage (#32686) * mamba2 uses norm_before_gate=False * small nit * remove norm_before_gate flag and follow False path only
[ { "path": "src/transformers/models/mamba2/configuration_mamba2.py", "patch": "@@ -83,8 +83,6 @@ class Mamba2Config(PretrainedConfig):\n Whether or not to rescale `out_proj` weights when initializing.\n use_cache (`bool`, *optional*, defaults to `True`):\n Whether or not the c...
2024-08-20T17:47:34
nodejs/node
30892c8fb432ac8ee33eae1144bcce704906a855
e6a401e0ae01952294f867fbbd715937f8557718
test: fix require-deps-deprecation for installed deps Test test-require-deps-deprecation.js was failing when user already had node installed with acorn in require.resolve range. Modified test to acknowledge the possibility and throw only if acorn is found in the deps directory. PR-URL: https://github.com/nodejs/node...
[ { "path": "test/parallel/test-require-deps-deprecation.js", "patch": "@@ -39,6 +39,17 @@ for (const m of deprecatedModules) {\n } catch (err) {}\n }\n \n+// Instead of checking require, check that resolve isn't pointing toward a\n+// built-in module, as user might already have node installed with acorn in...
2017-12-24T08:11:29
golang/go
6b4da14dd3db660ff8579d9390d52d00f4f33f9a
72cc2353f0522ec7e2ccfc8d4320e3ca932041cf
[dev.typeparams] cmd/compile: provide scaffolding to get types2 types during noding Initial setup of types2.Info structure to provide access to types computed by generic typechecker. Use -G flag to control compiler phases with new typechecker: -G (or -G=1) parsing and typechecking ony -G -G (or -G=2) parsing, t...
[ { "path": "src/cmd/compile/internal/gc/main.go", "patch": "@@ -229,10 +229,10 @@ func Main(archInit func(*Arch)) {\n \tloadsys()\n \n \ttimings.Start(\"fe\", \"parse\")\n-\tlines := parseFiles(flag.Args(), base.Flag.G != 0)\n+\tlines := parseFiles(flag.Args())\n \ttimings.Stop()\n \ttimings.AddEvent(int64(l...
2020-12-03T00:58:46
vercel/next.js
600bdb1eb56cf6c5790a6db4e90036a7df3cfe9c
e955850dd4880430433043fad3d8c13ed43b089a
Remove RSC rendering from render (#39045) (For context, the logic and tests have been moved to `app-render`.) ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request...
[ { "path": "packages/next/server/render.tsx", "patch": "@@ -24,8 +24,6 @@ import type { ReactReadableStream } from './node-web-streams-helper'\n import type { ServerRuntime } from './config-shared'\n \n import React from 'react'\n-import { createFromReadableStream } from 'next/dist/compiled/react-server-dom-...
2022-07-27T22:11:02
huggingface/transformers
01c4fc455bd0455023868be4b81bde0c4f974b36
65f4bc99f9f7b096dffd42e89bd04c432e0058f0
fix: jamba cache fails to use torch.nn.module (#32894) Co-authored-by: Gal Cohen <galc@ai21.com>
[ { "path": "src/transformers/models/jamba/modeling_jamba.py", "patch": "@@ -210,6 +210,7 @@ class HybridMambaAttentionDynamicCache(DynamicCache):\n \"\"\"\n \n def __init__(self, config, batch_size, dtype=torch.float16, device=None):\n+ super().__init__()\n self.dtype = dtype\n ...
2024-08-20T12:50:13
ollama/ollama
01d544d373d0f7782a9da2a830e0e7fa6926a584
1dc3ef3aa9d451a63fcb6ea2e1b6ea5289a1a325
OpenAI: Simplify input output in testing (#5858) * simplify input output * direct comp * in line image * rm error pointer type * update response testing * lint
[ { "path": "openai/openai_test.go", "patch": "@@ -7,27 +7,22 @@ import (\n \t\"io\"\n \t\"net/http\"\n \t\"net/http/httptest\"\n+\t\"reflect\"\n \t\"strings\"\n \t\"testing\"\n \t\"time\"\n \n \t\"github.com/gin-gonic/gin\"\n-\t\"github.com/stretchr/testify/assert\"\n \n \t\"github.com/ollama/ollama/api\"\n ...
2024-08-12T17:33:34
nodejs/node
e6a401e0ae01952294f867fbbd715937f8557718
5bda05548bcfd473b3b112fe388ae64f862af86d
doc: improve PR-review paragraph in CONTRIBUTING.md * Remove redundant "blocking it or stopping it" as blocking and stopping are the same thing in this case. * Make another sentence less wordy. Fix incorrect verb conjugation. Break into two clear sentences. PR-URL: https://github.com/nodejs/node/pull/17931 Review...
[ { "path": "CONTRIBUTING.md", "patch": "@@ -602,12 +602,11 @@ your name on it. Congratulations and thanks for your contribution!\n All Node.js contributors who choose to review and provide feedback on Pull\n Requests have a responsibility to both the project and the individual making the\n contribution. Revi...
2018-01-01T05:18:44
huggingface/transformers
65f4bc99f9f7b096dffd42e89bd04c432e0058f0
fd06ad5438249a055d0b2fd2fc2567d8265a7e4b
Fix repr for conv (#32897) add nx
[ { "path": "src/transformers/pytorch_utils.py", "patch": "@@ -96,6 +96,7 @@ class Conv1D(nn.Module):\n def __init__(self, nf, nx):\n super().__init__()\n self.nf = nf\n+ self.nx = nx\n self.weight = nn.Parameter(torch.empty(nx, nf))\n self.bias = nn.Parameter(torch....
2024-08-20T12:34:24
vercel/next.js
34f5236f572b9f6a2e3c55a537a6a717ffaae71d
0a781dd67510b679db178b17e30a1a06bb912398
fix: show `asPath` on large page data warning (#39071) Fixes #39057 Will now show: ``` Warning: data for page "/[[...slug]]" (path "/some-page") is 256 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance. See more info here: https://nextjs.org/docs/messages/large-page-data ``` ## Bug...
[ { "path": "packages/next/pages/_document.tsx", "patch": "@@ -978,7 +978,11 @@ export class NextScript extends Component<OriginProps> {\n \n if (largePageDataBytes && bytes > largePageDataBytes) {\n console.warn(\n- `Warning: data for page \"${__NEXT_DATA__.page}\" is ${prettyBytes(\n+...
2022-07-27T15:15:37
golang/go
78e442ea79294480c28e44b21702c6452e704110
f26f227f66ff4113cad0cd51c0780e5849e9accc
doc/go1.16: add encoding/json note for tag change For #40700 Fixes #42898 Change-Id: I652657ff8d6cce20bf868f0b1101d723d3f704d1 Reviewed-on: https://go-review.googlesource.com/c/go/+/274614 Trust: Joe Tsai <joetsai@digital-static.net> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
[ { "path": "doc/go1.16.html", "patch": "@@ -456,7 +456,11 @@ <h3 id=\"minor_library_changes\">Minor changes to the library</h3>\n <dl id=\"encoding/json\"><dt><a href=\"/pkg/encoding/json/\">encoding/json</a></dt>\n <dd>\n <p><!-- CL 234818 -->\n- TODO: <a href=\"https://golang.org/cl/234818\">htt...
2020-12-01T22:59:23
nodejs/node
5bda05548bcfd473b3b112fe388ae64f862af86d
3b1e263b7b2989535df40fe5a84be3b841553ae8
doc: fix typos in CONTRIBUTING.md Remove incorrect usage of "in which". The sentence is better and shorter without it anyway. Replace incorrect "with" with "in". PR-URL: https://github.com/nodejs/node/pull/17930 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Weijia Wang <starkwang@126.com> Reviewed-By: ...
[ { "path": "CONTRIBUTING.md", "patch": "@@ -199,9 +199,8 @@ functional guidelines of the Node.js project.\n \n ## Pull Requests\n \n-Pull Requests are the way in which concrete changes are made to the code,\n-documentation, dependencies, and tools contained with the `nodejs/node`\n-repository.\n+Pull Request...
2018-01-01T05:14:52
huggingface/transformers
13e645bb404fa14fc1fcd290bcb91dc84ecc2f8a
85345bb439652d3f03bb4e123cef7a440f2ba95b
Allow-head-dim (#32857) * support head dim * fix the doc * fixup * add oproj Co-authored-by: Suhara <suhara@users.noreply.github.com>> * update Co-authored-by: bzantium <bzantium@users.noreply.github.com> * Co-authored-by: suhara <suhara@users.noreply.github.com> * Update Co-authored-by: Yo...
[ { "path": "src/transformers/models/llama/configuration_llama.py", "patch": "@@ -123,6 +123,8 @@ class LlamaConfig(PretrainedConfig):\n The dropout ratio for the attention probabilities.\n mlp_bias (`bool`, *optional*, defaults to `False`):\n Whether to use a bias in up_proj, ...
2024-08-20T08:24:48
vercel/next.js
0a781dd67510b679db178b17e30a1a06bb912398
0ebd53fdb55cc60ef7e20ce5a9b5b0fb0fb21abd
fix: use `if..elif..else` in docker examples (#39072) * fix: use `if..elif..else` in docker examples * fix missing devDependencies for build Co-authored-by: JJ Kasper <jj@jjsweb.site>
[ { "path": "examples/with-docker-compose/next-app/prod-without-multistage.Dockerfile", "patch": "@@ -6,10 +6,11 @@ WORKDIR /app\n COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./\n # Omit --production flag for TypeScript devDependencies\n RUN \\\n- [ -f yarn.lock ] && yarn install --frozen...
2022-07-27T14:54:04
golang/go
f26f227f66ff4113cad0cd51c0780e5849e9accc
48838c35dc7c8e938a83db66faabf3a51f4adc3d
doc/go1.16: add crypto/tls Config.Clone note For #40700 Fixes #42896 Change-Id: I842c9d60b18abe2ee061c6705a5c7ba62b224d77 Reviewed-on: https://go-review.googlesource.com/c/go/+/274613 Trust: Roland Shoemaker <roland@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
[ { "path": "doc/go1.16.html", "patch": "@@ -405,7 +405,8 @@ <h3 id=\"minor_library_changes\">Minor changes to the library</h3>\n </p>\n \n <p><!-- CL 246637 -->\n- TODO: <a href=\"https://golang.org/cl/246637\">https://golang.org/cl/246637</a>: make config.Clone return nil if the source is nil\n...
2020-12-01T21:02:44
nodejs/node
5dbd77eb83244fbad731f660ebe5d9829a523821
525b6dd0be23716e9d46886b1d222c8826c9d000
doc: copy-edit COLLABORATOR_GUIDE.md Apply various style and punctuation fixes. PR-URL: https://github.com/nodejs/node/pull/17922 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Tobias Nießen ...
[ { "path": "COLLABORATOR_GUIDE.md", "patch": "@@ -33,7 +33,7 @@\n - [How is an LTS release cut?](#how-is-an-lts-release-cut)\n \n This document contains information for Collaborators of the Node.js\n-project regarding maintaining the code, documentation, and issues.\n+project regarding managing the proje...
2017-12-31T04:57:00
huggingface/transformers
37204848f1845b4c97ddcad371a3cfd417869209
61d89c19d853c1e2a597f8dc2bc609988cf2ba4c
Docs: Fixed `whisper-large-v2` model link in docs (#32871) Fixed whisper-large-v2 model link in docs.
[ { "path": "docs/source/en/pipeline_tutorial.md", "patch": "@@ -54,7 +54,7 @@ speech-to-text.\n Not the result you had in mind? Check out some of the [most downloaded automatic speech recognition models](https://huggingface.co/models?pipeline_tag=automatic-speech-recognition&sort=trending) \n on the Hub to s...
2024-08-19T16:50:35
rust-lang/rust
b43a29711e7ab50c1ee47a2d030273c83099b15e
9a847b1ea59090d9633a8dca75510cbe91589c00
Fix `record_diagnostic`
[ { "path": "compiler/rustc_query_system/src/dep_graph/graph.rs", "patch": "@@ -538,10 +538,14 @@ impl<D: Deps> DepGraph<D> {\n #[inline]\n pub fn record_diagnostic<Qcx: QueryContext>(&self, qcx: Qcx, diagnostic: &DiagInner) {\n if let Some(ref data) = self.data {\n- self.read_index...
2025-03-15T02:09:09
golang/go
48838c35dc7c8e938a83db66faabf3a51f4adc3d
2d0258d49568d4b34f5c4dec53985bb80bf370cc
go/parser: ignore subdirectories in ParseDir Issue and PR on GoReleaser: - https://github.com/goreleaser/goreleaser/issues/1897 - https://github.com/goreleaser/goreleaser/pull/1899 Fixes #42951. Change-Id: Ia0d6018e0bad59cd60cd600188c368c431032a4b GitHub-Last-Rev: be59d85fe2d473f4dfd828a244023c4064d6e31f GitHub-Pull...
[ { "path": "src/go/parser/interface.go", "patch": "@@ -140,7 +140,7 @@ func ParseDir(fset *token.FileSet, path string, filter func(fs.FileInfo) bool, m\n \n \tpkgs = make(map[string]*ast.Package)\n \tfor _, d := range list {\n-\t\tif strings.HasSuffix(d.Name(), \".go\") && (filter == nil || filter(d)) {\n+\t...
2020-12-02T21:04:13
nodejs/node
dd7c2b77a32a0b8bc86262989f6ee0d1e94eed4e
653e894883c8009a9bf814f7ea3e931905d128e7
doc: fix spelling of contributors Change instances of "contributiors" to "contributors". PR-URL: https://github.com/nodejs/node/pull/17922 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Tobia...
[ { "path": "COLLABORATOR_GUIDE.md", "patch": "@@ -4,7 +4,7 @@\n \n * [Issues and Pull Requests](#issues-and-pull-requests)\n - [Managing Issues and Pull Requests](#managing-issues-and-pull-requests)\n- - [Welcoming First-Time Contributiors](#welcoming-first-time-contributiors)\n+ - [Welcoming First-Time ...
2017-12-31T04:40:35
huggingface/transformers
61d89c19d853c1e2a597f8dc2bc609988cf2ba4c
93e538ae2e307c2fb626fae4b914e25c58b47c0e
Fix: Mamba2 generation mismatch between input_ids and inputs_embeds (#32694) * fix cache when using input embeddings * simplify check, we can always add input ids seq len since its 0 in first pass
[ { "path": "src/transformers/models/mamba2/modeling_mamba2.py", "patch": "@@ -964,8 +964,8 @@ def prepare_inputs_for_generation(\n attention_mask: Optional[torch.Tensor] = None,\n **kwargs,\n ):\n- if input_ids.shape[1] == 0:\n- past_len = inputs_embeds.shape[1]\n+ ...
2024-08-19T14:06:07
vercel/next.js
0ebd53fdb55cc60ef7e20ce5a9b5b0fb0fb21abd
fe72c828b6506d8acdb9a45e192e6ea2d41a2d01
fix: print Request & Response properties (#38903) * Add inspect symbol for request WIP * Add inspect symbol for response * build: upgrade edge-runtime
[ { "path": "package.json", "patch": "@@ -56,7 +56,7 @@\n \"@babel/plugin-proposal-object-rest-spread\": \"7.14.7\",\n \"@babel/preset-flow\": \"7.14.5\",\n \"@babel/preset-react\": \"7.14.5\",\n- \"@edge-runtime/jest-environment\": \"1.1.0-beta.17\",\n+ \"@edge-runtime/jest-environment\": \...
2022-07-27T14:16:16
ollama/ollama
2fa1db434581bcfcb6fec1482904656e4b5f8313
e9aa5117c409c94861af1c50b246f29a72d05147
Don't hard fail on sparse setup error It seems this can fail in some casees, but proceed with the download anyway.
[ { "path": "server/download.go", "patch": "@@ -216,9 +216,7 @@ func (b *blobDownload) run(ctx context.Context, requestURL *url.URL, opts *regis\n \t\treturn err\n \t}\n \tdefer file.Close()\n-\tif err := setSparse(file); err != nil {\n-\t\treturn err\n-\t}\n+\tsetSparse(file)\n \n \t_ = file.Truncate(b.Total...
2024-08-09T18:57:48
huggingface/transformers
93e538ae2e307c2fb626fae4b914e25c58b47c0e
59e8f1919c53bec24d3fa9188218a9165c69347d
Mamba / FalconMamba: Fix mamba left padding (#32677) * fix mamba left padding * Apply suggestions from code review Co-authored-by: Pablo Montalvo <39954772+molbap@users.noreply.github.com> * fix copies * test with `inputs_embeds` * Update src/transformers/models/falcon_mamba/modeling_falcon_mamba.py ...
[ { "path": "src/transformers/models/falcon_mamba/modeling_falcon_mamba.py", "patch": "@@ -155,6 +155,7 @@ def cuda_kernels_forward(\n hidden_states: torch.Tensor,\n cache_params: Optional[MambaCache] = None,\n cache_position: Optional[torch.LongTensor] = None,\n+ attention_mask...
2024-08-19T14:01:35
golang/go
2d0258d49568d4b34f5c4dec53985bb80bf370cc
05ddb879c73bc0c84ed1a80864aaf27b4a3d032f
crypto/ed25519/internal/edwards25519: fix typo in comments Change-Id: I8133762d53d9e5d3cc13e0f97b9679a3248a7f0f Reviewed-on: https://go-review.googlesource.com/c/go/+/273087 Trust: Filippo Valsorda <filippo@golang.org> Reviewed-by: Katie Hockman <katie@golang.org>
[ { "path": "src/crypto/ed25519/internal/edwards25519/edwards25519.go", "patch": "@@ -722,7 +722,7 @@ func (p *ExtendedGroupElement) FromBytes(s *[32]byte) bool {\n \tFeOne(&p.Z)\n \tFeSquare(&u, &p.Y)\n \tFeMul(&v, &u, &d)\n-\tFeSub(&u, &u, &p.Z) // y = y^2-1\n+\tFeSub(&u, &u, &p.Z) // u = y^2-1\n \tFeAdd(&v...
2020-11-25T01:40:32
nodejs/node
d179ccac928bd45e4baca8647c3605ec36934eec
02e4c8d981f3b4662d0abfc1031afc29761086f3
doc: add references to PR communication articles Added some references to PR communication articles in Helpful Ressources inside COLLABORATOR_GUIDE.md PR-URL: https://github.com/nodejs/node/pull/17902 Fixes: https://github.com/nodejs/node/issues/16359 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: ...
[ { "path": "COLLABORATOR_GUIDE.md", "patch": "@@ -116,6 +116,11 @@ oppose the PR, it can be landed. Where there is disagreement among TSC members\n or objections from one or more Collaborators, `semver-major` pull requests\n should be put on the TSC meeting agenda.\n \n+#### Helpful resources\n+\n+* How to r...
2017-12-28T16:31:53
vercel/next.js
e64729521d2a30be8b93e7f81489e52936cd70f0
8fc8a6c8832fbef57468b3792fd9a5998b3e507f
Add additional comments for reducer/cachenode (#39065) - Add additional comments for reducer functions. - Add comments for CacheNode ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] Implements an...
[ { "path": "packages/next/client/components/reducer.ts", "patch": "@@ -7,6 +7,9 @@ import type {\n import { matchSegment } from './match-segments'\n import { fetchServerResponse } from './app-router.client'\n \n+/**\n+ * Fill cache with subTreeData based on flightDataPath\n+ */\n function fillCacheWithNewSub...
2022-07-27T12:43:43
golang/go
05ddb879c73bc0c84ed1a80864aaf27b4a3d032f
ac38af2f3db7b16067bd8983d1f5278c5c9ef706
cmd/go: fix TestNewReleaseRebuildsStalePackagesInGOPATH Broken during CL 267719. Change-Id: If5acb8231d3053c0e714a79c02cb56eaba6e74e6 Reviewed-on: https://go-review.googlesource.com/c/go/+/274854 Trust: Russ Cox <rsc@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-b...
[ { "path": "src/cmd/go/go_test.go", "patch": "@@ -838,6 +838,9 @@ func TestNewReleaseRebuildsStalePackagesInGOPATH(t *testing.T) {\n \t\t\t\t\treturn err\n \t\t\t\t}\n \t\t\t\ttg.tempFile(dest, string(data))\n+\t\t\t\tif strings.Contains(copydir, filepath.Join(\"pkg\", \"tool\")) {\n+\t\t\t\t\tos.Chmod(tg.pa...
2020-12-02T17:56:29
nodejs/node
54062d30cf3550fdb6220fa580724b76da817f32
11a1bc11364ea88091b73cec5d5f69bdccb03ac1
timers: refactor setImmediate error handling If an error is encountered during the processing of Immediates, schedule the remaining queue to finish after all error handling code runs (if the process is still alive to do so). The new changes make the Immediates error handling behaviour entirely deterministic and predic...
[ { "path": "lib/timers.js", "patch": "@@ -51,7 +51,11 @@ const { kInit, kDestroy, kAsyncIdCounter } = async_wrap.constants;\n const async_id_symbol = timerInternals.async_id_symbol;\n const trigger_async_id_symbol = timerInternals.trigger_async_id_symbol;\n \n-const [activateImmediateCheck, scheduledImmediat...
2017-12-26T19:17:37
huggingface/transformers
59e8f1919c53bec24d3fa9188218a9165c69347d
5f6c080b624b1a5c1dabd1c1209d0547bd5adaef
Fix incorrect vocab size retrieval in GGUF config (#32551) * fix gguf config vocab size * minor fix * link issue
[ { "path": "src/transformers/modeling_gguf_pytorch_utils.py", "patch": "@@ -130,6 +130,18 @@ def load_gguf_checkpoint(gguf_checkpoint_path, return_tensors=False):\n if gguf_key in reader_keys:\n logger.info(f\"Some keys were not parsed and added into account {gguf_key} | {value}\")\n \n+ ...
2024-08-19T13:53:54
ollama/ollama
7b61eba47159748bcfc35227a13e31c899a84e49
5b3a21b578da89b1682a98ce123a6b3c91697e9b
server/download.go: Fix a typo in log Signed-off-by: Jitang Lei <leijitang@outlook.com>
[ { "path": "server/download.go", "patch": "@@ -235,7 +235,7 @@ func (b *blobDownload) run(ctx context.Context, requestURL *url.URL, opts *regis\n \n \t\t\tnewOpts.CheckRedirect = func(req *http.Request, via []*http.Request) error {\n \t\t\t\tif len(via) > 10 {\n-\t\t\t\t\treturn errors.New(\"maxium redirects...
2024-08-08T12:28:01
vercel/next.js
8fc8a6c8832fbef57468b3792fd9a5998b3e507f
90ddd0dc83fefe0eb906f164f0ceea1549088d86
Add comments in new router reducer (#39025) Expand explanation of new router. ## 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/client/components/app-router.client.tsx", "patch": "@@ -2,7 +2,7 @@ import React, { useEffect } from 'react'\n import { createFromReadableStream } from 'next/dist/compiled/react-server-dom-webpack'\n import {\n AppRouterContext,\n- AppTreeContext,\n+ LayoutRouterContext,\n Glo...
2022-07-27T09:55:07
golang/go
ac38af2f3db7b16067bd8983d1f5278c5c9ef706
3d913a926675d8d6fcdc3cfaefd3136dfeba06e1
cmd/go: stop tests from using network during -short It turned out that "go get" was using the network to look up https://github.com?go-get=1 while resolving github.com/google/go-cmp, and that is not the fastest page to load. Stop that lookup by adjusting the path prefixes in the vcs table. It also turned out that "go...
[ { "path": "src/cmd/go/internal/modfetch/codehost/codehost.go", "patch": "@@ -264,6 +264,9 @@ func RunWithStdin(dir string, stdin io.Reader, cmdline ...interface{}) ([]byte,\n \t}\n \n \tcmd := str.StringList(cmdline...)\n+\tif os.Getenv(\"TESTGOVCS\") == \"panic\" {\n+\t\tpanic(fmt.Sprintf(\"use of vcs: %v\...
2020-12-02T15:14:53
nodejs/node
11a1bc11364ea88091b73cec5d5f69bdccb03ac1
47ee340a9eb0cd7c73e9f2db8896440881d9caf1
doc: replace wrong U+00A0 by common spaces PR-URL: https://github.com/nodejs/node/pull/17940 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Jon Moss <me@jonathanmoss.me>
[ { "path": "doc/api/dgram.md", "patch": "@@ -295,7 +295,7 @@ If `msg` is a `String`, then it is automatically converted to a `Buffer`\n with `'utf8'` encoding. With messages that\n contain multi-byte characters, `offset` and `length` will be calculated with\n respect to [byte length][] and not the character...
2018-01-01T23:39:17
huggingface/transformers
5f6c080b624b1a5c1dabd1c1209d0547bd5adaef
8a4857c0db55ef15a603087f2b9f9aa248b0919f
RT-DETR parameterized batchnorm freezing (#32631) * fix: Parameterized norm freezing For the R18 model, the authors don't freeze norms in the backbone. * Update src/transformers/models/rt_detr/configuration_rt_detr.py Co-authored-by: Pavel Iakubovskii <qubvel@gmail.com> --------- Co-authored-by: Pavel I...
[ { "path": "src/transformers/models/rt_detr/configuration_rt_detr.py", "patch": "@@ -55,6 +55,8 @@ class RTDetrConfig(PretrainedConfig):\n use_timm_backbone (`bool`, *optional*, defaults to `False`):\n Whether to load `backbone` from the timm library. If `False`, the backbone is loaded fr...
2024-08-19T13:50:57
ollama/ollama
7edaf6e7e8d79a9c88419988ae98afaf3fc32f15
97ec8cfd4ef13190f3939fbb24b6f146d570ed12
manifest: Store layers inside manifests consistently as values. Commit 1829fb61 ("manifest: Fix crash on startup when trying to clean up unused files (#5840)") changed the config layer stored in manifests from a pointer to a value. This was done in order to avoid potential nil pointer dereferences after it is deserial...
[ { "path": "server/images.go", "patch": "@@ -373,7 +373,7 @@ func CreateModel(ctx context.Context, name model.Name, modelFileDir, quantizatio\n \tvar messages []*api.Message\n \tparameters := make(map[string]any)\n \n-\tvar layers []*Layer\n+\tvar layers []Layer\n \tfor _, c := range modelfile.Commands {\n \...
2024-08-07T21:22:17
vercel/next.js
0831dd59c98e3f7a6faff25054d89a7e5c3f15d7
8017d69a6881569a49fcd1ea7d236513a8ecc180
chore: Clean up imports and unused code (#39044) A small refactor PR to convert some imports to type imports, as well as removing a couple of unused exports. The Edge SSR loader is also missing the global process injection (`enhanceGlobals`). ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integratio...
[ { "path": "packages/next/build/webpack/loaders/next-edge-ssr-loader/index.ts", "patch": "@@ -47,11 +47,13 @@ export default async function edgeSSRLoader(this: any) {\n : null\n \n const transformed = `\n- import { adapter } from 'next/dist/server/web/adapter'\n+ import { adapter, enhanceGlobals ...
2022-07-26T21:41:59
golang/go
10240b9d6b39cd7edc6566d0875a4b6499bcd9b3
c32140fa94cfc51a2152855825f57e27ae3ba133
cmd/go: fix unbuffered channel passed to signal.Notify Unbuffered channels passed into signal.Notify can be lost as the docs for signal.Notify caution with: Package signal will not block sending to c: the caller must ensure that c has sufficient buffer space to keep up with the expected signal rate. For a...
[ { "path": "src/cmd/go/internal/base/signal.go", "patch": "@@ -15,7 +15,7 @@ var Interrupted = make(chan struct{})\n \n // processSignals setups signal handler.\n func processSignals() {\n-\tsig := make(chan os.Signal)\n+\tsig := make(chan os.Signal, 1)\n \tsignal.Notify(sig, signalsToIgnore...)\n \tgo func(...
2020-12-01T05:54:24
nodejs/node
b21e3f0711ca989fe21bd4484b58d03e5693f859
1fa4f5df3a3c12017faf048aae1523b4ee1613de
doc: fix duplicate words & spellings in docs PR-URL: https://github.com/nodejs/node/pull/17923 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Benjamin Gruenbaum ...
[ { "path": "doc/api/async_hooks.md", "patch": "@@ -526,7 +526,7 @@ const server = net.createServer((conn) => {\n \n ## JavaScript Embedder API\n \n-Library developers that handle their own asychronous resources performing tasks\n+Library developers that handle their own asynchronous resources performing task...
2017-12-31T09:45:43
huggingface/transformers
8a4857c0db55ef15a603087f2b9f9aa248b0919f
f1b720ed62bf3a9f361aef335eefc3eda6d1f0f7
Support save/load ckpt for XLA FSDP (#32311) * Support save/load ckpt for XLA FSDP * Fix bug for save * Fix style * reserve sharded ckpt and better file naming * minor fix Co-authored-by: Zach Mueller <muellerzr@gmail.com> * add is_fsdp_xla_v1_enabled --------- Co-authored-by: Zach Mueller <mue...
[ { "path": "src/transformers/trainer.py", "patch": "@@ -702,6 +702,7 @@ def __init__(\n # Tensor axis is just a placeholder where it will not be used in FSDPv2.\n num_devices = xr.global_runtime_device_count()\n xs.set_global_mesh(xs.Mesh(np.array(range(num_devices)), (num...
2024-08-19T13:44:21
ollama/ollama
97ec8cfd4ef13190f3939fbb24b6f146d570ed12
5b3a21b578da89b1682a98ce123a6b3c91697e9b
image: Clarify argument to WriteManifest is config When creating a model the config layer is appended to the list of layers and then the last layer is used as the config when writing the manifest. This change directly uses the config layer to write the manifest. There is no behavior change but it is less error prone.
[ { "path": "server/images.go", "patch": "@@ -625,12 +625,12 @@ func CreateModel(ctx context.Context, name model.Name, modelFileDir, quantizatio\n \t\treturn err\n \t}\n \n-\tlayer, err := NewLayer(&b, \"application/vnd.docker.container.image.v1+json\")\n+\tconfigLayer, err := NewLayer(&b, \"application/vnd.d...
2024-08-07T18:44:25
vercel/next.js
b8460266733716d2d04dfc9657bdfccb197d34aa
cee2cf379dfe87ff7a9c9fb88fea4acbfe4a20bc
Handle getStaticPaths error inside worker to avoid serializing (#39032) * Handle getStaticPaths error inside worker to avoid serializing * handle invalid export case
[ { "path": "packages/next/build/utils.ts", "patch": "@@ -862,117 +862,125 @@ export async function isPageStatic(\n traceExcludes?: string[]\n }> {\n const isPageStaticSpan = trace('is-page-static-utils', parentId)\n- return isPageStaticSpan.traceAsyncFn(async () => {\n- require('../shared/lib/runtime...
2022-07-26T18:56:29
huggingface/transformers
e55b33ceb4b0ba3c8c11f20b6e8d6ca4b48246d4
54b7703682aee4bc46817ebce96fdbdfcc82e262
[tests] make `test_sdpa_can_compile_dynamic` device-agnostic (#32519) * enable * fix
[ { "path": "tests/test_modeling_common.py", "patch": "@@ -79,6 +79,7 @@\n require_read_token,\n require_safetensors,\n require_torch,\n+ require_torch_accelerator,\n require_torch_gpu,\n require_torch_multi_accelerator,\n require_torch_multi_gpu,\n@@ -4105,17 +4106,17 @@ def test_s...
2024-08-19T11:46:59
nodejs/node
166a2ceeb7d5cf338e4e22fe5a67fae9ec957c56
a82b1b7b30d52cd6a3ea9f129cdc3d83e0370a34
test: use countdown in test file Fixes: https://github.com/nodejs/node/issues/17169 PR-URL: https://github.com/nodejs/node/pull/17874 Fixes: https://github.com/nodejs/node/issues/17169 Reviewed-By: Weijia Wang <starkwang@126.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anatoli Papirovski <apapirov...
[ { "path": "test/parallel/test-http-get-pipeline-problem.js", "patch": "@@ -28,6 +28,7 @@ const fixtures = require('../common/fixtures');\n const assert = require('assert');\n const http = require('http');\n const fs = require('fs');\n+const Countdown = require('../common/countdown');\n \n http.globalAgent.m...
2017-12-27T06:22:49
golang/go
0433845ad18a355413033bb3495ba3195f4c69ec
73e796cb007989449da95fb4adf936ee76b766ca
cmd/asm, cmd/internal/obj/riscv: fix branch pseudo-instructions Pseudo branch instructions BGT, BGTU, BLE, and BLEU implemented In CL 226397 were translated inconsistently compared to other ones due to the inversion of registers. For instance, while "BLT a, b" generates "jump if a < b", "BLE a, b" generates "jump if b...
[ { "path": "src/cmd/asm/internal/asm/testdata/riscvenc.s", "patch": "@@ -340,11 +340,11 @@ start:\n \t// Branch pseudo-instructions\n \tBEQZ\tX5, start\t// BEQZ\tX5, 2\t\t// e38602c0\n \tBGEZ\tX5, start\t// BGEZ\tX5, 2\t\t// e3d402c0\n-\tBGT\tX5, X6, start\t// BGT\tX5, X6, 2\t// e3c262c0\n-\tBGTU\tX5, X6, st...
2020-11-21T14:48:55
golang/go
ab1812556777ffe61e554efb01c080cff90a6308
036245862aa9db844ee8a6d12809f7d444d33042
[dev.typeparams] cmd/compile/internal/types2: no "declared but not used" errors for invalid var decls Matches compiler behavior. Change-Id: I87ca46fb7269fbac61ffbf8ed48902156b06f6e4 Reviewed-on: https://go-review.googlesource.com/c/go/+/274615 Trust: Robert Griesemer <gri@golang.org> Reviewed-by: Robert Findley <rfin...
[ { "path": "src/cmd/compile/internal/types2/assignments.go", "patch": "@@ -112,6 +112,7 @@ func (check *Checker) initVar(lhs *Var, x *operand, context string) Type {\n \t\tif lhs.typ == nil {\n \t\t\tlhs.typ = Typ[Invalid]\n \t\t}\n+\t\tlhs.used = true // avoid follow-on \"declared but not used\" errors\n \t...
2020-12-02T00:02:37
nodejs/node
a82b1b7b30d52cd6a3ea9f129cdc3d83e0370a34
4117e22cf376b4ec188e15fc7e8a4d0391e89a9a
errors: remove ERR_OUTOFMEMORY PR-URL: https://github.com/nodejs/node/pull/17877 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
[ { "path": "doc/api/errors.md", "patch": "@@ -1332,11 +1332,6 @@ A Node.js API was called in an unsupported manner.\n \n For example: `Buffer.write(string, encoding, offset[, length])`\n \n-<a id=\"ERR_OUTOFMEMORY\"></a>\n-### ERR_OUTOFMEMORY\n-\n-An operation caused an out-of-memory condition.\n-\n <a id=\"...
2017-12-27T14:18:42
vercel/next.js
fd7bd1242191ef40100fc9ca753111105daf9fd1
8ae6f28634d55f8f73bb87dfd98c1a8e4a3b67d1
Fix tracing edge-runtime dependencies (#39009) * Fix tracing edge-runtime dependencies * update compiled * remove old console log
[ { "path": "packages/next/build/utils.ts", "patch": "@@ -1148,7 +1148,6 @@ export async function copyTracedFiles(\n const symlink = await fs.readlink(tracedFilePath).catch(() => null)\n \n if (symlink) {\n- console.log('symlink', path.relative(tracingRoot, symlink))\n ...
2022-07-26T15:47:34
huggingface/transformers
8260cb311efe9b2855f6ecb6d1d7724ea2d0dcc3
843e5e20ca95c9026399e71e916ea9e336058b36
Add Descript-Audio-Codec model (#31494) * dac model * original dac works * add dac model * dac can be instatiated * add forward pass * load weights * all weights are used * convert checkpoint script ready * test * add feature extractor * up * make style * apply cookicutter * fix ...
[ { "path": "docs/source/en/_toctree.yml", "patch": "@@ -696,6 +696,8 @@\n title: Bark\n - local: model_doc/clap\n title: CLAP\n+ - local: model_doc/dac\n+ title: dac\n - local: model_doc/encodec\n title: EnCodec\n - local: model_doc/hiera", "additions...
2024-08-19T09:21:51
ollama/ollama
1829fb61bd7a4186881714618f09b2877d0bc9a3
685a53534b80a14efdfdb09ca00af984782ba6ee
manifest: Fix crash on startup when trying to clean up unused files (#5840) Currently if the config field is missing in the manifest file (or corrupted), Ollama will crash when it tries to read it. This can happen at startup or when pulling new models. This data is mostly just used for showing model information so we...
[ { "path": "server/images.go", "patch": "@@ -250,19 +250,21 @@ func GetModel(name string) (*Model, error) {\n \t\tTemplate: template.DefaultTemplate,\n \t}\n \n-\tfilename, err := GetBlobsPath(manifest.Config.Digest)\n-\tif err != nil {\n-\t\treturn nil, err\n-\t}\n+\tif manifest.Config.Digest != \"\" {\n+\...
2024-08-06T00:13:52
golang/go
036245862aa9db844ee8a6d12809f7d444d33042
bdc4ffe9a86d1dae0fef9de8395850e5c0b391c6
[dev.typeparams] cmd/compile/internal/types2: set compiler error message for undeclared variable Change-Id: Ie2950cdc5406915935f114bfd97ef03d965f9069 Reviewed-on: https://go-review.googlesource.com/c/go/+/274616 Trust: Robert Griesemer <gri@golang.org> Reviewed-by: Robert Findley <rfindley@google.com> Run-TryBot: Robe...
[ { "path": "src/cmd/compile/internal/types2/typexpr.go", "patch": "@@ -32,7 +32,11 @@ func (check *Checker) ident(x *operand, e *syntax.Name, def *Named, wantType boo\n \t\tif e.Value == \"_\" {\n \t\t\tcheck.errorf(e, \"cannot use _ as value or type\")\n \t\t} else {\n-\t\t\tcheck.errorf(e, \"undeclared nam...
2020-12-02T00:07:00
nodejs/node
4117e22cf376b4ec188e15fc7e8a4d0391e89a9a
6fc9c331c624ceef5efcce19b1d610340e1f39be
test: fix repl-tab-complete --without-ssl Currently, when configured --without-ssl test-repl-tab-complete fails with the following error: assert.js:43 throw new errors.AssertionError(obj); ^ AssertionError [ERR_ASSERTION]: [ [], 'lexicalL' ] deepStrictEqual [] at testRepl.complete.common.mustCall (node...
[ { "path": "test/parallel/test-repl-tab-complete.js", "patch": "@@ -544,7 +544,8 @@ editor.completer('var log = console.l', common.mustCall((error, data) => {\n \n ['Let', 'Const', 'Klass'].forEach((type) => {\n const query = `lexical${type[0]}`;\n- const expected = hasInspector ? [[`lexical${type}`...
2017-12-26T09:49:36
vercel/next.js
5bd155e22032185c1b3f821793db7292d1ff68cd
e2286eeb514bfbf8a92efaec0e2ee85aeb69e3c6
Added workaround for --isolatedModules inside of configuration files (#39004) This relates to a bug from issue #38957 found inside of the `with-cypress` example as a result of the recent typescript conversion. This issue can be resolved with adding `export {};` which prevents TypeScript from reading `.ts` configurati...
[ { "path": "examples/with-cypress/cypress.config.ts", "patch": "@@ -5,3 +5,6 @@ module.exports = defineConfig({\n baseUrl: 'http://localhost:3000',\n },\n })\n+\n+// Prevent TypeScript from reading file as legacy script\n+export {}", "additions": 3, "deletions": 0, "language": "Unknown" }...
2022-07-26T12:43:45
huggingface/transformers
843e5e20ca95c9026399e71e916ea9e336058b36
52cb4034ada381fe1ffe8d428a1076e5411a8026
Add Flax Dinov2 (#31960) * tfmsenv restored in main * installed flax * forward pass done and all tests passed * make fix-copies and cleaning the scripts * fixup attempt 1 * fixup attempt 2 * fixup third attempt * fixup attempt 4 * fixup attempt 5 * dinov2 doc fixed * FlaxDinov2Model + For...
[ { "path": "docs/source/en/index.md", "patch": "@@ -120,7 +120,7 @@ Flax), PyTorch, and/or TensorFlow.\n | [DETR](model_doc/detr) | ✅ | ❌ | ❌ |\n | [DialoGPT](model_doc/dialogpt) ...
2024-08-19T08:28:13
ollama/ollama
685a53534b80a14efdfdb09ca00af984782ba6ee
de4fc297732cb60ff79a6c8010a7c79971c21b4a
manifest: Don't prune layers if we can't open a manifest file If there is an error when opening a manifest file (corrupted, permission denied, etc.) then the referenced layers will not be included in the list of active layers. This causes them to be deleted when pruning happens at startup or a model is pulled. In suc...
[ { "path": "server/images.go", "patch": "@@ -714,8 +714,7 @@ func deleteUnusedLayers(skipModelPath *ModelPath, deleteMap map[string]struct{})\n \t\t// save (i.e. delete from the deleteMap) any files used in other manifests\n \t\tmanifest, _, err := GetManifest(fmp)\n \t\tif err != nil {\n-\t\t\t//nolint:nile...
2024-08-01T22:05:16
golang/go
73e796cb007989449da95fb4adf936ee76b766ca
cf7aa585ac8b3a2db8e0792d6d7c14259568823e
test: match gofrontend error messages The gofrontend code doesn't distinguish semicolon and newline, and it doesn't have special treatment for EOF. syntax/semi6.go:9:47: error: unexpected semicolon or newline in type declaration syntax/semi6.go:11:62: error: unexpected semicolon or newline in type declaration Change...
[ { "path": "test/syntax/semi6.go", "patch": "@@ -6,6 +6,6 @@\n \n package main\n \n-type T1\t// ERROR \"unexpected newline in type declaration\"\n+type T1\t// ERROR \"newline in type declaration\"\n \n-type T2 /* // ERROR \"unexpected EOF in type declaration\" */\n\\ No newline at end of file\n+type T2 /* //...
2020-12-02T02:14:40
vercel/next.js
e2286eeb514bfbf8a92efaec0e2ee85aeb69e3c6
8c902b61d1f030f276e9c3df10b20285b2043a10
Add additional comments to new router (#38986) Expanded app-render. ## 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 ha...
[ { "path": "packages/next/client/components/app-router.client.tsx", "patch": "@@ -41,6 +41,7 @@ function fetchFlight(\n JSON.stringify(flightRouterState)\n )\n \n+ // TODO-APP: Verify that TransformStream is supported.\n const { readable, writable } = new TransformStream()\n \n fetch(flightUrl.toS...
2022-07-26T10:41:51
nodejs/node
6fc9c331c624ceef5efcce19b1d610340e1f39be
acbe00792d3e73ded9d309002974a095e1433afe
test: add hasCrypto when using binding('crypto') Currently, when configured --without-ssl tests that use process.binding('crypto') fail with the following error: === release test-accessor-properties === Path: parallel/test-accessor-properties node/test/parallel/test-accessor-properties.js:16 const crypto = process.bi...
[ { "path": "test/parallel/test-accessor-properties.js", "patch": "@@ -1,6 +1,6 @@\n 'use strict';\n \n-require('../common');\n+const common = require('../common');\n \n // This tests that the accessor properties do not raise assertions\n // when called with incompatible receivers.\n@@ -12,9 +12,6 @@ const as...
2017-12-26T08:58:43
huggingface/transformers
52cb4034ada381fe1ffe8d428a1076e5411a8026
6806d3356791d8168e9673ad61b28fded4ed80e8
generate: missing `to` in DoLa body, causing exceptions in multi-gpu generation (#32856)
[ { "path": "src/transformers/generation/utils.py", "patch": "@@ -2379,7 +2379,7 @@ def _dola_decoding(\n for candidate_premature_layer in candidate_premature_layers:\n candidate_premature_logits[candidate_premature_layer] = lm_head(\n outputs.hidden_states[cand...
2024-08-17T15:37:00
ollama/ollama
d4a7216c82bb406e644c739281ade3f7f2e283e5
a4fdd03c3b9fa0cf899fd04c50c5d6158302c621
Fixed invalid option provided not displaying the invalid option name problem. (#6202)
[ { "path": "api/types.go", "patch": "@@ -504,7 +504,7 @@ func (opts *Options) FromMap(m map[string]interface{}) error {\n \tfor key, val := range m {\n \t\topt, ok := jsonOpts[key]\n \t\tif !ok {\n-\t\t\tslog.Warn(\"invalid option provided\", \"option\", opt.Name)\n+\t\t\tslog.Warn(\"invalid option provided\...
2024-08-06T18:37:16
rust-lang/rust
4a324c9dffa87a802a3e976976020ed605eeb1bc
da910b14e2af9d790c18c5861a8669b30a90939d
Fix from_over_into lint suggesting invalid code
[ { "path": "clippy_lints/src/from_over_into.rs", "patch": "@@ -176,8 +176,8 @@ fn convert_to_from(\n return None;\n };\n let body = cx.tcx.hir_body(body_id);\n- let [input] = body.params else { return None };\n- let PatKind::Binding(.., self_ident, None) = input.pat.kind else {\n+ le...
2025-03-14T23:05:32
golang/go
cf7aa585ac8b3a2db8e0792d6d7c14259568823e
8cd35e00bd413e68e6b9ae6403aa4209fc89b90f
cmd/link: invalidate kernel cache on darwin Apparently, the darwin kernel may cache the code signature at mmap. When we mmap the output buffer, it doesn't have a code signature (as we haven't generated one). Invalidate the kernel cache after writing the file. See https://github.com/golang/go/issues/42684#issuecomment...
[ { "path": "src/cmd/link/internal/ld/outbuf.go", "patch": "@@ -113,6 +113,7 @@ func (out *OutBuf) Close() error {\n \t}\n \tif out.isMmapped() {\n \t\tout.copyHeap()\n+\t\tout.purgeSignatureCache()\n \t\tout.munmap()\n \t}\n \tif out.f == nil {", "additions": 1, "deletions": 0, "language": "Go" ...
2020-11-22T16:43:29
nodejs/node
c64ca56def8651c2ad679bcdf1283fa7560e88f3
f94eec0218419a639c6c0019d8e4a48a894f7aff
util: improve error message of _errnoException The usage of ERR_INVALID_ARG_TYPE in _errnoException is a little inappropriate. This change is to improve it. PR-URL: https://github.com/nodejs/node/pull/17626 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: C...
[ { "path": "lib/util.js", "patch": "@@ -1056,9 +1056,12 @@ function error(...args) {\n }\n \n function _errnoException(err, syscall, original) {\n- if (typeof err !== 'number' || err >= 0 || !Number.isSafeInteger(err)) {\n- throw new errors.TypeError('ERR_INVALID_ARG_TYPE', 'err',\n- ...
2017-12-12T01:27:35
vercel/next.js
135a4cfc6632887aaccd2452d5c413419163680c
05ba790cdbc8a721c34a9ad441fce25da067f458
Add handling for prefetching onTouchStart and initial mobile testing (#38805) This adds handling for prefetching `onTouchStart` as this gives a little more time to start parsing required scripts for a page transition if not already done that can help make the transition faster. This is based on research showing the t...
[ { "path": ".github/workflows/build_test_deploy.yml", "patch": "@@ -816,13 +816,9 @@ jobs:\n runs-on: ubuntu-latest\n needs: [build, build-native-test]\n env:\n- BROWSERSTACK: true\n BROWSER_NAME: 'safari'\n- NEXT_TELEMETRY_DISABLED: 1\n NEXT_TEST_MODE: 'start'\n- SKIP_...
2022-07-25T19:04:03
huggingface/transformers
6806d3356791d8168e9673ad61b28fded4ed80e8
8ec028adeda29fce81cf6c50fcfa2259beaea6cc
Make beam_constraints.Constraint.advance() docstring more accurate (#32674) * Fix beam_constraints.Constraint.advance() docstring * Update src/transformers/generation/beam_constraints.py Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com> --------- Co-authored-by: Joao Gante <joaofranci...
[ { "path": "src/transformers/generation/beam_constraints.py", "patch": "@@ -48,10 +48,13 @@ def test(self):\n @abstractmethod\n def advance(self):\n \"\"\"\n- When called, returns the token that would take this constraint one step closer to being fulfilled.\n+ When called, retur...
2024-08-16T18:36:55
rust-lang/rust
e6f7ab50c00eb754dff01fac27023a291c2ef0f4
5da1ba41b3ba8573b8b16a7207b7b29f895f3dfa
Small grammar fix in comment
[ { "path": "compiler/rustc_hir_analysis/src/hir_ty_lowering/lint.rs", "patch": "@@ -420,7 +420,7 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {\n if borrowed { (\"dyn \", \"(dyn \") } else { (\"&dyn \", \"&(dyn \") };\n \n let sugg = if let hir::TyKind::TraitObject([_, _, ..]...
2025-03-14T20:51:28
huggingface/transformers
8ec028adeda29fce81cf6c50fcfa2259beaea6cc
1c36db697a52fb7ef09c85c46fe60f5434a1aff1
Reduce the error log when using core models that need their weights renamed, and provide a step forward (#32656) * Fin * Modify msg * Finish up nits
[ { "path": "src/transformers/modeling_utils.py", "patch": "@@ -105,7 +105,6 @@\n \n XLA_USE_BF16 = os.environ.get(\"XLA_USE_BF16\", \"0\").upper()\n XLA_DOWNCAST_BF16 = os.environ.get(\"XLA_DOWNCAST_BF16\", \"0\").upper()\n-PARAM_RENAME_WARNING = \"A parameter name that contains `{}` will be renamed internal...
2024-08-16T17:05:57