sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: tensorflow
Issue: argsort incorrectly handles very small floating-point numbers and -0.0 compared to other libraries (PyTorch and JAX)
Labels: type:bug,TF 2.16

### Issue type

Bug

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

No

### Source

source

### TensorFlow version

2.16.1

### Custom code

Yes

### OS platform and distribution

windows

### Mobile device

_No response_

### Python version

_No response_

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

When using TensorFlow's argsort function on an array containing small floating-point numbers and both 0.0 and -0.0, the sort order is incorrect compared to other deep learning libraries such as PyTorch and JAX. TensorFlow incorrectly places 1.401298464324817e-45 (a very small positive number) before 0.0 and -0.0.

Expected behavior is that both 0.0 and -0.0 should be treated as equivalent and placed before any positive number, including very small ones like 1.401298464324817e-45. However, TensorFlow does not follow this behavior, whereas PyTorch correctly handles this.
```
import numpy as np
import torch
import tensorflow as tf
import jax.numpy as jnp

def test_argsort():
    # Input data, hardcoded as float32
    input_data = np.array([
        -0.0, 1.401298464324817e-45, 1.100000023841858, -0.0,
        5.960464477539063e-08, -2.0000100135803223, 1000000.0,
        722801.375, 0.0, -1.100000023841858
    ], dtype=np.float32)

    # PyTorch argsort
    pytorch_result = torch.argsort(torch.tensor(input_data, dtype=torch.float32)).numpy()
    print(f"PyTorch argsort result: {pytorch_result}")

    # TensorFlow argsort
    tensorflow_result = tf.argsort(input_data).numpy().astype(np.int32)
    print(f"TensorFlow argsort result: {tensorflow_result}")

    # JAX argsort
    jax_result = jnp.argsort(input_data).astype(np.int32)
    print(f"JAX argsort result: {jax_result}")

if __name__ == "__main__":
    test_argsort()

```

### Standalone code to reproduce the issue

```shell
PyTorch argsort result: [5 9 0 3 8 1 4 2 7 6]
TensorFlow argsort result: [5 9 0 1 3 8 4 2 7 6]
JAX argsort result: [5 9 0 1 3 8 4 2 7 6]
```
Expected Behavior:
TensorFlow's argsort should place 0.0 and -0.0 before any positive number, including very small values like 1.401298464324817e-45. PyTorch demonstrates the correct behavior by treating 0.0 and -0.0 as equal and placing them in the correct order relative to other values.

Standalone Code to Reproduce the Issue:
The above Python code demonstrates the issue. It uses the same input data for PyTorch, TensorFlow, and JAX to show the difference in behavior. TensorFlow and JAX produce incorrect results by misplacing the small positive value before 0.0, while PyTorch produces the correct order.

Relevant Log Output:
No error logs are generated, but the incorrect behavior is clearly shown in the sorting results.
```


### Relevant log output

_No response_
Repository: vscode
Issue: Add 'Enter' and 'Leave' Types to NotebookEditorSelectionChangeEvent
Labels: bug,notebook-api

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

I’m encountering an issue where the NotebookEditorSelectionChangeEvent triggers twice, making it challenging to determine the current selection. Specifically, it seems that the event triggers both for the change "from" a selection and "to" a selection, but without clear differentiation between the two.

Would it be possible to add event types like "leave" or "enter" to better identify the context of each selection change?
Repository: go
Issue: cmd/trace: add absolute (system) timestamp
Labels: NeedsFix,FeatureRequest,compiler/runtime

### Proposal Details

Runtime traces don't contain (or display) an absolute timestamp for events. This would be useful for comparing traces with other (tracing) tools, logs et cetera. 

An example would be combining a Go runtime trace with [perf sched](https://www.brendangregg.com/blog/2017-03-16/perf-sched.html) events. This would allow better investigation of kernel scheduling events and how they impact the latency of goroutines.

IIRC, runtime traces currently use a relative (monotonic) timestamps for performance reasons. It's fine to keep this as-is. But it would be helpful if (e.g.) the start of a trace batch could contain an absolute system time (perhaps something lie nanoseconds since the UNIX epoch) together with the relative timestamp it was derived from. Tools like `go tool trace` could then adjust all the relative timestamps post-hoc, or at least display the trace start and end time.

cc @mknyszek
Repository: deno
Issue: http2 server closing stream exception
Labels: bug,node compat

Version: deno 2.0.0 (stable, release, aarch64-apple-darwin)

As part of investigation into https://github.com/denoland/deno/issues/24845, I wrote a test that exposed another (seemingly unrelated) issue.

If an http2 server closes the stream while a client is connected an exception is thrown:

```
error: Uncaught (in promise) Http: error reading a body from connection: stream closed because of a broken pipe
    at async Object.pull (ext:deno_web/06_streams.js:938:27)
```

To reproduce the issue see https://github.com/TobyEalden/deno-http2-stream-test

I can't see a way to easily catch or avoid this error other than using a setTImout as shown [here](https://github.com/TobyEalden/deno-http2-stream-test/blob/main/stream-test.mjs#L88), and in any case the same code running under nodejs works as expected.
Repository: tensorflow
Issue: argmax returns incorrect result for input containing Minimum number (TensorFlow 2.x)
Labels: type:bug,comp:ops,TF 2.16

### Issue type

Bug

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

No

### Source

source

### TensorFlow version

2.16.1

### Custom code

Yes

### OS platform and distribution

_No response_

### Mobile device

_No response_

### Python version

_No response_

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

Current Behavior:
When using tf.math.argmax on an input array that contains -0.0, the result is incorrect. Specifically, the function returns 1 (the index of -0.0) as the position of the maximum value, while the actual maximum value is 1.401298464324817e-45 at index 2.

The same behavior is observed in Keras and JAX, as both use TensorFlow internally for the argmax function.

Expected Behavior:
tf.math.argmax should return 2, as the value at index 2 (1.401298464324817e-45) is greater than both -1.0 and -0.0.
```
import numpy as np
import torch
import tensorflow as tf
import jax.numpy as jnp
from tensorflow import keras

def test_argmax():
    # Input data
    input_data = np.array([-1.0, -0.0, 1.401298464324817e-45], dtype=np.float32)

    # PyTorch argmax
    pytorch_result = torch.argmax(torch.tensor(input_data, dtype=torch.float32)).item()
    print(f"PyTorch argmax result: {pytorch_result}")

    # TensorFlow argmax
    tensorflow_result = tf.math.argmax(input_data).numpy()
    print(f"TensorFlow argmax result: {tensorflow_result}")

    # Keras argmax (Keras internally uses TensorFlow, so should be the same)
    keras_result = keras.backend.argmax(input_data).numpy()
    print(f"Keras argmax result: {keras_result}")

    # JAX argmax
    jax_result = jnp.argmax(input_data)
    print(f"JAX argmax result: {jax_result}")

if __name__ == "__main__":
    test_argmax()

```


### Standalone code to reproduce the issue

```shell
PyTorch argmax result: 2
TensorFlow argmax result: 1
Keras argmax result: 1
JAX argmax result: 1

```
```


### Relevant log output

_No response_
Repository: transformers
Issue: Add support for Florence-2
Labels: New model,Feature request

### Feature request

Add support for [Florence-2](https://huggingface.co/microsoft/Florence-2-large)

### Motivation

Currently requires `trust_remote_code=True`

### Your contribution

I can submit a PR.
Repository: godot
Issue: Changing Selected StyleBox BG Color in Tree hides guide line on the first column when Select Mode is Row
Labels: bug,topic:gui

### Tested versions

- Reproducible in: 4.3.stable

### System information

Godot v4.3.stable.mono - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4070 (NVIDIA; 32.0.15.6094) - 13th Gen Intel(R) Core(TM) i5-13500 (20 Threads)

### Issue description

When using a Tree node with multiple columns, with Select Mode in Row and Draw Guides on, if you override the Background Color of the StyleBox for Selected and/or Selected Focus, the selected row will hide the guideline, under the first column only. The expected behaviour is to not hide the guideline at all.

<img width="579" alt="tree guide bug" src="https://github.com/user-attachments/assets/61ccdadd-a10e-454e-af3e-a66aeff4cf83">

### Steps to reproduce

1. Create a new project
2. Add a Tree node
3. Set Columns to more than 1 and Select Mode to Row
4. Set Draw Guides to more than 0
5. Add a StyleBox to Selected or Selected Focus and override its BG Color
6. Attach a script to the Tree node and call ```create_item()``` in ```_ready()```

To visualize it more easily, change Guide Color and the StyleBox BG Color to get contrast between them. 

### Minimal reproduction project (MRP)

N/A
Repository: storybook
Issue: [Bug]: Zooming and scaling must not be disabled
Labels: bug,accessibility

### Describe the bug

AXE DevTools finds a critical error when ran against Storybook:

```
Ensure <meta name="viewport"> does not disable text scaling and zooming
```

This is due to the `viewport` meta tag in the `<head>` element:

```html
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
```

For accessibility reasons, zooming and scaling should be allowed in order to avoid violation of [1.4.4 Resize Text](https://www.w3.org/WAI/WCAG21/Understanding/resize-text.html). 

### Reproduction link

https://carbon.sage.com/?path=/story/welcome--welcome-page

### Reproduction steps

1. Open a Storybook
2. Run Axe DevTools
3. Note the zooming and scaling failure

### System

Storybook Environment Info:

  System:
    OS: macOS 14.6.1
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.18.0 - ~/.nvm/versions/node/v20.18.0/bin/node
    npm: 10.5.2 - ~/git/carbon/node_modules/.bin/npm <----- active
  Browsers:
    Edge: 129.0.2792.89
    Safari: 17.6
  npmPackages:
    @storybook/addon-a11y: ^8.2.6 => 8.2.6 
    @storybook/addon-actions: ^8.2.6 => 8.2.6 
    @storybook/addon-controls: ^8.2.6 => 8.2.6 
    @storybook/addon-docs: ^8.2.6 => 8.2.6 
    @storybook/addon-toolbars: ^8.2.6 => 8.2.6 
    @storybook/addon-viewport: ^8.2.6 => 8.2.6 
    @storybook/addon-webpack5-compiler-swc: ^1.0.4 => 1.0.5 
    @storybook/components: ^8.2.6 => 8.2.6 
    @storybook/manager-api: ^8.2.6 => 8.2.6 
    @storybook/preview-api: ^8.2.6 => 8.2.6 
    @storybook/react: ^8.2.6 => 8.2.6 
    @storybook/react-webpack5: ^8.2.6 => 8.2.6 
    @storybook/theming: ^8.2.6 => 8.2.6 
    @storybook/types: ^8.2.6 => 8.2.6 
    chromatic: ^6.17.4 => 6.24.1 
    storybook: ^8.2.6 => 8.2.6 

### Additional context

_No response_
Repository: vscode
Issue: Behavior changed for middle click window title in gnome
Labels: upstream,linux,titlebar,upstream-issue-linked

**ENVIRONMENT:**
linux ubuntu 24.04
gnome 46.0 (with wayland)
vscode 1.94.2

**WHAT USED TO WORK:**
I use the mouse middle click (on a window's titlebar) to lower the window - so I can easily cycle through open windows. This setting is set via the shell, or the gnome tweaks tool.

I did not set `"window.titleBarStyle"`.

**HOW IT WORKS NOW:**
That changed in either the latest update or when upgrading to gnome 46. It doesn't honor that gnome setting anymore. So a middle click on the vscode titlebar does nothing.

This is identical to a bug from a [few years ago](https://github.com/microsoft/vscode/issues/92346), but since resolved. Maybe there's a similar resolution this time too.
Repository: PowerToys
Issue: File download manager
Labels: Needs-Triage

### Description of the new feature / enhancement

I was thinking of a file download manager where you can specify a name, a path, and select from the available file extensions on the user's system.

If the criteria match the desired file extension(s), the manager will automatically download those files to the specified folder. Users should be able to create as many rules as they like, or there could be predefined rules, and once activated, the background service would handle the file downloads accordingly.

### Scenario when this would be used?

This would be useful every single time someone downloads a file.

Often, files land in the wrong folder because the system uses the last saved location as the default for new downloads, regardless of the file type. For example, if I download pictures, future downloads may default to the "Pictures" folder. It’s frustrating when unrelated files end up in the wrong place. This feature would allow users to set consistent rules based on file extensions, preventing such issues and keeping downloads organized automatically.

### Supporting information

- User Flexibility: This feature would give users control over where their files are saved based on file types. Currently, Windows uses the last-used folder as the default download location, which can lead to disorganization and confusion. A file download manager that lets users define custom rules would greatly enhance productivity and file management.
- Background Service: The download manager could operate as a background service, monitoring file downloads and applying rules without interrupting the user's workflow.
- PowerToys Alignment: Since PowerToys already focuses on enhancing Windows functionality and user experience, this download manager fits well with the existing set of tools designed to streamline productivity.
- Customization: Users would be able to create custom rules for different file extensions and download destinations, helping them keep their workspace organized and reducing the manual task of moving files around.
Repository: terminal
Issue: Allow conhost to be replaced with OpenConsole
Labels: Issue-Feature,Product-Conhost,Needs-Tag-Fix

# Description of the new feature/enhancement

conhost can lack behind OpenConsole by several (if not many) years. This brings 2 problems:
* People preferring conhost's look and feel cannot get updates for many years.
* We (the maintainers) cannot test new features and changes for many years.

In other words, not being able to replace conhost is a lose-lose situation.

# Proposed technical implementation details (optional)

* Ship a conhost package in the store that replaces the system conhost, just like how notepad does it.
* Consider doing the same for the Windows Terminal Canary package so that we can get a slightly better usage coverage.
Repository: PowerToys
Issue: Should add the feature like scrcpy
Labels: Needs-Triage

### Description of the new feature / enhancement

It would be great to have a marvelous feature in the power toys, scrcpy (screen copy) was a project from genymotion and very handy to use to copy the screen of the android phone or ios phone into the windows PC. I think it would be great if that project gets an GUI into this project and have several options to work on like, operate via PC's keyboard mouse, OTG support and many other.

### Scenario when this would be used?

When ever a user wants to control there phone from the PC or like watching videos, play games or any other events. It would be helpful for them to use this tool. I think I would be the charge up the powerToys.

### Supporting information

Here is the GitHub link for the scrcpy
https://github.com/Genymobile/scrcpy
Repository: vscode
Issue: Jupyter Notebook rendering error
Labels: bug,notebook-layout


Type: <b>Bug</b>

If a shell with 28+ lines of code is ended with indentation, vscode doesn't render text fully.

VS Code version: Code 1.94.2 (384ff7382de624fb94dbaf6da11977bba1ecd427, 2024-10-09T16:08:44.566Z)
OS version: Windows_NT x64 10.0.22631
Modes:

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz (8 x 2803)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: enabled_on<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_graphite: disabled_off<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled<br>webnn: disabled_off|
|Load (avg)|undefined|
|Memory (System)|15.68GB (5.73GB free)|
|Process Argv|--crash-reporter-id 00ea5999-5ac9-44da-9ad4-ea0284323771|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (29)</summary>

Extension|Author (truncated)|Version
---|---|---
vscode-eslint|dba|3.0.10
gitlens|eam|15.6.0
vscode-html-css|ecm|2.0.10
vsc-material-theme|Equ|34.7.5
vsc-material-theme-icons|equ|3.8.8
prettier-vscode|esb|11.0.0
auto-close-tag|for|0.5.15
copilot|Git|1.238.0
copilot-chat|Git|0.21.1
vscode-pull-request-github|Git|0.98.0
vsc-python-indent|Kev|1.18.0
vscode-gutter-preview|kis|0.31.2
vscode-language-pack-ko|MS-|1.94.2024100909
debugpy|ms-|2024.10.0
python|ms-|2024.16.1
vscode-pylance|ms-|2024.10.1
jupyter|ms-|2024.9.1
jupyter-keymap|ms-|1.1.2
jupyter-renderers|ms-|1.0.19
vscode-jupyter-cell-tags|ms-|0.1.9
vscode-jupyter-slideshow|ms-|0.1.6
remote-wsl|ms-|0.88.4
live-server|ms-|0.4.15
indent-rainbow|ode|8.3.1
vscode-gitignore-generator|pio|1.0.3
material-icon-theme|PKi|5.11.1
gitmoji-vscode|sea|1.2.5
pdf|tom|1.2.2
JavaScriptSnippets|xab|1.8.0

(1 theme extensions excluded)

</details><details>
<summary>A/B Experiments</summary>

```
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
pythonnoceb:30805159
asynctok:30898717
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
0ee40948:31013168
a69g1124:31058053
dvdeprecation:31068756
dwnewjupyter:31046869
impr_priority:31102340
nativerepl1:31139838
refactort:31108082
pythonrstrctxt:31112756
wkspc-onlycs-t:31132770
nativeloc2:31134642
wkspc-ranged-t:31151552
cf971741:31144450
defaultse:31146405
iacca1:31156133
notype1:31157159
5fd0e150:31155592

```

</details>

### Example
![Image](https://github.com/user-attachments/assets/61eb9dfb-8bc0-4d67-9a6a-70b2baab318a)


<!-- generated by issue reporter -->
Repository: godot
Issue: Reading from a 2 dimensional array in multiple threads results in values that are not in the array
Labels: topic:gdscript,needs testing

### Tested versions

- Reproducible in: 4.3.stable

### System information

Godot v4.3.stable (77dcf97d8) - Gentoo 2.15 - Wayland - Vulkan (Forward+) - integrated AMD Radeon Graphics (RADV RENOIR) - AMD Ryzen 5 5600U with Radeon Graphics (12 Threads)

### Issue description

When reading a 2 dimensional array with multiple threads, some values read are not values that are in the original array.

### Steps to reproduce

1. Create 2 dimensional of at least size 2 (i.e. `[[], []]`)
2. Create multiple threads
3. Print values in 2d array
4. Notice values being printed that are not in the original array.

### Minimal reproduction project (MRP)

[MRP.zip](https://github.com/user-attachments/files/17364430/MRP.zip)
Repository: svelte
Issue: Improve typing on `children` property in `HTMLAttributes`
Labels: types / typescript

### Describe the bug

The elements in `'svelte/elements'` extend the following type:

```typescript
export interface DOMAttributes<T extends EventTarget> {
	// Implicit children prop every element has
	// Add this here so that libraries doing `let { ...props }: HTMLButtonAttributes = $props()` don't need a separate interface
	children?: import('svelte').Snippet;
}
```

The `children` property on the interface is intended to allow uses case like these:

```svelte
<script lang='ts'>
	import type { HTMLButtonAttributes } from 'svelte/elements';
	const { children, ...restProps }: HTMLButtonAttributes = $props();
</script>

<button {...restProps}>{@render children?.()}</button>
```

But inadvertently now prevents uses like these:
```svelte
<script lang='ts'>
	import type { HTMLButtonAttributes } from 'svelte/elements';
	import type { Snippet } from 'svelte';

	interface Props /* <-- error */ extends HTMLButtonAttributes  {
		children: Snippet<[string]>
	}
	const { children, ...restProps }: Props = $props();
</script>

<button {...restProps}>{@render children?.('foo')}</button>
```

With the error being:
```
Interface 'Props' incorrectly extends interface 'HTMLButtonAttributes'.
  Types of property 'children' are incompatible.
    Type 'Snippet<[string]>' is not assignable to type 'Snippet<[]>'.
      Target signature provides too few arguments. Expected 1 or more, but got 0.
```

It would be nice if this supported both patterns of usage.

That said, it is _possible_ to use in its current state, though not great.
```typescript
interface Props extends Omit<HTMLButtonAttributes, 'children'>  {
	children: Snippet<[string]>
}
```

### Reproduction

N/A

### Logs

_No response_

### System Info

```shell
svelte: ^5.0.0-next.264 => 5.0.0-next.264
```


### Severity

annoyance
Repository: three.js
Issue: Playground: adding a texture and using it as "normal" slot input results in exceptions
Labels: Nodes

### Description

Adding a texture and using it as "normal" slot input results in exceptions. I'm not sure if I'm expected to swizzle it down to three components – but I think at least there shouldn't be renderloop-breaking exceptions when not doing that.

### Reproduction steps

1. Drop a texture (any texture) into https://threejs.org/playground
2. Add a "Texture" node
3. Connect the output of "Texture" to the "normal" slot
4. Note exceptions in console

**EDIT:** Looks like as a workaround, a UV node can be added – in other node-based shader editors UV0 is implicit, so I didn't expect that.
<img width="623" alt="image" src="https://github.com/user-attachments/assets/2ab389f5-89d8-4cdc-b6b5-631ce2ca8524">

### Code

-


### Live example

https://threejs.org/playground/

### Screenshots

<img width="1510" alt="image" src="https://github.com/user-attachments/assets/37e557e5-de03-420d-8f87-0ee77ee6e1b3">

### Version

latest

### Device

Desktop

### Browser

Chrome

### OS

Windows, MacOS
Repository: deno
Issue: Deno compile ERR_MODULE_NOT_FOUND
Labels: bug,compile

Version: Deno 2.0.0

I created a script with 

```ts
import pl from "npm:nodejs-polars@0.16.0";
```

and it runs with 

```sh
deno run
```

 (on Windows) but when I use

```sh
deno compile
```

and then try to run the compiled exe it complains

```sh
error: [ERR_MODULE_NOT_FOUND] Cannot find module '/node_modules/localhost/nodejs-polars/0.16.0/index.js'
```