sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: opencv
Issue: imwrite return value documentation
Labels: category: documentation

### Describe the doc issue

hi everyone,
I was trying to figure out how to make sure imwrite() worked.
I noticed that it returns a boolean value but I can't find any documentation about it.

### Fix suggestion

_No response_
Repository: transformers
Issue: Flash Attention 2 support for Wav2Vec2ForCTC
Labels: Feature request

Hello
Usage of "optimum.bettertransformer" for Wav2Vec2ForCTC gave me the inference speedup for ~2x. 
How do you think, is it reasonable to try to implement flash attention 2 for Wav2Vec2ForCTC?
I saw the same implementation in the Whisper family of models, and it works very well (speedup ~1.8x on batch inference).
Repository: react-native
Issue: Animation artifacting
Labels: p: Expo,Partner,Type: New Architecture,Never gets stale

### Description

There is severe artifacting on iOS when using rotation animations with the `Animated` api on the new architecture and bridgeless.

### Steps to reproduce

In RNTester, navigate to apis -> Animated -> Transform Styles. Select either `rotateX`, `rotateY` or both and you will observe the behaviour. 

### React Native Version

0.74.0-rc6

### Affected Platforms

Runtime - iOS

### Output of `npx react-native info`

```text
System:
  OS: macOS 14.3.1
  CPU: (12) arm64 Apple M2 Pro
  Memory: 138.63 MB / 32.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.11.1
    path: ~/.nvm/versions/node/v20.11.1/bin/node
  Yarn:
    version: 1.22.22
    path: ~/.nvm/versions/node/v20.11.1/bin/yarn
  npm:
    version: 10.2.4
    path: ~/.nvm/versions/node/v20.11.1/bin/npm
  Watchman:
    version: 2024.01.22.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.14.3
    path: /Users/alanhughes/.rbenv/shims/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.2
      - iOS 17.2
      - macOS 14.2
      - tvOS 17.2
      - visionOS 1.0
      - watchOS 10.2
  Android SDK:
    API Levels:
      - "30"
      - "32"
      - "33"
      - "34"
    Build Tools:
      - 26.0.3
      - 28.0.3
      - 30.0.2
      - 30.0.3
      - 31.0.0
      - 33.0.0
      - 33.0.1
      - 33.0.2
      - 34.0.0
    System Images:
      - android-33 | Google APIs ARM 64 v8a
      - android-33 | Google Play ARM 64 v8a
      - android-34 | ARM 64 v8a
      - android-34 | Google APIs ARM 64 v8a
    Android NDK: Not Found
IDEs:
  Android Studio: 2023.2 AI-232.10300.40.2321.11567975
  Xcode:
    version: 15.2/15C500b
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.8
    path: /Users/alanhughes/.sdkman/candidates/java/current/bin/javac
  Ruby:
    version: 2.7.8
    path: /Users/alanhughes/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native: Not Found
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: Not found
  newArchEnabled: Not found
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found
```


### Stacktrace or Logs

```text
na
```


### Reproducer

https://github.com/facebook/react-native/tree/main/packages/rn-tester

### Screenshots and Videos

![Simulator Screenshot - iPhone 15 Pro Max - 2024-04-02 at 12 04 40](https://github.com/facebook/react-native/assets/30924086/a96a6467-19e1-411a-b102-b2a118b978ac)

https://github.com/facebook/react-native/assets/30924086/13ab081f-3833-4b85-8654-2a308618e885
Repository: next.js
Issue: Rewrites not working with app router
Labels: bug,Navigation

### Link to the code that reproduces this issue

https://github.com/npa-axelor/app-router-rewrites

### To Reproduce

1. Create two nextjs application. App1 and App2.
2. Configure basePath in App2 as /app2.
3. Configure redirect in App1 next.config.js
4. Create a link in App1 as `<Link href='/app2'>App2</Link>`
5. Start both the application 
6. Click the link

rewrites in app1 next.config.js
``async rewrites() {
    return [
      {
        source: "/app2",
        destination: `http://localhost:3001/app2`,
      }];
  }``


### Current vs. Expected behavior

After clicking on the link, the url changes to /app2. However the page is not rendered with App2 content. 

Only after refreshing the page it shows the content of App2.

### Provide environment information

```bash
Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP PREEMPT_DYNAMIC Wed Jan 18 17:11:49 UTC 2023
Binaries:
  Node: 20.9.0
  npm: 10.1.0
  Yarn: 1.22.19
  pnpm: 7.24.3
Relevant Packages:
  next: 14.1.4
  eslint-config-next: 14.1.4
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.4.3
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

App Router, Routing (next/router, next/navigation, next/link)

### Which stage(s) are affected? (Select all that apply)

next dev (local)

### Additional context

_No response_
Repository: material-ui
Issue: [material-ui][Tooltip] enterDelay prop resets timer on every child mouseOver event
Labels: component: tooltip,package: material-ui,enhancement

### Steps to reproduce

Link to live example: https://stackblitz.com/edit/react-fzslv1?file=Demo.tsx

Steps:
1. MUI Tooltip that has enterDelay AND a child that is a container that contains 2+ other dom elements that may contain more children
2. If you hover and move the cursor between any of the child dom elements, they will trigger onMouseOver events that will bubble up to Tooltip and always reset the enterDelay timer in the handleMouseOver
https://github.com/mui/material-ui/blob/next/packages/mui-material/src/Tooltip/Tooltip.js#L369
3. Because the delay resets, container Tooltip will never appear unless the user stops the cursor on a child element


### Current behavior

Tooltip never appears because child events reset the enterDelay

### Expected behavior

Container specific tooltip should only be interested in onMouseOver that actually targets the container. Tooltips should appear on container after enterDelay even if user hovers between content children.

### Context

Now this is quite specific BUT we have a container that we want to show tooltip on. That container has multiple children that have multiple children etc. and they are quite small in size (icon, one-word header) and it is easy for the user to wander around the container with the cursor. We want to show the tooltip for the user if the cursor has been on container for the delay.

Workaround atm. is to write specific onMouseOver handlers for every child the tooltip container has to not bubble events but if the component is complex this will produce loads of boilerplate.

I did not find any specific mentions that enterDelay + Tooltips on containers are not supported.

### Your environment

  System:
    OS: macOS 14.4.1
  Binaries:
    Node: 20.11.0 - ~/.nvm/versions/node/v20.11.0/bin/node
    npm: 10.2.4 - ~/.nvm/versions/node/v20.11.0/bin/npm
    pnpm: Not Found
  Browsers:
    Chrome: 123.0.6312.87
    Edge: 123.0.2420.65
    Safari: 17.4.1
  npmPackages:
    @emotion/react:  11.11.3 
    @emotion/styled:  11.11.0 
    @mui/base:  5.0.0-beta.33 
    @mui/core-downloads-tracker:  5.15.6 
    @mui/lab:  5.0.0-alpha.169 
    @mui/material: ^5.15.6 => 5.15.6 
    @mui/private-theming:  5.15.14 
    @mui/styled-engine:  5.15.14 
    @mui/system:  5.15.14 
    @mui/types:  7.2.14 
    @mui/utils:  5.15.14 
    @mui/x-data-grid:  6.19.1 
    @mui/x-data-grid-pro: ^6.19.1 => 6.19.1 
    @mui/x-date-pickers:  6.19.2 
    @mui/x-date-pickers-pro: ^6.19.2 => 6.19.2 
    @mui/x-license-pro: ^6.10.2 => 6.10.2 
    @types/react: ^18.2.48 => 18.2.48 
    react: ^18.2.0 => 18.2.0 
    react-dom: ^18.2.0 => 18.2.0 
    typescript: ^5.1.6 => 5.3.3 

**Search keywords**: tooltip enterdelay child mouseover
Repository: tensorflow
Issue: `SystemError` in `tf.ensure_shape` and `tf.compat.v1.ensure_shape` when `dtype` of `shape` is `tf.uint64` and its value is too large.
Labels: stat:awaiting tensorflower,type:bug,comp:ops,TF 2.15

### Issue type

Bug

### Have you reproduced the bug with TensorFlow Nightly?

Yes

### Source

binary

### TensorFlow version

tf 2.15

### Custom code

No

### OS platform and distribution

Linux Ubuntu 20.04

### Mobile device

_No response_

### Python version

3.10

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

When the `dtype` of `shape` in `tf.ensure_shape` or `tf.v1.ensure_shape` is `tf.uint64` and its value is close to 2^64,`SystemError` and `OverflowError` will be triggered.
Taking `shape = tf.constant([18446743219011059112, 1], dtype=tf.uint64)` as an example, in eager mode, these APIs will trigger a `SystemError` when it is called. I think it is a bug.

### Standalone code to reproduce the issue

```shell
https://colab.research.google.com/drive/1sy4yzSx-n6HqS9oMvPv46WasMtMsCU_R?usp=sharing
```


### Relevant log output

```shell
SystemError: <built-in function isinstance> returned a result with an exception set
```
Repository: tauri
Issue: [feat] Listen window theme change event on Android
Labels: type: feature request

### Describe the problem

My app's frontend has two themes for light/dark mode. Currently it can capture the theme mode change event when system dark mode turned on/off on desktops, it lacks support on mobiles.

### Describe the solution you'd like

Current v2 listen window theme changed API only works on desktops, please propagate to the mobiles.
```
import { listen, TauriEvent } from "@tauri-apps/api/event"
await listen(TauriEvent.WINDOW_THEME_CHANGED, (event) => {})
```

### Alternatives considered

Implement trigger event method for TauriActivity so that I can implement the whole logic myself.

### Additional context

_No response_
Repository: flutter
Issue: `flutter emulators` includes invalid emulators caused by errors in the output of `emulator -list-avds`
Labels: platform-android,tool,P2,needs repro info,team-tool,triaged-tool

Running `flutter emulators` includes bogus entries that are caused by errors that show up in the output of `emulator -list-avds` (an Android SDK tool which Flutter parses).

```sh
√ ags % flutter emulators
3 available emulators:

apple_ios_simulator                                                                                                 • iOS Simulator
• Apple  • ios
INFO    | Storing crashdata in: /tmp/android-rhisiart/emu-crash-34.1.19.db, detection is enabled for process: 88721 • INFO    | Storing crashdata in:
/tmp/android-rhisiart/emu-crash-34.1.19.db, detection is enabled for process: 88721 •        • android
Pixel_8_Pro_API_33                                                                                                  • Pixel 8 Pro API 33
• Google • android

To run an emulator, run 'flutter emulators --launch <emulator id>'.
To create a new emulator, run 'flutter emulators --create [--name xyz]'.
```

Running the underlying SDK command manually shows the same messages in the output:

```sh
√ ~ % /Users/rhisiart/Library/android/sdk/emulator/emulator -list-avds
INFO    | Storing crashdata in: /tmp/android-rhisiart/emu-crash-34.1.19.db, detection is enabled for process: 95538
WARNING | Crash annotation is very large (16415), only 16384 bytes will be recorded, 31 bytes are lost.
Pixel_8_Pro_API_33
```

Running the "old" version of `emulator` from the `tools` folder does not include this output:

```sh
√ ~ % /Users/rhisiart/Library/android/sdk/tools/emulator -list-avds 
Pixel_8_Pro_API_33
```



Having discussed the matter with @DanTup, he [suggested](https://github.com/Dart-Code/Dart-Code/issues/5052#issuecomment-2031873710) that I raise the issue against this repo.

For the full thread, please see https://github.com/Dart-Code/Dart-Code/issues/5052
Repository: ant-design
Issue: TimePicker Popup use12Hours AM and PM labels are not covered by internationalization
Labels: help wanted,Inactive,unconfirmed

### Reproduction link

[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/p/sandbox/datetimepicker-nfmg6x)

### Steps to reproduce

Open TimePicker Popup to change value.

when the Timepicker or Datetimepicker is clicked , "am" and "pm" fields in the popup sholuld be displayed according to my locale,
for example: When I set my locale as "tr", it should be "öö" and "ös" instead of "am"  and  "pm"

Reference #31520, #35655

### What is expected?

AM and PM labels must be Turkish characters

### What is actually happening?

AM and PM labels are not changing by language

| Environment | Info |
| --- | --- |
| antd | 5.16.0 |
| React | 18.2.0 |
| System | 22H2 Windows11 |
| Browser | 123.0.6312.86 Google Chrome |

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: godot
Issue: Performance.get_monitor(Performance.RENDER_TOTAL_DRAW_CALLS_IN_FRAME) includes all UI elements, including indivudal letters
Labels: discussion,topic:rendering,documentation

### Tested versions

- Reproducible in 4.3.dev5
- Not reproducible in 4.2.1 Stable


### System information

Godot v4.2.1.stable - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 2060 (NVIDIA; 31.0.15.5186) - Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz (12 Threads)

### Issue description

I've been using Performance.get_monitor(Performance.RENDER_TOTAL_DRAW_CALLS_IN_FRAME) to help monitor my draw calls, and when I imported my project into 4.3, I noticed there were a lot more calls, even on relatively simple scenes.

I soon realized that Performance.get_monitor(Performance.RENDER_TOTAL_DRAW_CALLS_IN_FRAME) and 
Performance.get_monitor(Performance.RENDER_TOTAL_OBJECTS_IN_FRAME)) now counts all UI elements in their calls.  To the point where each individual letter typed on the screen adds to the draw call count.

This strikes me as a regression, as the UI elements are constantly changing and I need stable numbers to help with my optimization of lighting and 3d geometry. 

In 4.2 only the cube is counted as a draw call.

![image](https://github.com/godotengine/godot/assets/9627628/5099d80d-5485-488f-b798-bf5c17c17375)


but in 4.3...

![image](https://github.com/godotengine/godot/assets/9627628/ca39cf21-29d2-430f-9eb1-534ac6ee9bbe)


![image](https://github.com/godotengine/godot/assets/9627628/c1bcf564-3e27-434d-a058-72fd1f12f50e)


### Steps to reproduce

Download MRP .zip
Open the 4.2 version, open test_draw_call.tscn, run it and notice there's only one draw call.
Open the 4.3 version, which is identical, and notice the draw calls go up with every letter typed.

### Minimal reproduction project (MRP)

[Draw Call Test.zip](https://github.com/godotengine/godot/files/14837195/Draw.Call.Test.zip)
Repository: vscode
Issue: Ability to restore a profile from settings sync history
Labels: feature-request,settings-sync

At present, we are deleting the collection on the server when a profile is removed. Hence user cannot restore the profile from the history. We also have a hard limit on the number of collections on the server. We should probably archive the collection and clean it up after a month and allowing user to restore.
Repository: flutter
Issue: [Proposal] Flutter tool should have a way to suppress/ignore/acknowledge build warnings 
Labels: P2,team-tool,triaged-tool

Some decisions when building flutter apps have consequences that we would like to inform users of but do not wish to be a perpetual warning every time the users build. 

This ticket tracks the creation of some type of system that can be used inside the flutter tool for "warnings" that can be acknowledged then no longer printed. 

Decisions that need to be made include: 
* What is the mechanism that users use to bypass the warning and how can those bypasses be shared across a team, (flag, config value, file) 
* When does the warning show up again? (never, on flutter version changes, for some period of time) 

Additional context https://github.com/flutter/flutter/issues/144484#issuecomment-2030745747
Repository: terminal
Issue: Inconsistent terminal color (on startup)
Labels: Area-Rendering,Issue-Bug,Product-Terminal

### Windows Terminal version

1.19.10573.0

### Windows build number

10.0.22631.0

### Other Software

```console
> wsl --version
WSL version: 2.1.5.0
Kernel version: 5.15.146.1-2
WSLg version: 1.0.60
MSRDC version: 1.2.5105
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22631.3296
```

* Ubuntu 22.04.4 LTS
* ZSH 5.8.1
* [Oh My Zsh](https://ohmyz.sh/) version: `master (0fed366)`
* `ZSH_THEME="bira"`

### Steps to reproduce

I cannot reproduce it 100% reliably, but I do get it fairly regularly (at least once per day).

It typically happens for the first terminal I create after I boot my computer.

### Expected Behavior

If I open multiple panes/tabs/windows, they should all have the same colorscheme (or render the colors the same way).

### Actual Behavior

For the first terminal I create, I get colors that are slightly off. All panes/tabs/windows I create after that have correct colors:

![Screenshot 2024-04-02 162159](https://github.com/microsoft/terminal/assets/7773090/46047725-90b0-48dc-836d-3ae76e0fee00)

In this example, the upper pane is the first pane and the lower pane was created later.

According to the color picker from PowerToys, these are the colors I get in the screenshot example:

|                     | Black | White | Green | Blue |
| ------------- | ----- | ------- | ------- | ---- |
| Upper pane | `#0c0c0c`| `#f0f0f0` | `#4be14b` | `#4040bd` |
| Lower pane | `#0c0c0c` | `#f0f0f0` | `#15b40c` | `#3b78ff` |

Node that there is some variation caused by aliasing, so I may have accidentally picked the wrong colors. But it's an honest attempt. 😅
Repository: pytorch
Issue: Need better documentation for running doctest locally
Labels: module: docs,module: ci,module: tests,triaged

- [doctests.sh](https://github.com/pytorch/pytorch/blob/main/test/run_doctests.sh) doesn't seem to do the same thing as the doctests in CI (it runs much fewer tests).
- run_tests.py seems to handle running doctests in CI, but after ~10 minutes I am still unable to figure out what the right invocation is to only run doctests locally

cc @svekars @brycebortree @seemethere @malfet @pytorch/pytorch-dev-infra @mruberry @ZainRizvi
Repository: ui
Issue: [bug]: The documentation for Combobox is outdated.
Labels: bug

### Describe the bug

In the documentation, the combobox code uses a CommandGroup but not CommandList, furthermore even after adding CommandList users have to figure out why the options are disabled by default on the example code.

The breaking changes in v1.0.0 https://github.com/pacocoursey/cmdk/releases/tag/v1.0.0 are responsible for this. And the documentation needs to be updated to reflect the changes.

### Affected component/components

Combobox

### How to reproduce

Go to https://ui.shadcn.com/docs/components/combobox
Copy the code next to the preview button
Try running it.


### Codesandbox/StackBlitz link

https://ui.shadcn.com/docs/components/combobox

### Logs

_No response_

### System Info

```bash
Mac, shadcn for nextjs
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: terminal
Issue: <reserved>
Labels: ⛺ Reserved

not blank!

We like to reserve issues with nice, easy to remember numbers like this.
Repository: vscode
Issue: Terminal buttons pushed outside of the app window boundary when resizing the panel
Labels: bug,workbench-views

This has been bugging me for a long time.

### The old behaviour:

When I made the panel narrower, it used to still show all the right-aligned buttons (split terminal, kill terminal etc) while the left-aligned list of buttons ("TERMINAL", "COMMENTS", "PROBLEMS" etc) would be truncated and an ellipsis button would appear where I could switch between them. I can't take a screenshot of how it used to look but I was able to find an image on the web, showing the ellipsis button I'm refering to:
![image](https://github.com/microsoft/vscode/assets/3394270/48c5e187-0e6a-42f0-9f97-9e2ff8866e7e)

### The new (broken) behaviour:

When I make the panel narrower, the right-aligned buttons are pushed outside of the app window boundary, making them unavailable to me untill I make the panel wider again:

![69fa85db-82bd-4272-a68f-fd8bd75c9f38](https://github.com/microsoft/vscode/assets/3394270/fe45c059-e978-483d-8eb7-706f64a9aed6)

I think the old behaviour was better since all buttons were available at all times without the need to resize the panel.
Repository: deno
Issue: Give better error message when ignoring `no-slow-types` with `deno-lint-ignore`
Labels: bug

See https://github.com/denoland/deno/issues/22683#issue-2165587345
Repository: tauri
Issue: [bug] `add_capability` for a specific window does not work on Android when the webview url is of type `CustomProtocol`
Labels: type: bug,status: needs triage

### Describe the bug

Using the progamatic way of adding capabilities `add_capability` to a single window by its label works on both Android and linux when webviewurl is of type `App`. It also works on both linux and android if the WebviewUrl is of type `CustomProtocol` **and** we add the capability to all windows with `.windows(["*"])`. It also works on linux when adding to a single window by its label and WebviewUrl is of type `CustomProtocol`, but it **does not work on Android in that case**.

This is the code:

```rust
            let window = WebviewWindowBuilder::new(
                app,
                "main",
                tauri::WebviewUrl::CustomProtocol(Url::parse("hey://ho")?),
            )
            .build()?;

            app.add_capability(
                CapabilityBuilder::new("test")
                    .window("main")
                    .permission("dialog:allow-confirm"),
            )?;
```

I've reproduced this with other plugins as well, so the actual plugin is not the problem.

### Reproduction

https://github.com/guillemcordoba/tauri-acl-custom-protocol-reproduction

### Expected behavior

`add_capability` works on Android when using `WebviewUrl::CustomProcotol` and specifying a window label.

### Full `tauri info` output

```text
tauri-app on  main  ❄️  nix-shell-env took 2s
❯ npm run tauri info

> tauri-app@0.0.0 tauri
> tauri info


[⚠] Environment
    - OS: NixOS 24.5.0 X64
    ✔ webkit2gtk-4.1: 2.44.0
    ✔ rsvg2: 2.57.1
    ✔ rustc: 1.77.1 (7cf61ebde 2024-03-27)
    ✔ cargo: 1.77.1 (e52e36006 2024-03-26)
    ⚠ rustup: not installed!
      If you have rust installed some other way, we recommend uninstalling it
      then use rustup instead. Visit https://rustup.rs/
    ⚠ Rust toolchain: couldn't be detected!
      Maybe you don't have rustup installed? if so, Visit https://rustup.rs/
    - node: 20.11.1
    - npm: 10.2.4

[-] Packages
    - tauri [RUST]: 2.0.0-beta.13
    - tauri-build [RUST]: 2.0.0-beta.10
    - wry [RUST]: 0.37.0
    - tao [RUST]: 0.26.2
    - @tauri-apps/api [NPM]: 2.0.0-beta.6
    - @tauri-apps/cli [NPM]: 2.0.0-beta.11

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
    - bundler: Vite
```


### Stack trace

_No response_

### Additional context

_No response_