sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: tensorflow
Issue: [Incorrect Result] `tf.math.reciprocal` returns `NaN` on `inf` input on Linux.
Labels: stat:awaiting tensorflower,type:bug,comp:ops,2.17

### Issue type

Bug

### Have you reproduced the bug with TensorFlow Nightly?

Yes

### Source

binary

### TensorFlow version

tf 2.17.0

### Custom code

No

### OS platform and distribution

AlmaLinux 9.4

### Mobile device

_No response_

### Python version

3.9

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

`tf.math.reciprocal` returns `NaN` on Linux when input is `inf` or `-inf` and has dtype=complex128, shape >= 2.
The output is expected to be 0, since:
1. This behavior is not consistent with dtype=float64, where the output will be 0.
2. When input tensor contains only one value, the output will be 0.
3. The same code snippet will return different result on macOS, where the output is also 0.

### Standalone code to reproduce the issue

```shell
import numpy as np
import tensorflow as tf

input = tf.constant(np.inf, dtype=tf.float64)
out = tf.math.reciprocal(input)
# tf.Tensor(0.0, shape=(), dtype=float64)
print(out)

input = tf.constant(np.inf, dtype=tf.complex128)
out = tf.math.reciprocal(input)
# tf.Tensor(0j, shape=(), dtype=complex128)
print(out)

input = tf.constant([np.inf, np.inf], dtype=tf.complex128)
out = tf.math.reciprocal(input)
# On Linux: tf.Tensor([nan+nanj nan+nanj], shape=(2,), dtype=complex128)
# On macOS: tf.Tensor([0.+0.j 0.+0.j], shape=(2,), dtype=complex128)
print(out)
```


### Relevant log output

```shell
AttributeError: module 'ml_dtypes' has no attribute 'float8_e3m4'
tf.Tensor(0.0, shape=(), dtype=float64)
tf.Tensor(0j, shape=(), dtype=complex128)
tf.Tensor([nan+nanj nan+nanj], shape=(2,), dtype=complex128)
```
Repository: excalidraw
Issue: flowChart new node is not same as the starting node
Labels: bug,good first issue

i belive the video explain the issue very well

https://github.com/user-attachments/assets/bce54ceb-be16-474f-bf7b-4eef54d7c1e2
Repository: storybook
Issue: [Bug]: Storybook telemetry is not disabled
Labels: bug,cli,telemetry

### Describe the bug

I have:

```javascript
  core: {
    disableTelemetry: true,
  },
```

and

```shell
STORYBOOK_DISABLE_TELEMETRY=1 storybook dev -p 6006
```

So why Storybook is trying to connect to:

apex-loadbalancer.netlify.app TCP 443 52.58.254.253 ec2-52-58-254-253.eu-central-1.compute.amazonaws.com

### Reproduction link

.

### Reproduction steps

_No response_

### System

storybook v8.3.5

### Additional context

_No response_
Repository: ant-design
Issue: Virtual table can't be scrolled horizontally after attempting to use browser swipe to go back/forward
Labels: Inactive,unconfirmed

### Reproduction link

[https://ant.design/components/table#table-demo-virtual-list](https://ant.design/components/table#table-demo-virtual-list)

### Steps to reproduce

1. Hover over the virtual table and scroll right and left
2. Hover above the table and try to scroll to left, browser go back arrow should be visible.
3. Dismiss going back to the previous page
4. Try to scroll the virtual table

Attaching screen recording: https://vimeo.com/1021226504?share=copy#t=0

### What is expected?

Horizontal scroll should work as expected and scroll to both sides

### What is actually happening?

Horizontal scroll is stuck and it scrolls only by 1 px at a time triggering browser back/forward page navigation

| Environment | Info |
| --- | --- |
| antd | 5.21.4 |
| React | react 18.2.0 |
| System | MacOS 14.2.1 (23C71) |
| Browser | Chrome 128.0.6613.84 (Official Build) (arm64) |

---
Seems like this issue is intermittent and not always happens, but when it's stuck nothing helps.

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: pytorch
Issue: torch::distributions module for C++ frontend API
Labels: module: cpp,triaged

### 🚀 The feature, motivation and pitch

It seems that torch.distribution is only support in pytorch, but not for libtorch, the C++ frontend. And some  C++ applications need to sample data from the distributions. So the implementation of the torch.distributions is helpful.

For example, 
https://discuss.pytorch.org/t/how-to-create-multivariate-normal-samples-in-c-given-mean-vector-and-covariance-matrix/123960

https://discuss.pytorch.org/t/how-to-use-torch-distributions-gumbel-in-c-api/172368

https://discuss.pytorch.org/t/how-to-create-multivariate-normal-samples-in-c-given-mean-vector-and-covariance-matrix/123960

https://discuss.pytorch.org/t/torch-distributions-categorical/45747

https://discuss.pytorch.org/t/is-there-an-equivalent-of-torch-distributions-multivariatenormal-in-libtorch-the-c-api-for-pytorch/211784/2

### Alternatives

_No response_

### Additional context

_No response_

cc @jbschlosser
Repository: deno
Issue: `pack` command to build a clean tar archive without publishing
Labels: cli,suggestion,publish

As per the title. I note that Deno does not have an equivalent for the [`npm pack`](https://docs.npmjs.com/cli/v10/commands/npm-pack) command where one can build a distribution-ready archive without actually publishing to any particular registry.
Repository: PowerToys
Issue: Mouse Pointer Crosshairs: max GPU usage in games
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.85.1

### Installation method

PowerToys auto-update

### Running as admin

Yes

### Area(s) with issue?

Mouse Utilities

### Steps to reproduce

1. Start a fullscreen/borderless fullscreen game (tested in Ravenswatch and New World).
2. Activate Mouse Pointer Crosshairs using activation shortcut.
3. Move cursor around and watch GPU usage.

(AMD Radeon RX 6900XT)

### ✔️ Expected Behavior

Negligible affect on GPU in games, akin to something like YoloMouse.

### ❌ Actual Behavior

- Just activating the crosshair in a game puts strain on the GPU.
- If moving the cursor at all, the GPU jumps to 100% and stays there as long as the cursor moves.

### Other Software

Games tested:
Ravenswatch
New World
Repository: tensorflow
Issue: Multi-threaded execution throws an exception (using GPU).
Labels: type:bug,comp:gpu

### Issue type

Bug

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

Yes

### Source

binary

### TensorFlow version

2.19.0-dev20241018

### Custom code

Yes

### OS platform and distribution

Ubuntu 24.04

### Mobile device

_No response_

### Python version

3.9

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

Multi-threaded execution throws an exception (using GPU).

### Standalone code to reproduce the issue

```shell
import concurrent

import numpy as np
import tensorflow as tf
print(tf.__version__)

executor = concurrent.futures.ThreadPoolExecutor()


def sum(x, axis):
    return tf.reduce_sum(x, axis=axis)


futures = []

for i in range(1000):
    futures.clear()
    for _ in range(4):
        x = tf.convert_to_tensor(np.random.rand(100, 100))
        futures.append(executor.submit(sum, x, 1))
        x = tf.convert_to_tensor(np.random.rand(100))
        futures.append(executor.submit(sum, x, 0))
    concurrent.futures.wait(
        futures, return_when=concurrent.futures.ALL_COMPLETED
    )
    [future.result() for future in futures]
```


### Relevant log output

```shell
W tensorflow/core/framework/op_kernel.cc:1840] OP_REQUIRES failed at reduction_ops_common.h:147 : INVALID_ARGUMENT: Invalid reduction dimension (1 for input with 1 dimension(s)
I tensorflow/core/framework/local_rendezvous.cc:405] Local rendezvous is aborting with status: INVALID_ARGUMENT: Invalid reduction dimension (1 for input with 1 dimension(s)

```
```
Repository: PowerToys
Issue: Keyborad Manager settings are not applied in browser
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.85.1

### Installation method

GitHub, Microsoft Store

### Running as admin

Yes

### Area(s) with issue?

General

### Steps to reproduce

Change A to B in Keyborad Manager

### ✔️ Expected Behavior

When I type A in the browser, B appears

### ❌ Actual Behavior

It is replaced without any problem except when inputting in a browser, but it is not replaced in Chrome or Edge.
However, it is very rarely replaced and the behavior is unstable.

What I really want to set is to change ' to IME KANJI.

This event was confirmed on a Windows 11 computer.
I don't think this kind of issue occurs on Windows 10, but is this a browser problem?

### Other Software

_No response_
Repository: vscode
Issue: Inlay hint flicker when adding/removing whitespace around it
Labels: bug,inlay-hints

<!-- ⚠️⚠️ 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

<!-- 🪓 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: VS Code 1.94.2 (Also reproduced on VSCodium 1.94.2)
- OS Version: Fedora Linux 40 (Workstation Edition), Gnome (46), Wayland

Steps to Reproduce:

1.  Create a `test.ts` file
2.  Enable typescript.inlayHints.functionLikeReturnTypes
3. Write:
```
function foo(){
    return Date.now();
}
```
4. Change to: (adding a whitespace between `foo()` and `{`)
```
function foo() {
    return Date.now();
}
```
5. During the change you will see a small flicker of the inlay hint: going from ` : number ` to ` : numbe...` to ` : number` again.

This flickering behavior isn't very elegant, and also happens with other languages, for example with Python (and the basedpyright extension, see https://github.com/DetachHead/basedpyright/issues/794)
Repository: godot
Issue: Editor popup position offset when popped up in area covered by Taskbar on Windows in fullscreen
Labels: bug,topic:gui

### Tested versions

Reproduced in:
- v4.2.2.stable.official [15073afe3]
- v4.3.stable.official [77dcf97d8]
- v4.4.dev3.official [f4af8201b]

### System information

Godot v4.4.dev3 - Windows 10.0.19045 - Multi-window, 3 monitors - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 2070 SUPER (NVIDIA; 32.0.15.6094) - AMD Ryzen 9 5950X 16-Core Processor (32 threads)

### Issue description

In fullscreen mode editor, any popup showing up will avoid the taskbar area as if the Taskbar is still there. This happens both when the taskbar is vertical or horizontal, though it's mainly an issue with vertical taskbar because those frequently used popup menus will be offset.

Edit: The problem goes away in single windowed mode.

![无标题](https://github.com/user-attachments/assets/fd0cb317-0351-4e73-af70-0d472d16e4c6)


### Steps to reproduce

1. Create new project.
2. Switch editor to fullscreen mode with shortcut Shift + F11.
3. Hover over tabs in the bottom dock with the taskbar at the bottom, or click the "Scene" menu in the menu bar with the taskbar at the left.
4. See how tooltips and popup menus are misplaced. A large taskbar will make it obvious.

### Minimal reproduction project (MRP)

N/A
Repository: godot
Issue: 4.4.dev3 touchscreenbtn can not trigger pressed callback on android compatibility
Labels: bug,platform:android,topic:input

### Tested versions

4.4.dev3 compatibility

### System information

4.4.dev3 compatibility

### Issue description

4.4.dev3 touchscreenbtn can not trigger pressed callback on android
![image](https://github.com/user-attachments/assets/06de44c7-1555-45c1-9ed5-17abc8ce6f9f)


### Steps to reproduce

4.4.dev3 touchscreenbtn can not trigger pressed callback on android

if choose the 4.4.dev2 it's no problem
![image](https://github.com/user-attachments/assets/06de44c7-1555-45c1-9ed5-17abc8ce6f9f)

### Minimal reproduction project (MRP)

4.4.dev3 touchscreenbtn can not trigger pressed callback on android
Repository: deno
Issue: Unable to deno install --global from local directory when using package.json
Labels: bug,needs info,install

Version: Deno 2.0.2

I use Deno to develop a CLI tool. My workflow has been to install it from my local checkout so I can test changes without releasing, publishing & updating via denoland/JSR.

I'm currently in the process of switching to a package.json to make it cross-platform.

However, I am now no longer able to install from a local directory using Deno.

## Problem

Running 
```
deno install --global --name my-cli-tool --config deno.json main.ts
```
with main.ts importing package specified in package.json

Results in:
```
error: Relative import path "@std/log" not prefixed with / or ./ or ../ and not in import map from "file:///src/main.ts"
    at file:///src/main.ts:6:22
```

## Reproduction

`package.json`
```json
{
	"dependencies": {
		"@std/log": "npm:@jsr/std__log@^0.224.9",
	}
}
```

`main.ts`
```ts
import * as log from '@std/log';

log.info('Hello World');
```
Repository: node
Issue: closeAllConnections on http2.Http2Server and http2.Http2SecureServer 
Labels: feature request,http2

### What is the problem this feature will solve?

I would like to cleanly shut down a running http2 server that has existing client connections.  In http.Server, the closeAllConnections method was added for this purpose, but it doesn't seem to have been included in http2 yet.



### What is the feature you are proposing to solve the problem?

Add the methose closeAllConnections() and closeIdleConnections to http2.Http2Server and http2.Http2SecureServer.
 
Alternatively, if an AbortSignal is passed into listen(), all connections could be shut down when the signal fires abort.


### What alternatives have you considered?

This code is a workaround:

```js
const socks = new Set();
const server = http2.createSecureServer(...);
server.on('connection', (s: Duplex) => {
  socks.add(s);
  once('close', () => socks.delete(s));
});
server.on('close', () => {
  for (const s of socks) {
    s.destroy(); // Fires close event above, which cleans up.
  }
});
```

This is likely suboptimal due to my lack of intimate understanding of the http2 implementation.
Repository: deno
Issue: Specify deno version in `deno.json`
Labels: suggestion,config

It would be great to have the option to specify the Deno version that a project is compatible with. This information may not necessarily need to be considered by the runtime, but it could be valuable to receive a warning when running `deno install`.

Similar to the [`engines` field of package.json](https://docs.npmjs.com/cli/v10/configuring-npm/package-json#engines)

For instance, issues like these https://github.com/denoland/deno/issues/26413 would be easier to address.
```jsonc
// deno.json
{
  // ...
  "engine": [
    "deno@2.0.0" // to raise a warning on v2.0.2 and 1.46.3
  ]
  // ...
}
```
Repository: godot
Issue: Crash while importing SVGs with image
Labels: bug,topic:import,crash,regression

### Tested versions

- Not reproducible in v4.2.1.stable.official [b09f793f5]: The project correctly imports the SVG file.
- Reproducible in v4.3.stable.official [77dcf97d8]: Godot crashes while trying to import the SVG file.
- Reproducible in v4.4.dev3.official [f4af8201b] (the latest version): Godot crashes while trying to import the SVG file.

### System information

Windows 11, 32GB RAM 3200 MHz operating on 2666 MT/s, RX 580 8GB, Ryzen 5 1600

### Issue description

Godot crashes while trying to import a SVG file that contains an image.

I think it is possibly because SVGs are supposed to be small files but the image increases a lot the required amount of memory needed to import it.

In the MRP I included two versions of the SVG:
- `hand_with_reference_image.svg`
- `hand_without_reference_image.svg`

They are basically the same but one does not have the reference image.

Observe that the one with the image is 110kb larger than the one who has not.

### Steps to reproduce

- Open MRP with Godot v4.3.stable.official [77dcf97d8] or v4.4.dev3.official [f4af8201b]
- Observe that Godot crashes
- Open MRP with v4.2.1.stable.official [b09f793f5]
- Observe that Godot successfully imports the SVG ignoring the image and the `.godot` folder is updated with SVG importing data
- Open MRP again with Godot v4.3.stable.official [77dcf97d8] or v4.4.dev3.official [f4af8201b]
- Observe that Godot successfully opens the project and SVGs because the `.godot` already exists
- If you delete the `.godot` folder the problem comes back

### Minimal reproduction project (MRP)

[svg-crash-example.zip](https://github.com/user-attachments/files/17446730/svg-crash-example.zip)
Repository: rust
Issue: Lint overcapturing in impl Trait on 2024 edition
Labels: C-enhancement,A-lints,A-diagnostics,T-compiler

### Code

```rust
pub fn check(x: &[u8]) -> impl std::fmt::Display {
    x[0]
}
```

### Current output

(empty)

### Desired output

A warning, like one produced by `impl_trait_overcaptures`.

### Rationale and extra context

Currently, `impl_trait_overcaptures` lints code that would be overcapturing in edition = 2024 on editions < 2024. I think it would be valuable to add a (maybe allow-by-default) lint to detect overcapturing in new, edition 2024 code. Code like this is probably not _meant_ to capture lifetime of `x`, so linting against this may help to avoid too-strict signatures. If the function was meant to be stricter than necessary (e.g. for future-compat reasons), you can always just `#[allow]` the lint.

### Rust Version

```
$ rustc --version --verbose
rustc 1.83.0-nightly (eb4e23467 2024-10-09)
binary: rustc
commit-hash: eb4e2346748e1760f74fcaa27b42431e0b95f8f3
commit-date: 2024-10-09
host: x86_64-unknown-linux-gnu
release: 1.83.0-nightly
LLVM version: 19.1.1
```

### Anything else?

Alternatively, this could be a Clippy lint. Having it in rustc could probably allow code reuse with the edition lint though.

<!-- TRIAGEBOT_START -->

<!-- TRIAGEBOT_ASSIGN_START -->

<!-- TRIAGEBOT_ASSIGN_DATA_START$${"user":"compiler-errors"}$$TRIAGEBOT_ASSIGN_DATA_END -->

<!-- TRIAGEBOT_ASSIGN_END -->
<!-- TRIAGEBOT_END -->
Repository: godot
Issue: The program interface is not compatible with my device screen
Labels: bug,platform:android,topic:editor

### Tested versions


![Screenshot_٢٠٢٤-١٠-١٨-٢٠-٥٢-٥٦-٧١١_org godotengine editor v4](https://github.com/user-attachments/assets/907b2f2d-e541-46ea-ac3a-793e9d3885f3)



### System information

Godot v4.3.stable - Android - Vulkan (Mobile) - integrated PowerVR Rogue GE8320 -  (8 Threads)

### Issue description

Items are not showing on the left side of Godot interface, I know I am using the beta version of Godot , But I want to make sure the issue is fixed in the next releases. 
My device type: Redmi 9A.

![Screenshot_٢٠٢٤-١٠-١٨-٢٠-٥٢-٥٦-٧١١_org godotengine editor v4](https://github.com/user-attachments/assets/cefa0453-74d8-49d3-95df-9dc6cc76df61)


### Steps to reproduce

...

### Minimal reproduction project (MRP)

...
Repository: deno
Issue: fmt does not preserve CSS property casing
Labels: bug,deno fmt

**Input:**
```css
@plugin "daisyui/theme" {
	name: "dark";
	prefersDark: true;
}
```

**Output:**
```css
@plugin "daisyui/theme" {
  name: "dark";
  prefersdark: true;
}

```

**Expected output:**
<!-- prettier-ignore -->
```css
@plugin "daisyui/theme" {
	name: "dark";
	prefersDark: true;
}

```

**Why?**

The upcoming version of DaisyUI (v5) now involve writing configurations in the CSS file. Some property is in camelCase and the casing needs to be preserved, otherwise it wouldn't work.
Repository: ollama
Issue: multi-part model+safetensors
Labels: feature request

How do I run a  gguf multi-part model on ollaama?

https://huggingface.co/Qwen/Qwen2.5-7B-Instruct-GGUF/blob/main/qwen2.5-7b-instruct-fp16-00004-of-00004.gguf
qwen2.5-7b-instruct-fp16-00001-of-00004.gguf
qwen2.5-7b-instruct-fp16-00002-of-00004.gguf
qwen2.5-7b-instruct-fp16-00003-of-00004.gguf
qwen2.5-7b-instruct-fp16-00004-of-00004.gguf


how to run safetensors model on ollama ?
Repository: kubernetes
Issue: Cannot create UnstructuredExtractor - duplicate entry for /v1, Kind=APIResourceList
Labels: kind/bug,sig/api-machinery,triage/accepted

### What happened?

I am trying to create an `UnstructuredExtractor`, with the following code (error handling omitted for brevity):

```go
	dynamic, _ := provider.MakeDynamicClient(kubeconfig)
	discovery, _ := provider.MakeDiscoveryClient(kubeconfig)
	extractor, err := acmetav1.NewUnstructuredExtractor(discovery)
```

After this code `err != nil`, with the following error:

```
failed generating initial GVK Parser: duplicate entry for /v1, Kind=APIResourceList
```

Stepping through with a debugger, the stack trace seems to be:
- In [`NewUnstructuredExtractor`](https://github.com/kubernetes/kubernetes/blob/4f796c02f77fb95d42cd161ea663dd1bf05e372f/staging/src/k8s.io/client-go/applyconfigurations/meta/v1/unstructured.go#L96)
- In [`regenerateGVKParser`](https://github.com/kubernetes/kubernetes/blob/4f796c02f77fb95d42cd161ea663dd1bf05e372f/staging/src/k8s.io/client-go/applyconfigurations/meta/v1/unstructured.go#L69)
- In [`NewGVKParser`](https://github.com/kubernetes/kubernetes/blob/4f796c02f77fb95d42cd161ea663dd1bf05e372f/staging/src/k8s.io/apimachinery/pkg/util/managedfields/gvkparser.go#L73)

### What did you expect to happen?

I expect to get an `UnstructuredExtractor`, that I can use to extract fields from an object that were set by my CLI tool.

### How can we reproduce it (as minimally and precisely as possible)?

This can be reproduced against a `v1.30` or newer (`1.29` is not affected) [kind](https://kind.sigs.k8s.io/) cluster.

```bash
kubectl apply --server-side -f https://raw.githubusercontent.com/projectcalico/calico/v3.28.2/manifests/tigera-operator.yaml
cat <<EOF | kubectl apply --server-side -f -
apiVersion: operator.tigera.io/v1
kind: Installation
metadata:
  name: default
spec: {}
---
apiVersion: operator.tigera.io/v1
kind: APIServer
metadata:
  name: default
spec: {}
EOF
```

This causes the duplication of the `APIResourceList` definition.

Then, it is no longer possible to create an `UnstructuredClient` against the cluster using the code above.

### Anything else we need to know?

I suspect the bug is in `client-go`, and that `UnstructuredExtractor` should be constructable even in the presence of duplicate resources. I'm not sure if it is possible for the Calico API server to avoid this duplication, given that it supports both `1.29` and `1.30`.

It's also possible that I'm building the `UnstructuredExtractor` wrong, I wasn't able to find many examples.

### Kubernetes version

<details>

```console
$ kubectl version
Client Version: v1.31.0
Kustomize Version: v5.4.2
Server Version: v1.31.0
```

</details>


### Cloud provider

None

### OS version

N/A (reproduces on kind)

### Install tools

https://kind.sigs.k8s.io/

### Container runtime (CRI) and version (if applicable)

_No response_

### Related plugins (CNI, CSI, ...) and versions (if applicable)

_No response_