sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: Provide indicator of doctest attributes with --persist-doctests
Labels: T-rustdoc,A-doctests

Relevant tarpaulin issue: https://github.com/xd009642/tarpaulin/issues/924

So in cargo-tarpaulin we use --persist-doctests in order to keep the doctest binaries around and run them for doctest coverage. In order to maintain the equivalent behaviour to cargo test, we need to keep track of the `no_run` and `ignore` attributes, as well as ensure the `should_panic` doctests exit with a non-zero exit code.

Currently the persisted doctests have a file name which is equivalent to the pah to the source file with the directory separator replaced with an underscore underscore separated integers for line number and also an index to prevent name collisions (likely due to the fact that `src/foo/bar.rs` and `src/foo_bar.rs` will normalise to same name when replacing directory separators).

The approach then taken is from the doctest name, it works out candidate files and locations, and then from this checks there for a doctest and looks for the attributes. However, this is just a heuristic and things like `#![doc = include_str!("../README.md")]` where the readme contains doctests using attributes cause the heuristic to fail.

Adding the attributes to the binary name would be a simple solution. Some way of querying metadata for a doctest and finding the binary name and tying it to a file location would also work. As far as I know there's no stability guarantee for the doc test binary naming - although I may be incorrect. Is there an openness to adapting the doc test binary name or metadata in order to make it simpler to take the persisted doctests and handle them the same way cargo test will?
Repository: flutter
Issue: [Web] Mouse hover and exit events not working right in VMware
Labels: framework,platform-web,platform-linux,a: mouse,P3,team-web,triaged-web

I have noticed over the last several months that the mouse in flutter web applications running on chrome in Ubuntu inside a Vmware guest doesn't work correctly.  Hover states don't fire at all and some mouse enter/leave events are lost.  I realize this is probably niche and I'm not sure if it is Chrome or Flutter or the VM, although I do know it works on all other browsers in the VM that I have I've tried, only Chrome seems affected.

I have launched clean VM's to see if I can duplicate and I can, if anyone could try and duplicate it may be worth looking at.  Just try any flutter application from the gallery, or something like rive.app. 

Vmware workstation version 16
Windows 10 and 11 hosts
Ubuntu 21.10 running as a guests.
Flutter version 2.8
Chrome Version 96.0.4664.110 (Official Build) (64-bit)
Repository: youtube-dl
Issue: Unable to extract and use metadata like title, description, etc from facebook videos
Labels: duplicate

Hello team, since about one month ago I'm unable to get and use some metadata from the videos that I download from Facebook using your app.
It results on NA or empty or uses a VideoID number, but we can't get basic info like title or description from videos. In the past it was working good, but since a month ago it started to replace that data with out the expected data.
Some extra info and examples:
**C:\Temp\tmp>youtube-dl.exe --version**
2021.12.17

**C:\Temp\tmp>youtube-dl.exe --write-info-json https://es-la.facebook.com/bbcnews/videos/961274387845017/**
[facebook] 961274387845017: Downloading webpage
[download] Downloading playlist: 961274387845017
[facebook] playlist 961274387845017: Collected 1 video ids (downloading 1 of them)
[download] Downloading video 1 of 1
[info] Writing video description metadata as JSON to: Facebook video #961274387845017-961274387845017.info.json
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[download] Destination: Facebook video #961274387845017-961274387845017.f419123339909945v.webm
[download] 100% of 37.43MiB in 00:03
[download] Destination: Facebook video #961274387845017-961274387845017.f630290158419467a.m4a
[download] 100% of 1.14MiB in 00:00
[ffmpeg] Merging formats into "Facebook video #961274387845017-961274387845017.mkv"
Deleting original file Facebook video #961274387845017-961274387845017.f419123339909945v.webm (pass -k to keep)
Deleting original file Facebook video #961274387845017-961274387845017.f630290158419467a.m4a (pass -k to keep)
[download] Finished downloading playlist: 961274387845017

The results:
C:\Temp\tmp\Facebook video #961274387845017-961274387845017.info.json
C:\Temp\tmp\Facebook video #961274387845017-961274387845017.mkv

And the content of the .info.json file does not contains any title or description or any text from the post of the video, that we need to use to name the file properly.
We've tried with different Facebook Pages but the same happens with all of them.
If you think I'm wrong and it works good, please provide me a command with the succesfull example, using a facebook video post, like mine.
Hope you can help me to solve this issue.
Thanks in advance, and your software rocks!
Repository: create-react-app
Issue: Projects with CRA are no longer started with yarn?
Labels: needs triage

After this message:

_**You are running `create-react-app` 4.0.3, which is behind the latest release (5.0.0).**_

I ran this command: `npx create-react-app@latest feedback-app` and the app is created with npm and not yarn as before.

<img width="531" alt="Captura de Pantalla 2022-01-06 a la(s) 00 23 47" src="https://user-images.githubusercontent.com/5360666/148323848-0af3a7d9-f4e5-4016-b2dd-063b5be7febc.png">

Anyone have more info on this, I would appreciate the help! 🤔
Repository: godot
Issue: InputEventKey returning blank unicode value for key release on Windows
Labels: enhancement,platform:windows,documentation,topic:input

### Godot version

3.4

### System information

Windows 10

### Issue description

![image](https://user-images.githubusercontent.com/97209432/148326176-3090727f-1ea2-42fd-9063-f096c41f97dc.png)

### Steps to reproduce

When code runs, any keypress returns a 0

### Minimal reproduction project

Attached
[typing error.zip](https://github.com/godotengine/godot/files/7826206/typing.error.zip)
_
Repository: flutter
Issue: [webview] Add option to not trigger navigation on reload();
Labels: c: new feature,p: webview,package,c: proposal,team-ecosystem,P3,triaged-ecosystem

## Use case

We are currently managing an application with **5 separate webviews** that are in an IndexStack.
In order to facilitate interaction with the server we have implement a JavaScript-Channel where we send events:
- sign_in
- sign_out
- back

In the channel management we reload **mulitple screens depending on the event**. Each of these reloads causes an event in the _onNavigation handler. Due to some navigation logic this will trigger a focus of the reloaded webview rather than the normal continued navigation of the current screen.

## Proposal

In order to prevent this from happening again I propose adding an option that is configurable on the WebView that allows to control reloads in a different manager or disable navigationDelegate for all reloaded pages.

```dart
WebView(
  navigation_on_reload: false,
  reload_navigation_handler: (navigation) => 
     _onNavigation(navigation)
)

```
I was so far not able to find a solution that would satisfy my requirements without coupling the application together with some very flaky globals.
Repository: pytorch
Issue: Accuracy problem of `torch.batch_norm_gather_stats_with_counts` when `running_mean` is half tensor
Labels: module: numerical-stability,module: cuda,triaged,module: half

### 🐛 Describe the bug

It looks like `n + count` in the `batch_norm_reduce_statistics_kernel` function may overflow when `count` is half type. For example:

```python
import torch
i = torch.rand([5,4,10,10], dtype=torch.float).cuda()
c = torch.rand((150,), dtype=torch.half).fill_(500).cuda()
m = torch.rand([150, 4], dtype=torch.float).cuda()
rm = torch.rand([4], dtype=torch.half).cuda()
v = torch.rand([150, 4], dtype=torch.float).cuda()
v += 0.0001
rv = torch.rand([4], dtype=torch.half).cuda()
rv += 0.0001
mea, inv = torch.batch_norm_gather_stats_with_counts(i, m, v, rm, rv, 1.2, 0.001, c)
print(mea)
```
output :

```python
# The value of output tensor "mea" should not be zero. 
tensor([0., 0., 0., 0.], device='cuda:0')  
```
Am I right? This is easy to fix and I wouldn't mind submitting a PR to do so.

### Versions

PyTorch version: 1.10.1+cu102
Is debug build: False
CUDA used to build PyTorch: 10.2
ROCM used to build PyTorch: N/A

OS: CentOS Linux release 7.9.2009 (Core) (x86_64)
GCC version: (GCC) 5.4.0
Clang version: Could not collect
CMake version: version 3.15.5
Libc version: glibc-2.3.4

Python version: 3.6.8 (default, Nov 16 2020, 16:55:22)  [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] (64-bit runtime)
Python platform: Linux-3.10.0-1160.15.2.el7.x86_64-x86_64-with-centos-7.9.2009-Core
Is CUDA available: True
CUDA runtime version: 10.2.89
GPU models and configuration: 
GPU 0: Tesla V100-SXM2-16GB
GPU 1: Tesla V100-SXM2-16GB
GPU 2: Tesla V100-SXM2-16GB
GPU 3: Tesla V100-SXM2-16GB

Nvidia driver version: 440.64.00
cuDNN version: Probably one of the following:
/usr/local/cuda-10.2/targets/x86_64-linux/lib/libcudnn.so.8
/usr/local/cuda-10.2/targets/x86_64-linux/lib/libcudnn_adv_infer.so.8
/usr/local/cuda-10.2/targets/x86_64-linux/lib/libcudnn_adv_train.so.8
/usr/local/cuda-10.2/targets/x86_64-linux/lib/libcudnn_cnn_infer.so.8
/usr/local/cuda-10.2/targets/x86_64-linux/lib/libcudnn_cnn_train.so.8
/usr/local/cuda-10.2/targets/x86_64-linux/lib/libcudnn_ops_infer.so.8
/usr/local/cuda-10.2/targets/x86_64-linux/lib/libcudnn_ops_train.so.8
HIP runtime version: N/A
MIOpen runtime version: N/A

Versions of relevant libraries:
[pip3] torch==1.10.1
[conda] Could not collect


cc @ngimel
Repository: storybook
Issue: Option to remove "`index`" as last non-story child in automatically generated story title
Labels: feature request,csf3

When my file structure is something like:
```
- components
  - button
    - index.tsx
    - index.stories.tsx
```

The outputted storybook tree is:
```
- components
  - Button
    - index
      - story 1
      - story 2
```

Whereas I'd like (at least the option of having) it match the usual `/index.*` behaviour wherein `import ./button/index.js` is treated the same as `import ./button`

```
- components
  - Button
    - story 1
    - story 2
```

Apologies if it's already possible, I've not seen it in the docs.
Repository: pytorch
Issue: `full` should take an integer size
Labels: triaged,module: tensor creation,module: python array api

The [array API specification stipulates](https://data-apis.org/array-api/latest/API_specification/creation_functions.html?highlight=full#full-shape-fill-value-dtype-none-device-none) that the `size` parameter can also be an `int`, which should be treated the same as a sequence of `int`'s with a single element.

cc @gchanan @mruberry @rgommers @pmeier @asmeurer @leofang @AnirudhDagar @asi1024 @emcastillo @kmaehashi
Repository: pytorch
Issue: `eye` should support other diagonals than the main one
Labels: triaged,module: tensor creation,module: python array api

The [array API specification stipulates](https://data-apis.org/array-api/latest/API_specification/creation_functions.html#eye-n-rows-n-cols-none-k-0-dtype-none-device-none) that the diagonal does not have to be the main one. This is controlled by the `k` parameter. Positive values correspond to upper diagonals whereas negative values correspond to lower diagonals. By default `k=0` which is the main diagonal and thus our current behavior.

cc @gchanan @mruberry @rgommers @pmeier @asmeurer @leofang @AnirudhDagar @asi1024 @emcastillo @kmaehashi
Repository: material-ui
Issue: adding testkit package or testkit driver to each component
Labels: test,support: question

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Summary 💡

When developing a real app with many reusable components and writing tests for it, it is essential to have a testkit driver for each component so it will be much easier and faster to write unit-component tests for my app.

### Examples 🌈

An Example:

Today in order to select some value of the `<Select />` component in tests, I'll need to write the following code:
```typescript
function selectOptionAt(index: number) {
  const wrapperEl = getByTestId(htmlContainer, 'my-test-id')
  fireEvent.mouseDown(getByRole(wrapperEl, 'button'))
  const options = getAllByRole(document.body, 'option')
  return fireEvent.click(options[index])
}
```

and for each component that contains `<Select />` component which I'd like to test, I'll need to copy-paste the above code.
Instead, I'd like to have some like the following:
```typescript
import { SelectTestkit } from '@mui/material/testkits'
// ...
const myComponentDriver (container: HTMLElement) {
  const selectTk = SelectTestkit(container)
  return {
    selectOptionAt(index: number) {
      selectTk.selectOptionAt(index)
    }
  }
}
```



### Motivation 🔦

I want to believe the motivation is clear from the example above. There might be a better way to achieve what I was doing in my code but again, this is just an example of code that lacking a specific driver for such basic component, making me copy-pasting this piece of code from one test to another. It both wastes a lot of time and hard to maintain in case changes are needed.
Repository: next.js
Issue: [NEXT-1178] Remove focus from next/link element after page change
Labels: bug,linear: next

### Run `next info` (available from version 12.0.8 and up)

_No response_

### What version of Next.js are you using?

12

### What version of Node.js are you using?

14

### What browser are you using?

Chrome, Firefox

### What operating system are you using?

macOS

### How are you deploying your application?

other

### Describe the Bug

In Chrome & Firefox, when changing pages using a next/link the clicked anchor remains focused after page change. This causes anchor styles to remain in their focused state. 

I found this issue - https://github.com/vercel/next.js/issues/2768  from a few years ago that solved this problem.
This is the PR created by @connor-baer for that issue - https://github.com/vercel/next.js/pull/3545. The solution was to do `document.body.focus()` on every route change. 

However, the issue appears to be back.

![giiif](https://user-images.githubusercontent.com/6549140/148380148-03ab07a3-a97d-4275-973e-fe325adaae3b.gif)



### Expected Behavior

When changing pages with a next/link the clicked link should no longer have focus after page change.

### To Reproduce

Visit this in chrome or firefox and click the header links: https://stackblitz.com/edit/nextjs-js-focus-issue

<sub>[NEXT-1178](https://linear.app/vercel/issue/NEXT-1178/remove-focus-from-nextlink-element-after-page-change)</sub>
Repository: pytorch
Issue: support setting `step` in `arange` without setting `end`
Labels: triaged,module: tensor creation,module: python array api

The [array API specification stipulates](https://data-apis.org/array-api/latest/API_specification/creation_functions.html#arange-start-stop-none-step-1-dtype-none-device-none) that only the first argument in `arange` is positional only. The other two, `end` and `step` need to be independently usable.

```python
>>> torch.arange(5, end=10)
tensor([5, 6, 7, 8, 9])
>>> torch.arange(5, step=2)
TypeError: arange() received an invalid combination of arguments - got (int, step=int), but expected one of:
 * (Number end, *, Tensor out, torch.dtype dtype, torch.layout layout, torch.device device, bool pin_memory, bool requires_grad)
 * (Number start, Number end, Number step, *, Tensor out, torch.dtype dtype, torch.layout layout, torch.device device, bool pin_memory, bool requires_grad)
```

cc @gchanan @mruberry @rgommers @pmeier @asmeurer @leofang @AnirudhDagar @asi1024 @emcastillo @kmaehashi
Repository: pytorch
Issue: `arange` should return empty array if bounds are inconsistent with step sign
Labels: triaged,module: tensor creation,module: python array api

The [array API specification stipulates](https://data-apis.org/array-api/latest/API_specification/creation_functions.html#returns) that the following should hold for the return value of `torch.arange`:

> The length of the output array must be `ceil((stop-start)/step)` if `stop - start` and `step` have the same sign, and length `0` otherwise. We currently bail out:

```python
>>> torch.arange(1, 0)
RuntimeError: upper bound and larger bound inconsistent with step sign
```

cc @gchanan @mruberry @rgommers @pmeier @asmeurer @leofang @AnirudhDagar @asi1024 @emcastillo @kmaehashi
Repository: pytorch
Issue: uint8 scalar tensors cannot be used for integer indexing
Labels: triaged,module: python array api

Integer, scalar tensors should behave like integers when used as index. Tensors of dtype `torch.uint8` deviate from that:

```python
import torch

t_1d_single = torch.empty(1)
t_1d_multi = torch.empty(2)

for dtype in (torch.uint8, torch.int8, torch.int16, torch.int32, torch.int64):
    print("single", dtype, t_1d_single[torch.tensor(0, dtype=dtype)].shape)
    print("multi1", dtype, t_1d_multi[torch.tensor(0, dtype=dtype)].shape)
    print("multi2", dtype, t_1d_multi[torch.tensor(1, dtype=dtype)].shape)
    print("#" * 50)
```

```
single torch.uint8 torch.Size([0, 1])
multi1 torch.uint8 torch.Size([0, 2])
multi2 torch.uint8 torch.Size([1, 2])
##################################################
single torch.int8 torch.Size([])
multi1 torch.int8 torch.Size([])
multi2 torch.int8 torch.Size([])
##################################################
single torch.int16 torch.Size([])
multi1 torch.int16 torch.Size([])
multi2 torch.int16 torch.Size([])
##################################################
single torch.int32 torch.Size([])
multi1 torch.int32 torch.Size([])
multi2 torch.int32 torch.Size([])
##################################################
single torch.int64 torch.Size([])
multi1 torch.int64 torch.Size([])
multi2 torch.int64 torch.Size([])
##################################################
```

cc @mruberry @rgommers @pmeier @asmeurer @leofang @AnirudhDagar @asi1024 @emcastillo @kmaehashi
Repository: pytorch
Issue: `linspace` should support an `endpoint` parameter
Labels: triaged,module: tensor creation,module: python array api

The [array API specification stipulates](https://data-apis.org/array-api/latest/API_specification/creation_functions.html#linspace-start-stop-num-dtype-none-device-none-endpoint-true) that `torch.linspace` should have a `endpoint: bool = True` parameter. If `False`, the right bound should be exclusive, i.e. `[start, end)` rather than `[start, end]`.

cc @gchanan @mruberry @rgommers @pmeier @asmeurer @leofang @AnirudhDagar @asi1024 @emcastillo @kmaehashi
Repository: PowerToys
Issue: Live updating of FancyZone layout without editor
Labels: Idea-Enhancement,Product-FancyZones

### Description of the new feature / enhancement

Hello dear community
Could you set up FancyZones so you can move the "zones" live without editor? In addition, it would be cool, would per new window a new zone open. Like with i3 or POP-OS.

Regards, Lukas



### Scenario when this would be used?

Much better workflow. If you open 2 terminals, they can be quickly arranged under each other. The right window can then be used for the browser. 

### Supporting information

_No response_
Repository: pytorch
Issue: `unique` should be split into four partial functions
Labels: triaged,module: python array api

The array API specification stipulates that we should have four partial functions for uniqueness computation rather than just one:

- [`unique_values`](https://data-apis.org/array-api/latest/API_specification/set_functions.html#unique-values-x): `torch.unique`
- [`unique_counts`](https://data-apis.org/array-api/latest/API_specification/set_functions.html#unique-counts-x): roughly `partial(torch.unique, return_counts=True)`[^1]
- [`unique_inverse`](https://data-apis.org/array-api/latest/API_specification/set_functions.html#unique-inverse-x): roughly `partial(torch.unique, return_inverse=True)`[^1]
- [`unique_all`](https://data-apis.org/array-api/latest/API_specification/set_functions.html#unique-all-x): roughly `partial(torch.unique, return_inverse=True, return_counts=True)`[^1], with the caveat that actually 4 tensors should be returned, with the second element being the indices that denote the first occurences of the values in the input.

[^1]: We currently return plain tuples, but for compliance with the array API, we need to return named tuples.

cc @mruberry @rgommers @pmeier @asmeurer @leofang @AnirudhDagar @asi1024 @emcastillo @kmaehashi
Repository: pytorch
Issue: `sort` should only return the sorted input
Labels: module: bc-breaking,triaged,module: sorting and selection,module: python array api,topic: bc breaking

The [array API specification stipulates](https://data-apis.org/array-api/latest/API_specification/generated/signatures.sorting_functions.sort.html) that `torch.sort` should only return the sorted input. Currently, we return a named tuple where the `.values` field corresponds to the specification of the array API.

cc @ezyang @gchanan @mruberry @rgommers @pmeier @asmeurer @leofang @AnirudhDagar @asi1024 @emcastillo @kmaehashi
Repository: pytorch
Issue: change supported arguments for parameter `dim` in `squeeze`
Labels: module: bc-breaking,triaged,module: python array api,topic: bc breaking

The [array API specification stipulates](https://data-apis.org/array-api/latest/API_specification/manipulation_functions.html?highlight=squeeze#id11) that

1. `dim` should accept a tuple of `int`'s indicating all dimensions that should be squeezed.
2. `dim` should have no default value. Currently, not passing anything will squeeze all singleton dimension.

cc @ezyang @gchanan @mruberry @rgommers @pmeier @asmeurer @leofang @AnirudhDagar @asi1024 @emcastillo @kmaehashi
Repository: pytorch
Issue: allow `dim=None` in `concat`
Labels: triaged,module: viewing and reshaping,module: python array api

The [array API specification stipulates](https://data-apis.org/array-api/latest/API_specification/manipulation_functions.html?highlight=concat#parameters) that

1. `dim=None` flattens all inputs before concatenating.
2. ~negative `dim`'s index the dimensions starting from the last one.~ False positive.

cc @mruberry @rgommers @pmeier @asmeurer @leofang @AnirudhDagar @asi1024 @emcastillo @kmaehashi