sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: opencv
Issue: Python: Get the VideoDevice's name
Labels: feature

### Describe the feature and motivation

Some part of my code creates a VideoDevice with the ID. Some other part of my code receives that VideoDevice, but needs to special case some devices to work around device-specific bugs.

I also would like to like all available cameras names, but can't do that with OpenCV, so I'm using pygrabber for it.

For now my best workaround is to keep a mapping of name to id somewhere (names obtained thanks to pygrabber), but that mapping could change at any time if the user unplugs any device.

It does seem to be part of the videoDevice class, can this be exposed in Python? https://github.com/opencv/opencv/blob/master/modules/videoio/src/cap_dshow.cpp#L445-L446

### Additional context

Using cv2 (OpenCV-Python) 4.7.0
Repository: excalidraw
Issue: Inserted images become blurry / fuzzy, exports have large filesize (image compression)
Labels: images

Image compression in Excalidraw could be improved in 2 ways:

## 1) Blurry / Fuzzy Images

Images inserted into Excalidraw are compressed, causing blurriness:

<img width="1196" alt="Screenshot 2023-04-24 at 18 49 24" src="https://user-images.githubusercontent.com/1935696/234063424-e2247c5b-a455-4674-af75-c6a894334c87.png">

Original screenshot:

<img width="1440" alt="Screenshot 2023-04-19 at 15 07 35" src="https://user-images.githubusercontent.com/1935696/234063690-97e0bedd-095a-43de-8c8c-9db264755d7f.png">

This is mentioned over here in #4236:

> @dwelle in [comment 1516594659](https://github.com/excalidraw/excalidraw/issues/4236#issuecomment-1516594659) The images are being compressed. We can try improve the compression, as well as increasing the size limits.

Also in #4236, another example image was presented by @jwdinkel:

> @jwdinkel in [comment 1407579257](https://github.com/excalidraw/excalidraw/issues/4236#issuecomment-1407579257): I'd like to understand if there's a way to make the images pasted into Excalidra crisp like on miro.com.
>
> I find the images rather fuzzy and the text is not crisp.

![215309605-ec2f2409-c936-45f0-b078-de0f9540633e](https://user-images.githubusercontent.com/1935696/234064121-7a36dc0a-aae6-4c1f-b562-024417ff1048.png)

## 2) Large export filesize

Inserting an unoptimized screenshot with 169 KB filesize causes the Excalidraw export to become 626 KB:

- https://github.com/excalidraw/excalidraw/issues/6515#issuecomment-1522134010
Repository: excalidraw
Issue: Inserted images have incorrect colors in dark mode
Labels: dark-theme

When switching Excalidraw to dark mode, the color representation of images is off (tested browser: Chrome 112 on macOS):

https://user-images.githubusercontent.com/1935696/234062899-3e4c69d8-1f9a-40d6-93cd-87df9fdf2ddc.mp4

Original screenshot:

<img width="1440" alt="Screenshot 2023-04-19 at 15 07 35" src="https://user-images.githubusercontent.com/1935696/234062961-09149c41-7abd-4edf-b9ec-b672252c16d7.png">

This color shift issue (with dark mode) also has some explanation over here (although the author @anatoliibakhtin is actually reporting a different issue):

- https://github.com/excalidraw/excalidraw/issues/5312

It is apparently caused by the color inversion:

> @dwelle in [comment 1157697888](https://github.com/excalidraw/excalidraw/issues/5312#issuecomment-1157697888): we invert the colors using CSS, and then individually apply a counter filter on image elements

Also mentioned in #4616:

> @dwelle in [comment ](https://github.com/excalidraw/excalidraw/issues/4616#issuecomment-1250112100): Not something we do by choice, but due to how our dark mode works right now.
> 
> I assume you're using Safari? On other browsers that support canvas filters we selectively invert the images back (the double invert isn't 100% accurate, but for now it seems serviceable).

I am in Chrome 112 macOS, and this is a noticeable, undesirable color shift.

Would be amazing to improve the "counter filter" to work better in non-Safari browsers (also in Safari would be ideal)
Repository: vscode
Issue: Git - git stash view
Labels: feature-request,git

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->

Add a git stash view under the source control tab which shows a list of stashes and has buttons to apply, pop or drop on every stash in the list. There should also be a button to push staged changes to a new stash and a button delete all stashes with a confirmation dialog.

I think this would be much more usable than the current approach with menu entries.
Repository: rust
Issue: Poor diagnostic combining #[derive(Debug)] with #[repr(C, packed)] struct
Labels: A-diagnostics,T-compiler,A-repr-packed

### Code

```Rust
#[derive(Debug)]
pub(crate) struct UInt16LE {
    bytes: [u8; 2],
}

#[derive(Debug)]
#[repr(C, packed)]
pub(crate) struct Header {
    version: u8,
    kind: UInt16LE,
}
```


### Current output

```Shell
error[E0507]: cannot move out of `self.kind` which is behind a shared reference
  --> src/lib.rs:11:5
   |
7  | #[derive(Debug)]
   |          ----- in this derive macro expansion
...
11 |     kind: UInt16LE,
   |     ^^^^^^^^^^^^^^ move occurs because `self.kind` has type `UInt16LE`, which does not implement the `Copy` trait
   |
   = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
```


### Desired output

```Shell
"cannot form reference to `self.kind` because struct `Header` is `repr(packed)`"
"note: `self.kind` has type `UInt16LE`, which does not implement the `Copy` trait"
```


### Rationale and extra context

I thought this was a regression in 1.69, and it sort of was, but presumably the old code was incorrect, since you can't form a reference to a field in a `repr(packed)` struct. Nothing in the diagnostic pointed me to that, though, so I had to figure out why this struct was different.

### Other cases

_No response_

### Anything else?

_No response_
Repository: flutter
Issue: Android spell check red underline
Labels: a: text input,c: new feature,platform-android,framework,c: proposal,P3,team-design,triaged-design

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Use case

When tapping a misspelled word on Android, the red underline disappears and is replaced by a text/composing underline.  Here is a screenshot of Flutter now:

<img width="200" src="https://user-images.githubusercontent.com/389558/233474886-ae088057-f0ca-4f31-8541-1d658f9794b5.png" />

### Proposal

Instead, both the red underline and the text/composing underline should be shown.  Here is a screenshot of native Android:

![Screenshot 2023-04-24 at 10 27 35 AM](https://user-images.githubusercontent.com/389558/234072119-b59fd19b-39ae-4cf4-99ec-7d88ab3c4bfd.png)
Repository: flutter
Issue: Android spell check suggestions should appear in the keyboard when supported
Labels: a: text input,c: new feature,platform-android,framework,c: proposal,P3,team-android,triaged-android

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Use case

Flutter currently shows Android's spell check suggestions in a context menu, which is out of date.  This is what it looks like in Flutter now:

<img width="200" src="https://user-images.githubusercontent.com/389558/234075267-8efa6032-47d0-4cea-9ea4-79f1b0fee728.png" />



### Proposal

As of the last few versions of Gboard on native Android, the spell check suggestions should appear here:

<img width="200" src="https://user-images.githubusercontent.com/389558/234074829-f226430e-e8ec-4301-9e5b-283faa5b1bd9.png" />
Repository: opencv
Issue: Capture card throws `(-2:Unspecified error) could not retrieve channel 0 in function 'cv::VideoCapture::retrieve'`
Labels: bug

### System Information

OpenCV python version:  4.7.0.72
Operating System: Windows 10.0.19045 Build 19045
Python 3.9.15


### Detailed description

Trying to use OpenCV with my Startech USB3HDCAP (seen as `CY3014 USB, Analog 01 Capture`. For reference, here's what OBS sees:
![image](https://user-images.githubusercontent.com/1350584/234078074-133d4f5c-0e48-4fe7-984c-4d8b3939d5bc.png)

I have made sure the capture card was not in use by another program (and when it is, it's a different error anyway).


### Steps to reproduce

```python
import cv2
vc = cv2.VideoCapture(1)  # My capture card is at index 1
vc.setExceptionMode(True)
vc.read()
```

```
Traceback (most recent call last):
  File "c:\Users\Avasam\Desktop\import cv2.py", line 4, in <module>
    vc.read()
cv2.error: OpenCV(4.7.0) D:\a\opencv-python\opencv-python\opencv\modules\videoio\src\cap.cpp:365: error: (-2:Unspecified error) could not retrieve channel 0 in function 'cv::VideoCapture::retrieve'
```

### Issue submission checklist

- [X] I report the issue, it's not a question
- [X] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [X] I updated to the latest OpenCV version and the issue is still there
- [X] There is reproducer code and related data files (videos, images, onnx, etc)
Repository: storybook
Issue: [Documentation]: angular: missing documentation for bootstrapApplication and moduleMetadata
Labels: documentation,needs triage

### Describe the problem

Missing documentation for:
- bootstrapApplication
- moduleMetadata

Some info is on the readme https://github.com/storybookjs/storybook/blob/next/code/frameworks/angular/README.md

### Additional context

_No response_
Repository: go
Issue: x/build: `502 Bad Gateway` ssh'ing to an `android-amd64-emu` gomote
Labels: Builders,OS-Android,NeedsInvestigation

<details>
<summary><code>go1.20.3 version -m $(which gomote)</code></summary>

<pre>
~/go-review$ go1.20.3 version -m $(which gomote)
/usr/local/google/home/bcmills/bin/gomote: go1.20.3
	path	golang.org/x/build/cmd/gomote
	mod	golang.org/x/build	v0.0.0-20230424163526-a977bfd503ff	h1:dMuFf7qzs3g/lb1o2AqYPntBtzgEY/KVWU1jk6cSHHI=
	dep	cloud.google.com/go/compute	v1.3.0	h1:mPL/MzDDYHsh5tHRS9mhmhWlcgClCrCa6ApQCU6wnHI=
	dep	github.com/aws/aws-sdk-go	v1.30.15	h1:Sd8QDVzzE8Sl+xNccmdj0HwMrFowv6uVUx9tGsCE1ZE=
	dep	github.com/golang/groupcache	v0.0.0-20210331224755-41bb18bfe9da	h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE=
	dep	github.com/golang/protobuf	v1.5.2	h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw=
	dep	github.com/googleapis/gax-go/v2	v2.1.1	h1:dp3bWCh+PPO1zjRRiCSczJav13sBvG4UhNyVTa1KqdU=
	dep	github.com/jmespath/go-jmespath	v0.4.0	h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg=
	dep	go.opencensus.io	v0.23.0	h1:gqCw0LfLxScz8irSi8exQc7fyQ0fKQU/qnC/X8+V/1M=
	dep	golang.org/x/net	v0.7.0	h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g=
	dep	golang.org/x/oauth2	v0.0.0-20220223155221-ee480838109b	h1:clP8eMhB30EHdc0bd2Twtq6kgU7yl5ub2cQLSdrv1Dg=
	dep	golang.org/x/sync	v0.0.0-20220722155255-886fb9371eb4	h1:uVc8UZUe6tr40fFVnUP5Oj+veunVezqYl9z7DYw9xzw=
	dep	golang.org/x/sys	v0.5.0	h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU=
	dep	golang.org/x/text	v0.7.0	h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo=
	dep	golang.org/x/time	v0.0.0-20210723032227-1f47c861a9ac	h1:7zkz7BUtwNFFqcowJ+RIgu2MaV/MapERkDIy+mwPyjs=
	dep	google.golang.org/api	v0.70.0	h1:67zQnAE0T2rB0A3CwLSas0K+SbVzSxP+zTLkQLexeiw=
	dep	google.golang.org/genproto	v0.0.0-20220222213610-43724f9ea8cf	h1:SVYXkUz2yZS9FWb2Gm8ivSlbNQzL2Z/NpPKE3RG2jWk=
	dep	google.golang.org/grpc	v1.44.0	h1:weqSxi/TMs1SqFRMHCtBgXRs8k3X39QIDEZ0pRcttUg=
	dep	google.golang.org/protobuf	v1.28.1	h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175w=
	build	-buildmode=exe
	build	-compiler=gc
	build	CGO_ENABLED=1
	build	CGO_CFLAGS=
	build	CGO_CPPFLAGS=
	build	CGO_CXXFLAGS=
	build	CGO_LDFLAGS=
	build	GOARCH=amd64
	build	GOOS=linux
	build	GOAMD64=v1
</pre>

</details>


### What did you do?

```
$ gomote create android-amd64-emu
$ gomote ssh bcmills-android-amd64-emu-0
```


### What did you expect to see?

Successful `ssh` connection to a host with an Android emulator environment installed.


### What did you see instead?

```
$ /usr/bin/ssh -o CertificateFile=/tmp/.gomote/id_ed25519-2589013181-cert.pub -i /usr/local/google/home/bcmills/.config/gomote/.ssh/id_ed25519 -p 2222 bcmills-android-amd64-emu-0@farmer.golang.org
Enter passphrase for key '/usr/local/google/home/bcmills/.config/gomote/.ssh/id_ed25519':
# Welcome to the gomote ssh proxy.
# Connecting to/starting remote ssh...
#
failed to connect to ssh on bcmills-android-amd64-emu-0: unexpected /connect-ssh response: 502 Bad Gateway, dial tcp [::1]:2200: connect: connection refused

Connection to farmer.golang.org closed.
```
Repository: pytorch
Issue: Deprecate torch.distributed.algorithms._optimizer_overlap
Labels: oncall: distributed

### 🚀 The feature, motivation and pitch

After a discussion with @rohan-varma, we agreed we should deprecate and remove [torch.distributed.algorithms._optimizer_overlap](https://github.com/pytorch/pytorch/blob/7d2a18da0b3427fcbe44b461a0aa508194535885/torch/distributed/algorithms/_optimizer_overlap/optimizer_overlap.py) in favor of [torch.distributed.optim.apply_optimizer_in_backward](https://github.com/pytorch/pytorch/blob/7d2a18da0b3427fcbe44b461a0aa508194535885/torch/distributed/optim/apply_optimizer_in_backward.py).

This deprecation would involve:
- [ ] Adding a deprecation warning for its usage
- [ ] Offboarding any use cases to use the other API
- [ ] Removing the extra code that came along with it, for example any documentation and helpers like [torch.distributed.algorithms.ddp_comm_hooks](https://github.com/pytorch/pytorch/blob/7d2a18da0b3427fcbe44b461a0aa508194535885/torch/distributed/algorithms/ddp_comm_hooks/optimizer_overlap_hooks.py)

### Alternatives

_No response_

### Additional context

_No response_

cc @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @H-Huang @kwen2501 @awgu
Repository: PowerToys
Issue: Shortcut Win + Shift + D not working for Always On Top
Labels: Issue-Bug,Product-Always On Top,Priority-2,Status-Reproducible

### Microsoft PowerToys version

0.69.1

### Installation method

PowerToys auto-update

### Running as admin

Yes

### Area(s) with issue?

Always on Top

### Steps to reproduce

Put Win + Shift + D as the shortcut for Always On Top

### ✔️ Expected Behavior

It should enable Always On Top for the window

### ❌ Actual Behavior

It does nothing but the same shortcut worked before

### Other Software

_No response_
Repository: godot
Issue: Can't access any methods of GDScript classes (except .new()) unless you first cast them as Script or GDScript
Labels: bug,topic:gdscript

### Godot version

4.0.2

### System information

Windows 11

### Issue description

You can't use any methods of a class (except .new()) unless you explicitly cast it to Script or GDScript.

```gdscript
class Example:
	pass;

func _init():
	print(Example is GDScript); # true
	print((Example as GDScript).has_source_code()); # false
	print((Example as Script).has_source_code()); # false
	print(Example.has_source_code()); # error
	
	var typed_implicit := Example; # also doesn't work
	print(typed_implicit.has_source_code()); # error
```

There is also some other... strangeness going on.

```gdscript
func _init():
	var untyped = Example;
	
	# print(untyped.has_source_code()); # error
	# print(Example.has_source_code); # error
	print(untyped.has_source_code); # works??
	print(untyped.has_source_code.call()); # also works??
	print(Example["has_source_code"].call()); # also works
```

Likely related to #73140

Edit: You actually can't even access .new() outside of calling it.

```gdscript
func _init():
	
	print(Example.new()); # works, of course
	print(Example["new"]); # works
	print(Example.new); # error
```

Also, everything works out the same if Example is a class_name in its own file instead of an inner class.

### Steps to reproduce

Attempt to access the methods of a GDScript-based class without first casting it to Script or GDScript.

### Minimal reproduction project

[MRP.zip](https://github.com/godotengine/godot/files/11314125/MRP.zip)
Repository: godot
Issue: Stashed actions from Blender 
Labels: bug,topic:import,topic:3d

### Godot version

v4.0.2.stable.arch_linux

### System information

Arch Linux

### Issue description

Stashed animations from Blender cannot be imported into Godot if you open the .blend file. They just aren't there. But if you export the .blend to glTF, everything works as it should. 

Animations in Blender
![image](https://user-images.githubusercontent.com/16352397/234109757-4c78dba9-fbe2-4592-a311-424b5b051dd7.png)

Missing animations when opening a .blend file
![image](https://user-images.githubusercontent.com/16352397/234109964-c62ceb89-9d01-4ca5-8698-d00ee3a4e0b8.png)

Animations in Godot with glTF
![image](https://user-images.githubusercontent.com/16352397/234110181-e9d4fcff-c282-4177-9e91-a51ed89429f6.png)



### Steps to reproduce

A model in Blender with several stashed animations (NLA) without armature and bones 

### Minimal reproduction project

[Project.zip](https://github.com/godotengine/godot/files/11314516/Project.zip)
Repository: flutter
Issue: [cocoon] cocoonService should return error codes on server requests  
Labels: team-infra,P2,triaged-infra

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Use case

After this change lands, https://github.com/flutter/cocoon/pull/2646, the flutter build dashboard "logs out" the current user on *any* backend error when doing authenticated requests.

This may cause false "logouts" if the error is anything other than 401/403 (imagine a 404 or a 500).


### Proposal

In reality, we should only log out the user if the request failed because of a failure in authentication (status codes 401 and 403).

The cocoonService methods must be modified to return `Future<bool>`/`Future<CocoonResponse>` to something that includes the statusCode of the response. Also, it'd help if the response was more standardized that now.

(Mainly) affected methods:

* https://github.com/flutter/cocoon/blob/main/dashboard/lib/service/cocoon.dart#L53-L60

The `CocoonResponse` might need some more data for the "error" bits (I'd add at least a status code)
Repository: Web-Dev-For-Beginners
Issue: Improve accessibility
Labels: no-issue-activity

**Is your feature request related to a problem? Please describe.**
The choice of colour with the title element `app-name-link` may cause difficulty reading it.

**Describe the solution you'd like**
Change title (`app-name-link`) colour from #0B87DA to #0e75b9. This improves accessibility: passes AAA for large text.

**Describe alternatives you've considered**
Making the text bold, but from a UX point of view this would put more attention on the title rather than the navigation section. This would make the process of navigating longer due to increased visual clutter.

**Additional context**
![image](https://user-images.githubusercontent.com/118992509/234121201-bf1c3050-facd-462a-8f41-824027ad4f6a.png)
![image](https://user-images.githubusercontent.com/118992509/234121487-ea600d2a-3cc2-4d3e-9f87-c651a6125b71.png)

I noticed the change in colours are more noticeable, so maybe change the theme colour as a whole:
![image](https://user-images.githubusercontent.com/118992509/234121958-ce96f1d0-d75c-4bb6-8d22-ffdc500a20b8.png)
Repository: node
Issue: `message` tests can be migrated from python to JS
Labels: test,good first issue,code-and-learn

See https://github.com/nodejs/node/pull/47498 for an example of such a migration
`pseudo-tty` tests can migrate as well, but that will require some more work using something like https://github.com/microsoft/node-pty or similar
Repository: godot
Issue: Godot complains if your user directory is missing one of several folders
Labels: enhancement,platform:windows,topic:porting

### Godot version

v4.0.2.stable.official

### System information

Windows 10, GTX 1080Ti, Vulkan

### Issue description

`platform/windows/os_windows.cpp:1428 - Condition "res != ((HRESULT)0x00000000)" is true. Returning: String()`

Reading the code at this location, it looks like what is happening is that Godot is not finding my `c:/users/<user>/Downloads/` directory. (Which I wanted to be able to put an icon on, so was forced to replace it)

Mostly, this issue is about resolving the lack of clear communication to the user about what this is.
It would also pay to add a flag for these OS Directories that are not important to the function of the service, and use a alternate location if there is an error with any of them.

Very minor issue, doesn't seem to actually interfere with usage.

### Steps to reproduce

Delete c:/users/<user>/Downloads

Start Godot 4.0.2

See error

### Minimal reproduction project

N/A
Repository: pytorch
Issue: [inductor] Autotuning leads to non determinism
Labels: feature,triaged,oncall: pt2,module: inductor

### 🐛 Describe the bug

https://github.com/pytorch/pytorch/pull/99851 disables autotuning when torch.use_deterministic_algorithms are ON.

However, we should due diligence to see if we can remove or alteast reduce non-determinism with autotuning. 

### Error logs

_No response_

### Minified repro

_No response_

### Versions

NA

cc @ezyang @msaroufim @wconstab @bdhirsh @zou3519 @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @peterbell10 @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @aakhundov @ColinPeppler @soumith @ngimel @Xia-Weiwen @desertfire
Repository: pytorch
Issue: DISABLED test_sum_fp16 (__main__.TestCuda)
Labels: triaged,module: flaky-tests,skipped,module: unknown

Platforms: rocm, linux



This test was disabled because it is failing in CI. See [recent examples](https://hud.pytorch.org/flakytest?name=test_sum_fp16&suite=TestCuda) and the most recent trunk [workflow logs](https://github.com/pytorch/pytorch/runs/undefined).

Over the past 3 hours, it has been determined flaky in 11 workflow(s) with 11 failures and 11 successes.

**Debugging instructions (after clicking on the recent samples link):**
DO NOT ASSUME THINGS ARE OKAY IF THE CI IS GREEN. We now shield flaky tests from developers so CI will thus be green but it will be harder to parse the logs.
To find relevant log snippets:
1. Click on the workflow logs linked above
2. Click on the Test step of the job so that it is expanded. Otherwise, the grepping will not work.
3. Grep for `test_sum_fp16`
4. There should be several instances run (as flaky tests are rerun in CI) from which you can study the logs.


Test file path: `test_cuda.py`

ConnectionTimeoutError: Connect timeout for 5000ms, GET https://raw.githubusercontent.com/pytorch/pytorch/master/test/test_cuda.py -2 (connected: false, keepalive socket: false, socketHandledRequests: 1, socketHandledResponses: 0)
headers: {}

cc @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport