sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: godot
Issue: Built-in methods executed in editor when connected to `tree_entered`
Labels: bug,topic:editor

### Godot version

4.0.beta3 / 3.5.1.stable

### System information

Arch Linux

### Issue description

When connected to `tree_entered`, built-in methods are always executed.

For example, connecting `Particle2D.set_emitting(true)` to its `tree_entered` signal will set emitting to true when I open the scene again. Connecting the signal to `queue_free()` crashes the editor when I open the scene again when using a saniziter build.

I'm not sure if this is intended.

### Steps to reproduce

1. Create a new 2D scene.
2. Connect the root Node2D's `tree_entered` signal to its `queue_free` method.
    * Bring up the connection dialog.
    * Check "Advanced".
    * Select the Node2D node and type `queue_free` in Receiver Method.
3. Switch to another scene tab and switch back.

The editor will crash when using a sanitizer build. For standard built, the scene tree dock looks like this:

![ksnip_20221025-162439](https://user-images.githubusercontent.com/372476/197722881-9a942e49-c29a-44a6-ac45-a3b80200903c.png)



### Minimal reproduction project

[TreeEntered.zip](https://github.com/godotengine/godot/files/9858530/TreeEntered.zip)
Repository: transformers
Issue: Add VATT model
Labels: New model

### Model description

Hey,
as discussed with @NielsRogge a few weeks back, I'd like to work on adding the "VATT: Transformers for Multimodal
Self-Supervised Learning from Raw Video, Audio and Text" model from Google.

It is basically three transformers(Video/Audio/Text) that are trained jointly in an unsupervised manner using contrastive loss functions. For downstreams tasks they fine-tune the Transformers separately, but also explore a version that shares the weights for all modalities.

For Pre-Traning they use text-video-audio triplets from HowTo100M and video-audio pairs from AudioSet. The authors describe how to fine-tune VATT for vision and audio classification tasks and provide weights for the fine-tuned versions.

The backbone for vision is ViT, for audio WaveFormTransformer and for text they are using BERT/T5

### Open source status

- [X] The model implementation is available
- [X] The model weights are available

### Provide useful links for the implementation

Paper: https://arxiv.org/pdf/2104.11178.pdf
GitHub: https://github.com/google-research/google-research/tree/master/vatt
Repository: flutter
Issue: `RenderBox.size accessed beyond the scope of ...` when using custom `PipelineOwner`
Labels: framework,has reproducible steps,P3,found in release: 3.3,found in release: 3.5,team-framework,triaged-framework

This is accompany issue for https://github.com/flutter/flutter/pull/113817. Please see there for *fully reproducible code* and a sample error output.
Repository: rust
Issue: New example of higher-ranked lifetime error
Labels: A-type-system,T-compiler,C-bug,A-async-await,AsyncAwait-Triaged,E-needs-mcve,T-types,A-GATs,A-higher-ranked

As discussed in #92096, I've found another example of higher-ranked lifetime error

Long story short, I was developing a struct that contains a string key and a database connection. For other problems the connection was already owned, but the key was a Cow<'key, str> to avoid allocation when unneeded.
The [constructor](https://github.com/nappa85/logic-lock/blob/cow/src/lib.rs#L107) accepted S: Into<Cow<'key, str>>, so you can pass in even a static str or a String, no problems.

Everything was looking good, mi lib crates using that struct built fine, until I plugged it into my warp webserver, at this point I've got my higher-ranked lifetime error.
You can test yourself in this project where I've replicated the problem: https://github.com/nappa85/hrtb-error

To solve the problem, I've converted the Cow<'key, str> into a String and removed the lifetime from my struct.
To test the solution you simply have to change the pointed branch from "cow" to "owned" inside [Cargo.toml](https://github.com/nappa85/hrtb-error/blob/master/Cargo.toml#L10)
Repository: rust
Issue: Support for WebAssembly externref in non-web environment
Labels: C-enhancement,A-codegen,T-lang,O-wasm

My goal is to compile a function written in Rust to WebAssembly which has as an input/output type `externref`. 
Then I want to call this function as an export in Wasmtime. So, this function will receive an `externref ` as an input and also return one.

The WebAssembly Code in the wat format should look similar to this:

```
(func (export "func") (param externref) (result externref)
... WebAssembly Code ... )
```

I have seen that there exists [`wasm-bindgen`](https://crates.io/crates/wasm-bindgen) for browser hosts. 

Is there a way to produce `externref` as an input and output for exports of functions written in Rust that can be called in non-web environments like Wasmtime?
Repository: storybook
Issue: [Feature Request]: Query param to hide toolbar
Labels: feature request,needs triage

### Is your feature request related to a problem? Please describe

We need to show an embedded story without toolbar but with panels.

The documentation say to use the inner iframe content: https://storybook.js.org/docs/react/sharing/embed#embed-a-story-without-the-toolbar.

But by this way it's not possible to display panels.



### Describe the solution you'd like

I would like a query param `toolbar=false` like it is for `nav`, `panel` or `tabs`

### Describe alternatives you've considered

_No response_

### Are you able to assist to bring the feature to reality?

yes, I can

### Additional context

_No response_
Repository: vscode
Issue: Fresh profile leaks auth info from original profile
Labels: bug,authentication

* my default profile has the pr-pinger installed
* created a fresh new profile
* have not installed extensions
* there is a prompt to login for pr-pinger (which isn't installed)

<img width="476" alt="Screenshot 2022-10-25 at 12 22 01" src="https://user-images.githubusercontent.com/1794099/197748925-ef091a65-ea9f-4711-8a1b-bf7fb9dabcf7.png">
Repository: rust
Issue: Type parameter shadowing concrete type results in confusing error message
Labels: A-diagnostics,T-compiler,D-confusing

```rust
struct Nested<T> {
    foo: T,
}

impl Nested<String> {
    fn string_method_definitely_exists(&self) {}
}

struct Outer<T> {
    bar: Nested<T>
}

impl<String> Outer<String> {
    fn surprise(&self) {
        self.bar.string_method_definitely_exists();
    }
}
```

[playground](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=244b48c38e37a668d01d5ddefeb56684)


The current output is:

```
error[[E0599]](https://doc.rust-lang.org/stable/error-index.html#E0599): no method named `string_method_definitely_exists` found for struct `Nested<String>` in the current scope
  --> src/lib.rs:15:18
   |
1  | struct Nested<T> {
   | ---------------- method `string_method_definitely_exists` not found for this struct
...
15 |         self.bar.string_method_definitely_exists();
   |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `Nested<String>`
   |
   = note: the method was found for
           - `Nested<String>`
```

The confusing part about this is that `Nested<String>` exists when `String` is a type, but does not exist when `Nested<String>` has a type parameter due to `impl<String>` mistake. Textually, both cases are exactly identical, so the error message appears to be mistaken and stating the impossible.

The root cause of this error is completely elsewhere, not pointed out by the error message. Ideally the output should look like:

```
impl<String> Outer<String>
     ^^^^^^ type parameter shadows the `String` type
```
Repository: material-ui
Issue: Add variant prop to Table component
Labels: new feature,component: table,package: material-ui

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Summary 💡

Add the `variant` prop to Table component to make it extendable to add own variants to the component (such as done with `Button` component e.g.). 

### Examples 🌈

Example as for `Button` 
https://github.com/mui/material-ui/blob/master/packages/mui-material/src/Button/Button.d.ts#L85

### Motivation 🔦

I am trying to style the table with different styles without adding extra layers of abstraction. Having the variant prop in the `Table` component would allow me to extend the variants and let me add own variants.
Repository: flutter
Issue: Camera CameraCaptureSession.close() crash
Labels: platform-android,customer: crowd,p: camera,package,a: production,P2,c: fatal crash,team-android,triaged-android

I keep getting these crashes on firebase on various devices:

flutter: 3.3.5
camera: 0.10.0+4

```
Fatal Exception: java.lang.NullPointerException
Attempt to invoke virtual method 'void android.hardware.camera2.CameraCaptureSession.close()' on a null object reference

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.hardware.camera2.CameraCaptureSession.close()' on a null object reference
       at io.flutter.plugins.camera.Camera.closeCaptureSession(Camera.java:1176)
       at io.flutter.plugins.camera.Camera.access$500(Camera.java:100)
       at io.flutter.plugins.camera.Camera$1.onClosed(Camera.java:344)
       at android.hardware.camera2.impl.CameraDeviceImpl$5.run(CameraDeviceImpl.java:215)
       at android.os.Handler.handleCallback(Handler.java:938)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loop(Looper.java:223)
       at android.os.HandlerThread.run(HandlerThread.java:67)
```
Repository: vscode
Issue: One character getting highlighted on mouse click without dragging the mouse
Labels: bug,editor-core

When I click exactly in the middle of a character without dragging the mouse the character gets highlighted. It's as though there's a one pixel wide vertical strip exactly in the middle of the character, that when clicked on the character gets highlighted, even though the mouse was not dragged. It seems to only happen with wide characters like 'w', 'm', 'n', 'u', 'v', and also capital letters. 
I'm using the Consolas font family, 16px font size. The font weight is 'normal'.
I'm using the [IDLE Theme ](https://marketplace.visualstudio.com/items?itemName=gerane.Theme-IDLE)
If you turn on [the setting that lets you move the mouse with the arrow keys](https://mcmw.abilitynet.org.uk/how-to-use-your-keyboard-to-control-the-mouse-pointer-in-windows-11) and turn the mouse keys speed onto the minimum, it makes it easier to reproduce this issue.

vscode 1.72.2
Windows 11

It happens with all extensions disabled.
Repository: vscode
Issue: Set scrollTop on textArea on all platforms, not only mac
Labels: bug,accessibility,editor-core

Follow up https://github.com/microsoft/vscode/issues/105558#issuecomment-1290281964

Repro steps:
Windows, Turn on Windows Magnifier and Dock it

1. Move the cursor up / down
2. Magnifier goes to the wrong location 🐛 

Does not repro when `"editor.accessibilityPageSize": 1`.

@alexdima proposed solution: The `.scrollTop` inside the `<textarea>` is currently [only set on mac](https://github.com/microsoft/vscode/blob/604283bdcf9527e9825d4677aae5217f944be143/src/vs/editor/browser/controller/textAreaHandler.ts#L785-L802). If we would set it on all OSes I think that would help with the need to define `"editor.accessibilityPageSize": 1`
Repository: vscode
Issue: Experiment with activating `onStartupFinished` extensions with a timeout
Labels: feature-request,perf,extension-activation

Right now we do it right on startup, and there might not be an immediate user gain if an extension moves from `*` to `onStartupFinished`.
Repository: pytorch
Issue: Performance issue on Windows with a "benchmark" comparing to Linux and WLS
Labels: module: windows,triaged

### Description
- Started upon discussion on https://pytorch.slack.com/archives/C042FDXSH51/p1664990529414809
- No PyTorch issue created yet. We will need solid reproduction case. It was requested but not provided yet.
- The issue was reported on https://pytorch.org/vision/main/models/generated/torchvision.models.efficientnet_b3.html with  Linknet
- Some benchmarks that can be used:
  - https://github.com/pytorch/benchmark
  - https://github.com/LukasHedegaard/pytorch-benchmark
  - https://github.com/ryujaehun/pytorch-gpu-benchmark

### Acceptance Criteria
- The reported performance issue is identified and analyzed.
- If upstream issue will be created, it's resolved.

### Sub-tasks
- https://github.com/microsoft/ARM-on-Windows-Ecosystem/issues/191
- https://github.com/microsoft/ARM-on-Windows-Ecosystem/issues/192
- https://github.com/microsoft/ARM-on-Windows-Ecosystem/issues/193
- https://github.com/microsoft/ARM-on-Windows-Ecosystem/issues/221

### Documentation
- It seems that there are currently no publicly available PyTorch binaries with debug symbols https://github.com/pytorch/pytorch/issues/11982
Repository: pytorch
Issue: Enable PostLocalSGDOptimizer on CUDA tensors
Labels: oncall: distributed,module: cuda,triaged

### 🚀 The feature, motivation and pitch

Hello!

I am trying to leverage the power of the `PostLocalSGDOptimizer` for averaging gradients during distributed training. However, as mentioned in the [docs](https://pytorch.org/docs/stable/distributed.optim.html#), I see that this optimization is not supported on CUDA tensors.

I think that enabling `PostLocalSGDOptimizer` for CUDA tensors would benefit tremendously the community, and thus, I was wondering: is this currently being worked on?

### Alternatives

_No response_

### Additional context

_No response_

cc @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @H-Huang @kwen2501 @awgu @vincentqb @jbschlosser @ngimel
Repository: pytorch
Issue: pytorch/pytorch cpu official Docker images
Labels: triaged,module: docker

### 🚀 The feature, motivation and pitch

First of all I want to thank you for maintaining PyTorch-based images. I think I can understand the complexity that caring about millions of times downloaded images has to have. I've been using these images since I switched to PyTorch and they never failed me.

Though, lately I've been missing cpu-only images.

The motivation behind this request is basically having a lighter version of them, focused especially in the ability to launch CI test (and potentially other kind of) jobs in which I don't pretend to test my models but just some tensor operations I do with PyTorch.

Not only that, this would also support the deployment of lightweight models that can run on cpu, when you can afford the time trade-off and want to save some cash.

Thank you,

Claudio




### Alternatives

_No response_

### Additional context

_No response_
Repository: pytorch
Issue: C++ Adagrad optimizer doesn't initialize parameter state
Labels: module: cpp,module: optimizer,triaged,actionable

### 🐛 Describe the bug

optim/adagrad.cpp lacks code to initialize parameter state.

Running this code:

```
 auto x=torch::tensor({0.5, 2.0, 4.0}, torch::requires_grad());
 auto y=torch::tensor({1.0, 2.0, 3.0});
 auto o=torch::optim::Adagrad(std::vector<torch::Tensor>{}, torch::optim::AdagradOptions(0.1));
 auto& p=o.param_groups();
 p[0].params().push_back(x);
 auto l=torch::nn::functional::mse_loss(x,y);
 l.backward();
 o.step();
```
will throw:
_'state_[c10::guts::to_string(p.unsafeGetTensorImpl())] != nullptr INTERNAL ASSERT FAILED at "../torch/csrc/api/src/optim/adagrad.cpp":80, please report a bug to PyTorch. state found NULL for the Tensor_ 

the other optimizers have code that searches for the state and initializes if not found, e.g. from sgd.cpp:

```
        auto param_state = state_.find(c10::guts::to_string(p.unsafeGetTensorImpl()));
        if(param_state == state_.end()) {
          buf = torch::clone(d_p).detach();
          auto state = std::make_unique<SGDParamState>();
          state->momentum_buffer(buf);
          state_[c10::guts::to_string(p.unsafeGetTensorImpl())] = std::move(state);
        } else {
          buf = static_cast<SGDParamState&>(*param_state->second).momentum_buffer();
          buf.mul_(momentum).add_(d_p, 1 - dampening);
        }
```
adagrad.cpp doesn't contain this kind of code.

### Versions

This error in all versions since PR  #29335

cc @jbschlosser @vincentqb @albanD
Repository: vscode
Issue: Possible issue with configured affinity on vscode.dev (info message)
Labels: bug,debt,extension-host

Testing #164515

I'm not super well versed with vscode.dev, but when testing the affinity setting here I found this info message confusing:

`2022-10-25 08:45:33.402 [info] Ignoring configured affinity for 'vscodevim.vim' because the extension is unknown or cannot execute for extension host kind: LocalProcess.
2022-10-25 08:45:33.657 [info] Placing extension(s) vscodevim.vim on a separate extension host.`

It sounds like the affinity configuration was both unsuccessful and successful? But maybe I'm just misinterpreting the message.
Repository: terminal
Issue: Add an option to disable reflow on window resize
Labels: Issue-Feature,Product-Conpty,Area-Output

<!-- 
🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨

I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING:
1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement.
2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement.
3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number).
4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement.
5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement.

All good? Then proceed!
-->

# Description of the new feature/enhancement

<!-- 
A clear and concise description of what the problem is that the new feature would solve.
Describe why and how a user would use this new functionality (if applicable).
-->

There is an issue with zsh and powerlevel10k with some configuration. When you use ruler or/and right segment in powerlevel10k and you resize the window, the content is reflowed and a mess happen in the terminal [as described in the powerlevel10k README](https://github.com/romkatv/powerlevel10k#horrific-mess-when-resizing-terminal-window).

![Before resizing](https://user-images.githubusercontent.com/4648342/197822300-8904b905-e5d5-4dd6-835c-4a211a488218.png)

![After resizing](https://user-images.githubusercontent.com/4648342/197822322-68b17a92-bfef-4907-adcf-17cf5ac62956.png)

# Proposed technical implementation details (optional)

An option that allow the user to choose between reflowing or truncating (the buffer or on display) the terminal content will solve this problem.

<!-- 
A clear and concise description of what you want to happen.
-->
Repository: godot
Issue: GDScript 2.0: Packed arrays are not considered constant expressions
Labels: bug,topic:core,topic:gdscript

### Godot version

v4.0.beta3.official [01ae26d31]

### System information

Kubuntu 22.10

### Issue description

Attempting to use a packed array in a constant definition causes "Initializer for a constant must be a constant expression" error.

### Steps to reproduce

```gdscript
# 3.x:
const A = PoolIntArray() # OK.
const B = PoolIntArray([1, 2, 3]) # OK.

# 4.0-dev:
const A = PackedInt32Array() # Error: Initializer for a constant must be a constant expression.
const B = PackedInt32Array([1, 2, 3]) # Error: Initializer for a constant must be a constant expression.
```

### Minimal reproduction project

_No response_

---

**See also:**

* godotengine/godot-proposals#5653
Repository: vscode
Issue: log level CLI is ignored
Labels: bug,log

Testing #164434

In my "hello world" extension my "hello" command looks like this:
```
	let disposable= vscode.commands.registerCommand('logext.helloWorld', () => {
		log.trace('AWs trace message');
		log.debug('AWs debug message');
		log.info('AWs info message');
		log.warn('AWs warning message');
		log.error('AWs error message');
	});
``` 

I'm launching the extension from the launch.json with "--log debug":

<img width="501" alt="CleanShot 2022-10-25 at 18 19 21@2x" src="https://user-images.githubusercontent.com/1898161/197828691-bb3612c6-91af-457f-9063-ed36970e0ead.png">

Running the "hello" command fills the channel with this:

<img width="954" alt="CleanShot 2022-10-25 at 18 01 23@2x" src="https://user-images.githubusercontent.com/1898161/197824123-4b2a5081-43aa-4d92-8c6a-6051e27f2d2c.png">

The log entry for "debug" is missing.

But opening the "Set Log Level" quickpick on my channel correctly shows "debug" as the default level: 

<img width="687" alt="CleanShot 2022-10-25 at 18 20 49@2x" src="https://user-images.githubusercontent.com/1898161/197828921-4c4687d2-ecce-47cd-a7e4-d4fda5992adb.png">
Repository: flutter
Issue: Pin device_version for devicelab Linux android targets
Labels: team-infra,P2,triaged-infra

In existing fleet:
MotoG4 are with android 24, whereas samsung ones are with android 30 or 31. We need to pin the device_version to make sure tasks run on same bots with consistent performance metrics. We can do this when MotoG4 ones are replaced with samsung A02.

More context: https://github.com/flutter/flutter/issues/112804
Repository: go
Issue: proposal: x/crypto/bcrypt: add WithContext-style functions
Labels: Proposal,Proposal-Crypto

(This is my first time contributing to Go, so please let me know if I'm doing something wrong.)

**What's the proposed change?**

`golang.org/x/crypto/bcrypt` has two main functions:

- `GenerateFromPassword([]byte, int)([]byte, error)`
- `CompareHashAndPassword([]byte, []byte) error`

This proposal retains these functions, and adds two more:

- `GenerateFromPasswordWithContext(context.Context, []byte, int)([]byte, error)`
- `CompareHashAndPasswordWithContext(context.Context, []byte, []byte) error`

This is a common Go pattern for functions that obey semantics of a provided context. This context can be used to terminate password hashing early.

**Why is this necessary?**

Password hashing functions like bcrypt are incredibly CPU intensive. For example, hashing a password at the current `bcrypt.DefaultCost` of 10 on my Apple m1 chip takes about 75ms. Furthermore, the implementation of the algorithm is non-cooperative. Go does not preempt Goroutines. Thus, once a few of these Goroutines are scheduled on the majority of threads, all the other Goroutines will be penalized and will incur a latency of 75ms.

By providing this extended API, the algorithm can be changed to cooperate with the rest of the Goroutines by calling `runtime.Gosched()` periodically. The provided context can be thus used to check for cancellation or timeout, and terminate hashing early.

**Who is most likely to benefit?**

Any web server that does some sort of password hashing, typically authentication servers, suffers from unpredictable (and sometimes catastrophic) latencies due to the non-cooperative nature of the current bcrypt implementation. By giving access to this API which uses a cooperative algorithm, these web servers will no longer experience unpredictable latencies. In fact, non-password hashing workloads will be given their fair share of CPU time.

**Who is going to implement this?**

I've already done this in [golang/crypto PR #236](https://github.com/golang/crypto/pull/236). 

**Further Notes**

I've seen issues with this in previous experience. I'm also on the [Supabase](https://github.com/supabase/supabase) [Auth](https://github.com/supabase/gotrue) team.

I wrote a [large note](https://notes.stojan.me/Software/Go+and+passwords) some time ago. This isn't very well reviewed, so take all the math with a grain of salt, but I believe it illustrates the problem and solutions.