sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: [Pipe] supporting None and non-Tensors in forward's input/output 
Labels: triaged,pipeline parallelism

## 🚀 Feature
<!-- A clear and concise description of the feature proposal -->

As suggested by @pritamdamania87 [here](https://github.com/pytorch/pytorch/pull/50693#issuecomment-780913337) splitting my attempted PR https://github.com/pytorch/pytorch/pull/50693 into an issue as it hasn't been resolved by my attempt.

The original description follows and there is already a longish discussion in the PR.

-------------------------------

I was trying to convert `transformers` [t5](https://github.com/huggingface/transformers/blob/357fb1c5d8b6a16f042f9b504f023d935086e8e5/src/transformers/models/t5/modeling_t5.py#L589) to use the new Pipe and I encountered a dozen of input args that some are Bools and some are optionally `None`, yet others tuples within tuples. You can see an example of the complex inputs it gets:

https://github.com/huggingface/transformers/blob/357fb1c5d8b6a16f042f9b504f023d935086e8e5/src/transformers/models/t5/modeling_t5.py#L600-L612

Currently `Pipe` only handles `input`/`output` which is either a single Tensor or a tuple of Tensors, so we can't use it as it stands now.

A user needs to be able to pass as a part of the `input` and `output` tuple:
1. `None` - in transformers these are passed to `forward` when the thing needs to be optionally generated by downstream layers, but is a Tensor at other times
2. Bools - these are flow control flags that the user's code needs to pass forward to the model. These aren't available during model's init.
3. tuples of Tensors within a tuple - there are several aggregators that append to a tuple, which is then returned as part of outputs - so again, some recursive introspection and `to()` is needed see below.

Bottom line, a whole bunch of variations of variables might be needed to be passed to and from the `forward` function in the pipe chain. As long as these structures can be traversed and switched `.to()` the right device and spliced where this is needed, any type of variable should be supported. Please, see below.

@pritamdamania87



cc @osalpekar @jiayisuse @lw @beauby @pritamdamania87 @mrshenli @jjlilley @gqchen @rohan-varma @pietern @zhaojuanmao @satgera @aazzolini @agolynski @SciPioneer @H-Huang @mrzzd @cbalioglu
Repository: pytorch
Issue: Is pytorch 1.8.0 incompatible with cuda 11.2 or what is the reason for this error?
Labels: module: cuda,triaged

I have spent all day trying to upgrade cuda to 11.2 and get it working with pytorch. At the moment I believe I should have a fully working version of Cuda 11.2, yet I still get the following error when I try to run my pytorch code, which normally works without issues.

```
Traceback (most recent call last):
  File "/snap/pycharm-community/226/plugins/python-ce/helpers/pydev/pydevd.py", line 1477, in _exec
    pydev_imports.execfile(file, globals, locals)  # execute the script
  File "/snap/pycharm-community/226/plugins/python-ce/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
    exec(compile(contents+"\n", file, 'exec'), glob, loc)
  File "/home/tue/PycharmProjects/Pfold/run_1d_supervised.py", line 112, in <module>
    losses = main()
  File "/home/tue/PycharmProjects/Pfold/supervised/main.py", line 73, in main
    net = train(net, optimizer, dl_train, loss_fnc, dl_test=dl_test, scheduler=lr_scheduler,ite=ite_start, loss_reg_fnc=loss_reg_fnc, loss_reg_min_sep_fnc=loss_reg_min_sep_fnc)
  File "/home/tue/PycharmProjects/Pfold/supervised/optimization.py", line 75, in train
    dists_pred, coords_pred = net(features,mask)
  File "/home/tue/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/home/tue/PycharmProjects/Pfold/supervised/network_vnet.py", line 508, in forward
    dists += (tr2DistSmall(x[:,i*3:(i+1)*3,:]),)
  File "/home/tue/PycharmProjects/Pfold/supervised/network_transformer.py", line 155, in tr2DistSmall
    D = torch.sum(Z**2, dim=1).unsqueeze(1) + torch.sum(Z**2, dim=1).unsqueeze(2) - 2*Z.transpose(1,2) @ Z
RuntimeError: CUDA error: CUBLAS_STATUS_EXECUTION_FAILED when calling `cublasSgemmStridedBatched( handle, opa, opb, m, n, k, &alpha, a, lda, stridea, b, ldb, strideb, &beta, c, ldc, stridec, num_batches)`
python-BaseException
Backend TkAgg is interactive backend. Turning interactive mode on.

Process finished with exit code 130 (interrupted by signal 2: SIGINT)

```

I have checked that cuda/cudnn seems to work, at least I was able to compile and run a hello_world script with nvcc. Additional information:

```
tue@tue-laptop:~$ nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Sun_Feb_14_21:12:58_PST_2021
Cuda compilation tools, release 11.2, V11.2.152
Build cuda_11.2.r11.2/compiler.29618528_0
```

```
Python 3.8.5 (default, Jan 27 2021, 15:41:15) 
[GCC 9.3.0] on linux
import torch
torch.version.cuda
'11.1'
torch.version
<module 'torch.version' from '/home/tue/.local/lib/python3.8/site-packages/torch/version.py'>
torch.version.__version__
'1.8.0+cu111'
```

Searching on the error pytorch is giving, hasn't really lead me to any understanding of what the problem could be, so I'm hoping for some insight here and perhaps a solution?

cc @ngimel
Repository: terminal
Issue: Show error state in progress ring of tab
Labels: Help Wanted,Area-UserInterface,Product-Terminal,Issue-Task

<!-- 
🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨

I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING:
1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement.
2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement.
3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number).
4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement.
5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement.

All good? Then proceed!
-->

# Description of the new feature/enhancement

<!-- 
A clear and concise description of what the problem is that the new feature would solve.
Describe why and how a user would use this new functionality (if applicable).
-->

If an application reports progress via OSC 9;4, Windows Terminal nowadays shows that in the task bar and in the tab header (<https://github.com/microsoft/terminal/pull/8133>). However, if the progress report has the error or warning state, that information goes only to the task bar. I'd like the tab header to display the error or warning, too.

Related to <https://github.com/microsoft/terminal/issues/6700> and <https://github.com/microsoft/terminal/issues/9435#issuecomment-796667902>.

# Proposed technical implementation details (optional)

<!-- 
A clear and concise description of what you want to happen.
-->

Could perhaps change the color of the progress ring. I don't see any color or error property in [Microsoft.UI.Xaml.Controls.ProgressRing](https://docs.microsoft.com/windows/winui/api/microsoft.ui.xaml.controls.progressring?view=winui-2.5), though.
Repository: node
Issue: Different runtime behaviour of fs.realpath vs fs.promises.realpath is very confusing
Labels: fs

* **Version**: 12.18.3
* **Platform**: macOS
* **Subsystem**: ARM

### What steps will reproduce the bug?

Have a project that was still using `promisify(fs.realpath)` and replace this with `fs.promises.realpath` to clean it up thinking the runtime behaviour will be the same. But in reality there is different behaviour: on Windows, `subst` drives will be resolved to their targets when `realpath.native` is used and left untouched with `realpath`.

### How often does it reproduce? Is there a required condition?

Always when using `subst` drives on Windows. There are probably more differences.

### What is the expected behavior?

That the `fs` API is in sync with the non promised variant. `fs.promises.realpath` should be a drop in replacement for `promisify(fs.realpath)` but not `promisify(fs.realpath.native)`. There should be a `fs.promises.realpath.native`.

### What do you see instead?

`fs.promises.realpath` behaves like `promisify(fs.realpath.native)`
Repository: PowerToys
Issue: Optional restore original size of windows in FancyZones
Labels: Idea-Enhancement,Product-FancyZones

### Problem

A really nice feature that allows you to restore the size of the window, appeared in one of the latest versions. I immediately turned it on, but then ran into a problem that breaks the previous experience with multiple monitors. Sometimes I used FancyZones to adjust the browser window size to fullhd or half of fullhd. I insert the window on the small monitor, then move it to the main large one with the size preserved.

Now I need to choose what is more important, the ability to restore the previous window size or the ability to easily adjust the browser window to the fullhd size.

### Solution

To meet both needs, you can add a modifier hotkey that will toggle the window's unsnapping behavior. For example, when you press Ctrl, the window size is not changed, but in normal mode it is restored to original.

This setting may not look like a checkbox, but rather like a drop-down list of options:
- do not restore the window size
- do not restore when pressing the modifier hotkey
- restore the window size always
- restore when pressing the modifier hotkey

---

If you'd like to see this feature implemented, add a 👍 reaction to this post.
Repository: CS-Notes
Issue: Leetcode刷题，双指针：88 Merge Sorted Array可以优化。
Labels: opt

如果index2先到达头部，那说明能插入的值都已经插入了，不用再判断了。
所以优化为：

//从尾部开始遍历，先确定尾部
    public static void merge2(int[] nums1, int m, int[] nums2, int n) {
        int index1 = m - 1, index2 = n - 1;
        int indexMerge = m + n - 1;
        while ( index2 >= 0) {
            if (index1 < 0) {//意思是num1遍历完了，都是num2的值来插入。
                nums1[indexMerge--] = nums2[index2--];
            }else if (nums1[index1] > nums2[index2]) {//遍历比较，哪个大，哪个放到最后，同时序号递减，小的那个序号一直不动
                nums1[indexMerge--] = nums1[index1--];
            } else {
                nums1[indexMerge--] = nums2[index2--];
            }
        }
    }
Repository: godot
Issue: Fatal error opening C# script from Godot editor with VS Community 2019 v16.9.x
Labels: bug,topic:thirdparty,topic:dotnet

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:**
<!-- Specify commit hash if using non-official build. -->
Godot Engine v3.2.3.stable.mono.official

**OS/device including version:**
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->
[vs16_9_x_csharp_crash_info.txt](https://github.com/godotengine/godot/files/6134806/vs16_9_x_csharp_crash_info.txt)

**Issue description:**
<!-- What happened, and what was expected. -->
Double clicked a C# script in the editor File System panel. VS opened then displayed an error.
VS 16.8 works fine.

**Steps to reproduce:**
Add a C# script. Attempt to open the script for editing.

**Minimal reproduction project:**
<!-- A small Godot project which reproduces the issue. Drag and drop a zip archive to upload it. -->
Create a project in Godot Mono. Add a C# script. Attempt to open it.
Repository: go
Issue: x/tools: shadow analyzer does not consider variables declared in for-range statement
Labels: NeedsInvestigation,FeatureRequest,Tools,Analysis

<!--
Please answer these questions before submitting your issue. Thanks!
For questions please use one of our forums: https://github.com/golang/go/wiki/Questions
-->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.16.2 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/john/.cache/go-build"
GOENV="/home/john/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/john/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/john/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.16.2"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
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-build3861764262=/tmp/go-build -gno-record-gcc-switches"

</pre></details>

### What did you do?

Installed and ran the shadow analyzer on a file witht the contents below:

<pre>
$ go get -u -v golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow
$ cat tt.go
package main

import (
        "fmt"
)

func main() {
        n := 10
        total := 0
        for _, n := range []int{1, 2, 3} {
                total += n
        }
        fmt.Printf("total is %d, n is %d\n", total, n)
}

$ shadow tt.go
$ 
</pre>
No warning was generated

<!--
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
-->

### What did you expect to see?

A message similar to:
<pre>
/home/john/tt.go:10:9: declaration of "n" shadows declaration at line 8
</pre>

### What did you see instead?

No output from the shadow tool.
Repository: go
Issue: net/http: Client hangs forever on 101 Status Code
Labels: NeedsInvestigation

<!--
Please answer these questions before submitting your issue. Thanks!
For questions please use one of our forums: https://github.com/golang/go/wiki/Questions
-->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.15.8 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/laro/.cache/go-build"
GOENV="/home/laro/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/laro/Desktop/SSDStorage/workspace/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/laro/Desktop/SSDStorage/workspace/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
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-build584567735=/tmp/go-build -gno-record-gcc-switches"

</pre></details>

### What did you do?
I ran the following script locally, it takes forever, do not run that script on the playground because it may be killed by the sandbox as it takes forever.
https://play.golang.org/p/oUNf5aEleAr


### What did you expect to see?
Timeout arguments to be enforced.


### What did you see instead?
It takes forever.

## IMPORTANT
About my title, well... I am not sure, somebody(Jorik) on gophers.slack.com noticed that the server was replying with a 101 status code on Firefox, not sure if that's the reason, in Chrome we don't get such 101 HTTP status, it just hangs. I don't know if httpClient gets such 101 status, all I know is it hangs, so if the reason is 101 Status code, then the title is appropriate, otherwise the title is misleading.

## Update
A user([Nils Preuschoff](https://github.com/Weneg)) in that slack channel pointed me at a modified snippet:
https://play.golang.org/p/FPb2i0h--z6

It proves that indeed the faulty behaviour happens on Status Code 101, showing the HTTP status code 101 is the last event prior to hanging on ioutil.ReadAll(), is this a bug on Go? I am setting the timeout on both, header and response body, it should be honored, right?

## Update2
Here I attach the equivalent fasthttp snippet doing a request to the same host, I used the default timeout settings from fasthttp to keep it simple, fasthttp, same as http package, has defaults timeouts values greater than 0 (no timeout), fasthttp returns immediately, while the http package hangs forever ...
https://play.golang.org/p/lq8FkgP7oJp
Repository: flutter
Issue: Transforms transformHitTests description is not clear enough
Labels: framework,f: material design,d: api docs,c: proposal,good first issue,P2,team-design,triaged-design

## Use case

As seen in e.g. issue [#27587](https://github.com/flutter/flutter/issues/27587), many developers are confused about hit testing not working as expected when using `Transform`.

Take for example the following:
```dart

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData.dark(),
      home: Scaffold(
        body: Center(
          child: Container(
            width: 100,
            height: 100,
            color: Colors.yellow,
            child: Transform.translate(
              offset: Offset(50, 50),
              transformHitTests: true,
              child: GestureDetector(
                onTap: () => print("hit"),
                child: Container(
                  height: 100,
                  width: 100,
                  color: Colors.blue.withAlpha(125),
                ),
              ),
            ),
          ),
        ),
      ),
    );
  }
}
```
![2021031319:10:21_screenshot_sel](https://user-images.githubusercontent.com/24209580/111039727-d5c94980-842f-11eb-8ff4-8c928be6000e.png)

Hitting the overlapping area will work as expected, but hitting the overhanging area of the blue square will not result in a hit.
This happens since the parent can not register a hit outside its bounds and therefore does not inform its children.

`transformHitTests` description reads a little confusing in that regard:
```
/// Whether to apply the transformation when performing hit tests.
```
Which seems to suggest that the hit area will be transformed along with the widget.

The actual role of `transformHitTests` is to transform the coordinates of hits that the parent does register to the coordinate system of the child.
(See https://github.com/flutter/flutter/pull/32192)


## Proposal

Changing the description might clear up some confusion and hint to the reason why hits outside the parent can not be registered.
It might also be a good place to hint to the prefered usage of Overlay as mentioned [here](https://github.com/flutter/flutter/issues/27587#issuecomment-618071879)

Possible alternative description:
```
/// Whether to transform registered hits into the childs resulting coordinate system.
/// Hits can only be registered if they are within the bounds of the parent.
///
/// Consider increasing the bounds of the parent to fit the childs new position.
/// Alternatively consider placing the child using `Overlay` instead.
```

Or something along those lines.
Potentially reference `RenderBox` `hitTestChildren` as well?
Repository: godot
Issue: gridcontainer hint/tooltip disturb the layout
Labels: bug,topic:gui

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:**
<!-- Specify commit hash if using non-official build. -->
3.2.3.stable

**OS/device including version:**
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->
```
❯ screenfetch
/usr/bin/screenfetch: ligne 2549: gconftool-2 : commande introuvable
                                       astrale@Sharp
 MMMMMMMMMMMMMMMMMMMMMMMMMmds+.        OS: Linuxmint 20.1 ulyssa
 MMm----::-://////////////oymNMd+`     Kernel: x86_64 Linux 5.4.0-66-generic
 MMd      /++                -sNMd:    Uptime: 11h 41m
 MMNso/`  dMM    `.::-. .-::.` .hMN:   Packages: 4211
 ddddMMh  dMM   :hNMNMNhNMNMNh: `NMm   Shell: fish 3.1.0
     NMm  dMM  .NMN/-+MMM+-/NMN` dMM   Resolution: 1920x1080
     NMm  dMM  -MMm  `MMM   dMM. dMM   DE: Cinnamon 4.8.6
     NMm  dMM  -MMm  `MMM   dMM. dMM   WM: Metacity
     NMm  dMM  .mmd  `mmm   yMM. dMM   GTK Theme: Mint-Y-Dark-Red [GTK2/3]
     NMm  dMM`  ..`   ...   ydm. dMM   Icon Theme: Mint-Y-Dark-Red
     hMM- +MMd/-------...-:sdds  dMM   Font: Ubuntu Condensed, 24
     -NMm- :hNMNNNmdddddddddy/`  dMM   Disk: 841G / 1,1T (87%)
      -dMNs-``-::::-------.``    dMM   CPU: Intel Core i3-2330M @ 4x 2.2GHz [74.0°C]
       `/dMNmy+/:-------------:/yMMM   GPU: GeForce GT 630M
          ./ydNMMMMMMMMMMMMMMMMMMMMM   RAM: 2732MiB / 3844MiB
             \.MMMMMMMMMMMMMMMMMMM    
                                      
```

**Issue description:**
<!-- What happened, and what was expected. -->
Hi!
When you're using a GridContainer with some hint you get a jittery result like that : 
![grid_container](https://user-images.githubusercontent.com/53686698/111042209-86d5e100-843c-11eb-8bfc-954514c57292.gif)

When you're using a HBoxcontainer with some tooltip you get a nice message on top that doesn't disturb the alignment like this:
![hbox_container](https://user-images.githubusercontent.com/53686698/111042227-9e14ce80-843c-11eb-8189-1b775901c4ea.gif)


**Steps to reproduce:**
add a GridContainer with some tool tip to a scene.
Repository: PowerToys
Issue: Different desktop content per virtual desktop
Labels: Idea-Enhancement,Product-Virtual Desktop

## 📝 Provide a description of the new feature

_What is the expected behavior of the proposed feature?  What is the scenario this would be used?_

---
Sorry, I just created this account and I don't know how to use it well, I also speak Spanish and I'm translating from google translator, so sorry if it's not understood well.
I have made this proposal in the windows comment center, but I think it can be better received here.

"I know the function of virtual desktops, which are quite useful, but I am looking for a way to organize them better. What I propose is that each virtual desktop acts as a new clean desktop, let me explain, that the accesses of desktop 1 are not on desktop 2.
Until now, when creating a virtual desktop, all accesses are maintained, but I think it would be a good way to create, for example, a desktop where you have access to work programs, another desktop with games, another with study programs, etc. .
The only way to do something similar that I can think of today is to create multiple accounts and log in depending on what you want to use, but it is very slow.

It is something similar to the dashboard system that the Opera browser has. Multiple profiles or workspaces in one."


![desktop 2](https://user-images.githubusercontent.com/80601059/111043923-35b9f300-8424-11eb-9ed3-4866852a43ba.png)
![desktop 1](https://user-images.githubusercontent.com/80601059/111043924-3783b680-8424-11eb-859d-1a23f0c49641.png)

Other features, which can be found in "Virtual desktop enhancer" (Credits to the programmer), is to name the different desktops or change the background individually and I think adding them here would be nice too.

(Text translated from Spanish by Google Translate)

Regards.
If you'd like to see this feature implemented, add a 👍 reaction to this post.