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
golang/go
46fa8afca61cf60c64f006685cd6cbb94e080118
ca3aefc4a96f2e26c7bed549a6c90b6f12c1ecea
cmd/go/internal/load/test: parse overlay files for test functions The existing implementation implicitly reads from the filesystem instead of using the overlay file data (due to src == nil), so pass in the overlaid source if we have an overlay for this file. Fixes #44946 Change-Id: I61ce09d10c5edac1b47332583efdcd3c1...
[ { "path": "src/cmd/go/internal/load/test.go", "patch": "@@ -21,6 +21,7 @@ import (\n \t\"unicode\"\n \t\"unicode/utf8\"\n \n+\t\"cmd/go/internal/fsys\"\n \t\"cmd/go/internal/str\"\n \t\"cmd/go/internal/trace\"\n )\n@@ -578,7 +579,13 @@ type testFunc struct {\n var testFileSet = token.NewFileSet()\n \n func ...
2021-03-26T15:58:11
electron/electron
92e157de3036e801e11f1e4b8a2faab5c48a55b4
c908cae72c66dca3218aa100400e0a781e0b4106
Fix crash when using protocol module on startup. The job factory was not created before any request was sent, so when the app used the protocol module on startup it would cause a crash.
[ { "path": "browser/atom_browser_main_parts.cc", "patch": "@@ -75,6 +75,11 @@ void AtomBrowserMainParts::PreMainMessageLoopRun() {\n \n node_bindings_->RunMessageLoop();\n \n+ // Make sure the url request job factory is created before the\n+ // will-finish-launching event.\n+ static_cast<content::Browse...
2013-09-20T10:32:05
vercel/next.js
e2a98cdf3d6ebd03696c53d60739d2506e7d6e9a
d07ae3484f3ac9791301f33d15f53986b1000474
chore(examples): fix `with-aphrodite` exapmle (#42078)
[ { "path": "examples/with-aphrodite/pages/_document.js", "patch": "@@ -5,7 +5,7 @@ class MyDocument extends Document {\n static async getInitialProps({ renderPage }) {\n const { html, css } = StyleSheetServer.renderStatic(() => renderPage())\n const ids = css.renderedClassNames\n- return { ...ht...
2022-10-28T18:33:05
huggingface/transformers
8fd4bc7d1d6890195bddd7e960c2ea723bc41b38
b1a2de075de86564f7e635f3b31a68b5f33e4cac
Fix a mistake in #36175 (#36179) fix my bad Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
[ { "path": "utils/check_modular_conversion.py", "patch": "@@ -160,7 +160,6 @@ def guaranteed_no_diff(modular_file_path, dependencies, models_in_diff):\n else:\n new_ordered_files.append(modular_file_path)\n \n- new_ordered_files = ordered_files\n import multiprocess...
2025-02-13T17:33:02
nodejs/node
34ca9f3b910127667614b138fc2a96ca24c8518c
963cb3a49ca79427512886334222e8f878aaeba8
inspector: fix inspector::Agent::HasConnectedSessions PR-URL: https://github.com/nodejs/node/pull/20614 Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
[ { "path": "src/inspector_agent.cc", "patch": "@@ -693,6 +693,8 @@ bool Agent::IsWaitingForConnect() {\n }\n \n bool Agent::HasConnectedSessions() {\n+ if (client_ == nullptr)\n+ return false;\n return client_->hasConnectedSessions();\n }\n ", "additions": 2, "deletions": 0, "language": "Un...
2018-05-08T23:34:55
golang/go
c847932804467f511b0e123cf29b72dd0d509306
135c9f45ecaec719bcc297ec9f9f19042bc9adf6
runtime: replace reflectcall of defers with direct call With GOEXPERIMENT=regabidefer, all deferred functions take no arguments and have no results (their signature is always func()). Since the signature is fixed, we can replace all of the reflectcalls in the defer code with direct closure calls. For #40724. Change-...
[ { "path": "src/cmd/internal/objabi/funcid.go", "patch": "@@ -75,6 +75,7 @@ var funcIDs = map[string]FuncID{\n \t\"deferreturn\": FuncID_wrapper,\n \t\"runOpenDeferFrame\": FuncID_wrapper,\n \t\"reflectcallSave\": FuncID_wrapper,\n+\t\"deferCallSave\": FuncID_wrapper,\n }\n \n // Get the function...
2021-03-30T21:55:22
electron/electron
9ed64548d49a954c856deb58de8993a5575a4206
575fe06f296e86341b52a69f43bedd3d73238c1b
:lipstick: Fix comparing extension.
[ { "path": "browser/ui/file_dialog_win.cc", "patch": "@@ -233,11 +233,10 @@ bool ShowSaveDialog(atom::NativeWindow* window,\n std::wstring selected_filter = save_dialog.file_ext()[filter_index - 1];\n if (selected_filter != L\"*.*\") {\n std::wstring result = file_name;\n- std::wstring extension =...
2013-09-18T14:24:46
huggingface/transformers
b1a2de075de86564f7e635f3b31a68b5f33e4cac
12962fe84b32fa6a716f8b196c0d45db37b7d7d5
Follow up to SpQR integration (#36176) fix
[ { "path": "src/transformers/quantizers/quantizer_spqr.py", "patch": "@@ -35,6 +35,8 @@ class SpQRHfQuantizer(HfQuantizer):\n Quantizer of the SpQR method. Enables the loading of prequantized models.\n \"\"\"\n \n+ requires_calibration = True\n+\n def __init__(self, quantization_config: Quanti...
2025-02-13T16:40:59
vercel/next.js
57426a2849b259618cebca428ba125c75c8d2ab5
06ded795bea91346a6c88dbe04b3eb954a5ff2f4
Update Examples to use React 18 (#42027) This PR updates the minimum version of React used by examples from 17.0.2 to 18.2.0. Fixes #41975 ## Bug - [x] Related issues linked using `fixes #41975` - [ ] Integration tests added - [ ] Errors have a helpful link attached, see `contributing.md` ## Feature - [ ] Imple...
[ { "path": "examples/api-routes-apollo-server-and-client-auth/package.json", "patch": "@@ -14,8 +14,8 @@\n \"graphql\": \"^14.0.2\",\n \"next\": \"latest\",\n \"prop-types\": \"^15.6.2\",\n- \"react\": \"^17.0.2\",\n- \"react-dom\": \"^17.0.2\",\n+ \"react\": \"^18.2.0\",\n+ \"react-d...
2022-10-28T17:43:20
nodejs/node
2e4ee3dfa0676b639b23ed9e038ede313726af61
7dcfe72a2595331c2c5b2cc008bc2c63df6c95fa
doc: fixup NODE_EXTERN -> NAPI_EXTERN Seems like we missed updating doc when we changed from NODE_EXTERN to NAPI_EXTERN PR-URL: https://github.com/nodejs/node/pull/20641 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewe...
[ { "path": "doc/api/n-api.md", "patch": "@@ -343,7 +343,7 @@ TypeError [ERR_ERROR_1]\n added: v8.0.0\n -->\n ```C\n-NODE_EXTERN napi_status napi_throw(napi_env env, napi_value error);\n+NAPI_EXTERN napi_status napi_throw(napi_env env, napi_value error);\n ```\n - `[in] env`: The environment that the API is i...
2018-05-09T19:58:38
golang/go
34fb2b2ed5687ec85aa8c1db1481bb4f31b35b29
0e8a72b62efa44fa01eccb94d47a051366cb6d17
cmd/compile/internal/types2: review of decl.go The changes between (equivalent, and reviewed) go/types/decl.go and decl.go can be seen by comparing patchset 1 and 2. The actual changes are removing the "// UNREVIEWED" marker and a minor comment update. The primary differences to go/types/decl.go are: - use of syntax ...
[ { "path": "src/cmd/compile/internal/types2/decl.go", "patch": "@@ -1,4 +1,3 @@\n-// UNREVIEWED\n // Copyright 2014 The Go Authors. All rights reserved.\n // Use of this source code is governed by a BSD-style\n // license that can be found in the LICENSE file.\n@@ -325,7 +324,7 @@ func (check *Checker) valid...
2021-03-29T18:36:44
huggingface/transformers
12962fe84b32fa6a716f8b196c0d45db37b7d7d5
bfe46c98b5d35e91d8c9e625fc12ae7315a152db
Fix the key name for _load_rng_state under torch.cuda (#36138) fix load key name for _load_rng_state under torch.cuda Co-authored-by: Marc Sun <57196510+SunMarc@users.noreply.github.com>
[ { "path": "src/transformers/trainer.py", "patch": "@@ -3125,7 +3125,7 @@ def _load_rng_state(self, checkpoint):\n \n is_distributed = self.args.parallel_mode == ParallelMode.DISTRIBUTED\n if torch.cuda.is_available():\n- set_rng_state_for_device(\"GPU\", torch.cuda, checkpoint_rng...
2025-02-13T16:35:08
electron/electron
cec640f572fa3af56d4700a3fd95261479726e8c
f38eb1b66fccead9dc1367faf4279d1b3766f857
mac: Always use "Atom" as name when find helper process. Fixes #89.
[ { "path": "app/atom_main_delegate.cc", "patch": "@@ -10,6 +10,27 @@\n #include \"content/public/common/content_switches.h\"\n #include \"renderer/atom_renderer_client.h\"\n \n+#if defined(OS_MACOSX)\n+\n+#include \"base/mac/bundle_locations.h\"\n+#include \"base/path_service.h\"\n+#include \"content/public/...
2013-09-12T07:42:36
vercel/next.js
06ded795bea91346a6c88dbe04b3eb954a5ff2f4
3275eb885ed210f0ae7f42adc2b67cca7c07a8f2
Fix benchmark link typo in Turbopack example (#42064)
[ { "path": "examples/with-turbopack/README.md", "patch": "@@ -1,6 +1,6 @@\n # Next.js + Turbopack App Directory Playground\n \n-[Turbopack](https://turbo.build/pack) is a new incremental bundler optimized for JavaScript and TypeScript, written in Rust by the creators of Webpack and Next.js at [Vercel](https:...
2022-10-28T17:32:19
nodejs/node
7dcfe72a2595331c2c5b2cc008bc2c63df6c95fa
1248ce1645bb13724e5f4b5db940afd0b6221eda
doc: fix signature for napi_create_range_error Fixes: https://github.com/nodejs/node/issues/20623 PR-URL: https://github.com/nodejs/node/pull/20641 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Trivikram Kamat ...
[ { "path": "doc/api/n-api.md", "patch": "@@ -471,9 +471,9 @@ This API returns a JavaScript `TypeError` with the text provided.\n added: v8.0.0\n -->\n ```C\n-NODE_EXTERN napi_status napi_create_range_error(napi_env env,\n+NAPI_EXTERN napi_status napi_create_range_error(napi_env env,\n ...
2018-05-09T19:53:50
golang/go
6d2a557a4d09b6f60e2522fb740b5d7d1d8dc8e2
f2717b31b5cf235457631fea1afd6d9df578737c
cmd/compile: deal with call.Use correctly for noder2, allow inlining of stenciled functions The setting of n.Use for a call node in transformCall() (and previously in Call()), was not corrrect, since it was trying to use the number of results of the call, rather than whether the call result was actually used. We are a...
[ { "path": "src/cmd/compile/internal/noder/helpers.go", "patch": "@@ -87,6 +87,9 @@ func Binary(pos src.XPos, op ir.Op, typ *types.Type, x, y ir.Node) ir.Node {\n func Call(pos src.XPos, typ *types.Type, fun ir.Node, args []ir.Node, dots bool) ir.Node {\n \tn := ir.NewCallExpr(pos, ir.OCALL, fun, args)\n \tn...
2021-03-30T23:03:26
rust-lang/rust
db2de2ab3f9764917c25ebb796850b47bc2cb28b
d9b61b3382e83c8e3aaab0239da74e0526aed283
fix: `Extract into function include inline variable in fmt macro Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
[ { "path": "src/tools/rust-analyzer/crates/ide-assists/src/handlers/extract_function.rs", "patch": "@@ -797,15 +797,21 @@ impl FunctionBody {\n ) -> (FxIndexSet<Local>, Option<ast::SelfParam>) {\n let mut self_param = None;\n let mut res = FxIndexSet::default();\n- let mut add_name...
2025-04-14T11:29:42
huggingface/transformers
5f0fd1185bbaea73bbd4b7c29cf2dcaddffbbdfd
d72642bccc7e407ed4151720efc4d193fad624f4
Optimize Qwen2VL vision model by precomputing cos/sin embeds before ViT blocks (#35837) * Optimize Qwen2VL vision model by precomputing cos/sin embeds before ViT blocks * Make rotary_pos_emb optional & fix type * Adapt pre-computed cos/sin to Qwen2.5VL * More concise
[ { "path": "src/transformers/models/qwen2_5_vl/modeling_qwen2_5_vl.py", "patch": "@@ -160,12 +160,14 @@ def forward(self, x: torch.Tensor) -> torch.Tensor:\n return x\n \n \n-def apply_rotary_pos_emb_flashatt(tensor: torch.Tensor, freqs: torch.Tensor) -> torch.Tensor:\n- tensor_ = tensor.float()\n...
2025-02-13T16:10:58
electron/electron
6c098deb57e5f1b3b4e722d8c416374564aa17e0
cf4a5662902e3dbae3b3f6a551994a95006f436c
:lipstick: Fix cpplint warnings.
[ { "path": "browser/native_window_win.cc", "patch": "@@ -397,7 +397,7 @@ views::NonClientFrameView* NativeWindowWin::CreateNonClientFrameView(\n \n return new NativeWindowFramelessView(widget, this);\n }\n- \n+\n void NativeWindowWin::OnViewWasResized() {\n // Set the window shape of the RWHV.\n gfx::S...
2013-09-12T05:00:28
vercel/next.js
3275eb885ed210f0ae7f42adc2b67cca7c07a8f2
70e7e58c379a68ac3b73628bae8abb6cf54aacb1
Fix typo. (#42067)
[ { "path": "docs/api-reference/next/script.md", "patch": "@@ -150,7 +150,7 @@ Examples of scripts that do not need to load immediately and can be fetched with\n \n Scripts that use the `worker` strategy are off-loaded to a web worker in order to free up the main thread and ensure that only critical, first-pa...
2022-10-28T17:31:55
golang/go
c3ec79bca953627a51e5eb32adb5039d1e488997
0fdd371e6b310bcf1f93d226dca61591630afe12
go/parser: resolve the type name when parsing a composite lit value parsePrimaryExpr has to be careful to resolve identifiers used in composite expressions when parsing in LHS mode. It missed the literal type name. Fixes #45136 Change-Id: I3e12f91e3ef5fdb43faa436cdf1240eb3293fe1a Reviewed-on: https://go-review.googl...
[ { "path": "src/go/parser/parser.go", "patch": "@@ -1804,6 +1804,11 @@ func (p *parser) parsePrimaryExpr(lhs bool) (x ast.Expr) {\n \t\t\t\tp.error(t.Pos(), \"cannot parenthesize type in composite literal\")\n \t\t\t\t// already progressed, no need to advance\n \t\t\t}\n+\t\t\tif lhs {\n+\t\t\t\t// An error ...
2021-03-23T02:27:25
rust-lang/rust
8d99f2f11a2809546b09ff38e71fadc076ebafde
d9b61b3382e83c8e3aaab0239da74e0526aed283
Remove incorrect doc comment
[ { "path": "src/tools/rust-analyzer/crates/hir-expand/src/proc_macro.rs", "patch": "@@ -253,7 +253,6 @@ impl CustomProcMacroExpander {\n self.proc_macro_id == Self::PROC_MACRO_ATTR_DISABLED\n }\n \n- /// The macro is explicitly disabled due to proc-macro attribute expansion being disabled.\n ...
2025-04-15T02:05:13
nodejs/node
1248ce1645bb13724e5f4b5db940afd0b6221eda
fb939844454818055434b0635d1482d737662415
async_wrap: fix memory leak in AsyncResource Reset the persistent that keeps the resource Object alive when the AsyncResource is being destroyed. Fixes: https://github.com/nodejs/node-addon-api/issues/237 PR-URL: https://github.com/nodejs/node/pull/20668 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: ...
[ { "path": "src/node.h", "patch": "@@ -714,6 +714,7 @@ class AsyncResource {\n \n virtual ~AsyncResource() {\n EmitAsyncDestroy(isolate_, async_context_);\n+ resource_.Reset();\n }\n \n v8::MaybeLocal<v8::Value> MakeCallback(", "additions": 1, "deletions": 0, "language": "C...
2018-05-11T04:25:59
electron/electron
aabba3c641974d35dd1144a92adde2d544949940
8f31bf8615f760c71c80861924b2d488d70a987f
Fix view autoresizing.
[ { "path": "browser/native_window_mac.mm", "patch": "@@ -115,9 +115,6 @@ - (void)drawRect:(NSRect) rect {\n \n [[NSColor blackColor] set];\n [shadowPath fill];\n-\n- [[NSColor colorWithCalibratedRed: 0.0 green: 0.0 blue: 0.0 alpha:0.7] set];\n- [shadowPath stroke];\n [shadowPath addClip];\n }\n @end\...
2013-09-11T21:25:42
vercel/next.js
f2d661c0bb53a003abcd8c7485b01cee3356e0bf
0d12445d6a94b34d7f94a7c3ab21c662841ff6c7
Fix large regression with turning ModuleRuleCondition::matches into a tt::fun (vercel/turbo#2450) * Fix large regression with turning ModuleRuleConditionVc::matches into a tt::fun * Remove Vcs from ModuleRule altogether
[ { "path": "packages/next-swc/crates/next-core/src/next_client/context.rs", "patch": "@@ -8,7 +8,7 @@ use turbo_tasks_fs::FileSystemPathVc;\n use turbopack::{\n module_options::{\n module_options_context::{ModuleOptionsContext, ModuleOptionsContextVc},\n- ModuleRuleCondition, ModuleRuleEff...
2022-10-28T15:53:13
huggingface/transformers
62c7ea0201cf27153c0bbd110d277ff9f39b0b1f
06231fdfc7b3dac79897b3cd81f5e2d859c51395
CI: avoid human error, automatically infer generative models (#33212) * tmp commit * move tests to the right class * remove ALL all_generative_model_classes = ... * skip tf roberta * skip InstructBlipForConditionalGenerationDecoderOnlyTest * videollava * reduce diff * reduce diff * remove on v...
[ { "path": "src/transformers/models/bert/modeling_bert.py", "patch": "@@ -1507,6 +1507,14 @@ def prepare_inputs_for_generation(self, input_ids, attention_mask=None, **model_\n \n return {\"input_ids\": input_ids, \"attention_mask\": attention_mask}\n \n+ @classmethod\n+ def can_generate(cls) ->...
2025-02-13T15:27:11
rust-lang/rust
b955cc691e07cbfca8000389cdbeaf587a0be19a
28b6df86036aeeb231e2ea09c78ea33645aa4325
Implement rounding for the hex float parsing and prepare to improve error handling Parsing errors are now bubbled up part of the way, but that needs some more work. Rounding should be correct, and the `Status` returned by `parse_any` should have the correct bits set. These are used for the current (unchanged) behavio...
[ { "path": "library/compiler-builtins/libm/crates/libm-test/src/f8_impl.rs", "patch": "@@ -3,8 +3,6 @@\n use std::cmp::{self, Ordering};\n use std::{fmt, ops};\n \n-use libm::support::hex_float::parse_any;\n-\n use crate::Float;\n \n /// Sometimes verifying float logic is easiest when all values can quickly ...
2025-04-15T00:46:12
golang/go
4b1a24f3cd9d49ecbe4c30b6a5ecade70f9dd04f
e0ce0af6ef5232352852fa027fe51fa3fd01198e
runtime: fix G passed to schedEnabled and cleanup exitsyscall0 contains two G variables: _g_ and gp. _g_ is the active G, g0, while gp is the G to run (which just exited from a syscall). It is passing _g_ to schedEnabled, which is incorrect; we are about to execute gp, so that is what we should be checking the schedu...
[ { "path": "src/runtime/proc.go", "patch": "@@ -3856,15 +3856,15 @@ func exitsyscallfast_pidle() bool {\n // exitsyscall slow path on g0.\n // Failed to acquire P, enqueue gp as runnable.\n //\n+// Called via mcall, so gp is the calling g from this M.\n+//\n //go:nowritebarrierrec\n func exitsyscall0(gp *g) ...
2021-02-11T15:44:34
nodejs/node
f8fc2f89549113d870c143a98f4f622228b0cae0
fdfbf63973491614ea4691b799d41af4dd6f3300
test: better error message in trace events test PR-URL: https://github.com/nodejs/node/pull/20655 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rt...
[ { "path": "test/parallel/test-trace-events-async-hooks.js", "patch": "@@ -3,6 +3,7 @@ const common = require('../common');\n const assert = require('assert');\n const cp = require('child_process');\n const fs = require('fs');\n+const util = require('util');\n \n const CODE =\n 'setTimeout(() => { for (var...
2018-05-10T11:53:18
electron/electron
a567ba08ea1132098677d1c6ae1d3357692412d8
91d54a74e10b222d03403db8c343115610208f18
Hide the fullscreen button when leaving fullscreen mode. Fixes #88.
[ { "path": "browser/native_window.h", "patch": "@@ -115,6 +115,8 @@ class NativeWindow : public brightray::DefaultWebContentsDelegate,\n observers_.RemoveObserver(obs);\n }\n \n+ bool has_frame() const { return has_frame_; }\n+\n protected:\n explicit NativeWindow(content::WebContents* web_contents...
2013-09-11T05:05:08
huggingface/transformers
06231fdfc7b3dac79897b3cd81f5e2d859c51395
0ca7259217d4bb3cae622770abc00b19c438b7e7
add disable compile option (#36161) * add disable compile code * fix
[ { "path": "src/transformers/generation/configuration_utils.py", "patch": "@@ -379,6 +379,9 @@ class GenerationConfig(PushToHubMixin):\n If using a static cache, this controls how `generate` will `compile` the forward pass for performance\n gains.\n \n+ disable_compile (`bool`,...
2025-02-13T15:24:46
vercel/next.js
f40111d36a240d3a51d63e7a36d9860fa9e25492
996cc560cc120ae1bed01d03aa74272884622f66
Fix large regression with turning ModuleRuleCondition::matches into a tt::fun (vercel/turbo#2450) * Fix large regression with turning ModuleRuleConditionVc::matches into a tt::fun * Remove Vcs from ModuleRule altogether
[ { "path": "crates/next-core/src/next_client/context.rs", "patch": "@@ -8,7 +8,7 @@ use turbo_tasks_fs::FileSystemPathVc;\n use turbopack::{\n module_options::{\n module_options_context::{ModuleOptionsContext, ModuleOptionsContextVc},\n- ModuleRuleCondition, ModuleRuleEffect, ModuleRuleVc,...
2022-10-28T15:53:13
rust-lang/rust
16670e167664e8ba7f2c1dcd6654988b37b4478e
f8edc831caa53cd08879f93dcf11b6e6daf5d1a5
Fix HIR pretty-printing of fns with just a variadic arg. Avoid the extraneous comma.
[ { "path": "compiler/rustc_hir_pretty/src/lib.rs", "patch": "@@ -2165,7 +2165,9 @@ impl<'a> State<'a> {\n s.end();\n });\n if decl.c_variadic {\n- self.word(\", \");\n+ if !decl.inputs.is_empty() {\n+ self.word(\", \");\n+ }\n ...
2025-04-15T00:17:32
golang/go
c40dc677be05e2774c7805bf55002a960cb4dec5
6cadfe2fee9b063651f163aaa4734979944e7a9f
go/doc: avoid panic on references to functions with no body This change guards a call to ast.Inspect with a nil check on the first argument. This avoids a panic when inspecting a reference to a function with a nil body. This can only happen when a function body is defined outside Go. Fixes #42706 Change-Id: I91bc607...
[ { "path": "src/go/doc/example.go", "patch": "@@ -237,7 +237,10 @@ func playExample(file *ast.File, f *ast.FuncDecl) *ast.File {\n \t\t\t\t}\n \t\t\t}\n \n-\t\t\tast.Inspect(d.Body, inspectFunc)\n+\t\t\t// Functions might not have a body. See #42706.\n+\t\t\tif d.Body != nil {\n+\t\t\t\tast.Inspect(d.Body, i...
2021-03-30T17:30:45
huggingface/transformers
0ca7259217d4bb3cae622770abc00b19c438b7e7
845b0a261601d845d87a186163c303d98100d0b9
fix training issues (#36158) * fix training issues * Update Co-authored-by: Marc Sun <57196510+SunMarc@users.noreply.github.com> --------- Co-authored-by: Marc Sun <57196510+SunMarc@users.noreply.github.com>
[ { "path": "src/transformers/models/paligemma/configuration_paligemma.py", "patch": "@@ -74,6 +74,7 @@ class PaliGemmaConfig(PretrainedConfig):\n \n model_type = \"paligemma\"\n sub_configs = {\"text_config\": AutoConfig, \"vision_config\": AutoConfig}\n+ keys_to_ignore_at_inference = [\"past_key_...
2025-02-13T15:24:28
nodejs/node
64b50468bbf04120980d6d46289131df421a693d
e993e45dbf99a155583ed4c7e933ceae926f597c
doc: fix typo in dns docs PR-URL: https://github.com/nodejs/node/pull/20711 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Yuta Hiroto <hello@hiroppy.me> Reviewed-By: Khaidi Chu <i@2333.moe> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Revie...
[ { "path": "doc/api/dns.md", "patch": "@@ -66,7 +66,7 @@ An independent resolver for DNS requests.\n Note that creating a new resolver uses the default server settings. Setting\n the servers used for a resolver using\n [`resolver.setServers()`][`dns.setServers()`] does not affect\n-other resolver:\n+other re...
2018-05-14T10:18:31
rust-lang/rust
f8edc831caa53cd08879f93dcf11b6e6daf5d1a5
092a284ba0421695f2032c947765429fd7095796
Pretty-print `PatKind::Missing` as `_`. Printing "no pattern" as `_` isn't ideal, but better than crashing, and HIR pretty-printing already has plenty of imperfections. The added `f2` and `f6` examples are ones that triggered the crash. Note that some of the added examples are printed badly, e.g. `fn(, ...)`. The nex...
[ { "path": "compiler/rustc_hir_pretty/src/lib.rs", "patch": "@@ -1871,10 +1871,11 @@ impl<'a> State<'a> {\n fn print_pat(&mut self, pat: &hir::Pat<'_>) {\n self.maybe_print_comment(pat.span.lo());\n self.ann.pre(self, AnnNode::Pat(pat));\n- // Pat isn't normalized, but the beauty o...
2025-04-15T00:05:20
vercel/next.js
b12e0d8f4689081095eae8df2826f69bc27de2e7
2e4f40ae31b7fb165b5c563315375489132e5369
Fix unnecessary question mark warnings (vercel/turbo#2443) * Fix unused question marks warnings Fix some return types that were giving clippy warnings, mostly `needless_question_mark`. Remaining warnings are either `too_many_arguments` or `type_complexity`. * Fix unncessary let binding Co-authored-by: Justin...
[ { "path": "packages/next-swc/crates/next-core/src/nodejs/mod.rs", "patch": "@@ -288,9 +288,7 @@ async fn render_static(\n let pool = renderer_pool.strongly_consistent().await?;\n let mut operation = match pool.operation().await {\n Ok(operation) => operation,\n- Err(err) => {\n- ...
2022-10-28T05:40:49
golang/go
43afb1a22016ec537915ed8ade0039ad8c6559ce
89b141c06e1f97e7ccd84aa820ea0b64291ac3f8
cmd/go: fix documentation on how to create new go.mod file The correct command to create new go.mod file should be 'go mod init', not 'go help init'. Change-Id: I1150621987d989997f8b75e6a13fe96423a11cf3 Reviewed-on: https://go-review.googlesource.com/c/go/+/305289 Reviewed-by: Jay Conrod <jayconrod@google.com> Review...
[ { "path": "src/cmd/go/alldocs.go", "patch": "@@ -1952,7 +1952,7 @@\n // The go.mod file format is described in detail at\n // https://golang.org/ref/mod#go-mod-file.\n //\n-// To create a new go.mod file, use 'go help init'. For details see\n+// To create a new go.mod file, use 'go mod init'. For details se...
2021-03-28T16:04:33
nodejs/node
ffb503be5f07a26d73a2b3b59955636452948ba7
fcf2e4207edab9b85f8435b89489dd6148a7637e
http: fix client response close & aborted Fixes: https://github.com/nodejs/node/issues/20102 Fixes: https://github.com/nodejs/node/issues/20101 Fixes: https://github.com/nodejs/node/issues/1735 - Response should always emit close. - Response should always emit aborted if aborted. - Response should always emit close a...
[ { "path": "lib/_http_client.js", "patch": "@@ -340,26 +340,33 @@ function socketCloseListener() {\n \n // NOTE: It's important to get parser here, because it could be freed by\n // the `socketOnData`.\n- var parser = socket.parser;\n- if (req.res && req.res.readable) {\n+ const parser = socket.parser...
2018-04-23T16:42:19
electron/electron
a00bf3e1e17bab4338889628809a49c7b930866c
b9d994dca280ddc231242b5d549d59ea4f310e2e
Print stack when got error on startup.
[ { "path": "browser/default_app/main.js", "patch": "@@ -9,6 +9,7 @@ if (argv._.length > 0) {\n require(path.resolve(argv._[0]));\n } catch(e) {\n if (e.code == 'MODULE_NOT_FOUND') {\n+ console.error(e.stack);\n console.error('Specified app is invalid');\n process.exit(1);\n } e...
2013-09-09T02:49:28
vercel/next.js
fc0ba7cc11f7e22bb9d6d3b0bf77504c384102d5
402c4adb9603a9c9d6ea83c3f4032298d12e5e20
Fix unnecessary question mark warnings (vercel/turbo#2443) * Fix unused question marks warnings Fix some return types that were giving clippy warnings, mostly `needless_question_mark`. Remaining warnings are either `too_many_arguments` or `type_complexity`. * Fix unncessary let binding Co-authored-by: Justin...
[ { "path": "crates/next-core/src/nodejs/mod.rs", "patch": "@@ -288,9 +288,7 @@ async fn render_static(\n let pool = renderer_pool.strongly_consistent().await?;\n let mut operation = match pool.operation().await {\n Ok(operation) => operation,\n- Err(err) => {\n- return Ok(st...
2022-10-28T05:40:49
huggingface/transformers
845b0a261601d845d87a186163c303d98100d0b9
c5506f4f00edea22a87ad55958d1405b690d47da
Efficient Inference Kernel for SpQR (#34976) * Resolve vptq conflict * Rename spqr package to spqr_quant * Get rid of aqlm mention * Start working on tests * Resolve ruff code checks * Ruff format * Isort * Test updates * Add gpu tag * Rename to modules_to_not_convert * Config update ...
[ { "path": "docker/transformers-quantization-latest-gpu/Dockerfile", "patch": "@@ -53,6 +53,9 @@ RUN python3 -m pip install --no-cache-dir aqlm[gpu]==1.0.2\n # Add vptq for quantization testing\n RUN python3 -m pip install --no-cache-dir vptq\n \n+# Add spqr for quantization testing\n+RUN python3 -m pip inst...
2025-02-13T15:22:58
golang/go
e4a4161f1f3157550846e1b6bd4fe83aae15778e
a81b5e4d0a843e6ef28c8b933904a03fd8666f3e
runtime: non-strict InlTreeIndex lookup in Frames.Next When using cgo, some of the frames can be provided by cgoTraceback, a cgo-provided function to generate C tracebacks. Unlike Go tracebacks, cgoTraceback has no particular guarantees that it produces valid tracebacks. If one of the (invalid) frames happens to put ...
[ { "path": "src/runtime/symtab.go", "patch": "@@ -102,7 +102,9 @@ func (ci *Frames) Next() (frame Frame, more bool) {\n \t\tname := funcname(funcInfo)\n \t\tif inldata := funcdata(funcInfo, _FUNCDATA_InlTree); inldata != nil {\n \t\t\tinltree := (*[1 << 20]inlinedCall)(inldata)\n-\t\t\tix := pcdatavalue(func...
2021-03-11T17:28:45
electron/electron
bc9c95d77de00b2dc911bba460f91c1f0a847a3e
6a322f8bd61d3594366de7929be50afd83952970
:lipstick: fix the protocol module spec on OS X.
[ { "path": "spec/api/protocol.coffee", "patch": "@@ -114,8 +114,11 @@ describe 'protocol API', ->\n free()\n assert false, 'Got error: ' + errorType + ' ' + error\n protocol.interceptProtocol targetScheme, (request) ->\n- pathInUrl = path.normalize request.url.substr(8)\n...
2013-09-05T10:28:48
huggingface/transformers
636ee57489b3f25bc9dcafc3e412aa0753ddd8b2
b41591d8478a4bbadb25bb8d9fc0ebe16b739757
[generate] revert change in Aria: the maximum cache length must match `max_length` (#36120) * revert inputs_embeds len * Update test_utils.py * make fixup
[ { "path": "src/transformers/generation/utils.py", "patch": "@@ -1470,7 +1470,6 @@ def _prepare_generated_length(\n elif (\n model_input_name == \"inputs_embeds\"\n and input_ids_length != inputs_tensor.shape[1]\n- and input_ids_length != 0\n and not sel...
2025-02-13T14:36:33
vercel/next.js
402c4adb9603a9c9d6ea83c3f4032298d12e5e20
28af64d6d3a307a0cb8ca018c91ad72866ee509b
Fix unsound with_task_id_mapping impl (vercel/turbo#2362)
[ { "path": "crates/turbo-tasks/src/id.rs", "patch": "@@ -1,6 +1,7 @@\n use std::{\n cell::RefCell,\n fmt::{Debug, Display},\n+ mem::ManuallyDrop,\n ops::Deref,\n };\n \n@@ -142,6 +143,16 @@ where\n }\n }\n \n+struct TemporarySwapGuard<'c, T>(&'c RefCell<T>, ManuallyDrop<T>);\n+\n+impl<'c, ...
2022-10-28T05:08:54
nodejs/node
f22c7c10ca0c8c7a10057de71bc423bf8b633b88
eafb30ccbf12a4ded74a30d7634e84fbe4a5add3
http: always emit close on req and res PR-URL: https://github.com/nodejs/node/pull/20611 Fixes: https://github.com/nodejs/node/issues/20600 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
[ { "path": "lib/_http_server.js", "patch": "@@ -561,6 +561,8 @@ function resOnFinish(req, res, socket, state, server) {\n req._dump();\n \n res.detachSocket(socket);\n+ req.emit('close');\n+ res.emit('close');\n \n if (res._last) {\n if (typeof socket.destroySoon === 'function') {", "additi...
2018-05-08T19:56:24
golang/go
a81b5e4d0a843e6ef28c8b933904a03fd8666f3e
032ef4bbfc5b976085c561eb4a134b780625f410
crypto/elliptic: fix some typos Change-Id: I1c2900d4e1c0b6108f13c4060d994d966f3e18f3 GitHub-Last-Rev: 3fde453686ab3fdeb77d2f73c09e4a679056adf3 GitHub-Pull-Request: golang/go#45295 Reviewed-on: https://go-review.googlesource.com/c/go/+/305773 Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com> Reviewed-by: Ben Shi <pow...
[ { "path": "src/crypto/elliptic/p256.go", "patch": "@@ -327,7 +327,7 @@ func p256ReduceDegree(out *[p256Limbs]uint32, tmp [17]uint64) {\n \tvar tmp2 [18]uint32\n \tvar carry, x, xMask uint32\n \n-\t// tmp contains 64-bit words with the same 29,28,29-bit positions as an\n+\t// tmp contains 64-bit words with t...
2021-03-30T07:23:53
rust-lang/rust
4784074753159d55ff0ba7cbe22d343dd0999b5f
67dc0d083ca492e4d8b7b8061200eb67843717b6
Move `name` field from `AssocItem` to `AssocKind` variants. To accurately reflect that RPITIT assoc items don't have a name. This avoids the use of `kw::Empty` to mean "no name", which is error prone. Helps with #137978.
[ { "path": "clippy_lints/src/assigning_clones.rs", "patch": "@@ -111,8 +111,8 @@ impl<'tcx> LateLintPass<'tcx> for AssigningClones {\n // Only suggest if `clone_from`/`clone_into` is explicitly implemented\n && resolved_assoc_items.in_definition_order().any(|assoc|\n m...
2025-04-14T03:15:01
huggingface/transformers
b41591d8478a4bbadb25bb8d9fc0ebe16b739757
b079dd1fa22a6106dae3274ff58a3d3c0e108bed
Fix : fix doc fp8 (#36173) * fix * fix
[ { "path": "docs/source/en/quantization/finegrained_fp8.md", "patch": "@@ -39,10 +39,10 @@ pip install --upgrade accelerate torch\n By default, the weights are loaded in full precision (torch.float32) regardless of the actual data type the weights are stored in such as torch.float16. Set `torch_dtype=\"auto\...
2025-02-13T14:29:59
electron/electron
bf4756fdfb1855a3648c603c533168676d7123b5
8acd6d6c8a38a639887091c0f4ce3e297b18eed8
Pass PATH environment in the child_process.fork spec. The uv_spawn under Windows requires the PATH environment variable to be there, otherwise it would throw a 203 system error, it should be a bug of node.
[ { "path": "spec/node/child_process.coffee", "patch": "@@ -23,7 +23,7 @@ describe 'child_process', ->\n it 'should work in forked process when options.env is specifed', (done) ->\n child = child_process.fork path.join(fixtures, 'module', 'fork_ping.js'),\n [],\n- ...
2013-09-05T06:55:22
vercel/next.js
2e4f40ae31b7fb165b5c563315375489132e5369
eca1e994f1edd04a9312132feefcd9f3ce0b2f44
prettier fixes (vercel/turbo#2436)
[ { "path": "packages/next-swc/crates/next-core/js/src/entry/app-renderer.tsx", "patch": "@@ -16,7 +16,7 @@ import type {\n } from \"next/dist/build/webpack/plugins/flight-manifest-plugin\";\n import type { RenderData } from \"types/turbopack\";\n \n-import 'next/dist/server/initialize-require-hook'\n+import ...
2022-10-28T04:39:56
nodejs/node
eafb30ccbf12a4ded74a30d7634e84fbe4a5add3
0e9ea35e391656d360ff428e1f9c5b86057df26e
test: remove deepStrictEqual() third argument The call to assert.deepStrictEqual() has a string literal for its third argument. Unfortunately, a side effect of that is that the values of the first two arguments are not displayed if there is an AssertionError. That information is useful for debugging. PR-URL: https://...
[ { "path": "test/parallel/test-net-socket-local-address.js", "patch": "@@ -17,8 +17,8 @@ const server = net.createServer((socket) => {\n });\n \n server.on('close', common.mustCall(() => {\n- assert.deepStrictEqual(clientLocalPorts, serverRemotePorts,\n- 'client and server should agr...
2018-05-13T16:29:25
golang/go
032ef4bbfc5b976085c561eb4a134b780625f410
bb2fc21c3b818c45fad23fdf5f8bd83bbc074dce
cmd/compile: fix creation of named generic types (setting of t.nod) The correct setting of t.nod is needed when exporting types. Make sure we create instantiated named types correctly so t.nod is set. New test file interfacearg.go that tests this (by instantiating a type with an interface). Also has tests for various...
[ { "path": "src/cmd/compile/internal/noder/stencil.go", "patch": "@@ -715,12 +715,10 @@ func (subst *subster) typ(t *types.Type) *types.Type {\n \t\t\treturn newsym.Def.Type()\n \t\t}\n \n-\t\t// In order to deal with recursive generic types, create a TFORW type\n-\t\t// initially and set its Def field, so i...
2021-03-10T23:25:21
huggingface/transformers
b079dd1fa22a6106dae3274ff58a3d3c0e108bed
d114a6f78e2b30faa5087eaf4d51fd08933d578d
Fix red CI (#36174) test was weird
[ { "path": "tests/utils/test_import_utils.py", "patch": "@@ -20,4 +20,4 @@ def test_clear_import_cache():\n assert len(remaining_modules) < len(initial_modules)\n \n # Verify we can reimport\n- assert \"transformers.models.auto.modeling_auto\" in sys.modules\n+ assert \"transformers\" in sys.mo...
2025-02-13T13:27:55
electron/electron
8acd6d6c8a38a639887091c0f4ce3e297b18eed8
256215b7498cdc6c2fabaa1a70079681841ebe71
:lipstick: fix spec failure caused by win32 path delimiter.
[ { "path": "spec/api/protocol.coffee", "patch": "@@ -1,5 +1,6 @@\n assert = require 'assert'\n ipc = require 'ipc'\n+path = require 'path'\n remote = require 'remote'\n protocol = remote.require 'protocol'\n \n@@ -113,7 +114,8 @@ describe 'protocol API', ->\n free()\n assert false, 'G...
2013-09-05T04:24:08
rust-lang/rust
78599d83e7ab9f8cd4cbb9e982ddf12f258d6b18
89e93a51c81b521a9601b365e3325d31e44e9198
Move `name` field from `AssocItem` to `AssocKind` variants. To accurately reflect that RPITIT assoc items don't have a name. This avoids the use of `kw::Empty` to mean "no name", which is error prone. Helps with #137978.
[ { "path": "compiler/rustc_hir_analysis/src/check/check.rs", "patch": "@@ -443,7 +443,7 @@ fn best_definition_site_of_opaque<'tcx>(\n let impl_def_id = tcx.local_parent(parent);\n for assoc in tcx.associated_items(impl_def_id).in_definition_order() {\n match assoc.kind...
2025-04-14T03:15:01
vercel/next.js
28af64d6d3a307a0cb8ca018c91ad72866ee509b
91a63f56ab8d9477b8bebb39cff4064b5a9514a7
prettier fixes (vercel/turbo#2436)
[ { "path": "crates/next-core/js/src/entry/app-renderer.tsx", "patch": "@@ -16,7 +16,7 @@ import type {\n } from \"next/dist/build/webpack/plugins/flight-manifest-plugin\";\n import type { RenderData } from \"types/turbopack\";\n \n-import 'next/dist/server/initialize-require-hook'\n+import \"next/dist/server...
2022-10-28T04:39:56
nodejs/node
b60b18379ddf4dfb455080c2e163846af06a4c1e
a9b399f5815f0c6c93f00e66a6df533f1d15dddc
http2: destroy the socket properly and add tests Fix a bug where the socket wasn't being correctly destroyed and adjust existing tests, as well as add additional tests. PR-URL: https://github.com/nodejs/node/pull/19852 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Rev...
[ { "path": "lib/internal/http2/core.js", "patch": "@@ -1175,7 +1175,7 @@ class Http2Session extends EventEmitter {\n // Otherwise, destroy immediately.\n if (!socket.destroyed) {\n if (!error) {\n- setImmediate(socket.end.bind(socket));\n+ setImmediate(socket.destroy.bind(socket))...
2018-04-06T15:50:58
huggingface/transformers
6397916dd22a87569e16da89f25a33c4599b7f19
efe72fe21f4292e4f3a74344c0a065dc69480b3b
Remove loading custom kernel for RT-DETRv2 (#36098) * Remove loading custom kernels * Remove config param * Fixup
[ { "path": "src/transformers/models/rt_detr_v2/configuration_rt_detr_v2.py", "patch": "@@ -130,8 +130,6 @@ class RTDetrV2Config(PretrainedConfig):\n Indicates whether the initial query embeddings for the decoder should be learned during training\n anchor_image_size (`Tuple[int, int]`, *op...
2025-02-13T12:01:53
golang/go
bb2fc21c3b818c45fad23fdf5f8bd83bbc074dce
33945869c12ce92933714426471ce4f5c4ec7b6b
runtime: fix typos in comments Change-Id: Ia70e8bdc6d2cf1195d7a3b5d33f180ae2db73e29 Reviewed-on: https://go-review.googlesource.com/c/go/+/305369 Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com> Reviewed-by: Ben Shi <powerman1st@163.com> Run-TryBot: Emmanuel Odeke <emmanuel@orijtech.com> TryBot-Result: Go Bot <gobo...
[ { "path": "src/runtime/malloc.go", "patch": "@@ -933,7 +933,7 @@ func mallocgc(size uintptr, typ *_type, needzero bool) unsafe.Pointer {\n \t\t}\n \n \t\tif inittrace.active && inittrace.id == getg().goid {\n-\t\t\t// Init functions are executed sequentially in a single Go routine.\n+\t\t\t// Init functions...
2021-03-29T10:51:06
rust-lang/rust
4d343d56e1ffb45b14d00f87736d405e5670970c
1cab0b412ec5e73f08e142cae14cff695ac6945b
Check MSRV before suggesting fix in `const` context
[ { "path": "book/src/lint_configuration.md", "patch": "@@ -804,6 +804,7 @@ The minimum rust version that the project supports. Defaults to the `rust-versio\n * [`manual_flatten`](https://rust-lang.github.io/rust-clippy/master/index.html#manual_flatten)\n * [`manual_hash_one`](https://rust-lang.github.io/rust...
2025-03-24T18:07:16
vercel/next.js
adae64211fb4a264dc48c5161f49e9542a55cc83
9fa7390093912f0a8876fd2c4a28a87d5f4707b2
Fix decrement_tasks incrementing instead (vercel/turbo#2399)
[ { "path": "crates/turbo-tasks-memory/src/scope.rs", "patch": "@@ -191,7 +191,7 @@ impl TaskScope {\n }\n \n pub fn decrement_tasks(&self) {\n- self.tasks.fetch_add(1, Ordering::Relaxed);\n+ self.tasks.fetch_sub(1, Ordering::Relaxed);\n }\n \n pub fn increment_unfinished_tasks(&...
2022-10-28T04:39:10
nodejs/node
20509ebee681233443ebc7dc1b58c2fab6d2b12f
6fd8022641da3e58fa44f339457110b15813c9be
fs: make fs.promises non-enumerable This prevents the experimental feature warning from being emitted in cases where fs.promises is not actually used. PR-URL: https://github.com/nodejs/node/pull/20632 Fixes: https://github.com/nodejs/node/issues/20504 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Ja...
[ { "path": "lib/fs.js", "patch": "@@ -79,7 +79,7 @@ let warn = true;\n \n Object.defineProperty(fs, 'promises', {\n configurable: true,\n- enumerable: true,\n+ enumerable: false,\n get() {\n if (warn) {\n warn = false;", "additions": 1, "deletions": 1, "language": "JavaScript" }...
2018-05-09T16:36:59
golang/go
eeadfa2d3810c252f86a88ddd282b48be5abc6df
a95454b6f31a982f064d262987199fba19f085e9
cmd/compile: fix various small bugs related to type lists Fix various small bugs related to delaying transformations due to type params. Most of these relate to the need to delay a transformation when an argument of an expression or statement has a type parameter that has a structural constraint. The structural constr...
[ { "path": "src/cmd/compile/internal/noder/expr.go", "patch": "@@ -164,7 +164,7 @@ func (g *irgen) expr0(typ types2.Type, expr syntax.Expr) ir.Node {\n \n \tcase *syntax.Operation:\n \t\tif expr.Y == nil {\n-\t\t\treturn Unary(pos, g.op(expr.Op, unOps[:]), g.expr(expr.X))\n+\t\t\treturn Unary(pos, g.typ(typ)...
2021-03-29T15:28:01
rust-lang/rust
115341f767741ab1584b5daeafc2709a74612f59
f535922f20d8061fc3c61b165cd7a4061500e751
Fix grammar of --test-runtool-arg help text
[ { "path": "src/librustdoc/lib.rs", "patch": "@@ -520,7 +520,7 @@ fn opts() -> Vec<RustcOptGroup> {\n \"\",\n \"test-runtool-arg\",\n \"\",\n- \"One (of possibly many) arguments to pass to the runtool\",\n+ \"One argument (of possibly many) to pass to...
2025-04-14T19:56:02
huggingface/transformers
efe72fe21f4292e4f3a74344c0a065dc69480b3b
c82319b493889aaa60912319369e33dd049420fc
Adding FP8 Quantization to transformers (#36026) * first commit * adding kernels * fix create_quantized_param * fix quantization logic * end2end * fix style * fix imports * fix consistency * update * fix style * update * udpate after review * make style * update * update * ...
[ { "path": "docs/source/en/_toctree.yml", "patch": "@@ -185,6 +185,8 @@\n title: BitNet\n - local: quantization/compressed_tensors\n title: compressed-tensors\n+ - local: quantization/finegrained_fp8\n+ title: Fine-grained FP8\n - local: quantization/contribute\n title: Contribute new qua...
2025-02-13T12:01:19
electron/electron
84a3eb5411e9d94b7192c663220e2b40bb0f52ff
e17da272f48defda24523119959b8022c27e3566
Also fix nested child_process.fork on Windows.
[ { "path": "app/atom_main.cc", "patch": "@@ -23,7 +23,8 @@ int Start(int argc, char *argv[]);\n int APIENTRY wWinMain(HINSTANCE instance, HINSTANCE, wchar_t* cmd, int) {\n int argc = 0;\n wchar_t** wargv = ::CommandLineToArgvW(::GetCommandLineW(), &argc);\n- if (argc > 1 && wcscmp(wargv[1], L\"--atom-ch...
2013-09-05T01:49:22
vercel/next.js
d4cb480fca439a56290ed971e41af61a3e83e350
8788e1f7d1c69b79f07e124decb2fc2e191abba6
Source map tracing fixes (vercel/turbo#2402)
[ { "path": "packages/next-swc/crates/next-core/src/nodejs/mod.rs", "patch": "@@ -1,6 +1,8 @@\n use std::{\n collections::{BTreeMap, HashMap, HashSet},\n+ ffi::OsStr,\n fmt::Write as _,\n+ path::PathBuf,\n };\n \n use anyhow::{anyhow, bail, Context, Result};\n@@ -12,8 +14,7 @@ pub use node_entry...
2022-10-28T04:30:30
nodejs/node
6fd8022641da3e58fa44f339457110b15813c9be
3706c65500008a8f762317ceb956477c0c2e39e2
doc: add global node_modules to require.resolve() PR-URL: https://github.com/nodejs/node/pull/20534 Fixes: https://github.com/nodejs/node/issues/18926 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
[ { "path": "doc/api/modules.md", "patch": "@@ -175,15 +175,15 @@ LOAD_AS_DIRECTORY(X)\n 2. LOAD_INDEX(X)\n \n LOAD_NODE_MODULES(X, START)\n-1. let DIRS=NODE_MODULES_PATHS(START)\n+1. let DIRS = NODE_MODULES_PATHS(START)\n 2. for each DIR in DIRS:\n a. LOAD_AS_FILE(DIR/X)\n b. LOAD_AS_DIRECTORY(DIR/X)\n...
2018-05-05T05:43:12
golang/go
a95454b6f31a982f064d262987199fba19f085e9
06ad41642c6e06ddb6faa8575fcc3cfafa6a13d1
runtime: init plan9 hashkey by time Maphash requires non-zero integer for initial hashkey Fixes #45090 Change-Id: Ie567f648c19e81cddc8e72a1c64809fbf52df188 Reviewed-on: https://go-review.googlesource.com/c/go/+/303969 Trust: Meng Zhuo <mzh@golangcn.org> Run-TryBot: Meng Zhuo <mzh@golangcn.org> TryBot-Result: Go Bot ...
[ { "path": "src/runtime/os_plan9.go", "patch": "@@ -325,7 +325,23 @@ func crash() {\n \n //go:nosplit\n func getRandomData(r []byte) {\n-\textendRandom(r, 0)\n+\t// inspired by wyrand see hash32.go for detail\n+\tt := nanotime()\n+\tv := getg().m.procid ^ uint64(t)\n+\n+\tfor len(r) > 0 {\n+\t\tv ^= 0xa0761d...
2021-03-29T07:10:50
huggingface/transformers
c82319b493889aaa60912319369e33dd049420fc
8f137b242762eb9295a431ec6eb8cd9ee673daf9
Helium documentation fixes (#36170) * Helium documentation fixes * Update helium.md * Update helium.md * Update helium.md
[ { "path": "docs/source/en/model_doc/helium.md", "patch": "@@ -107,24 +107,20 @@ Tips:\n \n ## Usage tips\n \n-`Helium` can be found on the [Huggingface Hub](https://huggingface.co/collections/kyutai/helium-1-preview)\n+`Helium` can be found on the [Huggingface Hub](https://huggingface.co/models?other=heli...
2025-02-13T11:20:53
electron/electron
c7fed48c4abb53fa8f66a71c662df9bcf2c3adb7
7737708fdd1ffb704fdbb6915990d8ef81709398
Emit erros when getting errors in IO thread.
[ { "path": "browser/api/atom_api_protocol.cc", "patch": "@@ -293,6 +293,16 @@ void Protocol::InterceptProtocolInIO(const std::string& scheme) {\n DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO));\n AtomURLRequestJobFactory* job_factory(GetRequestJobFactory());\n ProtocolHandler* ...
2013-09-03T09:21:10
nodejs/node
3706c65500008a8f762317ceb956477c0c2e39e2
f074612b744fecfd1f79fd05d7f10fe9a1487e5a
doc: fix stability text for n-api While some places list n-api as stable, the reference in doc/api/addons.md was missed. This fixes that instance. Fixes: https://github.com/nodejs/node/issues/20645 PR-URL: https://github.com/nodejs/node/pull/20659 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Lui...
[ { "path": "doc/api/addons.md", "patch": "@@ -219,7 +219,7 @@ illustration of how it can be used.\n \n ## N-API\n \n-> Stability: 1 - Experimental\n+> Stability: 2 - Stable\n \n N-API is an API for building native Addons. It is independent from\n the underlying JavaScript runtime (e.g. V8) and is maintained ...
2018-05-10T15:47:15
rust-lang/rust
188d44dd6e4949606e31c8009dffa4773ea25214
07d3fd1d9b9c1f07475b96a9d168564bf528db68
Fix: Map EOPNOTSUPP to ErrorKind::Unsupported on Unix This change maps the EOPNOTSUPP errno value (95) to std::io::ErrorKind::Unsupported in the decode_error_kind function for Unix platforms. Previously, it was incorrectly mapped to ErrorKind::Uncategorized. Fixes #139803
[ { "path": "library/std/src/sys/pal/unix/mod.rs", "patch": "@@ -274,6 +274,7 @@ pub fn decode_error_kind(errno: i32) -> ErrorKind {\n libc::ETXTBSY => ExecutableFileBusy,\n libc::EXDEV => CrossesDevices,\n libc::EINPROGRESS => InProgress,\n+ libc::EOPNOTSUPP => Unsupported,\n \...
2025-04-14T18:25:48
golang/go
bd6628e62dd5ef1e389d6551a83ef4f2baabebb5
4e1bf8ed3840632b4781d3c4abb4704dca468dd4
cmd/compile: check deferred nil interface call before wrapping it Currently, for "defer i.M()" if i is nil it panics at the point of defer statement, not when deferred function is called. We need to do the nil check before wrapping it. Updates #40724. Change-Id: I62c669264668991f71999e2cf4610a9066247f9d Reviewed-on:...
[ { "path": "src/cmd/compile/internal/walk/order.go", "patch": "@@ -1602,6 +1602,17 @@ func (o *orderState) wrapGoDefer(n *ir.GoDeferStmt) {\n \t\t\tn := callX.(*ir.SelectorExpr)\n \t\t\tn.X = mkArgCopy(n.X)\n \t\t\tmethSelectorExpr = n\n+\t\t\tif callX.Op() == ir.ODOTINTER {\n+\t\t\t\t// Currently for \"defe...
2021-03-29T17:44:08
huggingface/transformers
8f137b242762eb9295a431ec6eb8cd9ee673daf9
35c155052d49bc6429922a6cf946fafa617a87b5
Move `DataCollatorForMultipleChoice` from the docs to the package (#34763) * Add implementation for DataCollatorForMultipleChoice based on docs. * Add DataCollatorForMultipleChoice to import structure. * Remove custom DataCollatorForMultipleChoice implementations from example scripts. * Remove custom implementation...
[ { "path": "docs/source/en/main_classes/data_collator.md", "patch": "@@ -71,3 +71,6 @@ Examples of use can be found in the [example scripts](../examples) or [example n\n \n [[autodoc]] data.data_collator.DataCollatorWithFlattening\n \n+# DataCollatorForMultipleChoice\n+\n+[[autodoc]] data.data_collator.DataC...
2025-02-13T11:01:28
vercel/next.js
8e759c2647ec324f00bdf1c3f4f5c4e589a55666
919baba1b3ba394bd3112e4209cd5e8bc121a370
Source map tracing fixes (vercel/turbo#2402)
[ { "path": "crates/next-core/src/nodejs/mod.rs", "patch": "@@ -1,6 +1,8 @@\n use std::{\n collections::{BTreeMap, HashMap, HashSet},\n+ ffi::OsStr,\n fmt::Write as _,\n+ path::PathBuf,\n };\n \n use anyhow::{anyhow, bail, Context, Result};\n@@ -12,8 +14,7 @@ pub use node_entry::{NodeEntry, Node...
2022-10-28T04:30:30
electron/electron
9ba08d5e678f3f088cc94b2dec5e1994be6b2912
6c3dc9e52654a416beb0aec47afbcd77f98072d4
:lipstick: fix reversed flag for updating latest version.
[ { "path": "script/upload.py", "patch": "@@ -44,7 +44,7 @@ def parse_args():\n parser = argparse.ArgumentParser(description='upload distribution file')\n parser.add_argument('-n', '--no-update-version',\n help='Do not update the latest version file',\n- action='...
2013-09-02T10:17:06
nodejs/node
849aaaeeb045965f3f8085c7cb65c3c830bd724c
85373aeb4c79dd16bf22549559cf09df17d78e5a
Revert "util: change util.inspect depth default" This reverts commit b994b8eff6018433a56bb10dbc473cefa0dd9370. This caused regressions in ecosystem code. While the change originally was semver-major and could be postponed until after Node.js 10, I think reverting it is a good choice at this point. Also, I personally...
[ { "path": "doc/api/util.md", "patch": "@@ -364,9 +364,6 @@ changes:\n pr-url: https://github.com/nodejs/node/pull/19259\n description: The `WeakMap` and `WeakSet` entries can now be inspected\n as well.\n- - version: REPLACEME\n- pr-url: https://github.com/nodejs/node/pull/17907...
2018-04-13T19:40:28
golang/go
9fbd0f64d86d616d9ce1a2636afac43001b22b7c
67d565d2815f33887cfb448bd4c1928318324c78
runtime: fix some typos Change-Id: I31f2081eb7c30a9583f479f9194e636fe721b9b3 GitHub-Last-Rev: d09f5fbdc5785dc3963b22ad75309740e0de258e GitHub-Pull-Request: golang/go#45278 Reviewed-on: https://go-review.googlesource.com/c/go/+/305231 Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com> Reviewed-by: Ian Lance Taylor <ia...
[ { "path": "src/runtime/mgcwork.go", "patch": "@@ -398,7 +398,7 @@ func getempty() *workbuf {\n }\n \n // putempty puts a workbuf onto the work.empty list.\n-// Upon entry this go routine owns b. The lfstack.push relinquishes ownership.\n+// Upon entry this goroutine owns b. The lfstack.push relinquishes own...
2021-03-29T18:22:15
huggingface/transformers
35c155052d49bc6429922a6cf946fafa617a87b5
3c912c908953ab561912c85658c09660b13ef2d3
Fix PretrainedTokenizerFast check => Fix PretrainedTokenizerFast Save (#35835) * Fix the bug in tokenizer.save_pretrained when saving tokenizer_class to tokenizer_config.json * Update tokenization_utils_base.py * Update tokenization_utils_base.py * Update tokenization_utils_base.py * add tokenizer class type test ...
[ { "path": "src/transformers/tokenization_utils_base.py", "patch": "@@ -2472,8 +2472,8 @@ def save_pretrained(\n \n # Add tokenizer class to the tokenizer config to be able to reload it with from_pretrained\n tokenizer_class = self.__class__.__name__\n- # Remove the Fast at the end unl...
2025-02-13T11:00:33
electron/electron
893309aa8aab2f60c759088dd21eac10cad9352a
f17864372eff1136a7d930d3e69f74abbce1b1f6
:lipstick: fix the window specs.
[ { "path": "spec/api/window.coffee", "patch": "@@ -44,8 +44,10 @@ describe 'window module', ->\n \n it 'should emit beforeunload handler', (done) ->\n w = new BrowserWindow(show: false)\n- w.on 'onbeforeunload', done\n- w.loadUrl 'file://' + path.join(fixtures, 'api', 'close-beforeunload-...
2013-09-02T08:47:53
golang/go
feb844f1ead183b911ede1224638fbf55bcde7b8
1e8fff0f7b4577dcb7192928e2db4af7a11e9c0e
cmd/compile: eliminate -abiwraplimit We haven't needed this debugging flag in a while and it's going to complicate a change to how to generate wrappers. Eliminate it in favor of just using the objabi.Experiment.RegabiWrappers global toggle. Updates #40724. Change-Id: Ieda660ea7a0167ae4e881b396ef556d7c962fe4c Reviewe...
[ { "path": "src/cmd/compile/internal/base/flag.go", "patch": "@@ -82,7 +82,6 @@ type CmdFlags struct {\n \tCompilingRuntime bool \"flag:\\\"+\\\" help:\\\"compiling runtime\\\"\"\n \n \t// Longer names\n-\tABIWrapLimit int \"help:\\\"emit at most N ABI wrappers (for debugging)\\\"\"\n \tAsmHdr...
2021-03-24T17:55:31
huggingface/transformers
3c912c908953ab561912c85658c09660b13ef2d3
6a1ab634b6886b6560b0502e7a305c8cd881732e
docs: fix return type annotation of `get_default_model_revision` (#35982)
[ { "path": "src/transformers/pipelines/base.py", "patch": "@@ -384,7 +384,7 @@ def get_framework(model, revision: Optional[str] = None):\n \n def get_default_model_and_revision(\n targeted_task: Dict, framework: Optional[str], task_options: Optional[Any]\n-) -> Union[str, Tuple[str, str]]:\n+) -> Tuple[s...
2025-02-13T10:59:15
nodejs/node
8d3131b0af85ccfca67700bf42507456038fa0a4
79f87cc7293d907ea1a81388ec5314c018dab674
doc: fix nits in doc/api_assets/style.css 1. Merge rule sets for identical selectors. 2. Delete impossible selector block: we have only stability indexes 0, 1, and 2, so there can't be `.api_stability_3` class. Refs: nodejs.org/api/documentation.html#documentation_stability_index PR-URL: https://github.com/nod...
[ { "path": "doc/api_assets/style.css", "patch": "@@ -29,6 +29,9 @@ h6 { font-size: 1rem }\n \n h1, h2, h3, h4, h5, h6 {\n margin: 1.5rem 0 1rem;\n+ text-rendering: optimizeLegibility;\n+ font-weight: 700;\n+ position: relative;\n }\n \n pre, tt, code, .pre, span.type, a.type {\n@@ -183,10 +186,6 @@ ol.v...
2018-05-08T14:49:38
vercel/next.js
919baba1b3ba394bd3112e4209cd5e8bc121a370
a02366e85fd74143dbc45f7c6884c4e69f7c40f1
Revamp snapshot tests (vercel/turbo#2351) * Disable HMR for snapshot tests The only effect is that we don't emit source maps for the individual chunk items, reducing the total number of output files considerably. * Extract snapshot tests into separate crate * Strip annoying file hash fingerprints * Reduce ...
[ { "path": "crates/turbo-tasks-build/src/lib.rs", "patch": "@@ -158,10 +158,10 @@ pub fn generate_register() {\n }\n }\n \n-pub fn rerun_if_glob(globs: &str) {\n+pub fn rerun_if_glob(globs: &str, root: &str) {\n let cwd = env::current_dir().unwrap();\n let globs = cwd.join(globs);\n- let mut s...
2022-10-28T03:43:13
electron/electron
f17864372eff1136a7d930d3e69f74abbce1b1f6
610ac5b045e03bd666d054d7aca01b34a421c8fc
Use setTimeout instead of setImmediate in fixtures. The setImmediate is implemented in node and may have unexpected affects.
[ { "path": "spec/fixtures/api/beforeunload-false.html", "patch": "@@ -2,9 +2,9 @@\n <body>\n <script type=\"text/javascript\" charset=\"utf-8\">\n window.onbeforeunload = function() {\n- setImmediate(function() {\n+ setTimeout(function() {\n require('remote').getCurrentWindow().emit('onbeforeun...
2013-09-02T08:46:08
huggingface/transformers
6a1ab634b6886b6560b0502e7a305c8cd881732e
d419862889f16f46cad2cd0be6c8c323c0368a5a
qwen2.5vl: fix bugs when using flash2+bf16 or num_return_sequences>1 (#36083) * qwen2.5vl: fix bugs when using flash2+bf16 or num_return_sequences>1 * fix * fix * fix * fix * add tests * fix test bugs * fix * fix failed tests * fix
[ { "path": "src/transformers/generation/utils.py", "patch": "@@ -2824,8 +2824,12 @@ def _contrastive_search(\n \n if not sequential:\n # Expands model inputs top_k times, for batched forward passes (akin to beam search).\n+ # input_ids is required for ex...
2025-02-13T10:35:28
golang/go
0d1423583b9106d398740862bca4ad5661fd67ad
33b4ffc3573eb81854591d39f1029dabacbdec72
cmd/compile: set ir.Name.Func in more cases ir.Name.Func is non-nil for *almost* all function names. This CL fixes a few more major cases that leave it nil, though there are still a few cases left: interface method values, and algorithms generated by eqFor, hashfor, and hashmem. We'll need this for mapping from ir.Na...
[ { "path": "src/cmd/compile/internal/ir/expr.go", "patch": "@@ -528,6 +528,13 @@ func (n *SelectorExpr) FuncName() *Name {\n \tfn := NewNameAt(n.Selection.Pos, MethodSym(n.X.Type(), n.Sel))\n \tfn.Class = PFUNC\n \tfn.SetType(n.Type())\n+\tif n.Selection.Nname != nil {\n+\t\t// TODO(austin): Nname is nil for...
2021-03-27T14:14:30
nodejs/node
79f87cc7293d907ea1a81388ec5314c018dab674
21c3a402d486234fb00fcb130802b8fcabd97de8
src: fix typo in util.h comment PR-URL: https://github.com/nodejs/node/pull/20656 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
[ { "path": "src/util.h", "patch": "@@ -211,7 +211,7 @@ inline v8::Local<TypeName> PersistentToLocal(\n v8::Isolate* isolate,\n const Persistent<TypeName>& persistent);\n \n-// Unchecked conversion from a non-weak Persistent<T> to Local<TLocal<T>,\n+// Unchecked conversion from a non-weak Persistent<T...
2018-05-10T12:27:56
vercel/next.js
65083f8faa87e184075549bb85abd5428586e503
9fe18e88446303d390866531bf63e33677c61c1a
Allow disabling Strict mode in app (#41894) Follows `reactStrictMode`. Still recommended to have it enabled (which is the default for new apps). This will become increasingly more important as other features on top of concurrent rendering are implemented. ## Bug - [ ] Related issues linked using `fixes #number` - ...
[ { "path": "packages/next/build/webpack-config.ts", "patch": "@@ -244,7 +244,17 @@ export function getDefineEnv({\n 'process.env.__NEXT_BUILD_INDICATOR_POSITION': JSON.stringify(\n config.devIndicators.buildActivityPosition\n ),\n- 'process.env.__NEXT_STRICT_MODE': JSON.stringify(config.reac...
2022-10-28T00:30:07
huggingface/transformers
d419862889f16f46cad2cd0be6c8c323c0368a5a
e60ae0d0784d7fc5b35eb69b0e5e5e35aab5e70e
Fix tests for vision models (#35654) * Trigger tests * [run-slow] beit, detr, dinov2, vit, textnet * Fix BEiT interpolate_pos_encoding * Fix DETR test * Update DINOv2 test * Fix textnet * Fix vit * Fix DPT * fix data2vec test * Fix textnet test * Update interpolation check * Fix ZoeDep...
[ { "path": "src/transformers/models/beit/modeling_beit.py", "patch": "@@ -16,6 +16,7 @@\n \n import collections.abc\n import math\n+import warnings\n from dataclasses import dataclass\n from typing import List, Optional, Tuple, Union\n \n@@ -196,12 +197,16 @@ def forward(\n self,\n pixel_valu...
2025-02-13T10:28:37
golang/go
8f676144ad7b7c91adb0c6e1ec89aaa6283c6807
565e70fcefd63c1f57989a0f794bf7c8bb4cf5ec
crypto/rsa: fix salt length calculation with PSSSaltLengthAuto When PSSSaltLength is set, the maximum salt length must equal: (modulus_key_size - 1 + 7)/8 - hash_length - 2 and for example, with a 4096 bit modulus key, and a SHA-1 hash, it should be: (4096 -1 + 7)/8 - 20 - 2 = 490 Previously we'd encounter ...
[ { "path": "src/crypto/rsa/pss.go", "patch": "@@ -269,7 +269,7 @@ func SignPSS(rand io.Reader, priv *PrivateKey, hash crypto.Hash, digest []byte,\n \tsaltLength := opts.saltLength()\n \tswitch saltLength {\n \tcase PSSSaltLengthAuto:\n-\t\tsaltLength = priv.Size() - 2 - hash.Size()\n+\t\tsaltLength = (priv.N...
2021-03-16T17:07:46
nodejs/node
21c3a402d486234fb00fcb130802b8fcabd97de8
c0720570498895d06dcec4e8f01e8922a81ac78b
assert: validate input stricter This makes sure invalid `error` objects are not ignored when using `assert.throws` and `assert.rejects`. PR-URL: https://github.com/nodejs/node/pull/20481 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Michaël Zasso <t...
[ { "path": "lib/assert.js", "patch": "@@ -28,6 +28,7 @@ const {\n const { codes: {\n ERR_AMBIGUOUS_ARGUMENT,\n ERR_INVALID_ARG_TYPE,\n+ ERR_INVALID_ARG_VALUE,\n ERR_INVALID_RETURN_VALUE\n } } = require('internal/errors');\n const { AssertionError, errorCache } = require('internal/assert');\n@@ -414,12...
2018-05-02T22:23:47
huggingface/transformers
9065cf0d92dc6fffa0c28173008431585fea6452
08ab1abff423b323cb409d12226616170592ea3c
Fix Gemma2 dtype issue when storing weights in float16 precision (#35398) fix gemma2 dtype issue when storing weights in float16 precision
[ { "path": "src/transformers/models/gemma2/modeling_gemma2.py", "patch": "@@ -301,7 +301,7 @@ def forward(\n # Otherwise, the mask is 4D of shape [bs, 1, query_len, max_cache_len] thus we must slice\n # from the left, with an offset if we are beyond the sliding window\n el...
2025-02-13T10:17:37
vercel/next.js
491a21b5f14834f3827ca2cf73d9d24be8754247
3618b9017e6172fbb9038303e12c1dfe7a9365f2
Fix build type error of page params (#42019) This PR temporarily fixes #41884 by loosing the type check rules. I will work on a follow up PR to type params better with tests. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have a helpful link attached, see `...
[ { "path": "packages/next/build/webpack/plugins/flight-types-plugin.ts", "patch": "@@ -27,12 +27,12 @@ check<IEntry, TEntry>(entry)\n \n type PageParams = Record<string, string>\n interface PageProps {\n- params?: PageParams\n- searchParams?: Record<string, string | string[]>\n+ params: any\n+ searchPara...
2022-10-27T23:53:38
golang/go
565e70fcefd63c1f57989a0f794bf7c8bb4cf5ec
6f90ee36e90cb6a6adfd29ee51f0ef8f7e507003
cmd/link/internal/ld: use linkerFlagSupported to check -Qunused-arguments Rather than checking the linker name or its path for the string "clang", use linkerFlagSupported to determine whether the -Qunused-arguments flag may be passed to the linker. Fixes #45241 Change-Id: I4c1e4d4ecba4cf5823e8f39cfda5d20404ebf513 Re...
[ { "path": "src/cmd/link/internal/ld/lib.go", "patch": "@@ -1475,8 +1475,9 @@ func (ctxt *Link) hostlink() {\n \t\targv = append(argv, \"-Wl,-bE:\"+fileName)\n \t}\n \n-\tif strings.Contains(argv[0], \"clang\") {\n-\t\targv = append(argv, \"-Qunused-arguments\")\n+\tconst unusedArguments = \"-Qunused-argumen...
2021-03-26T10:00:40
huggingface/transformers
08ab1abff423b323cb409d12226616170592ea3c
950cfb0b4f6f79dbeb658100d25b5f3e3d8be04b
Add reminder config to issue template and print DS version in env (#35156) * update env command to log deepspeed version * suppress deepspeed import logging * Add reminder to include configs to repro description in bug report. * make fixup * [WIP] update import utils for deepspeed * Change to using is_deepspeed_a...
[ { "path": ".github/ISSUE_TEMPLATE/bug-report.yml", "patch": "@@ -106,6 +106,7 @@ body:\n label: Reproduction\n description: |\n Please provide a code sample that reproduces the problem you ran into. It can be a Colab link or just a code snippet.\n+ Please include relevant config i...
2025-02-13T09:55:49