sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: go
Issue: net/http/httptest: Server does not check GetCertificate
Labels: NeedsInvestigation

### What version of Go are you using (`go version`)?

<pre>
go version go1.21.3 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=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/home/mitar/.cache/go-build'
GOENV='/home/mitar/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/home/mitar/.go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/home/mitar/.go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.21.3'
GCCGO='/usr/bin/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 -ffile-prefix-map=/tmp/go-build488527063=/tmp/go-build -gno-record-gcc-switches'
</pre></details>

### What did you do?

I am trying to test a `http.Server` instance with httptest's `Server`:

```go
	ts := httptest.NewUnstartedServer(nil)
	ts.EnableHTTP2 = true
	ts.Config = server
	ts.Config.Handler = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
		w.WriteHeader(http.StatusOK)
	})
	ts.TLS = server.TLSConfig.Clone()
	ts.StartTLS()
```

I want to check that server's TLS configuration works. Server's TLS configuration uses `GetCertificate`

### What did you expect to see?

That once I call `StartTLS` is called, `GetCertificate` is called to obtain the certificate to configure the testing server and testing client.

### What did you see instead?

`StartTLS` ignores and never calls `GetCertificate` but instead configures testing server and testing client to use testing certificate.

### Discussion

I can call something like:

```go

	cert, _ := ts.TLS.GetCertificate(nil) // or some other relevant ClientHelloInfo for 127.0.0.1
	ts.TLS.Certificates = []tls.Certificate{*cert}
```

before calling `StartTLS`. But ideally that should be called by `StartTLS`. This is documented in `tls.Config`:

```
	// Server configurations must set one of Certificates, GetCertificate or
	// GetConfigForClient.
```

Currently only `Certificates` is checked, but `GetCertificate` or `GetConfigForClient` are ignored.

My motivation is to do a test with `golang.org/x/crypto/acme/autocert` serving as manager against [Pebble](https://github.com/letsencrypt/pebble) to test that `http.Server`'s configuration and everything works correctly.
Repository: godot
Issue: Big TileMap with collisions is extremely slow
Labels: bug,topic:physics,topic:2d,performance

### Godot version

4.2 beta3

### System information

Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 (NVIDIA; 30.0.15.1403) - Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 Threads)

### Issue description

I noticed this issue before, but I just encountered a super extreme case and decided to report it.

I'm doing 8x `test_move()` and the framerate is unbearably choppy.

https://github.com/godotengine/godot/assets/2223172/f6b6eb9d-03fb-4a73-abd5-07c8e1a9fb58

The profiler reports ~300ms of physics time, caused by integrate forces.

If I remove collisions of center tiles, the frame drop is completely gone.

https://github.com/godotengine/godot/assets/2223172/bae6f498-8e16-4983-81ed-535390c9a5ac

This workaround has many problems however, so I can't use it in the final product.

The problem is most likely that each tile is a separate collision shape. What's weird, I can get good FPS with collisions on the same scene, it seems to depend on the physics check position.

### Steps to reproduce

1. Create a TileMap with hundreds of tiles
2. Do simple raycast in a wrong spot

### Minimal reproduction project

It's difficult to make a minimal project.
Repository: stable-diffusion-webui
Issue: Write a batch (or a plugin) captioning txt to image metadata (EXIF : XPKeywords)
Labels: enhancement,extension-request

### 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 ?

a plugin of a batch that can read images from a source folder, analyse each one with a captioning model, write tag inside image's metadata (EXIF : XPKeywords) or Tags image Property

### Proposed workflow

1. Select folder source
2. Select Captioning model (BLIP, GIT, WD14, Deepbooru , ...) 
3. Select Batch size (1 by default) that set how many images processed in same time
4. Set Min Length and Max Length to determin how many word will be used
5. Run

### Additional information

caption words will be written into EXIF : XPKeywords
Repository: go
Issue: runtime: PanicNilError error string should have "runtime error: " prefix
Labels: NeedsDecision,compiler/runtime

### What version of Go are you using (`go version`)?

<pre>
$ go version
1.21.3
</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
Windows, amd64, 1.21.3
</pre></details>

### What did you do?
```
package main

import (
	"fmt"
	"runtime"
)

type I interface {
	M()
}

func main() {

	defer func() {
		if r := recover(); r != nil {
			if e, ok := r.(runtime.Error); ok {
				fmt.Println(e.Error())
			}
		}
	}()

	defer func() {
		if r := recover(); r != nil {
			if e, ok := r.(runtime.Error); ok {
				fmt.Println(e.Error())
				panic(nil)
			}
		}
	}()

	defer func() {
		if r := recover(); r != nil {
			if e, ok := r.(runtime.Error); ok {
				fmt.Println(e.Error())
				a := 1
				b := 0

				fmt.Println(a / b)
			}
		}
	}()

	var i I
	i.M()

	//panic(nil)

	//fmt.Println("hello")

}

``` 




### What did you expect to see?
Since Panic error is a different runtime error as mentioned in the documentation - https://pkg.go.dev/builtin#panic and it has implementation of method - RuntimeError 
`
// RuntimeError is a no-op function but
	// serves to distinguish types that are run time
	// errors from ordinary errors: a type is a
	// run time error if it has a RuntimeError method.
	RuntimeError()
`

I would like to see the error message like other runtime errors - "runtime error:" as mentioned in the above example



### What did you see instead?

I rather the see the error message as - panic called with nil argument
Repository: stable-diffusion-webui
Issue: Can't use img2img even on a new install.
Labels: bug-report

### Is there an existing issue for this?

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

### What happened?

Can't use img2img.

### Steps to reproduce the problem

1. Go to img2img, choose inpaint or inpaint sketch, highlight area to modify
2. Press generate.
3. 1006 error


### What should have happened?

A modified image. Nothing happens. I can still generate images just fine though, so this is the only one that's broken.

### Sysinfo

[SysInfo.txt](https://github.com/AUTOMATIC1111/stable-diffusion-webui/files/13199265/SysInfo.txt)


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

_No response_

### Console logs

```Shell
venv "M:\SD\venv\Scripts\Python.exe"
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: 1.6.0
Commit hash: <none>
Installing xformers
Launching Web UI with arguments: --no-half-vae --api --theme dark --xformers --no-half
Loading weights [6ce0161689] from M:\SD\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors
Running on local URL:  http://127.0.0.1:7862

To create a public link, set `share=True` in `launch()`.
Creating model from config: M:\SD\configs\v1-inference.yaml
Startup time: 125.7s (prepare environment: 119.2s, import torch: 2.4s, import gradio: 0.8s, setup paths: 0.7s, initialize shared: 0.3s, other imports: 0.5s, load scripts: 0.8s, create ui: 0.4s, gradio launch: 0.5s).
Applying attention optimization: xformers... done.
Model loaded in 6.0s (load weights from disk: 0.6s, create model: 0.3s, apply weights to model: 2.6s, load textual inversion embeddings: 1.3s, calculate empty prompt: 1.0s).
1006
1006
1006
1006
1006
1006
1006
```


### Additional information

Used a new install just to make sure it wasn't anything I was doing. Also change .txt to .nfo on the sysinfo file...couldn't upload it otherwise. ¯\_(ツ)_/¯
Repository: godot
Issue: [Godot 3.5.3] range(16777217, ...) begins at 16777216
Labels: bug,topic:gdscript,documentation

### Godot version

Godot Engine v3.5.3.stable.official.6c814135b

### System information

Windows 10 OpenGL ES 3.0 Renderer: NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2 AMD FX6300

### Issue description

The following code has a very curious behavior:
```
	for i in range(16777217, 16777225):
		print(i)
```
Ouput:
**16777216**
16777217
16777218
16777219
16777220
16777221
16777222
16777223
16777224

It should start at 16777217 but starts at one number less (16777216)
Interestingly 16777217 equals (2^24) + 1


### Steps to reproduce

Just copy the 2 lines of code in the _ready() function, e.g., run and check the output


### Minimal reproduction project

N/A
Repository: stable-diffusion-webui
Issue: [Bug]: Prompt Weighting with Brackets doesn't match non-Bracket behavior.
Labels: bug-report

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

The following produce distinct images
`[cat:0]`
`{cat:0}` -> Edit: this is actually 5 tokens
`(cat:0)`
`cat:0`

These all are identified as a single token. The weight is the same in all cases.
Only the last one produces a result which is recognizable as containing no cat, though the latent noise mid-generation shows a cat temporarily.

![image](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/8139496/a1ad9710-bea5-4208-ba3c-fb8f4e8b1ada)
![image](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/8139496/1f3efef5-cf97-4297-8ba6-ba865a7e3cd5)
![image](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/8139496/ad214f87-d5f3-4590-8e22-ab9fb68b8630)
![image](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/8139496/51559461-a69a-451a-94c4-5b7d5d1ca6be)



### Steps to reproduce the problem

![image](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/8139496/224ce1ab-f6ea-4975-8c0f-6e3b09dd96e9)
`cat:-1`

![image](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/8139496/867d03c0-71af-4123-af5a-8bb262bc6396)
`(cat:-1)`

![image](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/8139496/06582044-9404-4a17-a024-f8ee0337dcf5)
`[cat:-1]`

The same issue appears when using `-1` weights. Only by using no brackets can you get an image which properly has no cat.

### What should have happened?

It's clear that there is a bug in the system for weighting brackets, when compared to the same prompt with no brackets.

### Sysinfo

.

### What browsers do you use to access the UI ?

_No response_

### Console logs

```Shell
.
```


### Additional information

_No response_
Repository: stable-diffusion-webui
Issue: [Bug]: img2img notification audio doesn't work
Labels: bug-report

### Is there an existing issue for this?

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

### What happened?

when I use notification.mp3 for have an alarm when finish, it works for txt2img but it doesn't work in img2img or other places when it finishes its function

### Steps to reproduce the problem

i place the notification audio.mp3 and it works but only in txt2img

### What should have happened?

The notification should sound when the process ends in img2img or elsewhere

### Sysinfo

nothing

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

_No response_

### Console logs

```Shell
nothing
```


### Additional information

stable diffusion 1.6
Repository: stable-diffusion-webui
Issue: [Bug]: float64 macbook
Labels: bug-report

### Is there an existing issue for this?

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

### What happened?

TypeError: Cannot convert a MPS Tensor to float64 dtype as the MPS framework doesn't support float64. Please use float32 instead.
Time taken: 1.8 sec.

If you know  how i can change. In source pls tell me. In which file. I can see it 
Thans any guys 

### Steps to reproduce the problem

1. Go to .... 
2. Press ....
3. ...


### What should have happened?

TypeError: Cannot convert a MPS Tensor to float64 dtype as the MPS framework doesn't support float64. Please use float32 instead.
Time taken: 1.8 sec.

### Sysinfo

TypeError: Cannot convert a MPS Tensor to float64 dtype as the MPS framework doesn't support float64. Please use float32 instead.
Time taken: 1.8 sec.

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

_No response_

### Console logs

```Shell
TypeError: Cannot convert a MPS Tensor to float64 dtype as the MPS framework doesn't support float64. Please use float32 instead.
Time taken: 1.8 sec.
```


### Additional information

_No response_
Repository: electron
Issue: [Feature Request]: `registerSchemesAsPrivileged` cannot be used by libraries 
Labels: enhancement :sparkles:

### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a feature request that matches the one I want to file, without success.

### Problem Description

To setup privileged protocol schemes you're required to call `registerSchemesAsPrivileged` but the docs state:

> This method can only be used before the ready event of the app module gets emitted and **can be called only once**.

This means that it's not possible for library authors to use this method without overwriting users own schemes or users overwriting the library scheme. 

Ref: https://github.com/getsentry/sentry-electron/issues/661

### Proposed Solution

Calling `registerSchemesAsPrivileged` could add schemes to a list that are concatenated the next time `registerSchemesAsPrivileged` is called?

### Alternatives Considered

At a minimum, this method should throw if it's called more than once to notify users that they've overwriting previously set schemes.

### Additional Information

_No response_
Repository: create-react-app
Issue: react-scripts is using postcss@^7.0.35 which has security vulnerability
Labels: needs triage,issue: bug report

react-scripts@5.0.1 requires postcss@^7.0.35 via a transitive dependency on resolve-url-loader@4.0.0

I see the latest version of resolve-url-loader is 5.x, and it depends on postcss@8.x. So can we update resolve-url-loader to a non-vulnerable version? Thank you!
Repository: godot
Issue: `NOTIFICATION_TRANSFORM_CHANGED` emitted after `set_notify_transform(false)`
Labels: bug,topic:core

### Godot version

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

### System information

Godot v4.1.1.stable.mono - Windows 10.0.19045 - Vulkan (Forward+) - dedicated Radeon RX 580 Series (Advanced Micro Devices, Inc.; 31.0.21902.5) - AMD Ryzen 7 2700X Eight-Core Processor (16 Threads)

### Issue description

## Problem

In a script that called `set_notify_transform(true)`, even if you call `set_notify_transform(false)` later on `NOTIFICATION_TRANSFORM_CHANGED` will still be received in certain circumstances.
In my case, reparenting a tool script that calls `set_notify_transform(false)` in `_exit_tree` won't immediately disable further `NOTIFICATION_TRANSFORM_CHANGED`. One more notification will be received before them being turned off.

You can work around this by checking the return value of `is_transform_notification_enabled()` when `NOTIFICATION_TRANSFORM_CHANGED` is received but it kinds of defeat the purpose of doing `set_notify_transform(false)` in the first place.

## Expected behavior

After calling `set_notify_transform(false)`, no `NOTIFICATION_TRANSFORM_CHANGED` should be received anymore.

### Steps to reproduce

1. Open the MRP
2. Move the `Tool` node outside of the `Container` node

The log output should now look like this. 
```
_ready: set_notify_transform(true)
NOTIFICATION_TRANSFORM_CHANGED received: is_transform_notification_enabled() = true
Reparent Node
_exit_tree: set_notify_transform(false)
NOTIFICATION_TRANSFORM_CHANGED received: is_transform_notification_enabled() = false
```

### Minimal reproduction project

[NOTIFICATION_TRANSFORM_CHANGED emitted after set_notify_transform(false).zip](https://github.com/godotengine/godot/files/13200474/NOTIFICATION_TRANSFORM_CHANGED.emitted.after.set_notify_transform.false.zip)
Repository: neovim
Issue: Persistent undo for buftype=acwrite / scratch buffers (for embedders)
Labels: enhancement,ui-extensibility,embedding

### Problem

Currently, neovim saves undo history only when writing a buffer to a file. However, when neovim is embedded in other editors, say, vscode, it may happen that the neovim never actually writes the buffer into files, which is done by vscode. In this situation, we don't have persistent undo. 

### Expected behavior

Please add some feature such that vscode-neovim can use native undo history.  See  https://github.com/vscode-neovim/vscode-neovim/issues/474
Repository: yt-dlp
Issue: [youtube] How to download "infocard"-linked videos?
Labels: site-enhancement

### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

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

### Checklist

- [X] I'm asking a question and **not** reporting a bug or requesting a feature
- [X] I've looked through the [README](https://github.com/yt-dlp/yt-dlp#readme)
- [X] I've verified that I'm running yt-dlp version **2023.10.13** ([update instructions](https://github.com/yt-dlp/yt-dlp#update)) or later (specify commit)
- [X] I've searched [known issues](https://github.com/yt-dlp/yt-dlp/issues/3766) and the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar questions **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)

### Please make sure the question is worded well enough to be understood

I looked through the README but the link mentioned there to https://github.com/yt-dlp/yt-dlp#modifying-metadata seems not to work.

My question ( running yt-dlp version : 2023.10.13 )

When I have a downloaded video, and in it it is mentioned (pointing into some corner) "click here to get info on (whatever)" - **can I extract this embedded metadata so that I can also download the mentioned youtube clip**? I very much prefer not to have to open any videos in youtube itself and then move to the same time stamp in that video to be able to "click here to get info on (whatever)"

Can it be done via --parse-metadata ? If so, how?

### Provide verbose output that clearly demonstrates the problem

- [X] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`)
- [ ] If using API, add `'verbose': True` to `YoutubeDL` params instead
- [ ] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

_No response_
Repository: ant-design
Issue: Dropdown 右键菜单的面板很长时,显示不全
Labels: Inactive,improvement

### Reproduction link

[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/context-menu-antd-5-10-2-forked-ljtk52?file=/demo.tsx)

### Steps to reproduce

右键

### What is expected?

menu 可以充分利用上面的空间
<img width="1193" alt="image" src="https://github.com/ant-design/ant-design/assets/124666577/9fae0891-8efb-42ea-abef-ba67c28c12b5">

### What is actually happening?

menu 总还是在四个角

| Environment | Info |
| --- | --- |
| antd | undefined |
| React | 18 |
| System | mac |
| Browser | chrome |

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: ant-design
Issue: TreeSelect - SearchInput 大数据时很慢，键盘输入会卡顿不流畅(性能问题)
Labels: Inactive,⚡️ Performance

### Reproduction link

https://codesandbox.io/s/antd-reproduction-template-forked-zdgy79?file=/index.js

### Steps to reproduce

1，treeSelect组件大数据（约1万个节点），
2，开启showSearch功能
3，界面输入关键词搜索节点
4，..........出现卡顿

### What is expected?

不卡顿，正常搜索出关键词节点

### What is actually happening?

反应迟钝，键盘输入会卡住。

| Environment | Info |
| --- | --- |
| antd | 5.0.0 |
| React | 17 |
| System | window |
| Browser | 谷歌 |

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: PowerToys
Issue: Feature request: Desktop projection and control within device
Labels: Idea-New PowerToy,Needs-Triage

### Description of the new feature / enhancement


I would like to request a feature that will allow the user to mirror and control any part of the desktop or any application into a small window. The user can select the area or application they want to mirror, and then create a preview thumbnail window that shows the whole content of the selected area or application. The user can also control the desktop or application from this small preview window, as if they were using a remote desktop app. The preview window should not be included in the mirroring, to avoid creating an infinite mirror effect. And also, the preview thumbnail window must be resizable for convenience. 

### Scenario when this would be used?

**Use cases:**
This feature would be useful for people who use very large monitors or smartboards, especially for teaching or presenting purposes. It would allow them to quickly access and control different parts of the screen that are far away, without having to physically move around. It would also provide a convenient way to monitor and interact with multiple applications or windows at the same time, without having to switch between them or resize them. and also someone can use it just to make a thumbnail (like crop and lock) of the entire desktop or any specific area, and if necessary then interact with it.

### Supporting information

**Implementation:**
One possible way to implement this feature is to use the existing Crop and Lock module as a base, and extend its functionality to include remote control. The Crop and Lock module already allows the user to create a thumbnail window of a selected area of the any window, but it does not allow them to interact with it. The remote control feature could be added as an option in the Crop and Lock settings, or as a separate module that works in conjunction with Crop and Lock. The remote control feature could use the Windows Remote Desktop Protocol or a similar technology (or anything else) to enable the user to control the entire desktop or any cropped part or any application from the preview window.

**For example:** you can mimic this functionality by using any desktop mirroring server and client if it supports multiple instance of the same application (like anydesk). You can open two instance of that client and then project your desktop using one client and use another client as a viewer. But this method is too much of a hassle to do, and also does infinite mirroring.here is an example image
![image]
(https://github.com/microsoft/PowerToys/assets/74752203/a616b8a5-2adb-4b55-ab67-7508aa9c71ca)