sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: TypeScript
Issue: Allow type aliases to reference themselves in type argument positions
Labels: Suggestion,Awaiting More Feedback

<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨

Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common "Bugs" That Aren't Bugs section!

Please help us by doing the following steps before logging an issue:
  * Search: https://github.com/Microsoft/TypeScript/search?type=Issues
  * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ

Please fill in the *entire* template below.
-->

<!--
Please try to reproduce the issue with the latest published version. It may have already been fixed.
For npm: `typescript@next`
This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly
-->
**TypeScript Version:**  3.8.0-dev.20191105

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:**
[circular](https://github.com/microsoft/TypeScript/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+circular)

**Code**

```ts
type A<T> = { x: T }
type R = A<R> // FAIL

type B = { x: B } // OK
```

**Expected behavior:**
Both cases throw no error.

**Actual behavior:**
Type R is rejected due to a circular reference.

**Playground Link:**
[Link](http://www.typescriptlang.org/play/?ts=3.8.0-dev.20191105&ssl=1&ssc=1&pln=64&pc=3#code/C4TwDgpgBAggPAFQHxQLxQN5QB4C4oJQC+AUKJFAEpqxyUoD0DUAYjAJIAyJZ40AQjSx4ogolCZQA8gGkgA)

**Related Issues:** <!-- Did you find other bugs that looked similar? -->
https://github.com/microsoft/TypeScript/pull/33050

Regression: https://github.com/microsoft/TypeScript/pull/33050#issuecomment-526637037
Repository: flutter
Issue: Separate writeable files/cache from main flutter directory
Labels: c: new feature,tool,P2,team-tool,triaged-tool

I want to package flutter for nix / nixos but i cannot do that due to it trying to write to its install directory, it would be nice for flutter to not attempt to write to the folder it is installed in as it make it very hard to package it correctly.
Repository: pytorch
Issue: torch.stack: bad shape error message
Labels: module: docs,module: error checking,triaged

## 🐛 Bug

torch.stack results in `RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 0. Got 1 and 4 in dimension 1` errors for perfectly valid input. At first I thought I was misunderstanding how indexing works, but when I changed "dim" in the stack call to 1, I got the error with `RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 1. Got 1 and 4 in dimension 0` which is really really weird.

## To Reproduce

Steps to reproduce the behavior:

1. Run this code snippet:

```python
import torch


class_probs = torch.zeros([4,1024,1024], device="cpu")
bg_probs = torch.zeros([1,1024,1024], device="cpu")

# class_probs = torch.zeros([4,1024,1024], device="cuda")
# bg_probs = torch.zeros([1,1024,1024], device="cuda")

print(bg_probs.shape, class_probs.shape)
combo = torch.stack((bg_probs, class_probs), dim=0)
print(combo.shape)
```


## Expected behavior

<!-- A clear and concise description of what you expected to happen. -->

## Environment

PyTorch version: 1.3.0
Is debug build: No
CUDA used to build PyTorch: 10.1.243

OS: Ubuntu 16.04.6 LTS
GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609
CMake version: version 3.5.1

Python version: 3.7
Is CUDA available: Yes
CUDA runtime version: Could not collect
GPU models and configuration: GPU 0: GeForce RTX 2080 Ti
Nvidia driver version: 418.87.01
cuDNN version: Could not collect

Versions of relevant libraries:
[pip] numpy==1.17.2
[pip] torch==1.3.0
[pip] torchcontrib==0.0.2
[pip] torchfile==0.1.0
[pip] torchnet==0.0.4
[pip] torchvision==0.4.1a0+d94043a
[conda] blas                      1.0                         mkl  
[conda] mkl                       2019.4                      243  
[conda] mkl-service               2.3.0            py37he904b0f_0  
[conda] mkl_fft                   1.0.14           py37ha843d7b_0  
[conda] mkl_random                1.1.0            py37hd6b4f25_0  
[conda] pytorch                   1.3.0           py3.7_cuda10.1.243_cudnn7.6.3_0    pytorch
[conda] torchcontrib              0.0.2                    pypi_0    pypi
[conda] torchfile                 0.1.0                    pypi_0    pypi
[conda] torchnet                  0.0.4                    pypi_0    pypi
[conda] torchvision               0.4.1                py37_cu101    pytorch


## Additional context

The error happens for both cuda and cpu tensors. Also, torch.cat seems to work perfectly fine for the same operation !


cc @jlin27 @mruberry
Repository: TypeScript
Issue: Suggestion: prompt rename after "convert named imports to namespace imports"
Labels: Suggestion,Experience Enhancement

<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨

Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker.

Please help us by doing the following steps before logging an issue:
  * Search: https://github.com/Microsoft/TypeScript/search?type=Issues
  * Read the FAQ, especially the "Common Feature Requests" section: https://github.com/Microsoft/TypeScript/wiki/FAQ

-->

## Search Terms

<!-- List of keywords you searched for before creating this issue. Write them down here so that others can find this suggestion more easily -->

## Suggestion

Every time I use the "convert to namespace imports" refactor aka code action, I almost always do a rename afterwards. It would be much more efficient if VS Code / TS automatically prompted me to rename the namespace immediately after the conversion is done, just like how "extract to constant" works.

## Use Cases

<!--
What do you want to use this for?
What shortcomings exist with current approaches?
-->

## Examples

<!-- Show how this would be used and what the behavior would be -->

## Checklist

My suggestion meets these guidelines:

* [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [x] This wouldn't change the runtime behavior of existing JavaScript code
* [x] This could be implemented without emitting different JS based on the types of the expressions
* [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).
Repository: CS-Notes
Issue: 二分查找的区间为何是 0 到 len(nums) 而不是 len(nums)
Labels: question

在使用二分查找来查找区间时，[该题](https://github.com/CyC2018/CS-Notes/blob/master/notes/Leetcode%20%E9%A2%98%E8%A7%A3%20-%20%E4%BA%8C%E5%88%86%E6%9F%A5%E6%89%BE.md#6-%E6%9F%A5%E6%89%BE%E5%8C%BA%E9%97%B4)中h的初始值为何要设置为len(nums)？其他题中设置的均为len(nums)-1
```private int binarySearch(int[] nums, int target) {
    int l = 0, h = nums.length; // 注意 h 的初始值
    while (l < h) {
        int m = l + (h - l) / 2;
        if (nums[m] >= target) {
            h = m;
        } else {
            l = m + 1;
        }
    }
    return l;
}

https://github.com/CyC2018/CS-Notes/blob/master/notes/Leetcode%20%E9%A2%98%E8%A7%A3%20-%20%E4%BA%8C%E5%88%86%E6%9F%A5%E6%89%BE.md#6-%E6%9F%A5%E6%89%BE%E5%8C%BA%E9%97%B4
Repository: go
Issue: cmd/vet: export list of analysis passes used by vet
Labels: NeedsInvestigation,FeatureRequest,Analysis

<!-- Please answer these questions before submitting your issue. Thanks! -->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.13.4 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="/home/leighmcculloch/local/bin"
GOCACHE="/home/leighmcculloch/.cache/go-build"
GOENV="/home/leighmcculloch/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/leighmcculloch/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/home/leighmcculloch/local/bin/go/1.13.4"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/leighmcculloch/local/bin/go/1.13.4/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-build882821970=/tmp/go-build -gno-record-gcc-switches"
</pre></details>

### What did you do?

I was looking to include all the same analysis passes of `go vet` into my own main package using `multichecker` similar to the pattern that I saw @FiloSottile use in FiloSottile/mkcert@82ea753aa2a8050fc7799c18afc81300d8547d1c.

### What did you expect to see?

I expected to find an exported slice/list of analysis passes that vet uses so that it is easy to build multicheckers that build on-top of vet.

### What did you see instead?

I saw that in go vet's main function is where the list of analysis passes is defined and that folks are just copying that list when building multichecker's that run additional checks on-top of vet's checks.

https://github.com/golang/go/blob/78d4560793de65e21199d3c80e9c901833bdaeba/src/cmd/vet/main.go#L35-L58

### Ask
Could we export in a package inside the `go` repo, or inside the `tools` repo, a slice that holds the analysis passes that vet will run, and have vet reference that so that it can be referenced by other tools?

I'm able to submit a change doing this if this would be welcomed.
Repository: material-ui
Issue: [material-ui] Provide more direct documentation access to props of "inherited" components
Labels: docs,package: material-ui,scope: docs-infra

This actually is a duplicate of #7981, but that issue is quite old and I think this would be worth re-visiting.

## Summary 💡

<!-- Describe how it should work. -->
Many Material UI components delegate to other Material UI components.

There are two main flavors of this delegation:

1. Delegating to a root element wrapped by the main component. Any props not recognized by the main component will be passed down to this root element. Example: `Menu` wraps `Popover` which in turn wraps `Modal`.
2. Delegating to components other than the root element. Props are generally passed to these components via a prop on the main component with a name of `<InnerComponentName>Props`. Example: `Select` leverages `Menu` and receives props for the `Menu` element via its `MenuProps` prop.

It is the first case (delegation to a root element) for which I think the documentation could be considerably improved.

Currently the documentation forces you to follow links to these other components in order to discover the full set of props that a component supports. Many people, especially new users of the library, do not notice (or fully understand) the "Any other props supplied will be provided to the root element" portion and miss the fact that many more props may be supported by the component. I think it would be much better for users of the documentation if all of the props from "inherited" components were included directly. So in the case of `Menu`, the props for `Popover` and `Modal` would be included directly in the `Menu` documentation. It seems like it should be doable for [buildApi.js](https://github.com/mui-org/material-ui/blob/master/docs/scripts/buildApi.js) and [generateMarkdown.js](https://github.com/mui-org/material-ui/blob/master/docs/src/modules/utils/generateMarkdown.js) to be enhanced to automatically include the comprehensive props.

## Examples 🌈

<!--
  Provide a link to the Material design specification, other implementations,
  or screenshots of the expected behavior.
-->
[This Stack Overflow question](https://stackoverflow.com/questions/58781285/for-material-ui-how-can-i-know-what-the-properties-of-each-components-are) shows one example of users assuming that a component ([AppBar](https://material-ui.com/api/app-bar/) in this case) only supports the properties shown directly on its API page.

## Motivation 🔦

<!--
  What are you trying to accomplish? How has the lack of this feature affected you?
  Providing context helps us come up with a solution that is most useful in the real world.
-->
I understand that the current way of documenting the properties was an easier approach to implement, but given the place of "Better documentation" within the [roadmap priorities](https://material-ui.com/discover-more/roadmap/#priorities), I think it would be worth the additional complexity in the API doc generation (which is already aware of the inherited component) to allow users to find the comprehensive props more easily/quickly.
Repository: pytorch
Issue: RuntimeError: CUDA error: invalid device ordinal
Labels: module: cuda,triaged

    model = model.to(device)
  File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 426, in to
    return self._apply(convert)
  File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 202, in _apply
    module._apply(fn)
  File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 224, in _apply
    param_applied = fn(param)
  File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 424, in convert
    return t.to(device, dtype if t.is_floating_point() else None, non_blocking)
RuntimeError: CUDA error: invalid device ordinal
Repository: neovim
Issue: Windows: use AF_UNIX instead of named pipes
Labels: enhancement,platform:windows,system

`AF_UNIX` is supported on Windows now, and has some advantages over named pipes:
https://devblogs.microsoft.com/commandline/af_unix-comes-to-windows/

libuv issue: https://github.com/libuv/libuv/issues/2537
Repository: youtube-dl
Issue: match-filter with wildcard/regex
Labels: question

I can download all videos of a playlist when i use the complete plalyist name in the match-filter command

`--match-filter "playlist_title = 'playlist name'"`

But when i only use a part of the title it doesn't work. Aren't wirdcard/regex not supported here? This can be useful when a new playlist with a slightly different playlist name is released from time to time. I want to download all the champions league hightlights from skyhd channel.
Repository: TypeScript
Issue: Non-null assertions infringe a responsibility of optional chaining
Labels: Suggestion,Needs Proposal

Because @RyanCavanaugh couldn't understand what is the problem, I reexplain it.

In the following case, a responsibility of optional chaining is making a return type `Element | undefined`.

```ts
// a is string | null | undefined
const a = document.querySelector('_')?.textContent;
```

In the following case, non-null assertion has broken the safeness made by optional chaining.

```ts
// a is string
const a = document.querySelector('_')?.textContent!;
```

It is obvious that optional chaining was not considered when non-null assertion operator was designed. TypeScript has to consider what is the best design and what to do via reconsidering the design of non-null assertion operator.

**TypeScript Version:**  3.7.x-dev.20191105

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:**

**Code**

```ts
const a = document.querySelector('_')?.textContent!;
```

**Expected behavior:**

a is string | undefined.

**Actual behavior:**

a is string.

**Playground Link:** <!-- A link to a TypeScript Playground "Share" link which demonstrates this behavior -->

**Related Issues:** <!-- Did you find other bugs that looked similar? -->
Repository: pytorch
Issue: Indexing with torch tensors and NumPy arrays is different
Labels: triaged,module: numpy

## 🐛 Bug

When I use a numpy.ndarray type boolean index for a tensor, it sometimes goes wrong when the tensor is a relatively small one.

## To Reproduce

Steps to reproduce the behavior:

```
np.random.seed(1024)
A = torch.tensor(np.random.rand(26,54))
W = (A > 0.5).numpy()
A[W]
```
Then it reports an error: "IndexError: too many indices for tensor of dimension 2"
However, if you transpose both A and W, it works fine! 
```
A = A.t()
W = W.T
C = A[W]
```
## Expected behavior

It should return a 1d tensor consisting of elements whose corresponding boolean index is True, like what it is done for the transposed tensor.

## Environment
Collecting environment information...
PyTorch version: 1.2.0
Is debug build: No
CUDA used to build PyTorch: 10.0
OS: Microsoft Windows 10 Pro
GCC version: (x86_64-posix-seh, Built by strawberryperl.com project) 8.3.0
CMake version: Could not collect
Python version: 3.6
Is CUDA available: Yes
CUDA runtime version: Could not collect
GPU models and configuration: GPU 0: GeForce GTX 1050
Nvidia driver version: 431.70
cuDNN version: Could not collect
Versions of relevant libraries:
[pip] numpy==1.16.4
[pip] torch==1.2.0
[pip] torchvision==0.4.0
[conda] blas                      1.0                         mkl  
[conda] mkl                       2019.4                      245  
[conda] mkl-service               2.0.2            py36he774522_0  
[conda] mkl_fft                   1.0.14           py36h14836fe_0  
[conda] mkl_random                1.0.2            py36h343c172_0  
[conda] pytorch                   1.2.0           py3.6_cuda100_cudnn7_1    pytorch
[conda] torchvision               0.4.0                py36_cu100    pytorch

cc @mruberry
Repository: youtube-dl
Issue: Add support for akvideo
Labels: site-support-request

## Checklist

- [X] I'm reporting a new site support request
- [X] I've verified that I'm running youtube-dl version **2019.11.05**
- [X] I've checked that all provided URLs are alive and playable in a browser
- [X] I've checked that none of provided URLs violate any copyrights
- [X] I've searched the bugtracker for similar site support requests including closed ones

## Example URLs

- Single video: https://akvideo.stream/video/0bvtm479w9iw
- Playlist: no playlist

## Description

I already developed an extractor, works but is not very good.
AKVideo support more formats: low, normal and high resolution. 
For extract all resolutions I need to get a webpage for each format over the main get, but before generate a new url akvideo require a sleep time.
Can I extract the real url after the user choose the format?
Now I extract all urls and return the array formats.

	class AKVideoIE(InfoExtractor):
	    _VALID_URL = r'https?://akvideo\.stream/video/(?P<id>\w+)'
	
	    def _real_extract(self, url):
	        video_id = self._match_id(url)
	        webpage = self._download_webpage(url, video_id)
	
	        title = ''
	        formats = []
	        videoinfo = re.findall(r'download_video\(\'' + video_id + '\',\'(\w)\',\'(.*)\'\)".*<td nowrap *>(\d+)x(\d+)', webpage)
	        for info in videoinfo:
	            webpage = self._download_webpage('https://akvideo.stream/dl?op=download_orig&id=' + video_id + '&mode=' + info[0] + '&hash=' + info[1], video_id)
	
	            movie_url = re.findall(r'<a class="dwnb" href="(.*?)"', webpage)
	            title = str(movie_url[0]).split("/")[-1]
	
	            formats.append({'url': movie_url[0], 'height': int(info[3]), 'width': int(info[2]) })
	            time.sleep(3)
	
	        self._sort_formats(formats)
	
	        return {
	            'id':          video_id,
	            'title':       title,
	            'description': title,
	            'formats':     formats
	        }
Repository: flutter
Issue: Semantics link does not show link in SemanticsDebugger
Labels: framework,a: accessibility,a: debugging,customer: money (g3),P2,team-framework,triaged-framework

Internal: b/144019142

FR form customer:money:

The elements show as '(button)' and '(textfield)'
However for Semantics link=true, '(link)' is not shown in the SemanticsDebugger.
Repository: flutter
Issue: Exception while getting the endpoints for a selection
Labels: a: text input,c: crash,framework,customer: quill (g3),P2,team-framework,triaged-framework

Internal: b/143844802

No repro instructions unfortunately. This happens to customer:quill clients sporadically.

It's likely that the text was updated on the TextField at the time of the error, as the last redux action received would have attempted to update TextField.text.

```
StateError: Bad state: No element
at _List.get:first      (array.dart:121 )
at RenderEditable.getEndpointsForSelection      (editable.dart:1264 )
at TextSelectionOverlay._buildToolbar   (text_selection.dart:528 )
at _OverlayEntryState.build     (overlay.dart:170 )
at StatefulElement.build        (framework.dart:4040 )
at ComponentElement.performRebuild      (framework.dart:3934 )
at Element.rebuild      (framework.dart:3731 )
at StatefulElement.update       (framework.dart:4113 )
at Element.updateChild  (framework.dart:2886 )
at RenderObjectElement.updateChildren   (framework.dart:4845 )
at MultiChildRenderObjectElement.update (framework.dart:5245 )
at Element.updateChild  (framework.dart:2886 )
at _TheatreElement.update       (overlay.dart:607 )
at Element.updateChild  (framework.dart:2886 )
at ComponentElement.performRebuild      (framework.dart:3954 )
```
Repository: godot
Issue: After bottom tab changes on run, pressing on a node which changes tab does not change back
Labels: bug,topic:editor,confirmed,usability

**Godot version:**

_3.3.2 stable_, also happens in _3.2 beta 1_ and _3.1.1 stable_

**OS/device including version:**

All

**Issue description:**

After the bottom tab changes to Output when you run the game, pressing on a node which changes tab to another when first pressed (i.e. AnimationPlayer) does not change after tab switch. You then have to click on another node then the original to re-open the desired tab.

**Steps to reproduce:**

Create a tab-opening node (i.e. AnimationPlayer), click on it so that it opens it's bottom tab, run the game, click on the node again.

**Minimal reproduction project:**

[Animation Save Demo.zip](https://github.com/godotengine/godot/files/3828869/Animation.Save.Demo.zip)
Repository: pytorch
Issue: Half precision cdist
Labels: module: cuda,triaged,module: half,function request,module: distance functions

## 🚀 Feature
Allow `torch.cdist` to work with half precision tensors

## Motivation

The new `torch.dist` function doesn't allow half precision tensors as inputs. However, using half precision can potentially speed up computation of pairwise distances especially if tensor cores are available to speed up the matrix multiplications.

cc @ngimel
Repository: godot
Issue: Classes are not considered constants in GDScript
Labels: bug,topic:gdscript

Godot 3.2 alpha1

The following examples all produce an `Expected a constant expression` error:
```gdscript
class Test:
    var a

const test = Test
const test2 = [Test]
const test3 = {"test": Test}
```

I wanted to use a class in a constant, but it's not possible, while it is possible with scripts obtained with `preload`.