sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: Incomplete error message at tensor indexing (when indexing with set)
Labels: module: error checking,triaged,Stale

### 🐛 Describe the bug

Lists / tuples are not mentioned in the valid indices. Also outdated Variable type is mentioned? Or capitalization problems. It also doesn't mention that bool masks are valid (and on the other side mentions uint8 probably from the time when BoolTensor didn't exist yet)

```python
import torch
a = torch.rand(3)
a[tuple([0,])]
# tensor(0.7634)
a[list([0, 1])]
# tensor([0.7634, 0.5023])
a[set([0, 1])]
#Traceback (most recent call last):
#  File "<stdin>", line 1, in <module>
#IndexError: only integers, slices (`:`), ellipsis (`...`), None and long or byte Variables are valid indices (got set)
```

### Versions

1.9.1
Repository: flutter
Issue: [WebView] Add support for target property of anchor tag
Labels: c: new feature,p: webview,package,c: proposal,team-ecosystem,P3,triaged-ecosystem

## Use case

The app I want to realize needs multiple WebViews, and inside each of them the anchor tag target property plays an important role, therefore the values should be distinguishable. In my specific case, `<a href="someURL" target="_blank">` URLs should open the link in the main browser, while `<a href="someURL" target="_self">` URLs should be opened inside the WebView. Support for "_top" and "_parent" could also be added.

## Proposal

I think it would make most sense to introduce a target field, e.g., `request.target`, where `request` is of type `NavigationRequest`.

Snippet:

```
if (request.target == "_blank") {
  if (await canLaunch(request.url)) {
    await launch(request.url);
  }
  return NavigationDecision.prevent;
}
else {
  return NavigationDecision.navigate;
}```
Repository: pytorch
Issue: Dropout2d doesn't drop channels for (C, H, W)
Labels: high priority,module: nn,triaged,module: correctness (silent)

### 🐛 Describe the bug

[Docs](https://pytorch.org/docs/1.10.0/generated/torch.nn.Dropout2d.html?highlight=dropout2d#torch.nn.Dropout2d) read that `C` is dropped, which does not occur for `(C, H, W)` 

```python
import torch
torch.manual_seed(0)
ipt = torch.ones((2, 3, 4))
print(torch.nn.Dropout2d(p=0.5)(ipt))
```
```
tensor([[[2., 2., 2., 2.],
         [0., 0., 0., 0.],
         [0., 0., 0., 0.]],
        [[2., 2., 2., 2.],
         [2., 2., 2., 2.],
         [0., 0., 0., 0.]]])
```
but does for `(N, C, H, W)`
```python
torch.manual_seed(0)
print(torch.nn.Dropout2d(p=0.5)(ipt[None]))
```
```
tensor([[[[2., 2., 2., 2.],
          [2., 2., 2., 2.],
          [2., 2., 2., 2.]],
         [[0., 0., 0., 0.],
          [0., 0., 0., 0.],
          [0., 0., 0., 0.]]]])
```
It appears `Dropout2d` is instead implementing `Dropout1d` for `(N, C, T)`.

### Versions

1.10.0 via Anaconda; Windows 10

cc @ezyang @gchanan @zou3519 @bdhirsh @albanD @mruberry @jbschlosser @walterddr @kshitij12345
Repository: flutter
Issue: Support lightweight engines for desktop shells
Labels: c: new feature,engine,platform-mac,platform-windows,platform-linux,c: proposal,a: desktop,P3,team-macos,triaged-macos

Since the official multi-window solution has not yet been implemented, the current workaround in the community is that one window corresponds to one engine，such as native shell : https://nativeshell.dev/

So if the desktop can also support lightweight engines like mobile, we can improve window opening performance and reduce overhead for each window. It is also helpful for communication between windows.

If we can go further and let multiple lightweight engines share a root isolate, then we can also completely solve the problem of data sharing. https://github.com/flutter/flutter/issues/94995

related issue: 
https://github.com/flutter/flutter/issues/30701

/cc @stuartmorgan @gspencergoog @knopp
Repository: vscode
Issue: in Persian language the words (آ) and (ه) are displayed in the highlighted form 
Labels: under-discussion,unicode-highlight


<img width="564" alt="Screen Shot 2021-12-11 at 2 19 00 PM" src="https://user-images.githubusercontent.com/52597449/145673818-d03158ea-0658-437a-aeb9-a58f7a5953f8.png">

In the new update vs code in the Persian language, the words (آ) and (ه) are displayed in the highlighted form, and this is really annoying.
Repository: flutter
Issue: List of available build targets in machine-readable format
Labels: c: new feature,tool,c: proposal,a: build,P3,team-tool,triaged-tool

## Use case

Flutter (IDE) tools may want to access the list of available build targets (which users can see by running `flutter build`).

Is there currently any way to get a machine-readable list of available build targets? For available devices this is possible by running `flutter devices --machine` or by using `flutter daemon`. I haven't been able to find anything similar for build targets.

## Proposal
If there is currently no such way, I'd like to propose adding the possibility to retrieve a list of available build targets
in a machine-readable format from the flutter tool.
Repository: godot
Issue: Instanced Sprite with ViewportTexture produces infinite error spam
Labels: topic:core,documentation

### Godot version

3.4 / 4.0 092a286

### System information

W10

### Issue description

When you have a scene with Sprite root and assign a ViewportTexture to it, this happens when you instance it in another scene:
![KX4i6qxwnM](https://user-images.githubusercontent.com/2223172/145679500-0ca6847e-9065-4ffe-9937-5b03dada38f9.gif)

### Steps to reproduce

1. Create a Sprite2D with ViewportTexture
2. Save it as scene
3. Instance it into another scene

### Minimal reproduction project

[ReproductionProject.zip](https://github.com/godotengine/godot/files/7697182/ReproductionProject.zip)
Open Spam.tscn and move cursor over 2D viewport.
Repository: flutter
Issue: --web-run-headless does not take effect when using flutter drive for flutter web integration_test
Labels: tool,framework,platform-web,f: integration_test,P2,team-web,triaged-web

I'm trying flutter drive for flutter web integration_test on CI (without GUI). I noticed that the --headless is true by default, but got error when executing the flutter drive as the GUI Chrome is required. Then I did an investigation on the source code of the package flutter_tools, and found (please correct me if something misunderstood), the flutter drive does two things:
(1) launch chrome first (which check the option --web-run-headless to determine the mode for chrome)
(2) connect to the chromedriver for test

But seems the option --web-run-headless does not work as expected, I suspect the root cause is there:
https://github.com/flutter/flutter/blob/895beb04bb7ae9bed508b27a0f59c5328c7ea7c9/packages/flutter_tools/lib/src/drive/web_driver_service.dart#L70-L91

that is, the debuggingOptions here is built new, but not using the debuggingOptions from function start calling:
https://github.com/flutter/flutter/blob/895beb04bb7ae9bed508b27a0f59c5328c7ea7c9/packages/flutter_tools/lib/src/drive/web_driver_service.dart#L52-L58

so that, the debuggingOptions.webRunHeadless will be set to false always, whether if the --web-run-headless specified or not.

I tried add one line code as below, now --web-run-headless work as it implies.
```
    _residentRunner = webRunnerFactory.createWebRunner(
      flutterDevice,
      target: mainPath,
      ipv6: ipv6,
      debuggingOptions: buildInfo.isRelease ?
        DebuggingOptions.disabled(
          buildInfo,
          port: debuggingOptions.port,
          webRunHeadless: debuggingOptions.webRunHeadless,  // addded by zpsean 
        )
        : DebuggingOptions.enabled(
          buildInfo,
          port: debuggingOptions.port,
          disablePortPublication: debuggingOptions.disablePortPublication,
          webRunHeadless: debuggingOptions.webRunHeadless,  // addded by zpsean
        ),
      stayResident: true,
      urlTunneller: null,
      flutterProject: FlutterProject.current(),
      fileSystem: globals.fs,
      usage: globals.flutterUsage,
      logger: _logger,
      systemClock: globals.systemClock,
    );
```
So, please kindly confirm if something i missed or this is a real issue. (cosidering the usage --web-run-headless, --headless for flutter drive)
Repository: pytorch
Issue: typing error in the signatures of `torch.unbind` when getting them using `torch.fx`.
Labels: triaged,module: fx

### 🐛 Describe the bug

Running this code:

```python
import torch
import torch.fx
print(torch.fx.operator_schemas.get_signature_for_torch_op(torch.unbind))
print(type(torch.unbind(torch.zeros(3,3,3))))
```
I got:
```
[<Signature (input: torch.Tensor, dim: int = 0) -> List[torch.Tensor]>, <Signature (input: torch.Tensor, dim: str) -> List[torch.Tensor]>]
<class 'tuple'>
```

So, the typing in the signatures is incorrect.

Expected result: `<class 'list'>` however i got `<class 'tuple'>`


### Versions

Collecting environment information...
PyTorch version: N/A
Is debug build: N/A
CUDA used to build PyTorch: N/A
ROCM used to build PyTorch: N/A

OS: macOS 10.14.5 (x86_64)
GCC version: Could not collect
Clang version: Could not collect
CMake version: Could not collect
Libc version: N/A

Python version: 2.7.10 (default, Feb 22 2019, 21:55:15)  [GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.37.14)] (64-bit runtime)
Python platform: Darwin-18.6.0-x86_64-i386-64bit
Is CUDA available: N/A
CUDA runtime version: Could not collect
GPU models and configuration: Could not collect
Nvidia driver version: Could not collect
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A

Versions of relevant libraries:
[pip] Could not collect
[conda] blas                      2.111                       mkl    conda-forge
[conda] blas-devel                3.9.0              11_osx64_mkl    conda-forge
[conda] libblas                   3.9.0              11_osx64_mkl    conda-forge
[conda] libcblas                  3.9.0              11_osx64_mkl    conda-forge
[conda] liblapack                 3.9.0              11_osx64_mkl    conda-forge
[conda] liblapacke                3.9.0              11_osx64_mkl    conda-forge
[conda] mkl                       2021.3.0           h08c4f10_555    conda-forge
[conda] mkl-devel                 2021.3.0           h694c41f_556    conda-forge
[conda] mkl-include               2021.3.0           h08c4f10_555    conda-forge
[conda] mypy                      0.910                    pypi_0    pypi
[conda] mypy-extensions           0.4.3                    pypi_0    pypi
[conda] numpy                     1.21.2           py39h7eed0ac_0    conda-forge
[conda] pytest-mypy               0.8.1                    pypi_0    pypi
[conda] pytorch                   1.9.0                   py3.9_0    pytorch
[conda] torchfile                 0.1.0                      py_0    conda-forge

cc @ezyang @SherlockNoMad
Repository: deno
Issue: Consuming certain HTTPS fetch responses fails with "unexpected end of file"
Labels: bug,upstream

```js
const res = await fetch("https://wpt.live/resources/testharness.js");
await res.text();
```

```
Uncaught Error: request or response body error: error reading a body from connection: unexpected end of file
    at async Object.pull (deno:ext/fetch/26_fetch.js:108:24)
```

This doesn't fail with every HTTPS response – https://wpt.live/resources/ works, for example – but it seems to be consistent when it does. It doesn't happen with HTTP at all.

This seems to have been introduced in the upgrade to rustls 0.20 in #12488.
Repository: node
Issue: Node doesn't reset tty on early/aborted exit
Labels: tty

### Version

v16.13.1, v17.2.0 tested

### Platform

Linux lux0 5.11.22-100.fc32.x86_64 #1 SMP Wed May 19 18:58:25 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

### Subsystem

_No response_

### What steps will reproduce the bug?

Create this script file in test.js:

#!/usr/bin/env node
for (let i = 0; i < 100000; i++) {
  console.log("i:", i)
}

In a shell window, run:

test.js |less

Hit "q" to quit less (after only one page of output), which also kills test.js while it still has undelivered data in the stdout buffer.

Your tty will be left in raw mode (no echo, other command characters disabled).  Must do a "stty sane" to restore usability of the console.

### How often does it reproduce? Is there a required condition?

Happens every time.  Have tested multiple versions of node on Linux and MacOS.

### What is the expected behavior?

Should restore my tty settings no matter how ugly the exit conditions.

### What do you see instead?

Tty is left in raw mode with no echo.  Can't see my typed commands.

### Additional information

Is there a standard way of dealing with this in case a script is killed before it can write its output?  Or is this a bug in node?
Repository: flutter
Issue: Image picker - native dart/flutter implementation for UI
Labels: c: new feature,p: image_picker,package,c: proposal,team-ecosystem,P3,triaged-ecosystem

The image picker plugin is defacto a standard plugin for picking images in flutter. It's robust and trustworthy primarily because it's maintained by the flutter team (btw, big thanks for this!). But I found it has some fundamental issues that makes it difficult to use in some scenarios all because it hands over all its UI to native implementations.

## Use case

1. If the image picker is used on Android, it may cause the app restart at any moment by design. This aspect is mentioned in the documentation here https://github.com/flutter/plugins/tree/master/packages/image_picker/image_picker#handling-mainactivity-destruction-on-android. This happens mostly on old devices with limited resources and not that rare as expected. Although the documentation proposes a solution for dealing with this situation, the reality is that it could be extremely difficult to restore not only the lost picker data, but the whole app state, which gets lost after such a restart. I can also find a dozen of complains about this in issues of this repository and it could be also very confusing to find out the root cause for them.

2. It's also desirable to have the ability of customising UI style for image picker in a way that it matches the application style. This is not really possible with the current implementation.

## Proposal

Implement UI natively using dart/flutter.

There are some alternative libraries that already do this. My main concern with them is that they are unlikely to achieve the same stability and robustness as the image_picker library, because it's by far the most popular choice and it's maintained by the flutter team.
Repository: PowerToys
Issue: Keyboard Manager Layers
Labels: Idea-Enhancement,Product-Keyboard Shortcut Manager,Needs-Triage

### Description of the new feature / enhancement

I have seen requests for layers within Keyboard Manager, though not exactly what I am looking for. Ideally, it would be great to have layers switch based upon keyboard that is detected/connected. For example, laptop having an external keyboard attached to it. Failing that, a user selectable (preference) layer modifier key (in the same fashion as Fancy Zones can utilize "Shift" to activate zones while dragging). 

### Scenario when this would be used?

I primarily work on a Laptop attached to a hub at my desk. I utilize a customizable mechanical keyboard and have remapped multiple keys with Keyboard Manager to reflect my preferred keyboard key layout. However, when I use my laptop keyboard (albeit on rare occasions) I am forced to either turn off ALL Keyboard Manager functionality, or comb through my 20 customizations and delete the individual items that are not compatible with my laptop keyboard layout. Neither of these options are ideal/workable.

For example, my mechanical keyboard has the Pg up/down, Home/End, delete keys all remapped to various alternative positions.
When I need to use my Laptop Keyboard, these need to revert back to standard layout.

In order to do this currently, I must "Disable" Keyboard Manager, then I lose ALL other shortcuts that I have created; which I would like to maintain access to even when utilizing my laptop keyboard.

### Supporting information

I Am certain that I am not alone in that there are others who utilize an external customizable keys keyboard. Or, perhaps would have differing layer preferences depending on the task at hand (programming, gaming, creative workflows, etc).
Repository: next.js
Issue: `Re-exporting all exports from a page is disallowed` occurs on non-page file when using `pageExtensions`
Labels: Webpack

### What version of Next.js are you using?

12.0.7

### What version of Node.js are you using?

14.176

### What browser are you using?

Chrome

### What operating system are you using?

macOS

### How are you deploying your application?

Vercel

### Describe the Bug

> Re-exporting all exports from a page is disallowed

Have been rewritten with Rust but it seems to not care of `pageExtensions` option in next.config.js.

### Expected Behavior

`Re-exporting all exports from a page is disallowed` Error shouldn't occur on non-page files under `/pages` when using `pageExtensions` option.

### To Reproduce

Create a fresh Next project with the `pageExtensions` set to `['page.tsx',  'page.ts']`.

The pages folder looks like:

```
pages/
  users/
   index.page.tsx // import { UserComments } from './components';
   components/
      index.tsx // <= re-export all: export * from './UserComments';
      UserComments.tsx // contain a named export: export cont UserComments = () => <h1>User comments</h1>
     
package.json
```
Repository: angular
Issue: zone.js drains microtasks too early in synchronous event call
Labels: area: zones,state: has PR,P3

### Which @angular/* package(s) are the source of the bug?

Don't known / other

### Is this a regression?

No

### Description

Please see the reproduction. It seems zone.js assumes EventTarget's event call is always a standalone task, which may not be true.

```js
const invoke = (fn) => {
  document.body.addEventListener('click', fn);
  document.body.click();
  document.body.removeEventListener('click', fn);
};

invoke(() => {
  Promise.resolve().then(() => console.log(2));
});
console.log(1);
```

### Please provide a link to a minimal reproduction of the bug

https://stackblitz.com/edit/typescript-88btqj?file=index.ts

### Please provide the exception or error you saw

```true
Native Chrome/Safari/Firefox outputs `1 2`, while with zone.js outputs `2 1`.
```


### Please provide the environment you discovered this bug in (run `ng version`)

_No response_

### Anything else?

I noticed this during debugging https://github.com/angular/angular/issues/41506#issuecomment-991765487 , maybe related.
Repository: rust
Issue: Regression in compile time when optimizing for size
Labels: P-medium,I-compiletime,T-compiler,regression-from-stable-to-stable,C-bug,I-hang,S-needs-repro

After updating to Rust 1.57, I'm seeing a huge increase in compilation time for an embedded project that I'm working on. The code is unfortunately not open source, but I'm hoping I can provide enough information here to work around that. If I've forgotten to include anything or made bad assumptions, please let me know.

I don't have specific numbers for the slowdown because I haven't waiting long enough for the compilation to finish, but I can say that what used to take ~90 seconds for a full build is now taking more than 10 minutes. The project targets thumbv7em-none-eabihf and is optimized for size. Here are the profiles defined in the cargo manifest:

```toml
[profile.dev]
panic = "abort"
codegen-units = 1
debug = true
opt-level = "s"
lto = false

[profile.release]
panic = "abort"
codegen-units = 1
debug = true
lto = true
opt-level = "s"
```

Here's the interesting thing: we have seen no increase in compilation time when building the main binary. It's the tests that are actually exhibiting the behavior. The tests target x86_64-unknown-linux-gnu and are built with `cargo test`. If I remove `opt-level = "s"` from the profiles, I'm able to build the tests just as quickly as before.

I bisected the nightlies and determined that this slowdown seems to have been introduced into nightly-2021-10-14; nightly-2021-10-13 and 1.56.1 don't exhibit this behavior.
Repository: godot
Issue: Remote filesystem not syncing changes in iOS / iPadOS
Labels: bug,platform:ios,topic:editor,topic:porting,topic:network

### Godot version

3.4

### System information

iPadOS 15

### Issue description

Running the exported iOS project on iPadOS 15 with the launch argument `--remote-fs IP` won't sync any changes made on the editor. Closing and opening the app will load again from the remote filesystem with everything up-to-date, but further changes won't be synced. This affects Scene Changes and Script Changes


### Steps to reproduce

Enable everything in the Debug menu except the Visible options. Run project on iOS device. Make changes to the scene or a script (not sure if you need to save the file but do it) and it won't sync. Relaunch the app on the iOS device and the new changes will be there. Make more changes and they won't sync

### Minimal reproduction project

Make changes like toggle visibility of the root node or open the Label script and comment and uncomment one of the lines to in the _process() function to change the label

[RemoteFS.zip](https://github.com/godotengine/godot/files/7697833/RemoteFS.zip)
Repository: flutter
Issue: Android app shows blank keyboard
Labels: a: text input,e: device-specific,platform-android,engine,a: production,P2,team-android,triaged-android

I have an issue after uploading the app on play store

In some devices, the keyboard is blank like the screenshot below. No keys appear on the keyboard only white space.

Please, note that this issue is not coming in my real device or in my emulators.

<img src="https://user-images.githubusercontent.com/26086172/145705346-4da023cc-1b71-4d8e-8c0a-05930d05e0ab.jpg" width ="300">


```
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.5.3, on macOS 11.5.2 20G95 darwin-x64, locale en-JO)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] VS Code (version 1.62.3)
[✓] Connected device (1 available)

• No issues found!
```
Repository: godot
Issue: get_wordwrap_string_size always return the max width of a wordwrapped string
Labels: bug,topic:core

### Godot version

v3.4.stable.official [206ba70f4]

### System information

Ubuntu 20.04.3 LTS

### Issue description

The width value returned by `get_wordwrap_string_size` is always the same (i.e. the max width the string will be with wordwrapping enabled).

While it may not necessarily be a bug, it makes the function useless in the case you want to know the size of a string smaller than the width value given. (And a returned value that is always the same as a given argument is pretty useless in any case)

The wanted behaviour in this case would be something like :
```
var s = "abc"
var max_size = 50
var string_size = font.get_string_size(s)
var string_size_wordwrap = font.get_wordwrap_string_size(s, max_size)
var string_size_min =  Vector2(min(string_size.x, string_size_wordwrap.x), string_size_wordwrap.y)
```

### Steps to reproduce

`print(font.get_wordwrap_string_size("", 50))`
will return a size of  `(50, 24)`

### Minimal reproduction project

_No response_