sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: [Quant] Framework observes weight in convert, changing numerics
Labels: oncall: quantization,low priority,triaged

There are a few places where the framework observes the weight during the convert step, e.g.

https://github.com/pytorch/pytorch/blob/11231b0f935c092598c994a4bab686485aac1856/torch%2Fao%2Fquantization%2Ffx%2Fquantization_patterns.py#L638
https://github.com/pytorch/pytorch/blob/11231b0f935c092598c994a4bab686485aac1856/torch%2Fao%2Fquantization%2Ffx%2Fquantization_patterns.py#L915

Maybe related:
https://github.com/pytorch/pytorch/blob/11231b0f935c092598c994a4bab686485aac1856/torch%2Fnn%2Fquantized%2Fmodules%2Flinear.py#L264

This is done to get the correct shapes for the scale and the zero point for QAT. If this call didn't exist, then the user would run into a mismatched shape error for these qparams if they did not calibrate the model between `prepare` and `convert`. However, the above behavior is technically incorrect since the model is being "calibrated" again on the weights, which may change the numerics of the model. E.g. if the observer uses a histogram, then the distribution of the histogram would differ slightly.

**Proposal:** The framework should not internally observe of the weight during convert. Instead, we should either (1) throw an exception if the user forgot to calibrate the model before calling convert, which would break BC, or (2) get the shapes of the qparams through a copy of the observer instead.



cc @jerryzh168 @jianyuh @raghuramank100 @jamesr66a @vkuzo @jgong5 @Xia-Weiwen @leslie-fang-intel
Repository: node
Issue: AbortSignal `abort` advice maybe needs clarification
Labels: doc

### Affected URL(s)

https://nodejs.org/docs/latest-v16.x/api/globals.html#event-abort

### Description of the problem

This paragraph gives some advice on the AbortSignal `abort` event:

> Any event listeners attached to the AbortSignal should use the { once: true } option (or, if using the EventEmitter APIs to attach a listener, use the once() method) to ensure that the event listener is removed as soon as the 'abort' event is handled. Failure to do so may result in memory leaks.

This seems problematic in 2 ways:

1. It implies that `AbortSignal` honors (part of) the `EventEmitter` API. I can find no evidence this is so.
2. It highlights the possibility of memory leaks by leaving a handler attached after _the 'abort' event is handled_. But wouldn't it leak the same if the abort _never happens_? In which case `{ once: true }` is no help.
Repository: go
Issue: cmd/go: improve error message from empty "mod tidy"
Labels: NeedsInvestigation,GoCommand,modules

<!--
Please answer these questions before submitting your issue. Thanks!
-->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version devel go1.19-dbbe4cca5d Tue Mar 8 21:35:38 2022 +0000 darwin/amd64
</pre>

### Does this issue reproduce with the latest release?
At least on tip.

### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
N/A
</pre></details>

### What did you do?
```
$ go mod init foo
go: creating new go.mod: module foo
$ go mod tidy
go: warning: "all" matched no packages
```

### What did you expect to see?
An error message that doesn't mention `all`, since I didn't specify `all` anywhere. I understand why I do get this error message but it might be confusing in other cases.

I stumbled upon this when I accidentally ran `go mod init` twice where the second run explicitly asks me to:
```
go: to add module requirements and sums:
        go mod tidy
``` 

### What did you see instead?
```
go: warning: "all" matched no packages
```
Repository: youtube-dl
Issue: (Spankbang) Channels download possible?
Labels: request,clarification-needed,nsfw

<!--

######################################################################
  WARNING!
  IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################

-->


## Checklist

<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl:
- Look through the README (http://yt-dl.org/readme) and FAQ (http://yt-dl.org/faq) for similar questions
- Search the bugtracker for similar questions: http://yt-dl.org/search-issues
- Finally, put x into all relevant boxes (like this [x])
-->

- [X] I'm asking a question
- [X] I've looked through the README and FAQ for similar questions
- [X] I've searched the bugtracker for similar questions, including closed ones


## Question

<!--
Ask your question in an arbitrary form. Please make sure it's worded well enough to be understood, see https://github.com/ytdl-org/youtube-dl#is-the-description-of-the-issue-itself-sufficient.
-->

Can I use a specific website extractor?
Or I misunderstood something.
Example : **Spankbang** is present in extractor link, but a channel download isn't possible though.
Tried to download as playlist with no luck.
Can't see any playlist on this site too.
How can I bulk download a channel?
Thanks
Repository: three.js
Issue: Add vertex color alpha channel support to LineMaterial
Labels: Enhancement

<!-- Ignoring this template may result in your feature request getting deleted -->

**Is your feature request related to a problem? Please describe.**

I am using Line2 with vertex colors and my data source provides RGBA values, but I cannot support the alpha channel without creating my own copy of LineMaterial.js.

**Describe the solution you'd like**

https://github.com/mrdoob/three.js/pull/20975 added support for vertex color alpha, but the LineMaterial class assumes vec3 colors only. I would like to see the LineMaterial class natively support vec4 vertex colors.

**Describe alternatives you've considered**

I've created my own copy of LineMaterial that uses vec4, but automatically doing the correct thing for vec3 and vec4 colors and upstreaming this change would be preferable.
Repository: TypeScript
Issue: `@typedef` jsdoc comment affects a functions ability to infer parameter types.
Labels: Needs Investigation,Rescheduled

# Bug Report

### 🔎 Search Terms

jsdoc infer function return any 

### 🕗 Version & Regression Information

- This is the behavior in every version I tried, and I reviewed the FAQ for entries about `jsdoc`

### ⏯ Playground Link

[Playground link with relevant code](https://www.typescriptlang.org/play?ts=4.6.2&filetype=js#code/PQKhCgAIUgBAXApgWwA4BsCGTIBUowICeqiAJogGaQDeukiAHkgHZkDOkARgPY-qJMLSAH48kAFx4AvpADCPFgDdEAJ3gAFAK6pSSNQEFVAcy3JELeAWDhwwYJACqLAMY9k5y5HgALRJBYmeEh0AEtAyHDIHlUKVW8eSEpQxm8-SPZ2LUQJOwcaaVtQCGg4JDQsHAMCMpQMbH8AJRrYVExVTGRaAAp24ykFZTVNHT1EQxMzC3gAHgMAPgBKSABeechG2UoWFraOrpoDWT7rcCZUGODKLVd4UMVIVRuAMRuXO8Vu7YAaSD7lmhQSDA1SIeBaVTCYplEj+GibaAOboFRYAbnAhXAbhY7GCoPBkPIADVMOhsqtHi83h8WN1urjVMs1t4nohfgAiBnstHgfEQwJkElkxCoyD2P4sIhAA)

### 💻 Code

<!-- Please post the relevant code sample here as well-->
```js
/**
 * @template T
 * @typedef {T extends boolean ? T : T} ConvertPuppeteerArgument
 */

// Uncomment the next line in order to fix the issue:
// {}

/**
 * @template A
 * @template R
 * @param {(arg: ConvertPuppeteerArgument<A>) => R} fn
 * @param {A} arg
 */
export function runFunction(fn, arg) {
    return /** @type {R} */ ({});
}

const returnedValue = runFunction((str) => true, "str");
returnedValue; // `any`, but should be `boolean`
```

### 🙁 Actual behavior

`returnedValue` has the type `any`

### 🙂 Expected behavior

`returnedValue` has the type `boolean`, because the equivalent TypeScript also functions this way.
Furthermore, adding `{}` in between the two jsdoc comments fixes the issue, having extra jsdoc comments above a function should not affect its return value.

Possible duplicate: #43913, although I haven't been able to reduce this test case further to something like in that issue, so this might be caused by something else.
Repository: flutter
Issue: [flutter_tools] "StateError: Bad state: No element" during flutter run
Labels: tool,P2,team-tool,triaged-tool

On stable/2.10.3

With command `flutter run`

```
Thread 0 main threadStateError: Bad state: No element
at Stream.first.<anonymous closure>(stream.dart:1282)
at _rootRun(zone.dart:1418)
at _CustomZone.run(zone.dart:1328)
at _CustomZone.runGuarded(zone.dart:1236)
at _BufferingStreamSubscription._sendDone.sendDone(stream_impl.dart:394)
at _BufferingStreamSubscription._sendDone(stream_impl.dart:404)
at _BufferingStreamSubscription._close(stream_impl.dart:291)
at _SyncBroadcastStreamController._sendDone.<anonymous closure>(broadcast_stream_controller.dart:399)
at _BroadcastStreamController._forEachListener(broadcast_stream_controller.dart:322)
at _SyncBroadcastStreamController._sendDone(broadcast_stream_controller.dart:398)
at _BroadcastStreamController.close(broadcast_stream_controller.dart:268)
at _AsBroadcastStreamController.close(broadcast_stream_controller.dart:504)
at _rootRun(zone.dart:1418)
at _CustomZone.run(zone.dart:1328)
at _CustomZone.runGuarded(zone.dart:1236)
at _BufferingStreamSubscription._sendDone.sendDone(stream_impl.dart:394)
at _BufferingStreamSubscription._sendDone(stream_impl.dart:404)
at _BufferingStreamSubscription._close(stream_impl.dart:291)
at _SinkTransformerStreamSubscription._close(stream_transformers.dart:87)
at _EventSinkWrapper.close(stream_transformers.dart:21)
at _StringAdapterSink.close(string_conversion.dart:251)
at _Utf8ConversionSink.close(string_conversion.dart:305)
at _ErrorHandlingAsciiDecoderSink.close(ascii.dart:261)
at _ConverterStreamEventSink.close(chunked_conversion.dart:81)
at _SinkTransformerStreamSubscription._handleDone(stream_transformers.dart:132)
at _rootRun(zone.dart:1418)
at _CustomZone.run(zone.dart:1328)
at _CustomZone.runGuarded(zone.dart:1236)
at _BufferingStreamSubscription._sendDone.sendDone(stream_impl.dart:394)
at _BufferingStreamSubscription._sendDone(stream_impl.dart:404)
at _BufferingStreamSubscription._close(stream_impl.dart:291)
at _SyncStreamControllerDispatch._sendDone(stream_controller.dart:782)
at _StreamController._closeUnchecked(stream_controller.dart:637)
at _StreamController.close(stream_controller.dart:630)
at _Socket._onData(socket_patch.dart:2321)
at _rootRunUnary(zone.dart:1442)
at _CustomZone.runUnary(zone.dart:1335)
at _CustomZone.runUnaryGuarded(zone.dart:1244)
at _BufferingStreamSubscription._sendData(stream_impl.dart:341)
at _BufferingStreamSubscription._add(stream_impl.dart:271)
at _SyncStreamControllerDispatch._sendData(stream_controller.dart:774)
at _StreamController._add(stream_controller.dart:648)
at _StreamController.add(stream_controller.dart:596)
at new _RawSocket.<anonymous closure>(socket_patch.dart:1846)
at _NativeSocket.issueReadEvent.issue(socket_patch.dart:1315)
at _microtaskLoop(schedule_microtask.dart:40)
at _startMicrotaskLoop(schedule_microtask.dart:49)
at _runPendingImmediateCallback(isolate_patch.dart:122)
at _RawReceivePortImpl._handleMessage(isolate_patch.dart:193)
```
Repository: material-ui
Issue: [Fab] There's no padding for the small variant
Labels: on hold,breaking change,component: Fab

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Current behavior 😯

<img width="716" alt="Screen Shot 2022-03-09 at 9 02 50 AM" src="https://user-images.githubusercontent.com/8928482/157352316-c375342d-7a80-428d-9889-1501a8d939b0.png">

https://v4.mui.com/components/floating-action-button/#size

### Expected behavior 🤔

_No response_

### Steps to reproduce 🕹

Steps:

1.
2.
3.
4.


### Context 🔦

_No response_

### Your environment 🌎

<details>
  <summary>`npx @mui/envinfo`</summary>

```
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.
```
</details>
Repository: PowerToys
Issue: Adjustible Mouse Cursus speed for multiple monitors of different sizes
Labels: Idea-Enhancement,Needs-Triage,Product-Mouse Utilities

### Description of the new feature / enhancement

You should be able to adjust the cursus speed for each monitor in a multiple monitor setup. Going from a 24 to a 34 inch monitor the cursus should be able to go faster to cover the real estate.

### Scenario when this would be used?

Multiple monitor setup with different monitor sizes.

### Supporting information

_No response_
Repository: ant-design
Issue: Collapse animation is not working when added inside a dropdown
Labels: help wanted,Inactive

- [ ] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.

### Reproduction link
[https://codesandbox.io/s/select-with-search-field-antd-4-19-1-forked-lnqmgy?file=/index.js](https://codesandbox.io/s/select-with-search-field-antd-4-19-1-forked-lnqmgy?file=/index.js)

### Steps to reproduce
Add a Collapse inside the `dropdownRender` prop of a `Select` field.

### What is expected?
The collapse animation to be smooth.

### What is actually happening?
Theres no animation.

| Environment | Info |
|---|---|
| antd | 4.19.1 |
| React | 17.0.2 |
| System | MacOS 12.2.1 |
| Browser | Google Chrome 95.0.4638.69 |


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: godot
Issue: 3D: When "Sync to Physics" enabled on KinematicBody, animation of translation and rotation doesn't work correctly.
Labels: bug,confirmed,topic:physics,topic:3d

### Godot version

v3.4.2.stable.official [45eaa2daf]

### System information

Ubuntu 20.04 LTS

### Issue description

When a 3d kinematic body has the translation and rotation animated on separate animation tracks, and "Sync to Physics" is also enabled, only the rotation animation track plays.

### Steps to reproduce

1. Make a kinematic body.
2. Add translation and rotation animations to it.
3. Enable "Sync to Physics" on the kinematic body.
4. Autoplay/play the animation in-game.
5. Only the rotation will play.

### Minimal reproduction project

Here's a very simple project zip that produces this problem in Godot 3.4.2 official. Simply press F5/Run project and the bug will occur.

[AnimSyncToPhysics_Bug.zip](https://github.com/godotengine/godot/files/8210985/AnimSyncToPhysics_Bug.zip)
Repository: rust
Issue: Incorrect Debug derive macro error
Labels: A-macros,E-needs-mcve

### Code

```TOML
[package]
name = "minimal"
version = "0.1.0"
edition = "2021"

[dependencies]
rkyv = "0.7"
```

```Rust
use rkyv::{
    with::{AsOwned, With},
    Archive, Serialize,
};
use std::{any::type_name, borrow::Cow};

#[derive(Archive, Serialize)]
#[archive_attr(derive(Debug))]
struct Wrapper1(String);

#[derive(Archive, Serialize)]
//#[archive_attr(derive(Debug))] // <== error
struct Wrapper2<'a>(#[with(AsOwned)] Cow<'a, str>);

fn main() {
    println!("{}", type_name::<<String as Archive>::Archived>());
    println!(
        "{}",
        type_name::<<With<Cow<'_, str>, AsOwned> as Archive>::Archived>()
    );
}
```

### Meta

`rustc --version --verbose`:
```
rustc 1.59.0 (9d1b2106e 2022-02-23)
binary: rustc
commit-hash: 9d1b2106e23b1abd32fce1f17267604a5102f57a
commit-date: 2022-02-23
host: x86_64-unknown-linux-gnu
release: 1.59.0
LLVM version: 13.0.0
```

### Output

```
rkyv::string::ArchivedString
rkyv::string::ArchivedString
```

### Error when the commented line is un-commented

```
error[E0277]: `<With<Cow<'_, str>, AsOwned> as Archive>::Archived` doesn't implement `Debug`
  --> src/main.rs:11:10
   |
11 | #[derive(Archive, Serialize)]
   |          ^^^^^^^ `<With<Cow<'_, str>, AsOwned> as Archive>::Archived` cannot be formatted using `{:?}` because it doesn't implement `Debug`
12 | #[archive_attr(derive(Debug))]
   |                       ----- in this derive macro expansion
   |
   = help: the trait `Debug` is not implemented for `<With<Cow<'_, str>, AsOwned> as Archive>::Archived`
   = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
```

Despite the fact that `<With<Cow<'_, str>, AsOwned> as Archive>::Archived` is `rkyv::string::ArchivedString` which implements `Debug`.
Repository: vscode
Issue: [Linux] Show hamburger menu when "Show Menu Bar" option is unchecked.
Labels: feature-request,titlebar,menus

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->
When the Title Bar style is set to _custom_, when unchecking the "Show Menu Bar" option in `View > Appearance > Show Menu Bar` or when the Menu Bar Visibility is set to compact a hamburger menu appears. It would be very interesting to have this same feature on Linux when the Title Bar is set to _native_ since even in github.dev it is possible to access this same feature.
![Captura de tela de 2022-03-08 23-35-23](https://user-images.githubusercontent.com/54215258/157362401-a85e4d7e-31db-4e06-8c2d-ee9d45ce70f0.png)


**Some screenshots of what it might look like.**

![Captura de tela de 2022-03-09 00-09-53](https://user-images.githubusercontent.com/54215258/157365466-eda3ff1d-5a7d-4443-a1a8-1b24a5a64d93.png)
![Captura de tela de 2022-03-09 00-10-08](https://user-images.githubusercontent.com/54215258/157365468-5ca044ab-57ac-4acc-9bed-36007ecee7e0.png)
![Captura de tela de 2022-03-09 00-10-17](https://user-images.githubusercontent.com/54215258/157365471-e8444c58-ac39-4ce6-8916-14031191217d.png)
![Captura de tela de 2022-03-09 00-10-50](https://user-images.githubusercontent.com/54215258/157365474-7d15f490-1c3c-45cb-9745-aab1e43ac514.png)
![Captura de tela de 2022-03-09 00-10-53](https://user-images.githubusercontent.com/54215258/157365479-63a54b04-31a6-4a9e-94d9-ac4c4ceae3f5.png)
Repository: go
Issue: cmd/compile,runtime: optimize channel filling idiom
Labels: Performance,NeedsDecision,compiler/runtime

In the following snippet, the compiler could recognize that the channel can not be accessed concurrently by anything else, and optimize the whole loop to a straight `copy` of the contents of the slice to the channel's send queue[^dead]:

```
ch := make(chan T, len(sliceT))
for _, e := range sliceT {
  ch <- e
}
```

The main benefit is that this would avoid a lock/unlock for each element, [reducing CPU utilization](https://github.com/golang/go/issues/51553#issuecomment-1063528415).

A potentially better alternative (that I haven't really thought through in terms of compliance to the spec) is to provide a way (e.g. [via `copy`](https://github.com/golang/go/issues/51553#issuecomment-1075668202)) or otherwise allowing the compiler to **send/receive batches of multiple elements** (regardless of whether the channel is already in use by multiple goroutines) as long as there is space in the channel and as long as the sending/receiving code does not perform any other synchronization operation. This approach would still amortize the lock/unlock cost across multiple elements and would likely apply to more cases than just the specific one above.

I see this idiom pop up most frequently where work created upfront needs to be distributed to a bounded pool of workers, and, more in general, to build [iterator patterns](http://www.golangpatterns.info/object-oriented/iterators) (even though performance is often cited as [problematic](https://ewencp.org/blog/golang-iterators/)). It is also used in some cases to [create semaphores](https://github.com/golang/go/issues/51553#issuecomment-1062799806).

[^dead]: going one step further, if the slice itself can be proven to be dead after the loop, the copy of the slice contents and the allocation of the channel send queue could be skipped and the channel could adopt the slice itself as its send queue, turning an O(n) operation into O(1).
Repository: go
Issue: cmd/compile: missed devirtualization
Labels: Performance,NeedsInvestigation,compiler/runtime

In the following snippet, the compiler should be able to devirtualize the `fi.Foo()` call, but currently this does not happen ([godbolt](https://godbolt.org/z/v5nPrsE5s)):

```go
package main

import "fmt"

type foo struct{}

func (_ foo) Foo() { fmt.Println("Foo") }

func main() {
	f := foo{}
	switch fi := any(f).(type) {
	case interface{ Foo() }:
		fi.Foo()
	}
}
```

The example is obviously artificial, but this definitely occurs in real code: e.g. see the code generated by [envoyproxy/protoc-gen-validate](https://github.com/envoyproxy/protoc-gen-validate/blob/4694024279bdac52b77e22dc87808bd0fd732b69/templates/go/message.go), e.g. https://github.com/envoyproxy/go-control-plane/blob/99c9ceb26c9d7bf1705833b7debdebe9ae67c0ae/envoy/data/tap/v2alpha/transport.pb.validate.go.

Another use case that will become increasingly important with generics in 1.18 is to distinguish[^approx] between different types provided in type unions, e.g.:

```go
func Foo[Bytes interface{ []byte | string }](b Bytes) string {
	switch any(b).(type) {
	case []byte:
		return "[]byte"
	case string:
		return "string"
	}
    return "<unknown>"
}
```

As above, this missed devirtualization opportunity currently prevents ([godbolt](https://godbolt.org/z/fjbT5W1re)) the compiler from statically deducing the correct branch at compile-time, and pruning the dead branches.

This is somewhat related to https://github.com/golang/go/issues/38992 in that also in this specific case it would be beneficial to run inlining again after devirtualization. For example, in the first example above, inlining after devirtualization would open up significant inlining opportunities in case an embedded message does not have validation rules (in which case its `Validate*` functions would simply return `nil`, potentially allowing to prune whole branches of the validation call tree)

[^approx]: AFAICT this wouldn't currently be possible if the type constraint includes approximation elements (`~T`); the example does not use approximation elements for this reason
Repository: flutter
Issue: Remove the JNI fallback in 'VsyncWaiterAndroid::AwaitVSync' when we drop support for API level < 29.
Labels: platform-android,engine,P3,c: tech-debt,team-android,triaged-android

We are using NDK to await Vsync on Android Platform when API 29+ or API 24+ if the architecture is 64-bit, otherwise we use JNI fallback. When we drop support API < 29, we should remove the JNI fallback.
Repository: deno
Issue: Actual and Expected Error Symbol Properties
Labels: cli,suggestion,testing

Prompted by the integration of vscode's Testing API in the language server, we should consider offering special symbol properties on errors that can be used for "diffing" of expected versus actual results.

When the test harness processes errors that are thrown or rejected from a test, it will check to see if they have `Symbol.for("Deno.testing.expected")` and `Symbol.for("Deno.testing.actual")` and if they do, they will be used to provide a diffed output.

In addition, the `TestResult` used by the `TestReporterTrait` would have those become part of the enum:

```rust
pub enum TestResult {
  Ok,
  Ignored,
  Failed {
    message: String,
    expected: Option<String>,
    actual: Option<String>,
  }
}
```

And implementors of the trait could handle the event, which should mean for `PrettyTestReporter` that we would output the diff on the Rust side and for the yet to be introduced `LspTestReporter` we would pass values to the client for displaying the diff in the editor.

An interface would look something like this:

```ts
interface AssertionError extends Error {
  [Symbol.for("Deno.testing.expected")]?: string;
  [Symbol.for("Deno.testing.actual")]?: string;
}
```