sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: stable-diffusion-webui
Issue: [Bug]: API img2img blowing out image at or larger than 2048
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?

Images are blowing up as soon as 2048 is set: 

2047x1024
![image](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/40011470/17e62dc1-358e-4901-9ccd-66f9e84c4eb9)

2048x1024
![image](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/40011470/719041d6-ce82-4013-91b0-5fc811000791)


### Steps to reproduce the problem

1. Set width and height on the api to 2048x1024 and generate a img2img

### What should have happened?

I've set my denoise low to try and get close to the original image and it's just blowing out my contrast

### Commit where the problem happens

d36420a

### What Python version are you running on ?

Python 3.10.x

### What platforms do you use to access the UI ?

_No response_

### What device are you running WebUI on?

_No response_

### What browsers do you use to access the UI ?

_No response_

### Command Line Arguments

```Shell
--api
```


### List of extensions

No

### Console logs

```Shell
No
```


### Additional information

This does not happen in the GUI here's my current args: 

`--width 2048 --height 1024 --denoising_strength 0.4`

and the request
```
                    payload = {
                        "init_images": [encodedimage],
                        "resize_mode":0,
                        "prompt": full_prompt,
                        "negative_prompt": negative_prompt,
                        "steps": args.steps,
                        "width": args.width,
                        "height": args.height,
                        "seed": seed,
                        "denoising_strength": args.denoising_strength,
                        "cfg_scale": args.cfg_scale,
                        "sampler_name": args.sampler_name,
                    }
```
Repository: electron
Issue: [Bug]: Invisible menu bar on Mac with camera notch
Labels: platform/macOS,bug :beetle:,status/confirmed,has-repro-gist,component/webcontents,25-x-y

### 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 bug report that matches the one I want to file, without success.

### Electron Version

25.0.0

### What operating system are you using?

macOS

### Operating System Version

13.3.1

### What arch are you using?

arm64 (including Apple Silicon)

### Last Known Working Electron version

_No response_

### Expected Behavior

In an Electron app with `cursor: none;` and a custom cursor in React, the default macOS cursor should remain hidden near the top edge of a fullscreen window. Example video from an older Mac without the camera notch:

https://github.com/electron/electron/assets/29574724/b94ef3ff-7b19-4538-901a-7fddd2a434ff


### Actual Behavior

At ~40px from the top edge of a fullscreen window, the Mac cursor is shown.

It is expected that the Mac cursor reappears once outside WebContents, but here it appears before it even reaches the blacked-out macOS menu bar. Screen recording from a Mac with camera notch:

https://github.com/electron/electron/assets/29574724/bb757528-3f2a-45d2-ad60-91d0488569b1

The 40px distance can be arrived at by rendering a `border-top: 40px solid red;`.

https://github.com/electron/electron/assets/29574724/afa23a28-cc5e-4f76-b9bf-3eab91149803

This should mean that it is not the window's title bar causing the cursor to reappear, since that is closer to 30px tall.

### Testcase Gist URL

https://gist.github.com/gdbroman/9772e73f74196e54bbdd100f0beb0653

### Additional Information

Kiosk mode does not solve this.

We have our custom cursor rendered in a separate, overlayed BrowserWindow, and the following almost solves this issue:

```
mainWindow.setAlwaysOnTop(true, 'screen-saver', 0);
mouseWindow.setAlwaysOnTop(true, 'screen-saver', 1);
```

But after exiting fullscreen once and re-entering fullscreen, the issue comes back.
Repository: go
Issue: wasm: duplicate import in wasip1 compiled binary
Labels: NeedsInvestigation,arch-wasm

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version devel go1.21-993707a9d6 Tue May 30 20:19:54 2023 +0000 linux/arm64
</pre>

### What did you do?

```go
package main

import (
	"crypto/rand"
	"encoding/hex"
	"fmt"
)

func main() {
	b := [16]byte{}
	rand.Read(b[:])
	fmt.Println(hex.EncodeToString(b[:]))
}
```

```
GOARCH=wasm GOOS=wasip1 go build -o main.wasm main.go
```

```
wasm2wat main.wasm
```

The imports in the generated .wat file are:

```
  (import "wasi_snapshot_preview1" "sched_yield" (func (;0;) (type 1)))
  (import "wasi_snapshot_preview1" "proc_exit" (func (;1;) (type 2)))
  (import "wasi_snapshot_preview1" "args_get" (func (;2;) (type 3)))
  (import "wasi_snapshot_preview1" "args_sizes_get" (func (;3;) (type 3)))
  (import "wasi_snapshot_preview1" "clock_time_get" (func (;4;) (type 4)))
  (import "wasi_snapshot_preview1" "environ_get" (func (;5;) (type 3)))
  (import "wasi_snapshot_preview1" "environ_sizes_get" (func (;6;) (type 3)))
  (import "wasi_snapshot_preview1" "fd_write" (func (;7;) (type 5)))
  (import "wasi_snapshot_preview1" "random_get" (func (;8;) (type 3)))
  (import "wasi_snapshot_preview1" "poll_oneoff" (func (;9;) (type 5)))
  (import "wasi_snapshot_preview1" "fd_close" (func (;10;) (type 0)))
  (import "wasi_snapshot_preview1" "fd_read" (func (;11;) (type 5)))
  (import "wasi_snapshot_preview1" "fd_write" (func (;12;) (type 5)))
  (import "wasi_snapshot_preview1" "random_get" (func (;13;) (type 3)))
  (import "wasi_snapshot_preview1" "fd_fdstat_get" (func (;14;) (type 3)))
  (import "wasi_snapshot_preview1" "fd_fdstat_set_flags" (func (;15;) (type 3)))
  (import "wasi_snapshot_preview1" "fd_prestat_get" (func (;16;) (type 3)))
  (import "wasi_snapshot_preview1" "fd_prestat_dir_name" (func (;17;) (type 6)))
```

Both `fd_write` and `random_get` appear twice.

### What did you expect to see?

Each import appears only once

This isn't an invalid wasm file and doesn't affect the end result much, but there is clearly some part of the compiler that isn't weeding out duplicate imports for wasm.
Repository: vscode
Issue: Prepend and append seem to replace the value on Linux on bash
Labels: bug,api,confirmation-pending,terminal-process

Testing #182970

I have code that calls `replace('myvar3', '3')`, then `append('myvar3', 'append')`, then `prepend('myvar3', 'prepend')`. When I echo `myvar3`, I only see `prepend`. Same if I run `env`.
The options are `applyAtProcessCreation: true` and `applyAtShellIntegration: false`.

Edit: Same issue when I re-enable shell integration, set both options to true, and re-run the extension.
Repository: PowerToys
Issue: The ctrl + Win + Alt and arrow keys is not working on a remote desktop session
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.70

### Installation method

PowerToys auto-update

### Running as admin

Yes

### Area(s) with issue?

FancyZones

### Steps to reproduce

1.Using windows remote desktop remote into the machine that has powertoys installed and ensure it is running

2. open up a dialog window.

3. Press the ctrl + Win + Alt and left or right arrow key

### ✔️ Expected Behavior

The fancy Zone snapping should work, filling to one zone then full screen.

Notes. 

(A) When i just press the windows key and an error key, the open dialog moves left or right no problem. It appears to be just when you do the ctrl + Win + Alt and left or right arrow key pressing. 

(B) When i repeat the process on my local machine without remote desktop ctrl + Win + Alt and left or right arrow works fine

### ❌ Actual Behavior

There is no moving or expanding of dialogs at all

### Other Software

Remote desktop windows 10
Repository: go
Issue: x/tools/gopls: disable package-oriented diagnostics for files/directories whose names begin with "."/"_"
Labels: gopls,Tools

Gopls version: v0.12.0

### How to reproduce

1. Clone and open the delve project (github.com/go-delve/delve). There should be no diagnostics.
2. Open one of the files in `_fixtures`. Gopls is publishing ~570 compiler errors (mostly, DuplicateDecl)
3. Close the file. The diagnostics don't go away.

The directory `_fixtures` contain various files used for debugging. Depending on debugging scenario, mostly a single file is  chosen to be built and debugged by tests. They are like `testdata`. 

According to the go command line doc https://pkg.go.dev/cmd/go#hdr-Package_lists_and_patterns files in this directory are handled specially. But gopls's behavior doesn't seem to align with it.

> Directory and file names that begin with "." or "_" are ignored by the go tool, as are directories named "testdata".

I'd appreciate completion or single file mode diagnostics on the files, but not DuplicateDecl diagnostics. 

### Alternatives to consider

- Provide an option to disable diagnostics on files in certain directories. -> Should this be editor's option?
- Unpublish diagnostics once the files in _fixtures are all closed. -> Still distracting.
- Ask users to use build tags. (`//go:build ignore`)  -> at least, for delve, this will be a huge change since most tests are sensitive to file line number changes (e.g. setting breakpoint).
Repository: flutter
Issue: The index parameter for ReorderableListView's onReorderCallback is confusing.
Labels: framework,f: material design,c: API break,d: api docs,P2,team-design,triaged-design

The value of the onReorderCallback's newIndex and oldIndex parameters are non-intuitive due to some now-historical flawed API engineering.  They're explained here: https://api.flutter.dev/flutter/widgets/ReorderCallback.html, but not  in https://api.flutter.dev/flutter/material/ReorderableListView-class.html or in https://api.flutter.dev/flutter/material/ReorderableListView/onReorder.html. 

We decided not to fix the problem because there wasn't a way to automatically update old apps: https://github.com/flutter/flutter/pull/93146#issuecomment-1032082749 which many developers were unhappy about. 

The documentation for the [ReorderableListView](https://api.flutter.dev/flutter/material/ReorderableListView-class.html) and for [ReorderableListView.onReorder](https://api.flutter.dev/flutter/material/ReorderableListView/onReorder.htm) should explain this quirk.
Repository: transformers
Issue: Whisper with Elastic Weight Consolidation
Labels: Feature request

### Feature request

After specific language finetuning for Whisper, its ASR recognition performance in previous languages deteriorates, known as catastrophic forgetting. Therefore, something, such as the EWC, needs to be used to overcome this problem. Here is the paper of EWC: _https://arxiv.org/pdf/1612.00796.pdf_

### Motivation

When I fine-tuned Whisper large-v2 with 10 hours of Af language data, its WER in languages like Be and Is dropped to close to 90%. However, the WER of these languages under the pre-fine-tuning model is around 40%. So I hope to use the EWC to overcome or mitigate this problem.

### Your contribution

I believe in the professional ability of Hugging Face team, and I can provide data support for it.
Repository: PowerToys
Issue: Registry Preview: Convert .reg data to .bat, .vbs, or .au3
Labels: Idea-Enhancement,Needs-Triage,Product-Registry Preview

### Description of the new feature / enhancement

Features to support users to convert .reg file to .bat, .vbs, or .au3

### Scenario when this would be used?

On the Registry Preview window, add function buttons to convert .reg file to .bat, .vbs, .au3

### Supporting information

_No response_
Repository: next.js
Issue: TS types issue when using with exactOptionalPropertyTypes enabled 
Labels: bug,TypeScript

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
Operating System:
      Platform: linux
      Arch: x64
      Version: #1 SMP Fri Jan 27 02:56:13 UTC 2023
    Binaries:
      Node: 18.14.0
      npm: 9.3.1
      Yarn: N/A
      pnpm: N/A
    Relevant packages:
      next: 13.4.4
      eslint-config-next: 13.0.0
      react: 18.2.0
      react-dom: 18.2.0
      typescript: 5.0.2
```


### Which area(s) of Next.js are affected? (leave empty if unsure)

TypeScript (plugin, built-in types)

### Link to the code that reproduces this issue or a replay of the bug

https://codesandbox.io/p/sandbox/gracious-tree-kid4q2?file=%2Fapp%2Fpage.tsx%3A14%2C1-15%2C1

### To Reproduce

To reproduce the problem, enable [`exactOptionalPropertyTypes` option](https://www.typescriptlang.org/tsconfig/exactOptionalPropertyTypes.html) in `tsconfig.json` (as well as `strict`) and try to delegate `onClick` (or any other prop) to `Link`:

```tsx
import Link from "next/link";

function LinkWrapper({
  onClick,
}: {
  onClick?: React.MouseEventHandler<HTMLAnchorElement>;
}) {
  return (
    <Link href="#" onClick={onClick}>
      Hello, world!
    </Link>
  );
}
```

...and you'll get:

```
Type '{ children: string; href: string; onClick: MouseEventHandler<HTMLAnchorElement> | undefined; }' is not assignable to type 'InternalLinkProps' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.
  Types of property 'onClick' are incompatible.
    Type 'MouseEventHandler<HTMLAnchorElement> | undefined' is not assignable to type 'MouseEventHandler<HTMLAnchorElement>'.
      Type 'undefined' is not assignable to type 'MouseEventHandler<HTMLAnchorElement>'.typescript(2375)
```

See screenshot:

![image](https://github.com/vercel/next.js/assets/52201/65dfe145-5e65-4514-929e-4030851dfac7)


### Describe the Bug

The problem comes from TypeScript, with `exactOptionalPropertyTypes` option enabled, not allowing passing `undefined` to optional fields (unless they explicitly specify `| undefined`).  This allows to prevent a set of obscure bugs. 

### Expected Behavior

The optional fields should have `| undefined` added, just like in React:

![image](https://github.com/vercel/next.js/assets/52201/8d0146e6-7089-43f5-a556-9100503ec9e8)


### Which browser are you using? (if relevant)

_No response_

### How are you deploying your application? (if relevant)

_No response_
Repository: ant-design
Issue: Windows下v4.24.8版本的Modal组件设置centered属性打开弹窗时内容会出现抖动
Labels: Inactive,unconfirmed

### Reproduction link

[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/exciting-waterfall-nojw5j?file=/src/App.tsx)

### Steps to reproduce

Windows 系统下，在 Modal 框中设置 `centered` 属性后就可以复现（暗黑模式比较明显）。在 Modal 框中加入 Radio 组件时，Radio 框会往上移动。

### What is expected?

不出现抖动，与不设置 centered 时的效果一致。

### What is actually happening?

Modal 框内容抖动。

| Environment | Info |
| --- | --- |
| antd | 4.24.8 |
| React | 18.2.0 |
| System | Windows11 |
| Browser | Edge 113.0.1774.57（64位） |

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: flutter
Issue: NavigationRail doesn't have a menu
Labels: c: new feature,framework,f: material design,c: proposal,P3,workaround available,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

The Material Design 3 [Navigation Rail guidelines ](https://m3.material.io/components/navigation-rail/guidelines#b51e4558-351f-4368-af8d-bbf1f63f68b4) show the anatomy of a Navigation Rail includes an optional Menu (item 2), but this is missing from the Flutter `NavitagionRail` Widget.

We do have an optional `leading` widget, but it's not the same as a Menu, since the specs define both a leading and a menu.

### Proposal

Include an optional menu in the `NavigationRail`, but please don't make it just like leading, otherwise we have to control all the animation and open/close states ourselves, which adds lots of boilerplate. Make it have a default behavior, but also configurable.
Repository: pytorch
Issue: Jetson NX with torch 1.12.0 :cannot import name 'ProcessGroup' from 'torch.distributed'.
Labels: oncall: distributed

### 🐛 Describe the bug

`from torch.distributed import ProcessGroup`

error: cannot import name 'ProcessGroup' from 'torch.distributed'.

![52d9b82de946a97d99f3122d66babf8](https://github.com/pytorch/pytorch/assets/86214036/e8a389f1-a341-460f-aca8-a5b6827f67bc)


### Versions

Device: jetson NX,
jetpack:5.1.1
torch: 1.12.0

cc @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @H-Huang @kwen2501 @awgu
Repository: pytorch
Issue: Support for activation checkpoint on demand in custom function
Labels: module: checkpoint,triaged,enhancement

### 🚀 The feature, motivation and pitch

The pack hook always runs after the forward pass of a custom function, so ``Rule 5. Stop recomputation as soon as we've recomputed the saved tensors we know we need.`` does not work if we only need to save the inputs for the backward pass.

### Alternatives

_No response_

### Additional context

_No response_

cc @soulitzer
Repository: flutter
Issue: Extend WrapAlignment with an option to apply space between in combination with center for orphans
Labels: c: new feature,framework,a: quality,c: proposal,P3,team-framework,triaged-framework

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

I have not found any way to automatically align a list of widgets across (potentially) multiple lines using their intrinsic widths, but wrapping orphan widget to the center instead of the start of the next line.

This seems a common use case for footers, where on mobile devices it feels more natural to wrap these orphans to the center instead of the start of the next line.

### Proposal

Possible directions could be to either (1) add a new `WrapAlignment` enum that performs this alignment for orphaned objects, or (2) to support e.g. `Spacer` widgets that explicitly push objects apart on a line but are ignored at the start/end of a line.
Repository: vscode
Issue: Git - Remove all local branches which origin is deleted (Git Fetch Prune)
Labels: feature-request,git

<!-- ⚠️⚠️ 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. -->
After `git fetch --prune` or using VS Code `Git: Fetch (Prune)`, local branches remain in the VS Code project.

In order to delete those branches, the user has to delete them one by one or use certain command lines.

Suggesting the feature to remove local branches where origin is deleted which could be validated by `git fetch --prune`.
Repository: opencv
Issue: Detect memory leaks in cv::putText
Labels: bug,category: imgproc

### System Information

OpenCV version: 5.x
Operating System / Platform: Windows 10
Compiler & compiler version: visual studio 2019

### Detailed description

Detect memory leaks in cv::putText
![image](https://github.com/opencv/opencv/assets/38370602/4dd03957-80c3-43a4-8d9b-e55be84912a5)


### Steps to reproduce

#include <opencv2\opencv.hpp>

#define _CRTDBG_MAP_ALLOC   
#include <stdlib.h>  
#include <crtdbg.h> 

#pragma execution_character_set("utf-8") 

int main()
{
    for (int i = 0; i < 100000; i++)
    {
        int fontHeight = 100;
        int thickness = -1;
        int linestyle = 8;

        cv::Mat img(240, 800, CV_8UC3, cv::Scalar::all(0));

        std::string sStr = "hello你好中文";
        cv::FontFace font;
        
        _CrtSetDbgFlag(_CrtSetDbgFlag(_CRTDBG_REPORT_FLAG) | _CRTDBG_LEAK_CHECK_DF);
        for (int j = 0; j < 10000; j++)
        {
            cv::putText(img, sStr, cv::Point(400, 120), CV_RGB(0, 0, 255), font, 50, -1, cv::PUT_TEXT_ALIGN_RIGHT);
            //cv::putText(img, sStr, cv::Point(400, 120), 1, 50, CV_RGB(0, 0, 255));
        }
        _CrtDumpMemoryLeaks();

        std::cout << "finish" << std::endl;
    }

    return 0;

}

### 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
- [ ] There is reproducer code and related data files (videos, images, onnx, etc)
Repository: PowerToys
Issue: [GPO; Build] Localization for GPOs
Labels: Idea-Enhancement,Area-Build,Area-Enterprise

## Suggested feature/enhancement 

The GPO templates for many apps are localized. Can we do that too?

@crutkas 
What do you think?

## When is this helpful?

This helps non english speaking admins.

## Technical implementation

https://github.com/microsoft/winget-cli/blob/b7b2f0e8583e3c522989421b6d439bb1048045b1/azure-pipelines.loc.yml#L37-L48
Repository: stable-diffusion-webui
Issue: [Feature Request]: img2img interrogator, output tags lacking a button "send to txt2img"
Labels: enhancement

![image](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/1768531/eeee97c2-3d14-4745-bc1e-7690ff492f2f)
----------------------
img2img interrogator, output tags lacking a button "send to txt2img"

------------------------
Repository: TypeScript
Issue: URLSearchParams needs size
Labels: Bug,Help Wanted,Domain: lib.d.ts

# Bug Report

<!--
  Please fill in each section completely. Thank you!
-->

### 🔎 Search Terms

URLSearchParams

### 🕗 Version & Regression Information

**TypeScript Version:** `typescript@4.9.5`
- This is a crash
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about [`URLSearchParams.size`](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/size)

### ⏯ Playground Link

<!--
  A link to a TypeScript Playground "Share" link which shows this behavior.
  This should have the same code as the code snippet below, and use whichever settings are relevant to your report.

  As a last resort, you can link to a repo, but these will be slower for us to investigate.
-->
[Playground link with relevant code](https://www.typescriptlang.org/play?ts=5.2.0-dev.20230531#code/MYewdgziA2CmB00QHMAUZYHcAEBVASgDIDKsAhgE7AAWACpWQLYSoCU8EAlgF6ysBQ2bEA)

### 💻 Code

<!-- Please post the relevant code sample here as well. This code and the Playground code should be the same, do not use separate examples -->
```ts
console.log(new URLSearchParams().size)
```

### 🙁 Actual behavior

> Property 'size' does not exist on type 'URLSearchParams'.ts(2339)

### 🙂 Expected behavior

No error

### Related bug:

https://github.com/microsoft/TypeScript/issues/38139

**Note:** Adding `{ "lib": ["dom.iterable"] }` to my `compilerOptions` does not help.