sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: TypeScript
Issue:  JSDoc type reference doesn't skip leading asterisk
Labels: Bug

<!-- 🚨 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 `typescript@next`. It may have already been fixed. -->
**TypeScript Version:**  typescript@3.6.0-dev.20190704

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:**
checkjs
jsdoc
multi-line
multiline
**Code**

```ts
/**
 * @returns {
 *   | 'a'
 *   | 'b'
 *   | 'c'
 * } - this type is parsed as `any`.
 */
function f() {
  return true;
}
```

**Expected behavior:**
Error on incompatible return type.
**Actual behavior:**
No error. The jsdoc return type is parsed as `any`.
**Playground Link:** <!-- A link to a TypeScript Playground "Share" link which demonstrates this behavior -->
Not available.
Repository: youtube-dl
Issue: Request for dontmemorise.com
Labels: site-support-request

<!--

######################################################################
  WARNING!
  IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################

-->


## Checklist

<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl:
- First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2019.07.02. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Make sure that all provided video/audio/playlist URLs (if any) are alive and playable in a browser.
- Make sure that site you are requesting is not dedicated to copyright infringement, see https://yt-dl.org/copyright-infringement. youtube-dl does not support such sites. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
- Search the bugtracker for similar site support requests: http://yt-dl.org/search-issues. DO NOT post duplicates.
- Finally, put x into all relevant boxes (like this [x])
-->

- [x] I'm reporting a new site support request
- [x] I've verified that I'm running youtube-dl version **2019.07.02**
- [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

<!--
Provide all kinds of example URLs support for which should be included. Replace following example URLs by yours.
-->
- Website:
https://dontmemorise.com
- Playlist: 
https://dontmemorise.com/course/view.php?id=72

## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->
Guys add support for dontmemorise.com
Repository: TypeScript
Issue: Intellisense: optional parameters are too verbose (bar? number | undefined)
Labels: Suggestion,In Discussion

## Search Terms
optional parameters intellisense

## Suggestion

The intellisense for optional parameters is too verbose:

an optional function parameter defined e.g. like this

```typescript
function foo (bar?: number) {
}
```

gets resolved in the intellisense as  

```typescript
function foo(bar?: number | undefined): void
```

The optional nature of the `bar` parameter is indicated two times, once with ` number | undefined` type and once with the question mark sign `bar?:`

Proposal:

Just use question mark in intellisense signatures

```typescript
function foo(bar?: number): void
```
## Use Cases

The `| undefined` bloats the length of the function signatures generated by the intellisense. This 
makes the signatures too long leading to loss of important information in the intellisense in longer methods (e.g. the return types are shortened...)

## Examples

Here is an example:

```typescript
class IotFileClient {
public async GetFiles(
        entityid: string,
        params?: { 
            offset?: number; 
            limit?: number; 
            count?: boolean; 
            order?: string; 
            filter?: string; 
            }
    ): Promise<IotFileModels.IFile> {
         return {name: "test"};
    }
}
```

This produces the intellisense output like this:

```typescript
(method) IotFileClient.GetFiles(entityid: string, params?: {
    offset?: number | undefined;
    limit?: number | undefined;
    count?: boolean | undefined;
    order?: string | undefined;
    filter?: string | undefined;
} | undefined): Promise<...>
```

Using only `?:` would reduce the verbosity and leave much more room for the important information e.g. for the return values: 

```typescript
(method) IotFileClient.GetFiles(entityid: string, params?: {
    offset?: number;
    limit?: number;
    count?: boolean;
    order?: string;
    filter?: string;
}): Promise<IotFileModels.IFile>
```

http://www.typescriptlang.org/play/#code/KYDwDg9gTgLgBAOwIYFtgGcxIMbDgSQhgDEBLAG2AFkIATYc9OAbwCg4O5RJY5SEYwKADMcefGUot2nWcjQAuOOhhR+AcwDcMjgF9W+1tnJJ0TQiQrAAwuVLAB0sAFcARnexxTATwSeA4sCWlOgAFDqyXAKkMN6ktEoqagjqADQRslhQqOgA-ErMcBmRHBDCwuhB+YjOKK5CmkUlJXYoMdUItfVQjcUl2BDOAtWuEBCUSAi9zZHQ9FDVSRrTM5zCFIILCksp2quc+rIAlEoAClAQbZUAPBaS1HQM6AB0ElYAfNKrUEHOUAgseTAJQAIkEKhBuj2BwMrFYwiG2BgpAgAOEYzgoVcSC2NTqQiOXyKuiAA


## 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: TypeScript
Issue: Show type info of yield
Labels: Needs Proposal,Help Wanted,Effort: Moderate,Domain: Quick Info,Experience Enhancement,PursuitFellowship

@rbuckton `yield` keyword should show its argument type and return type when a cursor is put on there.
Repository: flutter
Issue: [Feature Request] Implement `Alignment.centerStart` and `Alignment.centerEnd`
Labels: c: new feature,framework,P3,team-framework,triaged-framework

## Screenshot
![Screenshot_1562503283](https://user-images.githubusercontent.com/52191652/60768677-b8c76980-a0d7-11e9-9b26-aec5d6689cce.png)

## Steps to Reproduce
1. make an Align widget with text aligned center to left.
2. change the language of the emulator to Arabic.
```
Positioned.fill(
                right: 10,
                child: Align(
                          alignment: Alignment.centerRight,
                              child: GestureDetector(
                                  child: Text(
                                    Localization.of(context).loginForgot,
                                    textAlign: TextAlign.center,),
                            ),
                          ), )
```
## Expected behaviour 
1-Positioned( right: 10 to be left:10 for Arabic RTL
2-Align(alignment: Alignment.centerRight to be Alignment.centerLeft for Arabic RTL


## Logs

```
[√] Flutter (Channel master, v1.8.1-pre.23, on Microsoft Windows [Version 10.0.18362.207], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[√] Chrome - develop for the web
[X] Visual Studio - develop for Windows
    X Visual Studio not installed; this is necessary for Windows development.
      Download at https://visualstudio.microsoft.com/downloads/.
[√] Android Studio (version 3.4)
[!] IntelliJ IDEA Community Edition (version 2019.1)
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
[√] VS Code, 64-bit edition (version 1.36.0)
[√] Connected device (4 available)
```
Repository: pytorch
Issue: Batched symeig and qr are very slow on GPU
Labels: module: performance,module: cuda,triaged,module: linear algebra

## 🐛 Bug

The recently added batched eigenvalue decomposition via `torch.symeig` is very slow on GPU (pr: https://github.com/pytorch/pytorch/pull/21858, issue: https://github.com/pytorch/pytorch/issues/7500).

## To Reproduce

```python
import torch
a = torch.rand(500, 2, 2)
a = 0.5 * (a + a.transpose(1, 2))
w, _ = torch.symeig(a)  # fast (~0.0006s)
a = a.cuda()
w, _ = torch.symeig(a)  # slow (~0.9s)
```

## Expected behavior

The GPU variant should be at least as fast as the CPU one.  This is an elementary matrix operation and GPUs should be fast at that.

## Environment

PyTorch version: 1.2.0.dev20190707
Is debug build: No
CUDA used to build PyTorch: 9.0.176

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 GTX TITAN X
GPU 1: GeForce GTX TITAN X
GPU 2: GeForce GTX TITAN X
GPU 3: GeForce GTX TITAN X

Nvidia driver version: 418.67
cuDNN version: Probably one of the following:
/usr/local/cuda-10.0/targets/x86_64-linux/lib/libcudnn.so.7
/usr/local/cuda-8.0/targets/x86_64-linux/lib/libcudnn.so.5
/usr/local/cuda-9.0/targets/x86_64-linux/lib/libcudnn.so.7.2.1

Versions of relevant libraries:
[pip3] numpy==1.15.1
[conda] mkl                       2019.4                      243
[conda] pytorch-nightly           1.2.0.dev20190707 py3.7_cuda9.0.176_cudnn7.5.1_0    pytorch

## Additional context

I assume this is not surprising given the following comment (CC @vishwakftw) https://github.com/pytorch/pytorch/blob/bcb5fd8f06292f1bf4b1982b97ed2339c3f49a30/aten/src/ATen/native/cuda/BatchLinearAlgebra.cu#L1208-L1212 but it should nonetheless be fixed.  It's not clear to me if that implies there's a bug in MAGMA and whether something is being done about it.

cc @ngimel @vincentqb @vishwakftw @jianyuh @nikitaved @pearu @mruberry @heitorschueroff @VitalyFedyunin
Repository: svelte
Issue: Site: Some parts of the API docs expect readers to have read previous sections
Labels: stale-bot,documentation

It seems that some parts of the API docs refer back to previous API documentation. This assumes that readers have read the whole thing or are reading in order which is highly unlikely considering it is a reference.

The the [component bindings](https://svelte.dev/docs#bind_component) section was brought to my attention (emphasis mine):

>Components **_also_** support bind:this, allowing you to interact with component instances programmatically.


This is a reference to element bindings (I think, it isn't actually very clear) but there is no link back to that section.

I'm guessing this happens in a few places though, I will try to read through and see where else we are doing it. 

We need to either link back to the relevant section or make the documentation entries 'standalone'. I think it makes sense for API Reference entries to have enough information to be useful on their own. This will be one of the places people come when they have a specific problem that they will then search or scan for, making them jump to other parts of the Docs is probably leading to a more frustrating experience.
Repository: pytorch
Issue: torch.gels runs 100 time slower on gpu than on cpu
Labels: module: performance,triaged

I tried gels on both gpu and cpu and measured time elapsed.

`start=time.time()
    sol,_=torch.gels(y,x.permute(1,0))[:3] # a,b,d
    end=time.time()`

On cpu it only takes ~0.00002 sec, but on gpu it take ~0.003 sec.

Anyone know why? Should it be the case?
Repository: terminal
Issue: Terminal desperately needs a horizontal scrollbar (similar to Command Prompt)
Labels: Issue-Feature,Resolution-By-Design,Help Wanted,Area-Output,Area-TerminalControl,Product-Terminal

<hr>

> **Note**: 📌 Pinned comment: **https://github.com/microsoft/terminal/issues/1860#issuecomment-1622136376**
<hr>

# Summary of the new feature/enhancement

Windows Terminal needs to have a configurable horizontal scrollbar (similar to Command Prompt) so that lines longer than the window width are actually readable by scrolling to the right, rather than being a big indecipherable word-wrapped mess as is typically seen on UNIX-like systems.

# Proposed technical implementation details (optional)

Make it so.
Repository: flutter
Issue: [web/all] PageView shouldn't skip pages
Labels: framework,f: scrolling,f: gestures,c: proposal,has reproducible steps,P3,found in release: 2.10,found in release: 2.13,team-framework,triaged-framework

I dislike the current way that PageView works: if you put not-enough force, it gets back to where it is. If you put too much force, it scrolls two pages. This is really evident in this official sample: https://flutter.github.io/samples/filipino_cuisine/ (just drag with your mouse from one corner to next and it will skip one element). It goes from tolerable to intolerable. On apps, if you drag from left to right you trigger the same:
<img src="https://user-images.githubusercontent.com/351125/60774878-2207a680-a0f1-11e9-9ad3-3a94cd269b9d.gif" width="250" />

[feature request] I also wish Flutter could enable carousels ranging from Google Play Games, which is very fluid to ones that go at maximum 1 page ahead, not 2 (which IMO seems like a bug), no matter how strong you push. I know I should probably make another issue for this request, but if someone makes the PageView method that scrolls more modular or etc, could be helpful for implementing something like this:

<img src="https://user-images.githubusercontent.com/351125/60774866-f5538f00-a0f0-11e9-98a5-0119f29b9b5e.gif" width="250" />

I tried subclassing PageScrollPhysics and changing the parameters, but it seems the issue is somewhere else.

Might be related to https://github.com/flutter/flutter/pull/12884.
Repository: go
Issue: cmd/compile: superfluous MOV instructions
Labels: Performance,NeedsInvestigation,compiler/runtime

Using `go1.12` on `linux/amd64`

Consider the following benchmark:
```go
var srcString = "1234"
var srcBytes = []byte(srcString)
var dst uint64

// BenchmarkIdeal is the ideal performance parsing a string.
func BenchmarkIdeal(b *testing.B) {
	b.ReportAllocs()
	for i := 0; i < b.N; i++ {
		dst, _ = strconv.ParseUint(srcString, 0, 64)
	}
}

// BenchmarkCopy is the performance after copying the input bytes as a string.
// Performance loss is expected.
func BenchmarkCopy(b *testing.B) {
	b.ReportAllocs()
	for i := 0; i < b.N; i++ {
		dst, _ = strconv.ParseUint(string(srcBytes), 0, 64)
	}
}

// BenchmarkCast is the performance when using unsafe to cast bytes as a string.
func BenchmarkCast(b *testing.B) {
	b.ReportAllocs()
	for i := 0; i < b.N; i++ {
		dst, _ = strconv.ParseUint(UnsafeString(srcBytes), 0, 64)
	}
}

type stringHeader struct {
	Data unsafe.Pointer
	Len  int
}
type sliceHeader struct {
	Data unsafe.Pointer
	Len  int
	Cap  int
}

func UnsafeString(b []byte) (s string) {
	bp := (*sliceHeader)(unsafe.Pointer(&b))
	sp := (*stringHeader)(unsafe.Pointer(&s))
	sp.Data = bp.Data
	sp.Len = bp.Len
	return s
}
```
This currently reports the following on my system:
```
BenchmarkIdeal-8   	100000000	        14.9 ns/op	       0 B/op	       0 allocs/op
BenchmarkCopy-8    	50000000	        35.1 ns/op	       4 B/op	       1 allocs/op
BenchmarkCast-8    	100000000	        15.7 ns/op	       0 B/op	       0 allocs/op
```
I expect `BenchmarkIdeal` and `BenchmarkCast` to be the same, but there is a ~1ns loss of performance.

The assembly of the inner loop between `BenchmarkIdeal` and `BenchmarkCast` is:
```diff
-	0x0033 00051	MOVQ	"".srcString(SB), AX
-	0x003a 00058	MOVQ	"".srcString+8(SB), CX
+	0x003a 00058	MOVQ	"".srcBytes+16(SB), AX
+	0x0041 00065	MOVQ	"".srcBytes(SB), CX
+	0x0048 00072	MOVQ	"".srcBytes+8(SB), DX
+	0x004f 00079	MOVQ	CX, "".b+80(SP)
+	0x0054 00084	MOVQ	DX, "".b+88(SP)
+	0x0059 00089	MOVQ	AX, "".b+96(SP)
+	0x005e 00094	XORPS	X0, X0
+	0x0061 00097	MOVUPS	X0, "".s+64(SP)
+	0x0066 00102	XCHGL	AX, AX
+	0x0067 00103	MOVQ	"".b+80(SP), AX
+	0x006c 00108	MOVQ	AX, "".s+64(SP)
+	0x0071 00113	MOVQ	"".b+88(SP), AX
+	0x0076 00118	MOVQ	AX, "".s+72(SP)
+	0x007b 00123	MOVQ	"".s+64(SP), CX
	0x0080 00128	MOVQ	CX, (SP)
	0x0084 00132	MOVQ	AX, 8(SP)
	0x0089 00137	MOVQ	$0, 16(SP)
	0x0092 00146	MOVQ	$64, 24(SP)
	0x009b 00155	CALL	strconv.ParseUint(SB)
	0x00a0 00160	MOVQ	32(SP), AX
	0x00a5 00165	MOVQ	AX, "".dst(SB)
```
It seems that although the call to `UnsafeString` is inlined, the compiler still emits a number of `MOV` instructions that seem superfluous. Ideally, the compiler would emit assembly that is functionally identical to the `BenchmarkIdeal` case.
Repository: pytorch
Issue: Pytorch compilation error on Mac OS
Labels: module: build,triaged

# # 🐛 Bug

# # environment
-- operating system: Mac OS 10.13
-- cmake version 3.14.2
-- python version 3.6.5
- clang:
Clang  -std = c + + 17
Apple LLVM version 9.1.0 (clang-902.0.39.1)
Target: x86_64 - apple - darwin17.7.0

## installation process
        git clone --recursive https://github.com/pytorch/pytorch
	cd pytorch
	# if you are updating an existing checkout
	git submodule sync
	git submodule update --init --recursive

# this step is not clear < not executing >
Export CMAKE_PREFIX_PATH = ${CONDA_PREFIX: - "$(dirname $(which conda)) /.. / "}

#Perform this step to install
MACOSX_DEPLOYMENT_TARGET=10.9 CC=clang CXX=clang++ python setup.py install

#Problem specification
The following error occurred during installation! The problem files are: h file, CPP file, c file
How to compile pytorch correctly please help me! Thank you very much!
![114](https://user-images.githubusercontent.com/37831370/60777886-2d95b480-a167-11e9-8978-6e3a82f48730.png)
![115](https://user-images.githubusercontent.com/37831370/60777889-2f5f7800-a167-11e9-819d-e1bd99699349.png)
![112](https://user-images.githubusercontent.com/37831370/60777908-47cf9280-a167-11e9-9885-c492e1c09d9a.png)
Repository: flutter
Issue: Make pointer signal event (mouse wheel event) handling configurable in ListView
Labels: framework,f: scrolling,c: proposal,P3,team-framework,triaged-framework

## Use case

I have a **reverse** `ListView`, and I can interact with it with a **mouse**. The `ListView` is reverse because I need the viewport to keep displaying the bottom edge while adding animated elements to the list. And in my particular case, I interact with a mouse because it's a Flutter Web project, but I believe mouse interaction is possible with regular Flutter on Android/iOS tablets too.

Scrolling the `ListView` with the mouse wheel scrolls in the direction opposite to the expected one (scrolling down goes up & vice versa, because of the **reverse** prop). So I would like to disable mouse wheel handling.

Wrapping the `ListView` in an `AbsorbPointer` is not a solution, because all pointer events are absorbed (not only the mouse wheel events), so buttons or other interactive widgets within the `ListView` are unusable.

Setting the `ListView` **physics** prop to a `NeverScrollableScrollPhysics` is not a solution either because it only prevents scrolling by drag/touch, but doesn't impact pointer event handling.

## Proposal

I would like the `ListView` to be configurable to prevent or override the pointer signal event handling. The current behaviour is hardcoded in a `Listener` deep down in `ScrollableState` and there seems to be no way to change it.

```
[✓] Flutter (Channel stable, v1.5.4-hotfix.2, on Mac OS X 10.14.5 18F132, locale en-KR)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.2.1)
[✓] Android Studio (version 3.4)
[✓] VS Code (version 1.35.1)
[✓] Connected device (1 available)
```
Repository: opencv
Issue: multibandblender does not work well
Labels: incomplete,needs reproducer

<!--
If you have a question rather than reporting a bug please go to http://answers.opencv.org where you get much faster responses.
If you need further assistance please read [How To Contribute](https://github.com/opencv/opencv/wiki/How_to_contribute).

Please:

* Read the documentation to test with the latest developer build.
* Check if other person has already created the same issue to avoid duplicates. You can comment on it if there already is an issue.
* Try to be as detailed as possible in your report.
* Report only one problem per created issue.


This is a template helping you to create an issue which can be processed as quickly as possible. This is the bug reporting section for the OpenCV library.
-->

##### System information (version)
<!-- Example
- OpenCV => 3.1
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2015
-->

- OpenCV => :4.00:
- Operating System / Platform => :window10:
- Compiler => :vs2019:

##### Detailed description
When I used the multibandblender to fuse the image, it was a failure and there were artifacts at the boundary. I read [this answer](https://stackoverflow.com/questions/30044477/how-to-use-multi-band-blender-in-opencv) to solve the problem and it need to shrink the mask(I have done some erode operation). However, when the mask is shrinked , the resulting panorama will have loss of some region (some region become black), how can I solve this problem.


**Details and test data**
Experimental data: the position where the image pixel is not 0, and the corresponding mask position is set to 255.
 **images：**
![捕获](https://user-images.githubusercontent.com/32008867/60866662-86df1000-a25b-11e9-9246-77cde9542b2d.PNG)

**masks：**
![mask-截图](https://user-images.githubusercontent.com/32008867/60865574-df60de00-a258-11e9-867a-03afb706494e.PNG)

**result：**
![失败的融合结果](https://user-images.githubusercontent.com/32008867/60865045-c9065280-a257-11e9-9a7f-7b1cc9100826.PNG)





Blending after shrinking masks（erode operation，kernel为（20*20））：

**masks：**
![mask-截图-缩小之后的](https://user-images.githubusercontent.com/32008867/60865179-108cde80-a258-11e9-87b5-9e9203744bc5.PNG)

**result：**
![成功的案例的融合结果](https://user-images.githubusercontent.com/32008867/60865246-429e4080-a258-11e9-9e1e-0e6267edf1e3.PNG)


My test data is as below which includes images,masks,corners that multibandblender needs:
[data.zip](https://github.com/opencv/opencv/files/3371567/data.zip)

<!-- your description -->

**my blend function：**
`void blend(vector<cv::UMat>& panoImgs, vector<cv::Point>& corners, vector<cv::UMat>& panoMasks, cv::UMat& pano)
{

	for (int i = 0; i < panoImgs.size(); ++i)
	{
		panoImgs[i].convertTo(panoImgs[i], CV_16SC3);
	}

	cv::detail::MultiBandBlender blender;
	
	blender.prepare(cv::Rect(0, 0, panoWidth_, panoWidth_ / 2));
	for (int i = 0; i < panoImgs.size(); i++)
	{
		blender.feed(panoImgs[i], panoMasks[i], corners[i]);
	}

	cv::Mat panoMask;
	blender.blend(pano, panoMask);

}`