sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: Fix dynamo-related debug Python 3.11 failures
Labels: triaged,bug,release notes: dynamo,module: python version

Multiple `PYTORCH_TEST_WITH_DYNAMO=1` tests raise asserts on debug Python 3.11 or otherwise fail. These should be fixed.

Script to run all tests: https://gist.github.com/williamwen42/c430d1a5667c270c209be51b24490d6e (Each individual test will stop running at the first abort/segfault. To continue, skip the failing test.)

Tests to fix:

- [ ] `python test/test_optim.py -k test_adagrad_sparse` (`Python/ceval.c:2431: _PyEval_EvalFrameDefault: Assertion 'EMPTY()' failed.`)

For reference, these tests also fail without `PYTORCH_TEST_WITH_DYNAMO=1` on 3.11:

- [ ] `python test/test_tensor_creation_ops.py -k test_non_writable_buffer_cpu_bool` (`Fatal Python error: _Py_CheckSlotResult: Slot getbuffer of type bytes succeeded with an exception set`) (debug 3.11 only) (also fails in debug 3.10)
- [ ] `python test/functorch/test_ops.py -k test_vmapvjpvjp_linalg_tensorsolve_cpu_float32` (`AssertionError: Tensor-likes are not close!`) (debug 3.11 only)
- [ ] Tests `test_bool_indices_cpu` and `test_bool_indices_cuda` in `python test/test_indexing.py` (`AssertionError: Scalars are not equal!`) (only occurs when the entire test suite is run -- running individually passes, fails locally on release 3.11, passes in CI) (https://github.com/pytorch/pytorch/issues/103355)
- [ ] `python test/test_ops_gradients.py -k test_fn_grad_linalg_det_singular_cpu_float64` (`torch.autograd.gradcheck.GradcheckError: Jacobian mismatch for output 0 with respect to input 0,`) (debug 3.11 only)
- [ ] `python test/test_sparse_csr.py -k test_invalid_input_csr_large_cpu` (`AssertionError: "32-bit integer overflow in nnz" does not match "value cannot be converted to type int32 without overflow"`) (skipped in CI)
Repository: rust
Issue: Using `&v` instead of `v` arg in `format!` does not inline, causing ~6% perf hit
Labels: I-slow,A-codegen,C-bug,T-libs,A-fmt,C-optimization

I tried this code:

```rust
pub fn func(i: i32) -> String {
    format!("{}", &i)
}
```

I expected `&i` to be inlined and be equivalent to `format!("{}", i)`

Instead, in my [benchmarking tests](https://gist.github.com/nyurik/16495ecf3034052803ceb1b26b8ac8a9) I see about 6% performance hit, and [assembly](https://rust.godbolt.org/z/M7KxPGYE9) has a non-inlined function.

![image](https://github.com/rust-lang/rust-clippy/assets/1641515/2f4591ba-febe-4f8e-be92-5356c2155c65)

### Relevant links
* [Assembly comparison](https://rust.godbolt.org/z/M7KxPGYE9)
* [Benchmarking code](https://gist.github.com/nyurik/16495ecf3034052803ceb1b26b8ac8a9)
* A Clippy lint:  https://github.com/rust-lang/rust-clippy/issues/10851
* [Stackoverflow question](https://stackoverflow.com/questions/76361472/why-formatting-value-vs-ref-generates-different-assembly-in-rust)

### Meta
<!--
If you're using the stable version of the compiler, you should also check if the
bug also exists in the beta or nightly versions.
-->

`rustc --version --verbose`:
```
rustc 1.69.0 (84c898d65 2023-04-16)
binary: rustc
commit-hash: 84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc
commit-date: 2023-04-16
host: x86_64-unknown-linux-gnu
release: 1.69.0
LLVM version: 15.0.7
```
Repository: neovim
Issue: .bib files with '\)' in an entry break syntax highlighting for the rest of the file
Labels: runtime,bug-vim,needs:vim-patch

### Problem

In bib-files, when an entry has escaped parenthesis like `\)`, everything after it has incorrect syntax highlighting.


### Steps to reproduce

```bib
@inproceedings{Foo,
  title        = {SPHINCS\({}^{\mbox{+}}\) },
  booktitle    = {{INDOCRYPT}},
}
```
Open the above file in nvim, and observe that from the title  on nothing will be highlighted correctly.

### Expected behavior

Correct syntax highlighting if `\)` follows a `\(`.

### Neovim version (nvim -v)

NVIM v0.9.0-dev-1135+g419819b62

### Vim (not Nvim) behaves the same?

yes, 9.0.1572

### Operating system/version

ArchLinux (Linux arch4 6.3.4-arch1-1)

### Terminal name/version

XTerm(380)

### $TERM environment variable

empty

### Installation

AUR, neovim nightly
Repository: transformers
Issue: Adding support for 3D deep learning models.
Labels: Feature request

### Feature request

Hi.
I am planning to add a new pipeline and a model for 3d deep learning tasks which can work on point clouds for classification and detection as there is no support for 3d data right now.
I just wanted to confirm if the process will be similar to the guides for adding a new pipeline and model to hugging face transformers or there are more complexities which I have not thought about?
And is it going to be too much work to add GPU support and batching?


### Motivation

I have been working with 3d deep learning and wanted to implement the whole process from scratch. So, why not contribute to hugging face so other people can use and build upon it?


### Your contribution

Submitting a PR
Repository: next.js
Issue: next/image shows error when dynamically importing mdx
Labels: bug,Image (next/image),Markdown (MDX)

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
[scott@sob-desktop mdx-image-issue]$ yarn run next info
yarn run v1.22.19
$ /home/scott/Documents/tmp/mdx-image-issue/node_modules/.bin/next info

    Operating System:
      Platform: linux
      Arch: x64
      Version: #1 SMP PREEMPT_DYNAMIC Thu, 11 May 2023 16:40:42 +0000
    Binaries:
      Node: 20.0.0
      npm: 9.6.7
      Yarn: 1.22.19
      pnpm: 7.28.0
    Relevant packages:
      next: 13.4.4
      eslint-config-next: 13.4.4
      react: 18.2.0
      react-dom: 18.2.0
      typescript: 5.0.4

warn  - Latest canary version not detected, detected: "13.4.4", newest: "13.4.5-canary.2".
        Please try the latest canary version (`npm install next@canary`) to confirm the issue still exists before creating a new issue.
        Read more - https://nextjs.org/docs/messages/opening-an-issue
Done in 1.17s.
```


### Which area(s) of Next.js are affected? (leave empty if unsure)

Image optimization (next/image, next/legacy/image), MDX (@next/mdx)

### Link to the code that reproduces this issue or a replay of the bug

https://github.com/scottyob/nextjs-mdx-issue

### To Reproduce

See:

![20230531_20h07m25s_grim](https://github.com/vercel/next.js/assets/1132154/8f5073ac-ca1e-4411-b91d-68bb6c67ef3c)

To reproduce, you can clone bug repo:  https://github.com/scottyob/nextjs-mdx-issue
Url:  http://localhost:3000/post/a

### Describe the Bug

When importing an mdx file that uses nextjs/image to dynamically render a component:
```
export default async function Page(props: Props) {
  // Load up the MDX post
  const { default: Component } = await import(
    `content/${props.params.slug}/page.mdx`
  );
  return <Component />
}
```

We get the error:

> Error: Cannot read properties of null (reading 'useContext')



Terminal:
```
Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.
- error TypeError: Cannot read properties of null (reading 'useContext')
    at stringify (<anonymous>)
- error TypeError: Cannot read properties of null (reading 'useContext')
    at stringify (<anonymous>)
digest: "3238874299"
```

### Expected Behavior

It renders with picture!

### Which browser are you using? (if relevant)

_No response_

### How are you deploying your application? (if relevant)

_No response_
Repository: stable-diffusion-webui
Issue: [Feature Request]: Different sliders for [prompt_words]
Labels: enhancement

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What would your feature do ?

As of now using [prompt_words] in the Directory name pattern and Images filename pattern
seems to both obey the 'Max prompt words for [prompt_words] pattern' set in the Saving to a directory slider.

I usually structure my prompt so the first 4 words are the 'important ones' and the folders so '[date]/[styles]/[prompt_words]/' as I use dynamic prompts and it sorts them by dynamic names to the folder.

But this causes my filenames to be cropped to 4 words also. I see no way to disconnect filename length, from folder name length.
Repository: stable-diffusion-webui
Issue: [Feature Request]: Enable multi-threaded performance to leverage multi-core CPUs
Labels: enhancement

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What would your feature do ?

The current web UI seems to only use one CPU core. During normal operation, we observed a single core CPU utilization of 100%, which caused the entire program to stall, indicating that the web UI did not fully utilize multi-core server hardware. However, these performance issues seem to be intermittent and uncertain, so we cannot reliably reproduce test cases. But it is still recommended to optimize and support multi-core

### Proposed workflow

None

### Additional information

_No response_
Repository: opencv
Issue: Opencv4.7 did not find the pyd file after compiling, and the cv2 package was not installed successfully
Labels: category: build/install,needs investigation


##### System Information
OpenCV version: 4.7.0
Operating System / Platform: Windows 10
Compiler & compiler version: Visual Studio 2019
Python Version: 3.10.13
Numpy Version 1.21.4

##### Detailed description

When installing the OpenCV python bindings with Visual Studio Release configuration,the cv2.pyd file is not found in the opencv/build/install folder, only python_loader is found in the build directory, which contains the cv2 folder and setup.py.
I also did not find cv2 and its pyd files in the Python\Python310\Lib\site-packages folder.

No error was reported during the whole process of compiling opencv. I checked BUILD_opencv_world, OPENCV_EXTRA_MODULES_PATH and  also set the path for opencv-contrib through the opencv-contrib source module folder. Tick WITH_CUDA, OPENCV_DNN_CUDA, CUDA_ARCH_BIN to set values for my GPU.

I don't know what's wrong, and I need help!
Repository: create-react-app
Issue: Use <main> tag </main> instead of <div id="root"></div>  !!
Labels: issue: proposal,needs triage

### Is your proposal related to a problem?

<!--
  Provide a clear and concise description of what the problem is.
  For example, "I'm always frustrated when..."
-->

I'm always frustrated when I have to change index.html manually to replace 
`<div id="root"></div>` to  `<main id="root"></main>` OR Better `<main></main>`

![image](https://github.com/facebook/create-react-app/assets/72795959/01bc917b-a7be-4012-9459-6c5dc7668e19)


### Describe the solution you'd like

<!--
  Provide a clear and concise description of what you want to happen.
-->

Let's just use `<main id="root"></main>` instead of `<div id="root"></div>`.
As it tells the **developer** & **search engines** that this is the main content (that is, our **React App**).

### Describe alternatives you've considered

<!--
  Let us know about other solutions you've tried or researched.
-->

We can also replace it with `<main></main>` and Make our **App component** manipulate the `<main>` tag instead of selecting an `id='root'`.

### Additional context

<!--
  Is there anything else you can add about the proposal?
  You might want to link to related issues here, if you haven't already.
-->

Advantages:
- Better document readability for the developer
- Screenreader landmarks and inferred roles.
- Improved Semantics (through differentiation from <div> elements).
- Element-level selector distinction in CSS (low specificity).

Disadvantages:
- Older browsers (such as IE8 and below) will need JavaScript-based polyfills and basic CSS to make the elements behave as intended.
Repository: next.js
Issue: scroll restoration is not working in nested scroll bar
Labels: bug,Navigation

### Verify canary release

- [ ] I verified that the issue exists in the latest Next.js canary release

**I can scroll restore in "next": "^12.2.6-canary.1" but Now I am using "next": "13.0.6" . Is that problem ? **
### Provide environment information

```bash
Operating System:
      Platform: win32
      Arch: x64
      Version: Windows 10 Enterprise
    Binaries:
      Node: 18.14.0
      npm: N/A
      Yarn: N/A
      pnpm: N/A
    Relevant packages:
      next: 13.0.6
      eslint-config-next: 13.0.6
      react: 18.2.0
      react-dom: 18.2.0

warn  - Latest canary version not detected, detected: "13.0.6", newest: "13.4.5-canary.2".
```


### Which area(s) of Next.js are affected? (leave empty if unsure)

Routing (next/router, next/navigation, next/link)

### Link to the code that reproduces this issue or a replay of the bug

https://github.com/thanhtutzaw/scroll-restore

### To Reproduce
Delete height from main in global.css

### Describe the Bug
Scroll restoration is not work if scrollbar is not in body

### Expected Behavior

It should restore scroll and should not only for body scrollbar

### Which browser are you using? (if relevant)

Brave ( Windows )

### How are you deploying your application? (if relevant)

Vercel
Repository: PowerToys
Issue: Windows loosing attachement to canvas on virtual desktop change
Labels: Issue-Bug,FancyZones-Hotkeys,Priority-2,FancyZones-VirtualDesktop

### Microsoft PowerToys version

0.70.0

### Installation method

PowerToys auto-update

### Running as admin

No

### Area(s) with issue?

FancyZones

### Steps to reproduce

Setup at least 2 Virtual Desktops.
Setup a fancy zone with canvas.
Stack at least 2 windows in the canvas zone (app doesn't matter, I opened vscode, Edge, notepad, Windows Terminal).
Cycle between windows snapped to the same zone to validate the windows are attached to the canvas zone. (⊞ Win+PgUp/PgDn).

Now switch to another virtual desktop using ⊞ Win+Ctrl+Left/Right or ⊞ Win+Tab and then come back to desktop where you stacked your windows.

Cycling between windows won't work.

### ✔️ Expected Behavior

Using multiple VDs as workspaces, I would expect no to have to reattach windows to zones while I'm context switching between VDs

### ❌ Actual Behavior

Canvas feature is not usable in multiple VD context.

### Other Software

_No response_
Repository: transformers
Issue: [Feature Request] Add timestamp prediction for TF Whisper
Labels: TensorFlow,Good Second Issue,Feature request

### System Info

Latest Version.
On google Colab

### Who can help?

@sanchit-gandhi @connor-henderson 

### Information


I am trying to convert tensorflow whisper to tflite but turns out that TFWhisper doesnt want to output timestamp tokens.

- [X] The official example scripts
- [ ] My own modified scripts

### Tasks

- [X] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [ ] My own task or dataset (give details below)

### Reproduction

```
import tensorflow as tf


# Importing necessary classes from transformers 
from transformers import WhisperProcessor, WhisperFeatureExtractor, TFWhisperForConditionalGeneration, WhisperTokenizer

# Importing necessary functions from datasets
from datasets import load_dataset

# Creating an instance of AutoProcessor from the pretrained model
feature_extractor = WhisperFeatureExtractor.from_pretrained("openai/whisper-tiny.en")
tokenizer = WhisperTokenizer.from_pretrained("openai/whisper-tiny.en", predict_timestamps=True)
processor = WhisperProcessor(feature_extractor, tokenizer)

# Creating an instance of TFWhisperForConditionalGeneration from the pretrained model
model = TFWhisperForConditionalGeneration.from_pretrained("openai/whisper-tiny.en")

# Loading dataset
ds = load_dataset("hf-internal-testing/librispeech_asr_dummy", "clean", split="validation")

# Inputs
inputs = processor(ds[0]["audio"]["array"], return_tensors="tf")
input_features = inputs.input_features

# Generating Transcription
generated_ids = model.generate(input_features=input_features, return_timestamps=True)
transcription = processor.tokenizer.decode(generated_ids[0], decode_with_timestamps=True)
print(transcription)
```


 Mr. Quilter is the apostle of the middle classes, and we are glad to welcome his gospel.



### Expected behavior




While the same tokenizer with ```predict_timestamps=True``` works as expected in pytorch:
```
import torch
from transformers import WhisperForConditionalGeneration

model = WhisperForConditionalGeneration.from_pretrained("openai/whisper-tiny.en")

ds = load_dataset("hf-internal-testing/librispeech_asr_dummy", "clean", split="validation")

inputs = processor(ds[0]["audio"]["array"], return_tensors="pt")
input_features = inputs.input_features

generated_ids = model.generate(inputs=input_features, return_timestamps=True)

transcription = processor.tokenizer.decode(generated_ids[0], decode_with_timestamps=True)
transcription
```

<|0.00|> Mr. Quilter is the apostle of the middle classes, and we are glad to welcome his gospel.<|5.44|>
Repository: flutter
Issue: Non-English text does not align vertically with widgets like Icons, while adding a `\u200B` hack solves it
Labels: framework,a: internationalization,a: typography,has reproducible steps,P2,found in release: 3.10,found in release: 3.11,team-framework,triaged-framework

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Steps to reproduce

Hi thanks for the helpful framework! However, non-English text does not align vertically with widgets like Icons.

More specifically, here I did 3 experiments:

1. Only non-english text: It does not align (this is the bug)
2. Non-english text + `u200B` hack: Imperfect align (text is a little bit too low), but better.
3. English text: align well

PS. I use `TextLeadingDistribution.even` as is suggested in https://github.com/flutter/flutter/issues/96713

*I am willing to make a PR if possible!*

![image](https://github.com/flutter/flutter/assets/5236035/819bcf41-e238-4fe0-a3a8-6c81badd2564)

### Expected results

see above

### Actual results

see above

### Code sample

<details><summary>Code sample</summary>

```dart
import 'package:flutter/material.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(),
        body: Center(
          child: Column(
            children: [
              for (final text in ['田', '田\u200B', 'A'])
                Container(
                  color: Colors.green,
                  margin: const EdgeInsets.all(8),
                  child: Row(
                    children: [
                      Text(
                        text,
                        style: const TextStyle(
                          fontSize: 15,
                          height: 1,
                          // NOTE if you change `leadingDistribution`, need to hot *restart* the app,
                          // otherwise it does not fully take effect
                          leadingDistribution: TextLeadingDistribution.even,
                        ),
                      ),
                      Icon(Icons.info, size: 15),
                    ],
                  ),
                ),
            ],
          ),
        ),
      ),
    );
  }
}
```

</details>


### Screenshots or Video

<details>
<summary>Screenshots / Video demonstration</summary>

[Upload media here]

</details>


### Logs

<details><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
[Paste your output here]
```

</details>
Repository: flutter
Issue: Model file too large for loading as byteData in Flutter (Error: NewExternalTypedData expects argument 'length' to be in the range [0..1073741823])
Labels: c: crash,platform-android,dependency: dart,a: assets,P3,team-android,triaged-android

I am in the process of integrating a deep learning model within my flutter app. I want to load the model on a C++ runtime (onnxruntime) through Flutter FFI.

The model file in my assets is retrieved as a datastream and converted into a File.

```
modelFile = File('${modelsDir.path}/$modelName');

ByteData byteData = await rootBundle.load('assets/models/$modelName');
    
await modelFile.writeAsBytes(
byteData.buffer.asUint8List(byteData.offsetInBytes, byteData.lengthInBytes),
);
```

The path of the file is then sent to onnxruntime and the model is loaded in C++:

```
// Loading with string path
auto sessionLocal = std::make_unique<Ort::Session>(*env, modelpath, session_options);
```

The problem I am currently running into is that I get an error when running rootBundle.load, indicating that the file is too large.

`Dart Error: NewExternalTypedData expects argument 'length' to be in the range [0..1073741823]`

Seems like rootBundle.load has a ~1Gb limit, the loading works without issue on smaller models. Is there a way to be able to send the model data to my C++ process and overcome this size limit ?
Repository: vscode
Issue: Add (trace) logging to help extension author trouble shoot notebook code actions
Labels: under-discussion,notebook-code-actions

re https://github.com/microsoft/vscode/issues/183855

Consequence of https://github.com/microsoft/vscode/issues/183855#issuecomment-1570262727 and me being confused how to get this to work. It would be helpful to have some trace logging in the renderer for when/how code actions for notebooks are applied. This could prevent question/answer issues and empower extension authors
Repository: PowerToys
Issue: [MouseWithoutBorders] Audio Without Borders - Allow audio streaming from remote to host device
Labels: Idea-Enhancement,Product-Mouse Without Borders

### Description of the new feature / enhancement

It would be great if Audio from the remote device could be streamed/routed to the main device.


### Scenario when this would be used?

If your speakers are connected to only the main device, then by streaming the audio to it you can play audio from both devices on the same set of speakers.

### Supporting information

_No response_