sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: [flutter_test] Simulating hover should be easier
Labels: a: tests,c: new feature,framework,c: proposal,P3,team-framework,triaged-framework

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Use case

<!--
     Please tell us the problem you are running into that led to you wanting
     a new feature.

     Is your feature request related to a problem? Please give a clear and
     concise description of what the problem is.

     Describe the alternative solutions you've considered. Is there a package
     on pub.dev/flutter that already solves this?
-->

I'm trying to test a widget that changes color when hovering. Altough, it's not easy to do it with `flutter_test`. This is what I currently use:
```dart
testWidgets('MyWidget should be red by default', (WidgetTester tester) async {
  await tester.pumpWidget(
    MyWidget(),
  );
  expect(find.byWidgetPredicate((Widget widget) => widget is Container && widget.color == Colors.red), findsOneWidget);
  expect(find.byWidgetPredicate((Widget widget) => widget is Container && widget.color == Colors.blue), findsNothing);

  final gesture = await tester.createGesture(kind: PointerDeviceKind.mouse);
  await gesture.addPointer(location: Offset.zero);
  addTearDown(gesture.removePointer);
  await tester.pump();
  await gesture.moveTo(tester.getCenter(find.byType(MyWidget)));
  await tester.pumpAndSettle();

  expect(find.byWidgetPredicate((Widget widget) => widget is Container && widget.color == Colors.red), findsNothing);
  expect(find.byWidgetPredicate((Widget widget) => widget is Container && widget.color == Colors.blue), findsOneWidget);
});
```

## Proposal

<!--
     Briefly but precisely describe what you would like Flutter to be able to do.

     Consider attaching something showing what you are imagining:
      * images
      * videos
      * code samples

     Does this have to be provided by Flutter directly, or can it be provided
     by a package on pub.dev/flutter? If so, maybe consider implementing and
     publishing such a package rather than filing a bug.
-->

Add something like `tester.tap`, but for hover:

```dart
// Starts the hover
await tester.startHover(location: tester.getCenter(find.byType(MyWidget)));
// Do my tests
expect(.., ..);
// Ends the hover
await tester.endHover();
```
Repository: vscode
Issue: vscode.dev has bad behavior when opening an unknown file type
Labels: bug,web,safari,image-preview

Steps to Reproduce:

1. Go to insiders.vscode.dev on safari / firefox (where local folders aren't supported)
2. Open a gif file
3. Click open in standard text / binary ediotr
4. 🐛 Contents are blank

![Weird open gif behavior](https://user-images.githubusercontent.com/4544166/165770797-7c9be508-bfbf-44f1-9301-61ad50f4b1bb.gif)
Repository: material-ui
Issue: [Select] Form Control examples that contain Select do not pass WAVE accessibility for labels
Labels: docs,accessibility,component: select,component: FormControl

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Current behavior 😯

Using wave on the Select component examples has the error on all select fields 

`Missing form label`

`A form control does not have a corresponding label.`


I was finally able to fix the issue like this
```javascript
<FormControl sx={{ minWidth: 120 }}>
  <InputLabel id={'label-for-category'} htmlFor={'category-select-input-id'}>Category</InputLabel>
  <Select
    label={'Category'}
    labelId={'label-for-category'}
    id={'category-select'}
    value={state.category}
    inputProps={{'id': 'category-select-input-id'}}
    onChange={(event) => handleChange(event, 'category')}
  >
    <MenuItem value={''}>
      <em>None</em>
    </MenuItem>
    <MenuItem value={10}>School</MenuItem>
    <MenuItem value={20}>Work</MenuItem>
    <MenuItem value={30}>Vacation</MenuItem>
  </Select>
</FormControl>
```

Where I needed to add an `htmlFor` to the label and add the associated `id` to the `inputProps` of the `Select` 

The only select examples that do not have this error are the native examples because they have `aria-label` on them.

### Expected behavior 🤔

Examples to pass WAVE when on the bottom of the page there are directions on how to pass accessibility but these in fact don't work for the form Control label. Removing them actually doesn't add any errors.

### Steps to reproduce 🕹

Steps:

1. Go to Select component model example page
2. Run Wave
3.
4.


### Context 🔦

Proper examples for accessibility 

### Your environment 🌎

<details>
  <summary>`npx @mui/envinfo`</summary>

```
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.
```
</details>
Repository: transformers
Issue: Undocumented distributed inference behaviour for `run_summarization.py`
Labels: WIP,bug

### System Info

```shell
Fails with error


Traceback (most recent call last):
  File "/scratches/neuron/anaconda3/envs/T5DST-SGD/bin/transformers-cli", line 5, in <module>
    from transformers.commands.transformers_cli import main
  File "/scratches/neuron/anaconda3/envs/T5DST-SGD/lib/python3.8/site-packages/transformers/commands/transformers_cli.py", line 26, in <module>
    from .user import UserCommands
  File "/scratches/neuron/anaconda3/envs/T5DST-SGD/lib/python3.8/site-packages/transformers/commands/user.py", line 20, in <module>
    from huggingface_hub.hf_api import HfFolder, create_repo, list_repos_objs, login, logout, whoami
ImportError: cannot import name 'list_repos_objs' from 'huggingface_hub.hf_api' (/scratches/neuron/anaconda3/envs/T5DST-SGD/lib/python3.8/site-packages/huggingface_hub/hf_api.py)


However I am running `4.16.2` with python `3.8`.
```


### Who can help?

@sgugger @stevhliu @patil-suraj 

### Information

- [ ] The official example scripts
- [x] My own modified scripts

### Tasks

- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [x] My own task or dataset (give details below)

### Reproduction

I am working with a copy of the `run_summarization.py` (pytorch) example that the authors of this [paper](https://arxiv.org/pdf/2109.07506.pdf) modified to work for dialogue state tracking (implemented [here ](https://github.com/chiahsuan156/DST-as-Prompting) for reference)

The `run_summarization.py` script can be launched with `torch.distributed.launch` and the `--do_predict` option. This shards the examples in the test set to various GPUs and therefore generation and task-oriented metrics is accelerated. The predictions are written to the `generated_predictions.txt` file in the output directory. 

To be able to compute dialogue-relevant task oriented metrics, one ought to run a postprocessing script that uses the `generated_predictions.txt`. Because the trainer erases all the columns that are not keys to the model `forward` method from the dataset, the metadata that informs us of what training examples the predictions are related to is lost. Therefore, we rely on the ordering of the `generated_predictions.txt` to match the order of the examples in the dataset.

My question is: 
 - Does `predictions` (`L675`)  obey the order of the `dataset`? So if my dataset has 1m examples, will the 1m entries in the `predictions` list match the order of the dataset iterator? In my experience this depends on implementation* and the behaviour is not documented.
 
*For example, in frameworks such as `ray` you have to explicitly enforce the order in which the results are returned and the predictions may be returned out of order - if a process finishes, it returns its results so it can be given more work by an external load balancer.

### Expected behavior

```shell
Improved documentation about expected behaviour here. Happy to discuss where this should be added and contribute a small PR to clarify this important issue.
```
Repository: vscode
Issue: `bs` character show when press backspace
Labels: bug,editor-input-IME,author-verification-requested

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes/No
Yes.



https://user-images.githubusercontent.com/41773861/165779290-444a7ef7-e9cb-4c0c-868b-ac3021a33a04.mov




<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- MacOS: 12.3.1
- VSCode: 1.67.0-insider

Steps to Reproduce:

1. toggle input to Chinese pinyin 
2. input `s`
3. input `、`
4. delete all
5. input `s`
6. press `backspace`, you will see the red `bp` character

@alexdima
Repository: go
Issue: proposal: cmd/go: partial vendoring
Labels: Proposal,Proposal-Hold,GoCommand

<!--
Our proposal process is documented here:
https://go.dev/s/proposal-process
-->

The go mod vendor capability is great for insulating a working program from changes made in imported modules.

It would benefit from having the ability to download only those modules that are imported from external entities.

Within a single entity, every project that uses a popular module and the vendor capability will store a copy of the same code.  With multiple projects referencing this popular module, multiple copies will be stored in the owning entities' source code repository.

Modifying the vendoring capability to download only modules owned by external entities would be a useful change.  Reuse of the GOPRIVATE env var might make sense, but if overloading the semantics of this variable is problematic a new one could be added or a switch added to the command.
Repository: material-ui
Issue: [Menu] Not working with React DND
Labels: new feature,component: menu

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Current behavior 😯

 I am using react-dnd to implement drag and drop functionality in my code. The problem I am facing is that if I wrap my draggable components inside a Menu component. the drop functionality doesn't work while the drag works, but if I replace the Menu with a div, it works as expected.

### Expected behavior 🤔

The components inside `Menu` should be droppable as per react-dnd docs. 

### Steps to reproduce 🕹

Here's a [sandbox](https://codesandbox.io/s/github/ShaleenAg/react-dnd-example) link with the issue demonstrated.
 
Inside the sandbox, I have created a `Dummy` component which is essentially the `Knight` component and passed it in a `Menu` in `Board.tsx` . On opening the menu, the component is draggable as expected but not droppable.

Checkout to `without-mui-menu branch` , where I have replaced the whole menu thing with a div and it works as expected.
[Sandbox Branch](https://codesandbox.io/s/github/ShaleenAg/react-dnd-example/tree/without-mui-menu)

I went through react-dnd docs, and I just need to ensure there's a `dnd-provider` wrapped at the top level for it work, which I have done.

### Context 🔦

I'm trying to populate a `Menu` with components which a user can drag and drop. The only thing I can figure out is that since Menu html is rendered at the very last point in `<body>` that's why the drop doesn't work since `react-dnd` uses HTML5 backend to implement it. it would be great if there's a workaround where we can directly mount the menu at the point in html instead of at bottom

### Your environment 🌎

<details>
  <summary>`npx @mui/envinfo`</summary>

```
we are using MUI V4 in our prod and the code in sandbox uses the latest version of mui and react-dnd so can't really share env info.
```
</details>
Repository: flutter
Issue: [video_player] Remove XCUITest code based on old accessibility value style.
Labels: platform-ios,p: video_player,package,P3,team-ios,triaged-ios

The XCUITest in video player looks for the tooltip button based on both old and new accessibility value. We should remove the logic that looks for the old accessibility value when the new one is supported on flutter/stable.

See: https://github.com/flutter/plugins/pull/5426
Repository: rust
Issue: Only determine impl-trait desugaring kind once
Labels: C-cleanup,E-mentor,T-compiler,A-HIR,E-medium,A-ast

`impl-trait` can either be desugared as a generic parameter (universal), as an opaque type (existential), or forbidden.  This desugaring is currently on the AST in two places: `def_collector` and `ast_lowering`.  The two logic are not consistent with one another.  When this happens, `ast_lowering` is right.

`dyn Trait<T: Bound>` sometimes desugars to `dyn Trait<T = impl Bound>`, and sometimes does not.

We should only determine the desugaring once. This can be achieved by:
- [ ] saving the desugaring from `def_collector` into an `impl_trait_context: FxHashMap<LocalDefId, ImplTraitContext>` in `Resolver`;
- [ ] add `impl_trait_id: NodeId` in `rustc_ast::AssocConstraint` and use it to create the impl-trait's `LocalDefId`;
- [ ] introduce `UniversalInDyn` to handle the `dyn Trait<T: Bound>` case in `def_collector` and create the definition there, `desugar_to_impl_trait` should be replaced by `resolver.opt_local_def_id(constraint.impl_trait_id).is_some()`;
- [ ] move the `&mut Vec` in `rustc_ast_lowering::ImplTraitContext` to `LoweringContext`, the new field should be saved and restored by `with_hir_id_owner`;
- [ ] merge `rustc_ast_lowering::ImplTraitContext` and `rustc_resolve::ImplTraitContext`, introducing a `ResolverAstLowering::get_impl_trait_context(LocalDefId) -> Option<ImplTraitContext>` to access the information.

Please reach out on Zulip for any question.

<!-- TRIAGEBOT_START -->

<!-- TRIAGEBOT_ASSIGN_START -->

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

<!-- TRIAGEBOT_ASSIGN_END -->
<!-- TRIAGEBOT_END -->
Repository: vscode
Issue: "Create a New Jupyter Notebook" fails
Labels: bug,notebook-serialization

On the latest Insiders, I was playing around with notebooks to verify things. I opened and closed two notebooks using the "Create a New Jupyter Notebook" command. Now, whenever I run that command, I receive the following error:

![image](https://user-images.githubusercontent.com/2230985/165822119-9192cf58-b4a7-4f08-89c4-f65ff1835df1.png)

![image](https://user-images.githubusercontent.com/2230985/165822256-632ff083-a1c6-4230-95e1-061ad43ef831.png)
Repository: go
Issue: go/printer: false positive for doc comment formatting on unindented input
Labels: NeedsFix,FixPending

The added blank line in the comment shows that go/printer is treating this as a doc comment, even though it's not.
It is being tricked by the lack of indentation, which I used as part of the signal for "top-level comment".
Very minor, but should do better.

```
% cat /tmp/x.go
package p

type T struct {
// This is not
//	a doc comment.
X int
}
% gofmt /tmp/x.go
package p

type T struct {
	// This is not
	//
	//	a doc comment.
	X int
}
%
```
Repository: flutter
Issue: [Impeller] Add feature to allow attribute mapping of uint32s host-side to vec4s shader-side
Labels: engine,P3,e: impeller,team-engine,triaged-engine

Once the GLES 2 renderer lands, impellerc could be extended to map the 4
color bytes to vec4s in the shader, i.e.:
    `glVertexAttribPointer(2, 4, GL_UNSIGNED_BYTE, false, 4, nullptr);`
...as opposed to:
    `glVertexAttribPointer(2, 4, GL_FLOAT, false, 16, nullptr);`
  
impellerc could e.g. detect some kind of special naming convention hint
from the attribute name to support this case:
    `in vec4 vertex_color__byte;`
  
Such a feature would remove the need to convert color data in some cases, as in https://github.com/flutter/engine/pull/32981.
Repository: pytorch
Issue: [numpy] Missing Tensor-Scalar support for multiple binary ops 
Labels: triaged,module: numpy,module: python frontend

### 🐛 Describe the bug

While trying to update the test sample in https://github.com/pytorch/pytorch/pull/76364, found that there are multiple binary ops in PyTorch which don't support Tensor and Scalar inputs.

```python
import torch
import numpy as np

t = torch.zeros(3, 3)
a = t.numpy()

# atan2 - Works on Numpy
np.arctan2(a, 1)
# torch.arctan2(t, 1)

# fmax - Works on Numpy
np.fmax(a, 1)
# torch.fmax(t, 1)

# fmin - Works on Numpy
np.fmin(a, 1)
# torch.fmin(t, 1)

# Similarly other ops that work on NumPy or SciPy
# heaviside
# hypot
# igamma - Works on Scipy (gammainc)
# igammac - Works on Scipy (gammaincc)
# isclose
# logical_and
# logical_or
# logical_xor
# maximum
# minimum
# nextafter

```

### Versions

master

cc @mruberry @rgommers
Repository: pytorch
Issue: Pip packaging and publishing improvements in pytorch wheels for better integration with poetry
Labels: module: binaries,triaged

### 🐛 Describe the bug

[Poerty](https://github.com/python-poetry/poetry) is a great build toolchain for python applications that lean on pip packaging. 

Please see a detailed thread here https://github.com/python-poetry/poetry/issues/4231#issuecomment-1109470128 on why the integration of applications written using PyTorch eco-system fails. As mentioned in the follow-up reply from @abn here https://github.com/python-poetry/poetry/issues/4231#issuecomment-1111400536 that some improvements in our PyTorch packages are published and indexed can greatly improve the experience and integration. To highlight the requests:

1. The lack of file hashes being exposed in the repository means that Poetry has to download each artifact unnecessarily. As per [PEP 503](https://peps.python.org/pep-0503/). this can be appended to the file URL as #<hashname>=<hashvalue>. This can be done easily by the index admins I believe.
2. While fixing (1) will reduce the number of required downloads, files still will be downloaded again when there is a need to inspect metadata (ie. Requires-Dist, etc. from the wheel). This can be avoided too if [PEP 658](https://peps.python.org/pep-0658/#specification) gets implemented. I suspect this will need to also be supported by Poetry as well.
3. Would be great if requesting a non-existant resource returns a 404 instead of 403. If I understand correctly, this is because they have not set s3:ListBucket permission for public users (assuming they use S3 for this).

I am not 100% sure this ticket is the best place on the main torch repo but I did not find any CI-specific repo either in [pytorc](https://github.com/pytorch). Please help direct if I got the main repo to report this wrong. 

### Versions

Has been tried with multiple versions including 1.11

cc @seemethere @malfet @osalpekar @atalman @ezyang
Repository: pytorch
Issue: [jiterator] perf regression when jiterating few ops for complex dtype
Labels: module: performance,triaged,module: complex,module: jiterator

### 🐛 Describe the bug

Benchmarks (thanks @anjali411 for suggesting) of a few operators before and after jiterating for complex dtype shows that there is perf-regression in some cases (also jiterated version is faster in some cases).

Ref: https://gist.github.com/kshitij12345/6581f0aab6f2fc16648bbf0c4c3219fa

As can be seen from the benchmark, there is a noticeable regression for `sigmoid`. Diving a bit deeper for `sigmoid`, the regression is caused due to use of `operator/`. Root cause being jiterated version (based on llvm) uses a different implementation from non-jiterated version. (Thanks @anjali411 @ngimel @zasdfgbnm for figuring that out)

Hence going forward we should be more careful while jiterating an op for complex dtype and be sure to benchmark the same.

### Versions

master

cc @VitalyFedyunin @ngimel @ezyang @anjali411 @dylanbespalko @mruberry @Lezcano @nikitaved
Repository: go
Issue: mime: glob pattern is not expanded
Labels: help wanted,NeedsInvestigation

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.18.1 linux/amd64
</pre>

### Does this issue reproduce with the latest release?

Yes.

### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/zhsj/.cache/go-build"
GOENV="/home/zhsj/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/zhsj/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/zhsj/go"
GOPRIVATE=""
GOPROXY="https://goproxy.cn"
GOROOT="/usr/lib/go-1.18"
GOSUMDB="sum.golang.google.cn"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go-1.18/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.18.1"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/tmp/t/t/go.mod"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build341454139=/tmp/go-build -gno-record-gcc-switches"
</pre></details>

### What did you do?

```
package main

import (
        "fmt"
        "mime"
)

func main() {
        exts, _ := mime.ExtensionsByType("video/x-anim")
        fmt.Println(exts)
        typ := mime.TypeByExtension(".anim1")
        fmt.Println(typ)
}

```


### What did you expect to see?

```
.anim1 .anim2 .anim3 .anim4 .anim5 .anim6 .anim7 .anim8 .anim9 .animj
video/x-anim
```

### What did you see instead?

```
[.anim[1-9j]]

```

`/usr/share/mime/globs2` has `50:video/x-anim:*.anim[1-9j]`.
Repository: vscode
Issue: TQDM different in Extension (web) versus normal Code
Labels: bug,notebook

Testing microsoft/vscode-jupyter#9767

Not entirely sure what is up there, but it caught my eye since I'm used to how the output normally looks. Top screen is Extension (web)

<img width="1375" alt="image" src="https://user-images.githubusercontent.com/812783/165358808-51410ea6-395c-4df5-a3e3-8db7f96461ce.png">
Repository: scrcpy
Issue: Control all devices at the same time
Labels: feature request


![group-control](https://user-images.githubusercontent.com/20386503/165842671-3e4628f4-190a-4ede-9b1c-c038120947b8.gif)
 - [x] I have checked that a similar [feature request](https://github.com/Genymobile/scrcpy/issues?q=is%3Aopen+is%3Aissue+label%3A%22feature+request%22) does not already exist.

**Is your feature request related to a problem? Please describe.**
No

**Describe the solution you'd like**
A hotkey or toggle to group the devices to control all at the same time, similar to how QTscrcpy works, please see gif

**Describe alternatives you've considered**
QTscrcpy, but that is missing countless needed features that scrcpy already has

**Additional context**
Please see gif attached