sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: test_public_bindings is not robust to various build options
Labels: triaged,topic: build

After building pytorch with USE_DISTRIBUTED=0, test_public_bindings fails locally with:
```
======================================================================
ERROR: test_correct_module_names (__main__.TestPublicBindings)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/test_public_bindings.py", line 370, in test_correct_module_names
    for _, modname, ispkg in pkgutil.walk_packages(path=torch.__path__, prefix=torch.__name__ + '.'):
  File "/raid/rzou/pt/workspace-env/lib/python3.7/pkgutil.py", line 107, in walk_packages
    yield from walk_packages(path, info.name+'.', onerror)
  File "/raid/rzou/pt/workspace-env/lib/python3.7/pkgutil.py", line 107, in walk_packages
    yield from walk_packages(path, info.name+'.', onerror)
  File "/raid/rzou/pt/workspace-env/lib/python3.7/pkgutil.py", line 92, in walk_packages
    __import__(info.name)
  File "/raid/rzou/pt/workspace/torch/distributed/algorithms/_comm_hooks/__init__.py", line 2, in <module>
    from . import default_hooks as default
  File "/raid/rzou/pt/workspace/torch/distributed/algorithms/_comm_hooks/default_hooks.py", line 6, in <module>
    class DefaultState(object):
  File "/raid/rzou/pt/workspace/torch/distributed/algorithms/_comm_hooks/default_hooks.py", line 24, in DefaultState
    process_group: dist.ProcessGroup
AttributeError: module 'torch.distributed' has no attribute 'ProcessGroup'

----------------------------------------------------------------------
```
It would be nice for test_public_bindings to ignore distributed if it wasn't built.
Repository: rust
Issue: Implementing Multiplication without explicit coersion is Impossible
Labels: A-type-system,A-trait-system,T-lang,T-compiler,C-discussion,T-types

I want to [implement multiplication] on a struct that works with all permutations of owned, shared, and mutable references.
```rust
use std::ops::Mul;

struct Foo;

impl Mul for &Foo {
    type Output = Foo;

    fn mul(self, _rhs: Self) -> Self::Output {
        unimplemented!()
    }
}

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn it_works() {
        let ref_mut_foo: &mut Foo = &mut Foo;
        let ref_foo: &Foo = &Foo;
        let owned_foo: Foo = Foo;

        let _ = ref_foo * ref_foo;
        let _ = ref_foo * ref_mut_foo;
        let _ = ref_foo * &owned_foo;

        let _ = ref_mut_foo * ref_foo;
        let _ = ref_mut_foo * ref_mut_foo;
        let _ = ref_mut_foo * &owned_foo;

        let _ = &owned_foo * ref_foo;
        let _ = &owned_foo * ref_mut_foo;
        let _ = &owned_foo * &owned_foo;
    }
}
```

I expected to have to implement `std::ops::Mul` for my `Foo` struct. I realised that means we're consuming the `Foo` struct so instead I implemented it on `&Foo`.  This works for the `&` and owned structs although I have to add an explicit `&` operator to to the owned struct. This seems fair since Rust doesn't do automatic reference coercion and using the `&` operator should be quite natural for consumers of my struct. Unfortunately this does NOT work for `&mut Foo`.  I was under the impression that [rust does automatic coersion from `&mut T` to  `&T`](https://doc.rust-lang.org/reference/type-coercions.html#coercion-types).

I also tried implementing the `std::ops::Mul` trait on `&mut Foo` but you end up with [borrowing issues].

To be clear using `as &Foo` coercion [works]. Just wondering why it's necessary? Is there a way around this to get the semantics I want?

### Meta
```
rustc --version --verbose
rustc 1.65.0-nightly (eaadb8947 2022-08-27)
binary: rustc
commit-hash: eaadb8947b850a025404082f6297766c4680a42a
commit-date: 2022-08-27
host: x86_64-unknown-linux-gnu
release: 1.65.0-nightly
LLVM version: 15.0.0
```

[implement multiplication]: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=4e3b8448aff2436f108d5cf0f98aed6f
[borrowing issues]: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=6267e1af5e94b0267dc4d02126ae3f03
[works]: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=d51ec7a08adcb3a38ea5e109f043d741
Repository: stable-diffusion-webui
Issue: How to allocate memory from 2nd GPU?
Labels: enhancement

Here the error I have run into:

"RuntimeError: CUDA out of memory. Tried to allocate 18.00 GiB (GPU 0; 24.00 GiB total capacity; 20.51 GiB already allocated; 618.87 MiB free; 20.59 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF"

I have a 2nd GPU which could be used to allocate that extra 18GB, however I need help in figuring out how to show SD there is a 2nd GPU present.

Any thoughts?
Repository: PowerToys
Issue: Customizing and sorting Quick Accent 
Labels: Idea-Enhancement,Product-Quick Accent

### Description of the new feature / enhancement

In addition to important language related characters like mentioned here https://github.com/microsoft/PowerToys/issues/20390
it would be great if users could sort the order in which characters are listed in the pop-up, and if you could customize characters and the keys they are shown on.

For example, if you could freely map symbols like "©" to any regular key on the keyboard.

### Scenario when this would be used?

If you make use of specific accents frequently, the fixed order in which characters currently appear in might be counterintuitive and counterproductive. Being able to change the order in which they appear could allow each user to put frequently used characters at the front of the list.

Being able to assign custom characters to keys would be a major improvement for ease of use, compared to remembering and using Alt-codes or creating lists of characters to pick and copy-paste from.

### Supporting information

_No response_
Repository: PowerToys
Issue: Windows version of Math Solver
Labels: Idea-New PowerToy

### Description of the new feature / enhancement

Microsoft edge's math resolver only works for web pages, I'd like tho have something like that but can work everywhere.

### Scenario when this would be used?

when I want to solve a math problem

### Supporting information

_No response_
Repository: flutter
Issue: Fix manual `create` message encoding in engine's platform_view.dart
Labels: a: tests,team,engine,a: platform-views,P2,team-engine,triaged-engine,e: scenario-app

(See https://github.com/flutter/engine/pull/35997 for context.)

testing/scenario_app/lib/src/platform_view.dart in flutter/engine has code that manually constructs the bytes of a StandardMessageCodec-encoded message in order to trigger platform view creation. It does this by individually converting each element of the message into bytes inline in a byte array; this looks reasonable at first (although certainly not easy to read), but is fundamentally flawed because some of the values are `double`s, which must be 64-bit-word aligned relative to the start of the buffer. There is no way in that structure to know how much padding to include programatically, so *any* changes to the length of *anything* before those values can cause the method to become invalid. Which is especially problematic since one of the values is a variable-length string.

Currently the workaround is to always use the same length value for that string, which is fragile. I've documented it to try to save the next person lots of lost time wondering why some platform view identifiers (in a completely different file) work and some don't, but we should fix it so that it's not so fragile in the first place.
Repository: pytorch
Issue: Set dtype if tensor converted to numpy
Labels: needs reproduction,triaged,module: numpy

### 🚀 The feature, motivation and pitch

Currently I have tensors which I need to convert and then subtract them. If I subtract in torch, I get a vector with entries unequal zero. But I subtract the converted tensors in numpy, I get a zero tensor. 

Very likely it is caused by precision loss in the conversion.

So I like to fix the dtype when I use tensor.numpy(), which might solve the issue.

### Alternatives

_No response_

### Additional context

_No response_

cc @mruberry @rgommers
Repository: flutter
Issue: Remove Finders explorer from live testing
Labels: a: tests,framework,P3,team-framework,triaged-framework

Currently, if you `flutter run` a test you have the option to touch various UI elements and it will print possible finders for that element to the console, which then can be used to address the element in tests.

Example print-out:

```
Some possible finders for the widgets at Offset(400.0, 300.0):
  find.text('Test')
```

For reference, this is where the parts of the feature are implemented: https://github.com/flutter/flutter/blob/4d73448b52a4c6a8adf607755db422b456a8b7e3/packages/flutter_test/lib/src/widget_tester.dart#L853

From anecdotal evidence, this feature is not used very much (maybe not used at all) and it is a maintenance burden. I would like to remove it.

This issue serves as a request for comment to see if people are okay with its removal or if there are reasons to keep it.
Repository: pytorch
Issue: About the different ways to print models
Labels: module: printing,triaged

### 🐛 Describe the bug

Hi. I seem to have found a bug in a print model

```
import torchvision.models as models
vgg = models.vgg16( pretrained=True)
net = vgg.features[0:1]
print(net)

net[0].out_channels = 32
print(net)          # Note: the bug is here, the result should not be Conv2d(3, 32, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))

# The following results
# torch.Size([64, 3, 3, 3])  torch.Size([64])
for parameters in net.parameters():
    print(parameters.shape)

summary(net ,(3,112,112))
```

### Versions

```
Collecting environment information...
PyTorch version: 1.9.0
Is debug build: False
CUDA used to build PyTorch: 11.1
ROCM used to build PyTorch: N/A

OS: Ubuntu 18.04.5 LTS (x86_64)
GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Clang version: Could not collect
CMake version: Could not collect
Libc version: glibc-2.10

Python version: 3.7.10 (default, Feb 26 2021, 18:47:35)  [GCC 7.3.0] (64-bit runtime)
Python platform: Linux-4.15.0-142-generic-x86_64-with-debian-buster-sid
Is CUDA available: True
CUDA runtime version: 11.1.105
GPU models and configuration: GPU 0: NVIDIA GeForce RTX 3060
Nvidia driver version: 515.48.07
cuDNN version: Probably one of the following:
/usr/lib/x86_64-linux-gnu/libcudnn.so.8.0.5
/usr/lib/x86_64-linux-gnu/libcudnn_adv_infer.so.8.0.5
/usr/lib/x86_64-linux-gnu/libcudnn_adv_train.so.8.0.5
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_infer.so.8.0.5
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_train.so.8.0.5
/usr/lib/x86_64-linux-gnu/libcudnn_ops_infer.so.8.0.5
/usr/lib/x86_64-linux-gnu/libcudnn_ops_train.so.8.0.5
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

Versions of relevant libraries:
[pip3] info-nce-pytorch==0.1.4
[pip3] numpy==1.20.3
[pip3] numpy-quaternion==2022.4.2
[pip3] torch==1.9.0
[pip3] torchelastic==0.2.0
[pip3] torchtext==0.10.0
[pip3] torchvision==0.10.0
[conda] blas                      1.0                         mkl
[conda] cudatoolkit               11.1.74              h6bb024c_0    nvidia
[conda] info-nce-pytorch          0.1.4                    pypi_0    pypi
[conda] mkl                       2021.4.0           h06a4308_640
[conda] mkl-service               2.4.0            py37h7f8727e_0
[conda] mkl_fft                   1.3.1            py37hd3c417c_0
[conda] mkl_random                1.2.2            py37h51133e4_0
[conda] numpy                     1.20.3                   pypi_0    pypi
[conda] numpy-quaternion          2022.4.2                 pypi_0    pypi
[conda] pytorch                   1.9.0           py3.7_cuda11.1_cudnn8.0.5_0    pytorch
[conda] torchelastic              0.2.0                    pypi_0    pypi
[conda] torchtext                 0.10.0                     py37    pytorch
[conda] torchvision               0.10.0               py37_cu111    pytorch```
Repository: excalidraw
Issue: In the library section library should show list wise or say images should appear with respect to the library name
Labels: enhancement

I'm using the npm package, basically integrating it and I want to use the libraries section such as below: 

currently, I think it shows all library images combine.
let's suppose I'm importing **library A and library B** 

so I want to differentiate it in the library section such as users will know that this **image is from library A** and **this is from library B** .....like this

how to do it?
@dwelle @ad1992
Repository: rust
Issue: is still repeating at this depth when missing $ before `(`
Labels: A-diagnostics,T-compiler

Given the following code: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=2170c66f0413032a3b07da1066131517

```rust
macro_rules! tuple {
    (
        $($i:literal),*
    ) => { 
        ( ($i),* )
    };
}
```

The current output is:

```
error: variable 'i' is still repeating at this depth
 --> src/main.rs:5:12
  |
5 |         ( ($i),* )
  |            ^^
```

Ideally the output should look like:

```
error: variable 'i' is still repeating at this depth
 --> src/main.rs:5:12
  |
5 |         ( ($i),* )
  |            ^^
  did you mean
  |
5 |         ( $($i),* )
  |            ^
```

Theoretically `(...),*` suggest it should suggest repeating block, but I have no clue how to write such diagnostic, so feel free to say it would be bad, because it would be causing false positives.
Repository: godot
Issue: Control node resize in the editor when animation player plays an animation
Labels: bug,topic:editor,confirmed,topic:animation

___

***Bugsquad note:** This issue is specifically for 3.x, the same issue has been fixed already in 4.x, see https://github.com/godotengine/godot/issues/90079*

___ 

### Godot version

3.5 Stable

### System information

Windows 10, Intel Celeron GLES3 / GLES2

### Issue description

In the editor the property rect > size, it's modify from their original value when an animation player plays an animation that modify the position of the control node.

![image](https://user-images.githubusercontent.com/66541547/189182177-363cc380-e057-4718-a134-9bdb5a80d8ca.png)
![image](https://user-images.githubusercontent.com/66541547/189182416-febaac5f-3ae3-49df-94a1-3749f513b6ad.png)

I expect that after playing the animation and stop running the game, the control node size still in 240x160 and doesn't modify their properties.

This looks just to happen when the control node it's child of a canvas layer node

### Steps to reproduce

1. Go to project settings and set the width and height to 240x160 in Display > Window > Size
2. Set the test_width and test_height to 480x320 in Display > Window > Size
3. Set the mode to 2d and Aspect to keep in Display > Window > Stretch
4. Create a new scene whit a Control node as root
5. Set the anchors to Left: 0, Right: 1, Top: 0, Bottom: 1
6. Set the min_size to 240x160
7. Add an animation player node to the Control node.
8. Create a new animation that just set the position of the node to (0, 0) and mark the autoplay on load
9. Create a new scene with a 2d Node as a root
10. Add a canvas layer to this scene
11. Make the Control scene child of the canvas layer
12. Run the game and wait a moment.
13. Close the game and change to the control node scene
14. The Control node size should be modify

### Minimal reproduction project

[minimal_reproduction.zip](https://github.com/godotengine/godot/files/9529006/minimal_reproduction.zip)
Repository: flutter
Issue: Support additional optimizations for opaque platform views
Labels: c: new feature,engine,a: platform-views,P3,team-engine,triaged-engine

For fully opaque platform views, there are couple of optimizations that Flutter currently isn't utilizing. These optimizations should come in handy for lists of platform views, as well as full page/full screen platform views.

## Opaque views can utilize hole punching to reduce overdraw & surface count

A platform view tagged as opaque does not need Flutter to draw content under it. Instead, Flutter can punch a hole through its Surface to reveal the platform view underneath. This is how SurfaceViews are implemented on Android internally. The resulting layer list is simply `[PlatformView (opaque), BackingStore (hole punch)]` going from bottom to top.

## Clips on opaque views can be represented by clips on the hole punched through the overlay surface

A platform view being presented via a hole punched through Flutter's overlay surface can be clipped by applying the clip to the hole punch draw call. There's no need to represent these clips in the mutator stack.

## Opacity on opaque views can be represented by the inverse opacity of the hole punched through the overlay surface

A fully opaque platform view (A = 1.0) clears all the pixels in the hole punch to `1.0 - A`. The opacity mutator stack op can be applied to the hole punch in the same way, by clearing the pixels in the hole punch with the inverse alpha.

cc @flar for potential mutator stack changes, @cyanglaz and @stuartmorgan for platform views on Android/iOS
Repository: yt-dlp
Issue: GloboPlay livestream
Labels: site-bug,triage

### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

- [X] I understand that I will be **blocked** if I remove or skip any mandatory\* field

### Checklist

- [X] I'm reporting a bug unrelated to a specific site
- [X] I've verified that I'm running yt-dlp version **2022.09.01** ([update instructions](https://github.com/yt-dlp/yt-dlp#update)) or later (specify commit)
- [X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
- [X] I've checked that all URLs and arguments with special characters are [properly quoted or escaped](https://github.com/yt-dlp/yt-dlp/wiki/FAQ#video-url-contains-an-ampersand--and-im-getting-some-strange-output-1-2839-or-v-is-not-recognized-as-an-internal-or-external-command)
- [X] I've searched the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues **including closed ones**. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)

### Provide a description that is worded well enough to be understood

Trying to download a live stream from https://globoplay.globo.com/rock-in-rio-4-k/ao-vivo/10898868/

Already extracted the cookies and using this command:

yt-dlp.exe --cookies cookies.txt  https://globoplay.globo.com/rock-in-rio-4-k/ao-vivo/10898868/

### Provide verbose output that clearly demonstrates the problem

- [X] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`)
- [X] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

```shell
[debug] Command-line config: ['-vU', '--cookies', 'cookies.txt', 'https://globoplay.globo.com/rock-in-rio-4-k/ao-vivo/10898868/']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2022.09.01 [5d7c7d6] (win32_dir)
[debug] Python 3.8.10 (CPython 64bit) - Windows-10-10.0.19044-SP0
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: none
[debug] Optional libraries: Cryptodome-3.15.0, brotli-1.0.9, certifi-2022.06.15, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.3
[debug] Proxy map: {}
[debug] Loaded 1670 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: 2022.09.01, Current version: 2022.09.01
yt-dlp is up to date (2022.09.01)
[debug] [GloboArticle] Extracting URL: https://globoplay.globo.com/rock-in-rio-4-k/ao-vivo/10898868/
[GloboArticle] 10898868: Downloading webpage
[download] Downloading playlist: Rio in Rio em 4K! Assista ao vivo no Globoplay
[GloboArticle] Playlist Rio in Rio em 4K! Assista ao vivo no Globoplay: Downloading 0 videos of 0
[download] Finished downloading playlist: Rio in Rio em 4K! Assista ao vivo no Globoplay
```
Repository: godot
Issue: ClassDB does not handle virtual methods completely
Labels: bug,topic:core,documentation

### Godot version

4.0 alpha 16

### System information

Windows 10

### Issue description

Not all methods of ClassDB seem to know how to handle virtual methods. See code below for examples on which work and which don't:

### Steps to reproduce

```gd
print(ClassDB.class_get_method_list(&"Node")) # contains _process among other methods, like expected
print(ClassDB.class_has_method(&"Node", &"_process")) # returns false, this is a bug!
# I have not tried ClassDB::get_method since it has no gdscript bindings, but in the C++ code it looks like it does not handle virtual methods either...
```

### Minimal reproduction project

_No response_
Repository: flutter
Issue: [plugins] investigate is `setMethodCallHandler:nil` required to release the plugin
Labels: team,platform-ios,package,P2,team-ios,triaged-ios

From the documentation: 

```
/**
 * Registers a handler for method calls from the Flutter side.
 *
 * Replaces any existing handler. Use a `nil` handler for unregistering the
 * existing handler.
 *
 * @param handler The method call handler.
 */
- (void)setMethodCallHandler:(FlutterMethodCallHandler _Nullable)handler;
```

We need to investigate if resetting the handler is required to release the plugin. If that's the case, we may have memory issue for all our 1P plugins, since they never unregister the handler.
Repository: pytorch
Issue: Test aten decompositions match their alias information
Labels: triaged,better-engineering,module: primTorch

Came up in discussion with @samdow and @Chillee.

Given an aten operator that has some schema, its decomposition should match the schema's alias information. For example, an out-of-place operation like at::sin must not mutate its input or return a Tensor whose storage aliases the input's.

We have decompositions of ATen operators somewhere in the codebase. We also have decomposition OpInfo tests. So this issue is just to add additional checks that an operator's decomposition is faithful to its schema 

cc @ezyang @mruberry @ngimel @Lezcano @fdrocha
Repository: vscode
Issue: De-Indent code on paste into IW code cell
Labels: bug,interactive-window

<!-- ⚠️⚠️ 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. -->

One thing I find myself doing VERY often is copying a small chunk of code from a python file (which could be eg inside a loop, and indented x times) and pasting it into the IW code entry cell.

It would be super nice if on code paste to IW cell vscode could automatically de-indent to match the current indent scope.

### Actual:
<img width="540" alt="image" src="https://user-images.githubusercontent.com/29611875/189215937-6220d5c3-c071-4481-bd85-b93613ba8363.png">


### Would be nice:
<img width="498" alt="image" src="https://user-images.githubusercontent.com/29611875/189216021-d4d45c30-e458-44a0-9664-bfa652ded7a4.png">

### Or to match correct indent level:
<img width="343" alt="image" src="https://user-images.githubusercontent.com/29611875/189216202-90883d14-2af6-478d-8c63-a7a00525b0b8.png">