sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: tauri
Issue: [bug] visibilitychange event not fired
Labels: type: bug,status: needs triage

### Describe the bug

The `visibilitychange` event does not fire when the application loses/gains focus (for example, the user switches to a different application). The event _does_ fire when the window is minimized or maximized.

(I am aware of https://github.com/tauri-apps/tauri/issues/6864, but it appears that issue was closed/merged so I am not sure if it fully addressed the issue).

### Reproduction

Attach a listener to the `visibilitychange` event and log out the event.

```javascript
document.addEventListener("visibilitychange", (event) => {
  console.log("changed!", event);
});
```

The event will not fire when the user switches to another application, but will be fired if the application is minimized or maximized.

### Expected behavior

_No response_

### Full `tauri info` output

```text
[✔] Environment
    - OS: Mac OS 14.1.1 X64
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.76.0 (07dca489a 2024-02-04)
    ✔ cargo: 1.76.0 (c84b36747 2024-01-18)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (default)
    - node: 21.6.2
    - npm: 10.2.4

[-] Packages
    - tauri [RUST]: 2.0.0-beta.15
    - tauri-build [RUST]: 2.0.0-beta.12
    - wry [RUST]: 0.39.1
    - tao [RUST]: 0.27.0
    - @tauri-apps/api [NPM]: 2.0.0-beta.6
    - @tauri-apps/cli [NPM]: 2.0.0-beta.11

[-] App
    - build-type: bundle
    - CSP: default-src 'self'; media-src 'self' asset: https://asset.localhost; connect-src ipc: http://ipc.localhost
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
    - framework: React
    - bundler: Vite
```
```


### Stack trace

_No response_

### Additional context

_No response_
Repository: PowerToys
Issue: Add borders to apps that are borderless
Labels: Idea-New PowerToy,Needs-Triage

### Description of the new feature / enhancement

Although enabling borders in Windows Settings make some apps to display borders, there are still certain apps, such as Notion and Slack, that remain borderless. This becomes particularly problematic when using dark themes. As an example, consider the image below
![image](https://github.com/microsoft/PowerToys/assets/1834837/906b4266-e15c-4f8f-b79d-1fb8da10ee77)

Can you easily distinguish the three windows? They are Windows Terminal, Slack, and Notion, all using dark themes. Personally, I often find it difficult to locate areas where I can drag to move, such as the title bar. When apps blend together with the same dark background color, this issue becomes even more pronounced.

I think it is good to have a feature that can enable borders for apps, but active one can have thicker border or brighter color, or just show border for active one. Maybe some custom settings can be provided. 

### Scenario when this would be used?

It is useful when there are apps using dark them and overlapping each other, it is easy to distinguish the borders of apps. 

### Supporting information

_No response_
Repository: TypeScript
Issue: TS2590: Expression produces a union type that is too complex to represent, with simple file using Tuples
Labels: Help Wanted,Possible Improvement

### 🔎 Search Terms

TS2590.

There are several issues referring to TS2590, but none with the specific, simple reproduction code below.

### 🕗 Version & Regression Information

This changed between versions `5.0.0-dev.20221117` and `5.0.0-dev.20221118`

### ⏯ Playground Link

https://www.typescriptlang.org/dev/bug-workbench/?ssl=2&ssc=16&pln=2&pc=1#code/PTAEAEDMEsBsFMB2BDAtvAXKA9o+A6AFwGcBYAKBAlmgCMt5i8APQi6VAB2wCdDQA3tELxUAGlCEAnp3igAKgFdOCAJIjUAX1CQe2VKADk+YIQDu2QwG4KFAMa5i-YaIDC2TlKxKV8daNAAXlAXVBtyCiooOCQ0TEkLIjJyeGZuPlAAE3g7WGQeOQdEJxCNb2U1DXCKVPT+aVkFCr8NAB4fBCDQAG0ARgBdCQAFPVk+KS7DAAZDAD4ugQoASAA3ZFhFeI65VJFETOIegdAAHx6AJn7lpYB+UBGPeHHQXaQDoxnTo2J9eEMvwyQXgAUWQdgAFv8zoZUMhOFCjDBYCIeAjDAVMoo7H8ARisfAAErQADm4MIaJg+wp0H2qn2qWpsFgaIcngA6sJwTS0UhCDxoIw0QBreBSYhotYbQUAmm5RTZcUAyB5QgAWThFJVaOQ5Out3uoye0herDehxFUmwkCavlAd223QeY2k-VAWEU9Mp8Eyevdnpp3uufuyXsy4U0ViAA

### 💻 Code

```
tsc --lib esnext one.ts 
one.ts:3:7 - error TS2590: Expression produces a union type that is too complex to represent.

3 const itemCopy: TupleItem = item;
        ~~~~~~~~

Found 1 error in one.ts:3
```

```ts
// one.ts
import {item, type TupleItem} from './two';

const itemCopy: TupleItem = item;
```

```ts
// two.ts
export declare const item: TupleItem;

export type TupleItem<Tuple = [1], Property = '0'> = {
	value: Tuple extends [1] | [2]
		? Property extends '0' | 'some' | 'forEach' | 'map' | 'filter' | 'reduce' | 'reduceRight' | 'find' | 'findIndex' | 'fill' | 'copyWithin' | 'entries' | 'keys' | 'values' | 'includes' | 'flatMap' | 'flat' | 'at'
			? Property extends keyof Tuple ? Tuple[Property] : undefined
			: undefined
		: undefined;
};
```


### 🙁 Actual behavior

The types fail due to: `TS2590: Expression produces a union type that is too complex to represent.`

### 🙂 Expected behavior

The types above are quite simple. Even though the union type has ~20 values, that should not be enough to make the types fail.

### Additional information about the issue

Small changes in the code above will fail to reproduce the error, such as:
  - Merging both files into a single one
  - Not using a `declare const` line
  - Not using generics, or not using generic default types
  - Using `Tuple extends ...` instead of `{value: Tuple extends ...}`
  - Not using `--lib esnext`
Repository: rust
Issue: Performance regression: rustc failed to optimize `_mm256_avg_epu8` after 1.75.0
Labels: A-LLVM,I-slow,P-medium,regression-from-stable-to-stable,A-SIMD,C-bug,I-heavy,E-needs-bisection,T-libs

<!--
Thank you for filing a regression report! 🐛 A regression is something that changed between versions of Rust but was not supposed to.

Please provide a short summary of the regression, along with any information you feel is relevant to replicate it.
-->

### Code

I tried this code:

https://rust.godbolt.org/z/KG4cT6aPK

```rust
use std::arch::x86_64::*;

#[target_feature(enable = "avx2")]
pub unsafe fn decode(
    x: __m256i,
    ch: __m256i,
    ct: __m256i,
    dh: __m256i,
    dt: __m256i,
) -> Result<__m256i, ()> {
    let shr3 = _mm256_srli_epi32::<3>(x);

    let h1 = _mm256_avg_epu8(shr3, _mm256_shuffle_epi8(ch, x));
    let h2 = _mm256_avg_epu8(shr3, _mm256_shuffle_epi8(dh, x));

    let o1 = _mm256_shuffle_epi8(ct, h1);
    let o2 = _mm256_shuffle_epi8(dt, h2);

    let c1 = _mm256_adds_epi8(x, o1);
    let c2 = _mm256_add_epi8(x, o2);

    if _mm256_movemask_epi8(c1) != 0 {
        return Err(());
    }

    Ok(c2)
}
```

I expected to see this happen: This code should emit two `vpavgb` instructions.

Instead, this happened: One of the `vpavgb` instructions is missing.

https://github.com/Nugine/simd/issues/43

### Version it worked on

<!--
Provide the most recent version this worked on, for example:

It most recently worked on: Rust 1.47
-->

It most recently worked on: 1.74.1

### Version with regression

1.75.0 ~ nightly

```
rustc 1.79.0-nightly (dbce3b43b 2024-04-20)
binary: rustc
commit-hash: dbce3b43b6cb34dd3ba12c3ec6f708fe68e9c3df
commit-date: 2024-04-20
host: x86_64-unknown-linux-gnu
release: 1.79.0-nightly
LLVM version: 18.1.4
```


@rustbot modify labels: +regression-from-stable-to-stable -regression-untriaged
Repository: vscode
Issue: `Searn only in Opened Editors` and `files to include` doesn't support filename with special characters
Labels: bug,search,confirmed

reproduce:

1. create a file named `[a].js`, write something and keep open t.
2. open search panel, and enable `Searn only in Opened Editors`
3. you will find you can't search the content in `[a].js`
4. If you disable `Searn only in Opened Editors` and write file `[a].js` to `files to include` input, also can't find content in `[a].js` 

expect:

can search the content in `[a].js`

<img width="1512" alt="image" src="https://github.com/microsoft/vscode/assets/41773861/72241387-6ae7-487a-9720-22301220eb9d">
Repository: godot
Issue: Reimporting a second time no longer updates the font in the editor.
Labels: bug,topic:editor,topic:import

### Tested versions

v4.3.dev5.official [89f70e98d]
Solved in v4.4.dev1.official [28a72fa43] or perhaps earlier

### System information

w10 64

### Issue description

I have imported a font bmp image as Font Data.

When you alter the margins for the first time and reimport the data, the source updates its display in the editor, when you alter the margins for the second time and reimport again, the source no longer updates its display even though the changes have been applied.

To see the changes you will have to restart the editor, but the same thing will happen again... very annoying.

Video:
https://youtu.be/xGNuigqJrRs

### Steps to reproduce

Apply some change to the font that makes it look different, some margin or something like that.
Reimport.
The changes are reflected in the editor.
Apply a change again.
Reimport.
The changes are no longer reflected.

### Minimal reproduction project (MRP)

[testfontReimport.zip](https://github.com/godotengine/godot/files/15050938/testfontReimport.zip)
Repository: deno
Issue: import.meta.dirname is invalid [or undefined in some cases?] in binaries compiled for [or [in and for]] Windows
Labels: bug,runtime

**Code**

```ts
console.log(typeof import.meta.dirname, import.meta.dirname?.length);
```

**Output**

![image](https://github.com/denoland/deno/assets/49933115/b265a938-3622-4c23-88e7-aed64bf31421)

**deno --version**

```
deno 1.42.4 (release, x86_64-pc-windows-msvc)
v8 12.3.219.9
typescript 5.4.3
```
Repository: tauri
Issue: [bug] Onwheel doesn't work 
Labels: type: bug,status: needs triage

### Describe the bug

I previously submitted an issue, but it seems the developers didn't understand what I meant, so I submitted the issue again, expressing my meaning more precisely.

The version of Tauri I am using is >=2.0.0-beta. I found that on a laptop touchpad, scrolling with two fingers in opposite directions does not trigger the wheel event; however, it does trigger the event when scrolling in the same direction. I think this might be a bug, since the wheel event is triggered on Edge and Chrome when scrolling with two fingers in opposite directions.

On Chrome, the "wheel" event was triggered:

https://github.com/tauri-apps/tauri/assets/22124730/37a35141-9838-4382-88b2-c1adf398ff9f

On Tauri-developed app, nothing happened:


https://github.com/tauri-apps/tauri/assets/22124730/22551f44-5e79-4a74-9b8b-9bf05a83e1c6



### Reproduction

_No response_

### Expected behavior

_No response_

### Full `tauri info` output

```text
[✔] Environment
    - OS: Windows 10.0.22631 X64
    ✔ WebView2: 123.0.2420.97
    ✔ MSVC: Visual Studio Build Tools 2019
    ✔ rustc: 1.77.1 (7cf61ebde 2024-03-27)
    ✔ cargo: 1.77.1 (e52e36006 2024-03-26)
    ✔ rustup: 1.27.0 (bbb9276d2 2024-03-08)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 18.17.1
    - pnpm: 8.15.4
    - npm: 10.5.1

[-] Packages
    - tauri [RUST]: 1.6.1
    - tauri-build [RUST]: 1.5.1
    - wry [RUST]: 0.24.7
    - tao [RUST]: 0.16.8
    - @tauri-apps/api : not installed!
    - @tauri-apps/cli [NPM]: 1.5.11

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: ../src
    - devPath: ../src
```


### Stack trace

_No response_

### Additional context

_No response_
Repository: PowerToys
Issue: 无界鼠标无法共享剪贴板和拖动传输文件
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.80.1

### Installation method

PowerToys auto-update, Microsoft Store

### Running as admin

Yes

### Area(s) with issue?

Mouse Without Borders

### Steps to reproduce

一直重现

### ✔️ Expected Behavior

只有管理员权限可以连接设备，连接好可以使用鼠标和键盘，但是共享剪贴板和拖动传输文件无法使用，刷新连接按钮点过后会自动改变屏幕位置，只能退出后以用户权限调整位置后再以管理员权限连接设备，这点非常不方便，希望开发者能修复的和Microsoft Garage Mouse without Borders2.2.1.327版本一样好用，谢谢

### ❌ Actual Behavior

_No response_

### Other Software

_No response_
Repository: PowerToys
Issue: `Notice.md` ImageResizer referenced repository points back to PowerToys
Labels: Issue-Docs,Needs-Triage

### Provide a description of requested docs changes

[`NOTICE.md` mentions](https://github.com/microsoft/PowerToys/blob/main/NOTICE.md#brice-lamss-image-resizer-license) ImageResizer uses

> Brice Lams's Image Resizer License
> 
> **Source**: https://github.com/bricelam/ImageResizer/

but that repository is archived and points back to PowerToys as "moved to".

Is the notice still necessary for the copyright notice? (Not covered by the source files or module scoping?) If so, can and should not the Source link reference be dropped?
Repository: go
Issue: proposal: maps: Add Group and GroupFunc
Labels: Proposal

### Proposal Details

I propose to add the functions `Group` and `GroupFunc` to the package maps , as I find myself reimplementing these often.
They work similarly to `Object.GroupBy` in JavaScript.
```go
func Group[K comparable, V any](seq iter.Seq2[K, V]) map[K][]V {
	m := make(map[K][]V)
	for k, v := range seq {
		s := m[k]
		s = append(s, v)
		m[k] = s
	}
	return m
}
```
```go
func GroupFunc[K comparable, V any](seq iter.Seq[V], f func(V) K) map[K][]V {
	m := make(map[K][]V)
	for v := range seq {
		k := f(v)
		s := m[k]
		s = append(s, v)
		m[k] = s
	}
	return m
}
```
Repository: pytorch
Issue: Triton Error [CUDA]: invalid device context when autograd.backward a triton kernel
Labels: module: autograd,module: cuda,triaged,has workaround,upstream triton

### 🐛 Describe the bug

```python

import torch
import triton
import triton.language as tl

class Rua(torch.autograd.Function):

    @staticmethod
    def rua(hidden):
        output = torch.empty_like(hidden)
        _rua_kernel[(1,)](hidden)
        return output

    @staticmethod
    def forward(ctx, hidden):
        return Rua.rua(hidden)

    @staticmethod
    def backward(ctx, output_grad):
        return Rua.rua(output_grad)

@triton.jit
def _rua_kernel(hidden_sh_ptr):
    return

if __name__ == "__main__":

    input_data = torch.empty(1, device='cuda', requires_grad=True)
    output_grad = torch.empty(1, device='cuda')

    output = Rua.apply(input_data)
    # torch.empty(1, device='cuda', requires_grad=True).backward()
    torch.autograd.backward(output, output_grad)
    torch.cuda.synchronize()

```

Prints:
```
Traceback (most recent call last):
  File "/home/X/a.py", line 33, in <module>
    torch.autograd.backward(output, output_grad)
  File "/home/X/.local/lib/python3.11/site-packages/torch/autograd/__init__.py", line 266, in backward
    Variable._execution_engine.run_backward(  # Calls into the C++ engine to run the backward pass
  File "/home/X/.local/lib/python3.11/site-packages/torch/autograd/function.py", line 289, in apply
    return user_fn(self, *args)
           ^^^^^^^^^^^^^^^^^^^^
  File "/home/X/a.py", line 20, in backward
    return Rua.rua(output_grad)
           ^^^^^^^^^^^^^^^^^^^^
  File "/home/X/a.py", line 11, in rua
    _rua_kernel[(1,)](hidden)
  File "/home/X/.local/lib/python3.11/site-packages/triton/runtime/jit.py", line 550, in run
    bin.c_wrapper(
RuntimeError: Triton Error [CUDA]: invalid device context
```

If I uncomment the commented line in the code, it runs correctly.

### Versions

```
PyTorch version: 2.2.2+cu121
Is debug build: False
CUDA used to build PyTorch: 12.1
ROCM used to build PyTorch: N/A

OS: Arch Linux (x86_64)
GCC version: (GCC) 13.2.1 20230801
Clang version: 17.0.6
CMake version: version 3.29.2
Libc version: glibc-2.39

Python version: 3.11.8 (main, Feb 12 2024, 14:50:05) [GCC 13.2.1 20230801] (64-bit runtime)
Python platform: Linux-6.6.27-1-lts-x86_64-with-glibc2.39
Is CUDA available: True
CUDA runtime version: 12.4.131
CUDA_MODULE_LOADING set to: LAZY
GPU models and configuration: GPU 0: NVIDIA GeForce RTX 3080
Nvidia driver version: 550.67
```

cc @ezyang @albanD @gqchen @pearu @nikitaved @soulitzer @Varal7 @ptrblck @msaroufim @bertmaher @int3 @davidberard98 @nmacchioni @Lezcano
Repository: godot
Issue: Tilemaps are glitching
Labels: bug,topic:rendering,topic:2d

### Tested versions

Godot Engine v4.2.2.stable.official.15073afe3 - https://godotengine.org
OpenGL API 4.6 (Core Profile) Mesa 24.0.5-arch1.1 - Compatibility - Using Device: AMD - AMD Radeon RX 6700 XT (radeonsi, navi22, LLVM 17.0.6, DRM 3.57, 6.8.6-arch1-1)

### System information

Godot v4.2.2.stable - Arch Linux #1 SMP PREEMPT_DYNAMIC Sat, 13 Apr 2024 14:42:24 +0000 - Wayland - GLES3 (Compatibility) - AMD Radeon RX 6700 XT (radeonsi, navi22, LLVM 17.0.6, DRM 3.57, 6.8.6-arch1-1) () - AMD Ryzen 5 5600X 6-Core Processor (12 Threads)

### Issue description

![image](https://github.com/godotengine/godot/assets/150826258/bc26abba-5ae1-4a63-b3ad-78bebd655bf8)
I added skeleton animation by AnimationPlayer. Now my houses are glitching

### Steps to reproduce

add skeleton animation by AnimationPlayer

### Minimal reproduction project (MRP)

[project.zip](https://github.com/godotengine/godot/files/15051379/project.zip)
Repository: transformers
Issue: [DynamicHead - Microsoft] Implementation request
Labels: New model

### Model description

Hi there! 
I was wondering if anyone has tried to implement Microsoft's DyHead? If not, I would like to contribute the implementation by adding a new model to the library. Is there any interest in a PR for this model?

Here a short explanation from their official implementation:
_"In this paper, we present a novel dynamic head framework to unify object detection heads with attentions. By coherently combining multiple self-attention mechanisms between feature levels for scale-awareness, among spatial locations for spatial-awareness, and within output channels for task-awareness, the proposed approach significantly improves the representation ability of object detection heads without any computational overhead."_

### Open source status

- [X] The model implementation is available
- [X] The model weights are available

### Provide useful links for the implementation

GitHub Repository: [Link](https://github.com/microsoft/DynamicHead/tree/master)
Paper: [Link](https://arxiv.org/pdf/2106.08322.pdf)
Repository: neovim
Issue: FUNC_API_REMOTE_ONLY in Lua/Vimscript
Labels: enhancement,api,channels-rpc

### Problem

FUNC_API_REMOTE_ONLY marks functions that require a channel id and these functions currently aren't usable from Lua/vimscript.

### Expected behavior

Rename FUNC_API_REMOTE_ONLY to FUNC_API_CHAN_REQUIRED so that Lua/Vimscript can pass an explicit channel id. This allows those functions to be batched via `nvim_exec_lua` , and removes the last remaining use case of nvim_call_atomic. https://github.com/neovim/neovim/pull/28433
Repository: godot
Issue: Incorrect warning about an empty script file
Labels: bug,topic:gdscript

### Tested versions

v4.2.2.stable.official [15073afe3]

### System information

Ubuntu

### Issue description

```
W 0:00:00:0318   Empty script file.
  <C++ Error>    EMPTY_FILE
  <C++ Source>   autoload.tscn::GDScript_4i6vl:1
```

### Steps to reproduce

1. Create a clean project
2. Create a new scene, save it as `main.tscn`
3. Create a new scene, save it as `autoload.tscn`
4. Attach a built-in script to the root node of the `autoload.tscn`, declare some property e.g. `var oi := "oi"`
5. Add your `autoload.tscn` to the autoloads in project settings
6. Access your `autoload.tscn` from your `main.tscn`, e.g.
```
func _ready():
	print(Autoload.oi)
```
7. Hit F5 and launch into the `main.tscn`, notice the incorrect warning - there is no empty script file

### Minimal reproduction project (MRP)

[godot_4_script_empty_bug.zip](https://github.com/godotengine/godot/files/15051693/godot_4_script_empty_bug.zip)
Repository: ollama
Issue: Support logit_bias
Labels: feature request

Just want to put on the record that I'd love to see support for the logit_bias parameter for the chat/completions endpoint.
Repository: kubernetes
Issue: [LinuxOnly] is egregiously misused at least in sig-network tests
Labels: sig/network,sig/windows,triage/accepted

In `test/e2e/network`, there are currently 45 tests marked `[LinuxOnly]`, of which it seems that 37 are incorrect or at least dubious:
- 15 claim that Windows does not support `SessionAffinity`, which [was implemented in `pkg/proxy/winkernel` 4 years ago](https://github.com/kubernetes/kubernetes/pull/91701)
- 14 test dual-stack, which works on Windows but [is (was?) not fully supported by our CI environment](https://github.com/kubernetes/kubernetes/issues/100870)
- 3 need UDP support in agnhost, which the tests in question claim does not work, though I suspect this actually means "at [the time these tests were merged](https://github.com/kubernetes/kubernetes/pull/98636), the windows agnhost image had not been rebuilt with the [recently-added udp client](https://github.com/kubernetes/kubernetes/pull/98639) yet".
- 2 use `hostNetwork` pods, which [now exist in alpha on Windows](https://github.com/kubernetes/enhancements/issues/3503), so we ought to at least optionally be running them there
- 1 uses pod hostPorts, which have been [supported on Windows since 2020](https://github.com/containernetworking/plugins/pull/475).
- 1 is skipped because "IPv6 is not supported on Windows", which is not true

The seemingly-correct ones:
- 5 use SCTP, which AIUI the Windows kernel does not implement and does not plan to implement.
- 3 test partial DNS names (`kubernetes.default.svc`) which apparently are not supported by the Windows resolver

cc @claudiubelu @knabben @MikeZappa87
/sig windows
/sig network