sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: vscode
Issue: Autoclosing pairs is represented as object and as array of string
Labels: bug,editor-core,editor-autoclosing

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes/No

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
Version: 1.81.0-insider (user setup)
Commit: 6445d93c81ebe42c4cbd7a60712e0b17d9463e97
Date: 2023-08-02T12:36:29.806Z
Electron: 22.3.18
ElectronBuildId: 22689846
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Windows_NT x64 10.0.22621

Steps to Reproduce:

autoClosing pairs are sometimes represented as an array of strings instead of be an instance of `IAutoClosingPair`, that causes this line to throw because of undefined objects. From 'language-configuration.json' file:
``` json
 "autoClosingPairs": [
        [
            "{",
            "}"
        ],
        [
            "[",
            "]"
        ],
        [
            "(",
            ")"
        ],
        {
            "open": "\\",
            "close":"\\",
            "notIn": [
                "string"
            ]
        }
    ],
```
Repository: go
Issue: net: support zero-copy send on TCPConn when reading from File via SectionReader
Labels: Performance,NeedsInvestigation

Currently `net.TCPConn` has [dedicated support for this, but only for `LimitedReader`](https://cs.opensource.google/go/go/+/refs/tags/go1.20.7:src/net/sendfile_linux.go;l=23-29). Having dedicated support also for `SectionReader` would allow using the same FD concurrently to send the same file to multiple TCP connections, as well as supporting other use-cases (e.g. range requests).

This is obviously currently possible but without zero-copy support, resulting in the fallback `genericReadFrom` being used (that, in addition to requiring more syscalls, also requires more allocations):

<img width="821" alt="image" src="https://github.com/golang/go/assets/408018/ea7e1e44-9b3b-4a1f-825c-12a06078af1c">

I have a PoC for this on https://github.com/golang/go/commit/deea4f639b23cd63baf92cf3e7a1ee4a2b049e17
Repository: PowerToys
Issue: MouseWithoutBorders move relatively regression (with bisect)
Labels: Issue-Bug,Product-Mouse Without Borders

### Microsoft PowerToys version

0.72.0

### Installation method

PowerToys auto-update

### Running as admin

No

### Area(s) with issue?

Mouse Without Borders

### Steps to reproduce

Computer 1 has one monitor
Computer 2 has three side by side.  
Arrange them in MWB with Computer 1 to the right of Computer 2 so the screens are as below
2 2 2 1
Use mouse attached to computer 1
Select "move mouse relatively" so it does not move too fast when on the monitors of computer 2.
Try to move the mouse from computer 2 to computer 1 (move it off the right edge of computer 2's rightmost monitor)
It will frequently warp back to the left side of that monitor instead of moving to computer 1's monitor.


### ✔️ Expected Behavior

I would expect the cursor to move to computer 1's monitor

### ❌ Actual Behavior

It will frequently warp back to the left side of that monitor instead of moving to computer 1's monitor.

### Other Software

_No response_
Repository: stable-diffusion-webui
Issue: [Feature Request]: Add launch parameter to use HuggingFace Spaces
Labels: enhancement

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What would your feature do ?

Currently, by using the `--share` flag, a 72-hour Gradio link will be generated. The output said that we can use HuggingFace Spaces for a permanent link. However, there is no way we can set the attributes of HuggingFace Spaces (link, credentials, etc.) and the Space requires an `app.py` to be committed and pushed to the Spaces repo.

How can we make use of HuggingFace Space?

Related unanswered discussions:
https://github.com/AUTOMATIC1111/stable-diffusion-webui/discussions/1146

### Proposed workflow

1. (Optional, needed for private Space) Logged in with HuggingFace CLI and stored the credentials in keychain
2. Launch SD Web UI via `./webui.sh --xformers --opt-sdp-no-mem-attention --enable-insecure-extension-access --api --share huggingface-username/huggingface-space-name`
3. The launch script will automatically connect and update the contents in the specified HuggingFace Space
4. The SD Web UI will be launched with a HuggingFace Space link instead of 72-hour Gradio link


### Additional information

_No response_
Repository: pytorch
Issue: Distributed torch.linalg.eigh (and other functions) on cuda using cuSOLVERMG
Labels: module: cuda,triaged,module: linear algebra

### 🚀 The feature, motivation and pitch

The current torch.linalg system seems to primarily call cuSOLVER for many of the operations. I was wondering if it would be possible to ``upgrade" this to use cuSOLVERMG, which is the distributed version of cuSOLVER. Doing this would allow us to, for example, take a eigenvalue decomposition of larger matrices without OOMing.

### Alternatives

_No response_

### Additional context

_No response_

cc @ptrblck @jianyuh @nikitaved @pearu @mruberry @walterddr @IvanYashchuk @xwang233 @Lezcano
Repository: godot
Issue: Crash in ubuntu 22.10
Labels: bug,platform:linuxbsd,topic:rendering,topic:porting,topic:thirdparty,needs testing

### Godot version

v4.1.1.stable.mono.official [bd6af8e0e]

### System information

Ubuntu Core 22 - Vulkan (Compatibility) - KABINI (LLVM 15.0.7, DRM 2.50, 5.19.0-46-generic) - AMD E1-2100 APU with Radeon(TM) HD Graphics (2 Threads)

### Issue description

I use the app normally for about 10-15 minutes, but suddenly the screen freezes and I can't control anything, by restarting the app the same loop repeat. Some people said that it might be a compatibility problem with the graphics card (Radeon HD 8210) but it doesn't happen in the early versions (3.5 stable).

### Steps to reproduce

I don't find anything that could create the bug, it happened sometimes while saving the scene, while debugging it, or just when writing the script

### Minimal reproduction project

It happened in all the projects I tried, some I created in the new version, and others were imported from the older version
Repository: go
Issue: runtime: segmentation violation while adjusting stack pointer
Labels: NeedsInvestigation,compiler/runtime

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.20.6 linux/amd64
</pre>

### Does this issue reproduce with the latest release?
Yes

### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
GO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/root/coding/golang/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/root/coding/golang"
GOPRIVATE=""
GOPROXY="https://goproxy.cn,direct"
GOROOT="/root/.go/go1.20.6"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/root/.go/go1.20.6/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.20.6"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK=""
CGO_CFLAGS="-O2 -g"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-O2 -g"
CGO_FFLAGS="-O2 -g"
CGO_LDFLAGS="-O2 -g"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build649550129=/tmp/go-build -gno-record-gcc-switches"
</pre></details>

### What did you do?
When I attempt to debug my project in VS Code by connecting to WSL2 using remote-wsl, I encounter a fatal error. The error occurs with a high probability, but it is not guaranteed to happen every time.


### What did you expect to see?
Debug normally

### What did you see instead?
```
"unexpected signal during runtime execution"
Stack:
	0  0x0000000000448720 in runtime.throw
	    at /root/.go/go1.20.6/src/runtime/panic.go:1040
	1  0x0000000000460865 in runtime.sigpanic
	    at /root/.go/go1.20.6/src/runtime/signal_unix.go:825
	2  0x000000000042c010 in runtime.scanstack
	    at /root/.go/go1.20.6/src/runtime/mgcmark.go:810
	3  0x000000000042acc5 in runtime.markroot.func1
	    at /root/.go/go1.20.6/src/runtime/mgcmark.go:239
	4  0x000000000042a979 in runtime.markroot
	    at /root/.go/go1.20.6/src/runtime/mgcmark.go:213
	5  0x000000000042cab8 in runtime.gcDrain
	    at /root/.go/go1.20.6/src/runtime/mgcmark.go:1069
	6  0x0000000000428aed in runtime.gcBgMarkWorker.func2
	    at /root/.go/go1.20.6/src/runtime/mgc.go:1367
	7  0x000000000047e409 in runtime.systemstack
	    at /root/.go/go1.20.6/src/runtime/asm_amd64.s:496
	8  0x00007f6b2bffe9ff in ???
	    at ?:-1
	    error: input/output error
	(truncated)
```
Repository: PowerToys
Issue: CAPSLOCK to switch layouts
Labels: Needs-Triage

### Description of the new feature / enhancement

Caps can be mapped to alt+shift.

### Scenario when this would be used?

No real person uses capslock to toggle. Well, some do and the lord to judge se persons.
Capslock must be of use - let replace painful alt+shift or ctr+space with a single button.
But it's impossible even to map caps to some combo. Let make it free and give some meaning to life of the button!

### Supporting information

_No response_
Repository: stable-diffusion-webui
Issue: [Bug]: extra_networks_lora.py error converting string to float (FIX)
Labels: asking-for-help-with-local-system-issues

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

The error doesn't stop the webui but it does pump out a lot of errors.

te_multiplier = float(vTemp) if len(params.positional) > 1 else 1.0
ValueError: could not convert string to float: '0. 6'

### Steps to reproduce the problem

Open file:
extra_networks_lora.py

Line 25:
            te_multiplier = float(params.positional[1]) if len(params.positional) > 1 else 1.0


Replace with:
            import re
            import locale
            vTemp = params.positional[1]
            vTemp = vTemp.replace(',', '.') # replace comma with period
            vTemp = re.sub(r'\s+', '', vTemp) # remove whitespace

### What should have happened?

Convert string to float correct and not error

### Version or Commit where the problem happens

b010eea

### What Python version are you running on ?

Python 3.9.x (below, no recommended)

### What platforms do you use to access the UI ?

Linux

### What device are you running WebUI on?

Nvidia GPUs (RTX 20 above)

### Cross attention optimization

xformers

### What browsers do you use to access the UI ?

Mozilla Firefox

### Command Line Arguments

```Shell
--xformers --nohalf
```


### List of extensions

- TiledDiffusion with Tiled VAE manipulations: works
- Deforum tab, animation: works
- Ultimate SD Upscale manipulations: works
- LLuL manipulations: works
- StableSR: works
- Inpaint Anything: works
https://github.com/Uminosachi/sd-webui-inpaint-anything.git
- Infinite Zoom: works
- Seed Traveller: works

### Console logs

```Shell
See above
```


### Additional information

_No response_
Repository: PowerToys
Issue: Add a mouse button that moves the focused window to another monitor
Labels: Idea-New PowerToy

### Description of the new feature / enhancement

(Feature like from DisplayFusion from Binary Fortress Software)

For a mouse button, it could be in the title bar, next to the minimize, maximize close button.  When clicked, the focused/active window should be moved to the next monitor, same position on that monitor.

Could be integrated into FancyZones.

### Scenario when this would be used?

Whenever a user wants to move a window to another monitor.  
It could be for sharing the window through a Teams call. 
It could be for showing it to a colleague on another monitor that's more legible, or closer to his chair.
It could be a window containing documentation, that should be shown a longer time on a different monitor, while he works on something else on the main monitor.

### Supporting information

_No response_
Repository: godot
Issue: Multiple actions are not registering
Labels: needs testing,topic:input

### Godot version

4.1.1.stable MONO

### System information

Windows 10, GLES2, Intel(R) UHD Graphics 630

### Issue description

in this dictionary in _process method only one item is true when i press two keys in one time 

        var currentActions = new Dictionary<string, bool>()
        {
            { "left", Input.IsPhysicalKeyPressed(Key.A) },
            { "right", Input.IsPhysicalKeyPressed(Key.D) },
            { "up", Input.IsPhysicalKeyPressed(Key.W) },
            { "down", Input.IsPhysicalKeyPressed(Key.S) }
        };

OR

        var currentActions = new Dictionary<string, bool>()
        {
            { "left", Input.IsActionPressed("MoveLeft") },
            { "right", Input.IsActionPressed("MoveRight") },
            { "up", Input.IsActionPressed("MoveUp") },
            { "down", Input.IsActionPressed("MoveDown") }
        };

It is not ghosting. I tryed [here](https://www.microsoft.com/applied-sciences/projects/anti-ghosting-demo)

Also, when i press next key without releasing previous, inputs are registering. Are not registering only when i press several keys in one tick.

### Steps to reproduce

1. Create project
2. Add scene with CS script
3. Try detect multiple keys pressing
4. Run and press two keys in one tick

### Minimal reproduction project

[Keys.zip](https://github.com/godotengine/godot/files/12247343/Keys.zip)
Repository: vscode
Issue: HTML attribute quotes do not auto-close in PHP files
Labels: bug,editor-autoclosing

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes

- VS Code Version: 1.80.2
- OS Version: Ubuntu 22.04.2

Steps to Reproduce:

1. Create a new untitled file and change the language mode to "PHP".
2. Set `"[php]": { "editor.autoClosingQuotes": "always" }` in VS Code settings.
3. Type `<div lang="` and observe that the quote does not auto-close.
4. Observe that autoclosing happens for `<div lang"`, `<div lang-"`, `<div lang;"`, `<div "`, `<div"`, and `<"`.

I came across this behaviour due to [this Stack Overflow question](https://stackoverflow.com/q/76816219/11107541).
Repository: pytorch
Issue: Pytorch + ROCm+ Windows
Labels: module: rocm,triaged

### 🚀 The feature, motivation and pitch

A week ago, amd published ROCm for windows and cards like the 6600xt. Yet, you can't install pytorch under this configuration:

![image](https://github.com/pytorch/pytorch/assets/92395216/d1737c9a-cbbc-4528-ad7a-98dc84958fc7)

I asked in the unofficial pytorch discord server and somebody told me to try:

pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/rocm5.6

but that simply resulted in the error: 

ERROR: Could not find a version that satisfies the requirement torch (from versions: none)
ERROR: No matching distribution found for torch

Is there any way to get a working version yet and if not, will that come in the future and when can it be expected?

Thanks for any help and I hope I posted this under the correct category.

### Alternatives

_No response_

### Additional context

_No response_

cc @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @dllehr-amd @jataylo @hongxiayang
Repository: material-ui
Issue: [docs][base-ui] Preview code is not in sync with selected styling option code
Labels: bug 🐛,docs,package: base-ui,scope: docs-infra

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Steps to reproduce 🕹

Link to live example: https://mui.com/base-ui/react-menu/#basics

### Current behavior 😯

As you can see preview code is not changing when option is changed from system to tailwind or css

https://github.com/mui/material-ui/assets/60743144/2fb02ec4-84f0-438a-9588-ed7b3a682c1a


### Expected behavior 🤔

Preview code should be in sync with selected styling option
Repository: pytorch
Issue: CUDA device support does not register allocator to c10::GetAllocator(...)
Labels: module: cpp,module: cuda,triaged

### 🐛 Describe the bug

The CUDA device support does not register its device allocator to `c10::GetAllocator(c10::DeviceType)` but explicitly requires to use `c10::cuda::CUDACachingAllocator::get()`.

Here a small demonstrator, that prints the pointer to the CUDACachingAllocator (to proof that CUDA support is loaded), and then all known allocators that are registered to `c10::GetAllocator(...)`.
```c++

#include <c10/cuda/CUDACachingAllocator.h>
#include <iostream>

int main(int argc, char** argv) {
	std::cout << "CUDACachingAllocator: " << c10::cuda::CUDACachingAllocator::get() << std::endl;

	for(int D = 0; D < (int)c10::DeviceType::COMPILE_TIME_MAX_DEVICE_TYPES; D++) {
		auto d = (c10::DeviceType)D;
		std::cout << c10::DeviceTypeName(d) << ": " << c10::GetAllocator(d) << std::endl;
	}

	return 0;
}
```

And then run it using:
```bash
python3 -m venv error
. error/bin/activate
python3 -m pip install torch
LIB=$(python3 -c "import site;print(site.getsitepackages()[0])")

g++ -D_GLIBCXX_USE_CXX11_ABI=0 -L $LIB/torch/lib -I $LIB/torch/include/ -lc10 -lc10_cuda error.cpp
LD_LIBRARY_PATH=$LIB/torch/lib ./a.out
```

Output:
```
CUDACachingAllocator: 0x7f9ab62efda0
CPU: 0x7f9ab639ed68
CUDA: 0
MKLDNN: 0
OPENGL: 0
OPENCL: 0
IDEEP: 0
HIP: 0
FPGA: 0
ORT: 0
XLA: 0
VULKAN: 0
METAL: 0
XPU: 0
MPS: 0
META: 0
HPU: 0
VE: 0
LAZY: 0
IPU: 0
MTIA: 0
privateuseone: 0
```

To my understanding in `c10/cuda/CUDACachingAllocator.cpp` in `BackendStaticInitializer::BackendStaticInitializer()` it should call `c10::SetAllocator(c10::DeviceType::CUDA, r);`

### Versions

Collecting environment information...
PyTorch version: 2.0.1+cu117
Is debug build: False
CUDA used to build PyTorch: 11.7
ROCM used to build PyTorch: N/A

OS: CentOS Linux 7 (Core) (x86_64)
GCC version: (GCC) 10.5.0
Clang version: Could not collect
CMake version: version 3.27.0
Libc version: glibc-2.17

Python version: 3.8.17 (default, Jun 26 2023, 05:54:38)  [GCC 10.2.1 20210130 (Red Hat 10.2.1-11)] (64-bit runtime)
Python platform: Linux-3.10.0-1160.76.1.el7.x86_64-x86_64-with-glibc2.17
Is CUDA available: True
CUDA runtime version: 11.8.89
GPU models and configuration: GPU 0: Quadro P4000
Nvidia driver version: 535.54.03
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

Versions of relevant libraries:
[pip3] torch==2.0.1
[conda] Could not collect

cc @jbschlosser @ptrblck
Repository: tensorflow
Issue: BUG: reference count leak in function `RegisterForwardAccumulatorCleanup` (static analyzer report)
Labels: stat:awaiting tensorflower,type:bug,comp:eager

### Issue type

Bug

### Have you reproduced the bug with TensorFlow Nightly?

Yes

### Source

source

### TensorFlow version

commit faad219fc46032a0ae9576ccc3076612cc1f5f72

### Custom code

No

### OS platform and distribution

Linux Ubuntu 20.04

### Mobile device

_No response_

### Python version

3.8

### Bazel version

_No response_

### GCC/compiler version

Our static analyzer uses Clang 13 as its parser

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

https://github.com/tensorflow/tensorflow/blob/53fb0130851ad40d544105432f414b4ebe9e729d/tensorflow/python/eager/pywrap_tfe_src.cc#L2378-L2379

API `PyCFunction_New` does not steal a reference for the second argument.
API `PyLong_FromLong` will return a new reference.
Calling `PyLong_FromLong` directly as the second argument of `PyCFunction_New` will lead to a reference count leak for the PyObject returned by `PyLong_FromLong`.

Internal report ID: c13984

### Standalone code to reproduce the issue

```shell
Unnecessary. Whenever this function is called, the problem will be triggered.
```


### Relevant log output

_No response_
Repository: go
Issue: proposal: spec: support type inference on generic structs
Labels: Proposal,generics,TypeInference

<!--
Our proposal process is documented here:
https://go.dev/s/proposal-process
-->

_(I couldn't find an existing issue for this, but if there is, feel free to close!)_

**Problem**

There's some inconsistencies in the capabilities of type inference for generics.

With functions, type inference works beautifully:

```go
func Accepts[In, Out any](json func(in In) (Out, error), html func(in In) error) http.Handler {
  // call appropriate function depending on Accepts header
}

type Input struct {}
type Output struct {}

func indexJson(in *Input) (Output, error) {
  // render json
}

func indexHtml(in *Input) error {
  // render html
}

// Usage
router.Get("/", Accepts(indexJson, indexHtml))
```

Structs also work, but they require you to explicitly pass in the generic types:

```go
type Accepts[In, Out any] struct {
  JSON func(in In) (Out, error)
  HTML func(in In) error
}

func (a *Accepts) ServeHTTP(w, r) {
}

// Usage
router.Get("/", Accepts[*Input, Output]{indexJson, indexHtml})
```

It feels rather unfortunate that you need to explicitly set the `[*Input, Output]` when usage and even syntax is otherwise so similar.

**Proposal**

Support type inference on structs, allowing the following:

```go
router.Get("/", Accepts{indexJson, indexHtml})
```

When the concrete types in `indexJson` and `indexHtml` don't line up, it's a type error.

---
Thanks for your consideration!