sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: electron
Issue: [Bug]: calling window (BrowserWindow) showInactive() will change 'document.visibilityState' even if window is occluded
Labels: platform/windows,bug :beetle:,status/confirmed,component/BrowserWindow,24-x-y,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

22.3.3

### What operating system are you using?

Windows

### Operating System Version

Windows 10 

### What arch are you using?

x64

### Last Known Working Electron version

_No response_

### Expected Behavior

when calling window.showInactive() shuld not effect 'document.visibilityState' if window is behind onother  window (not visible)

### Actual Behavior

1. create new BrowserWindow
2.  hide it by overlap another window (for example 'Chrome  browser' or any other dekstop window)
3. 'document.visibilityState' changed to 'hidden'
4. calling window.showInactive() do not change window z-order (as expected) but 'document.visibilityState' is changed to 'visibile'



### Testcase Gist URL

_No response_

### Additional Information

i think the source of it is here:
https://github.com/electron/electron/blob/f8d534f33e83c6323ed4354e51ef7d736ac24ab1/shell/browser/api/electron_api_browser_window.cc#L421

when hit due to (NativeWindowViews::ShowInactive()):
https://github.com/electron/electron/blob/f8d534f33e83c6323ed4354e51ef7d736ac24ab1/shell/browser/native_window_views.cc#L504

` web_contents()->WasShown();` should not be called if 'Inactive'
Repository: stable-diffusion-webui
Issue: [Feature Request]: Create a prompt history
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 ?

Often you work with inpaint to create an image, use prompts for "only masked" parts that do not contain everything, and change things here and there even when using inpaint on the whole image. When a part is finished, you may want to get the old prompt back so that the models see the whole image and not just what you have edited in the meantime. Currently you have to save the prompts yourself (or sometimes the undo function of the text area can help), but the webui could also have a history option that stores old prompts.

Another interesting use case is to document a workflow so that images can be reproduced more easily. Often I had images saved in the last step with only a few words in the prompt, which were related to some fixes of small errors in the image, and not to the whole image. A workaround is to have a last step img2img with very low denoising and the prompt you want to save, or to manually add the original prompt to the .txt file. But it would be useful to have the whole history of prompts in the file.

### Proposed workflow

1. Enter a prompt and generate an image
2. Goto inpaint, mark an area as inpaint and edit it with another prompt, e.g., using only-masked option
3. Disable only-masked and mark another part of the image. Get the old prompt from the history, so the generator has a prompt related to the full image again
4. Click generate and use the old prompt
5. For each further prompt change add an entry to history and possibly an undo button that goes back in history.

### Additional information

_No response_
Repository: next.js
Issue: [NEXT-1188] [13.4.x] ReferenceError: TextEncoder is not defined
Labels: bug,linear: next

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
❯ npx next info

    Operating System:
      Platform: darwin
      Arch: x64
      Version: Darwin Kernel Version 22.4.0: Mon Mar  6 21:00:17 PST 2023; root:xnu-8796.101.5~3/RELEASE_X86_64
    Binaries:
      Node: 18.14.0
      npm: 9.3.1
      Yarn: 1.22.19
      pnpm: N/A
    Relevant packages:
      next: 13.4.1
      eslint-config-next: N/A
      react: 18.2.0
      react-dom: 18.2.0
```
### Which area(s) of Next.js are affected? (leave empty if unsure)

_No response_

### Link to the code that reproduces this issue

https://gitlab.com/biomedit/next-widgets/

### To Reproduce

1. Checkout the project
2. Adapt **next.js** version
3. Run `npm i && npm run test`

### Describe the Bug

Since _v13.4.x_, our test suites started to throw following error:
```
ReferenceError: TextEncoder is not defined
```
If we roll back to _v13.3.4_, the tests are green.

Somehow I have the impression that https://github.com/vercel/next.js/pull/49053 introduced the problem on our side but I am not sure 100% (I went through all the changes listed in the changelog).

[Here](https://gitlab.com/biomedit/next-widgets/-/merge_requests/223) is the **MR** where the problem started to appear.
The **MR** did succeed because I reverted **Next.js** to _v13.3.4_.

### Expected Behavior

Tests should be green.

### Which browser are you using? (if relevant)

_No response_

### How are you deploying your application? (if relevant)

_No response_

<sub>[NEXT-1188](https://linear.app/vercel/issue/NEXT-1188/[134x]-referenceerror-textencoder-is-not-defined)</sub>
Repository: stable-diffusion-webui
Issue: [Feature Request]: Allow pinch zoom
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 ?

Pinch zoom should work in zoomed in images

### Proposed workflow

1. Browsing from mobile,
1. in the main txt2img image browser (and probably most everywhere),
1. in the full'ish-screen view of an image, I noticed pinch-zoom is being passed through as drags -- and to the underlying page.
1. We should allow pinch zoom there


### Additional information

_No response_
Repository: neovim
Issue: Filetype seems detected by filetype.lua but is not applied
Labels: bug,needs:repro,filetype,platform:nix

### Problem

Hello,

This is most probably a PEBKAC but as I did not found any issue or post related to this behavior, I am opening this issue as a last resort.

I have the following line in my `init.lua`:

```lua
vim.filetype.add({ extension = { nosj = "json" } })
```

So I am expecting `neovim` to display all files with a `.nosj` extension as a JSON file.

Currently it does not (at least on my workstation).
For instance, opening a file named `file.nosj` and issuing `:echo &filetype` shows nothing (issuing the same command on a file named `file.json` shows `json`).

But issuing `:lua print(vim.filetype.match({ filename = 'file.nosj' }))` shows `json nil` which is the same result as `:lua print(vim.filetype.match({ filename = 'file.json' }))` so `filetype.lua` seems to detect the extension as expected.

### Steps to reproduce

Here is the minimal configuration reproducing the issue (`issue.lua`):
```lua
vim.filetype.add({ extension = { nosj = "json" } })
```

```sh
nvim --clean -u issue.lua
:lua print(vim.filetype.match({ filename = 'file.nosj' })) # shows "json nil"
:e file.nosj
:echo &filetype # shows nothing
:e file.json
:echo &filetype # shows "json"
```

### Expected behavior

```sh
nvim --clean -u issue.lua
:e file.nosj
:echo &filetype # shows "json"
```

### Neovim version (nvim -v)

NVIM v0.9.0

### Vim (not Nvim) behaves the same?

No, filetype.lua is nvim specific

### Operating system/version

Linux hepao 6.1.27 NixOS SMP PREEMPT_DYNAMIC Sun Apr 30 23:26:28 UTC 2023 x86_64 GNU/Linux

### Terminal name/version

alacritty 0.12.0

### $TERM environment variable

tmux-256color

### Installation

Nix Home Manager
Repository: PowerToys
Issue: Abbreviations support in PowerToysRun
Labels: Needs-Triage

### Description of the new feature / enhancement

`VS` is the abbreviation of `Visual Studio`, but search `VS` in PowerToysRun returns many related but not expected results.

![image](https://user-images.githubusercontent.com/58254587/236688149-0ffd0b45-e7eb-4f6e-9aa2-8910bfea23f9.png)



### Scenario when this would be used?

Searching in PowerToysRun

### Supporting information

_No response_
Repository: godot
Issue: CharacterBody3D with cylinder collision shape gets stuck in sharp corners
Labels: bug,confirmed,topic:physics,topic:3d

### Godot version

4.0.3.rc1

### System information

Windows 10, i5, RTX 3050

### Issue description

When using a CharacterBody3D with a cylinder collider my character is getting stuck in the corder of a trimesh static body. Video:

https://user-images.githubusercontent.com/5291684/236689882-1f616b99-556e-4b4b-8a3a-c6ace5e0864e.mp4



### Steps to reproduce

1. Open the sample project
2. Run the game
3. Walk into the corner with the red circle around it (the angle is a little specific, it can take a few tries to get it to happen for me)
4. You will be stuck in the wall and unable to move

### Minimal reproduction project

[corner-bug-minimal-reproduction.zip](https://github.com/godotengine/godot/files/11415496/corner-bug-minimal-reproduction.zip)
Repository: flutter
Issue: Add a way to layer multiple Gradients together
Labels: c: new feature,framework,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

Figma allows this:
<img width="212" alt="image" src="https://user-images.githubusercontent.com/351125/236695129-ae41b768-d725-40cc-91b2-c764f4edef17.png">

### Proposal 

Currently there is no way to do `BoxDecoration(gradient: [])`.
I think you could make a `class MultipleGradients extend Gradient` that just painted them.
`BoxDecoration(gradient: MultipleGradients([LinearGradient, LinearGradient])` is the goal.

You need a way to combine multiple shaders, I'm not sure if there is a way available, so first the engine would need to support that:
```dart
@override
Shader createShader(Rect rect, { TextDirection? textDirection }) {
  return ui.Gradient.combine(gradients.map((d) => d.createShader))
}
```

Currently there is no way to do `BoxDecoration(gradient: [])` orrrr `[BoxDecoration1, BoxDecoration2, BoxDecoration3]`.
Repository: pytorch
Issue: Accuracy issues with Jitterated complex kernels for acos, acosh, asin, asinh, tan and tanh
Labels: module: cuda,good first issue,triaged,module: jiterator

## Issue description

The following complex kernels cause CI failures when implemented with `jitted_gpu_kernel`. 

- [ ] [acos](https://github.com/pytorch/pytorch/blob/main/aten/src/ATen/native/cuda/UnaryGeometricAcosKernel.cu)
- [ ] [acosh](https://github.com/pytorch/pytorch/blob/main/aten/src/ATen/native/cuda/UnaryGeometricAcoshKernel.cu)
- [ ] [asin](https://github.com/pytorch/pytorch/blob/main/aten/src/ATen/native/cuda/UnaryGeometricAsinKernel.cu)
- [ ] [asinh](https://github.com/pytorch/pytorch/blob/main/aten/src/ATen/native/cuda/UnaryGeometricAsinhKernel.cu)
- [ ] [tan](https://github.com/pytorch/pytorch/blob/main/aten/src/ATen/native/cuda/UnaryGeometricTanKernel.cu)
- [ ] [tanh](https://github.com/pytorch/pytorch/blob/main/aten/src/ATen/native/cuda/UnaryGeometricTanhKernel.cu)

Some may simply require a small tolerance increase to the tests but for larger differences we need to figure out which implementation is correct, thrust or jitterator. 

Note that `gpu_kernel` implemenations use `thrust` while `jitted_gpu_kernel` calls the  complex math implementations we vendor from `libc++`. These can be found in [`llvm_complex.cpp`](https://github.com/pytorch/pytorch/blob/main/aten/src/ATen/cuda/llvm_complex.cpp).



cc @ngimel @mruberry @ezyang @soumith @msaroufim @wconstab @bdhirsh @anijain2305
Repository: go
Issue: runtime: parallel json benchmark leads high CPU usage when go version > 1.15 on ARM64
Labels: NeedsInvestigation,compiler/runtime

I found a problem of CPU performance degradation on **ARM64** platform. The parallel json benchmark in the latest go version resulted in a **50%+ increase CPU usage** compared to the old version 1.15.

**This  can be easily reproduced on ARM64:** 

1. install golang package
2. download go-jsonbench: https://github.com/kpango/go-json-bench
3. `cd go-json-bench && make bench` and observe CPU usage

**My machine configuration:**
```
Architecture:           aarch64
  CPU op-mode(s):       64-bit
  Byte Order:           Little Endian
CPU(s):                 128
  On-line CPU(s) list:  0-127
Vendor ID:              HiSilicon
  BIOS Vendor ID:       HiSilicon
  Model name:           Kunpeng-920
    BIOS Model name:    Kunpeng 920-6426
    Model:              0
    Thread(s) per core: 1
    Core(s) per socket: 64
    Socket(s):          2
    Stepping:           0x1
    Frequency boost:    disabled
    CPU max MHz:        2600.0000
    CPU min MHz:        200.0000
    BogoMIPS:           200.00
    Flags:              fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma dcpop asimddp asimdfhm
Caches (sum of all):
  L1d:                  8 MiB (128 instances)
  L1i:                  8 MiB (128 instances)
  L2:                   64 MiB (128 instances)
  L3:                   128 MiB (4 instances)
NUMA:
  NUMA node(s):         4
  NUMA node0 CPU(s):    0-31
  NUMA node1 CPU(s):    32-63
  NUMA node2 CPU(s):    64-95
  NUMA node3 CPU(s):    96-127
```

**The benchmark result is below:**

CPU usage is about **2000%** for **go 1.15.7**:

![image](https://user-images.githubusercontent.com/70674731/236719540-11b36a20-50a5-45e3-85b7-1d9d02a49ebb.png)

CPU usage is about **3000%** for **go latest version**:

![image](https://user-images.githubusercontent.com/70674731/236720089-df94c564-fb99-46fb-993d-7ec59f5b2cf4.png)

Finally, through `git bisect` search, I found that [fe7ff71185cf](https://go-review.googlesource.com/c/go/+/247037) was the first commit that leads performance degradation, but I was not clear why this commit had such a big impact on CPU performance.
Repository: flutter
Issue: Add ChipSet
Labels: c: new feature,framework,f: material design,d: api docs,d: examples,would be a good package,c: proposal,P3,team-design,triaged-design

See PR: #126308

See the live sample [here](https://dartpad.dev/?id=cd233afb0bf718d4b8bc71cc3999b776)
<img width="918" alt="image" src="https://user-images.githubusercontent.com/16697547/237002369-a217497e-d9be-489f-924b-ae81db181c4c.png">

From the Material Design website:

> Multiple chips should appear together in a group, whereas there should be no more than 3 buttons in a single arrangement.

### 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 user needs to select zero or many items in a list.

Problem: no widget allows the user to select multiple items in a list.

Solution: display multiple [`FilterChip`](https://api.flutter.dev/flutter/material/FilterChip-class.html) widgets from left to right, top to bottom, and bind the results to a list.

### Proposal

<img width="389" alt="image" src="https://user-images.githubusercontent.com/16697547/236724059-3a8c1035-f07e-476d-9c17-5eb0f4f17459.png">

The original sketch code was removed....

See the proposed widget here:
#126308
Repository: next.js
Issue: [NEXT-1130] app router: Scroll position not reset when dynamic segment changes
Labels: bug,Navigation,linear: next

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
codesandbox on next@13.4.1-canary.2
```

### Which area(s) of Next.js are affected? (leave empty if unsure)

Routing (next/router, next/navigation, next/link)

### Link to the code that reproduces this issue

https://codesandbox.io/p/sandbox/hopeful-taussig-uvq5g1

### To Reproduce

Click around to different pages, which are all handled by the same /app/[path]/page.tsx route.

### Describe the Bug

Note that scroll position is preserved when navigating.

### Expected Behavior

You wouldn't expect it to be.


<sub>[NEXT-1130](https://linear.app/vercel/issue/NEXT-1130/app-router-scroll-position-not-reset-when-dynamic-segment-changes)</sub>
Repository: vscode
Issue: Vscode Sets breakpoint in both sessions in multicore debugging with single Debug Configuration 
Labels: feature-request,debug

<!-- ⚠️⚠️ 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. -->
In multicore debugging with a single debug configuration when we try setting breakpoints in either of the sessions it sets breakpoints for both of the debug sessions. For Example, Consider the Following case:

When we set a breakpoint in one Session which turns out to be an outbound breakpoint, then it tries to resolve the breakpoint to a random location in the other Debug Session, which results in an exception.  So if we can stop setting breakpoint in both sessions and instead set them only in the user-requested session, we can overcome this problem.
Repository: bitcoin
Issue: test: RPC coverage check doesn't work?
Labels: Tests

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Current behaviour

Currently CI reports that all RPCs are covered: https://cirrus-ci.com/task/6244871116161024?logs=ci#L4674

### Expected behaviour

However, some RPCs are clearly not covered because they are never called. For example:

```
$ git grep abortrescan  ./test/  | grep -v '. Please call `abortrescan` before ' | wc -l 
0
```

### Steps to reproduce

?

### Relevant log output

_No response_

### How did you obtain Bitcoin Core

Compiled from source

### What version of Bitcoin Core are you using?

current master

### Operating system and version

any

### Machine specifications

_No response_
Repository: create-react-app
Issue: App.jsx won't manipulate the root
Labels: needs triage,issue: bug report

Hey, I recently started using React, at my 3rd project the App.jsx just stopped manipulating the Main.jsx and the root div in the index.html.

here is the App.jsx content:

```
import React, { useState } from 'react'
import reactLogo from './assets/react.svg'
import viteLogo from '/vite.svg'
import './App.css'

function App() {

  return (
    <div id='react-root'>
      <div id='header'>
        <div id='logo'></div>
        <div id='renters'>Renters</div>
        <div id='tenants'>Tenants</div>
        <div id='selers'>Sellers</div>
        <div id='buyers'>Buyers</div>
        <div id='overseas'>Overseas</div>
        <input type="select">language</input>
      </div>
    </div>
  )
}

export default App
```

the Main.jsx does import the App function from App.jsx.

any idea?
Repository: vscode
Issue: punctuation echo issues under MacOS
Labels: bug,accessibility,editor-core

<!-- ⚠️⚠️ 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. -->
- VS Code Version: 
- OS Version: 

Steps to Repro


Open a swift or python code file in VSCODE. With all punctuation echo turned on under MacOS, type different punctuation.

Speech marks (“) and curly braces ({) are not announced. 

I have tested this on MacOS 13.2.1 using the latest build of VSCODE and Insiders build. Punctuation echo bug is still present.
Repository: flutter
Issue: Newlines (`\n`) after full-width `WidgetSpan` are rendered as nothing on some devices
Labels: platform-android,engine,a: typography,c: rendering,has reproducible steps,P2,found in release: 3.7,found in release: 3.11,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)

### Steps to reproduce

Hi thanks for the great framework! However, newlines (`\n`) after full-width `WidgetSpan` are rendered as nothing on some devices. This only happen on a portion of devices, including Android `RedMi Note 10 Pro` and some other devices seen in production environment. Thus, if you cannot reproduce it, maybe change another phone, or feel free to ask me to provide any information for debugging!

"Steps to reproduce": Run the app and look at it

### Expected results

See a green box + many newlines (i.e. big spaces) + text "a"

### Actual results

See a green box + *does not see many newlines (i.e. big spaces)* + text "a". 

Screenshot is:

<details>

![Screenshot_2023-05-08-17-46-13-165_com cjy yplusplus](https://user-images.githubusercontent.com/5236035/236792523-da698ee6-486a-415c-83cc-8ce74a5e1bbe.jpg)

</details>

### Code sample

<details><summary>Code sample</summary>

```dart
import 'package:flutter/material.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Text.rich(
          TextSpan(
            children: [
              WidgetSpan(child: Container(width: 1000, height: 100, color: Colors.green)),
              const TextSpan(text: '\n\n\n\n\n\n\n\n\na'),
            ],
          ),
        ),
      ),
    );
  }
}
```

</details>


### Screenshots or Video

<details>
<summary>Screenshots / Video demonstration</summary>

[Upload media here]

</details>


### Logs

<details><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
latest stable
```

</details>