sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: go
Issue: x/text/language: Match() choses the wrong Tag
Labels: NeedsInvestigation

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.14 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="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/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-build210008815=/tmp/go-build -gno-record-gcc-switches"
</pre></details>

### What did you do?

https://play.golang.org/p/_qlIzcAWD5F
```go
package main

import (
	"fmt"
	"golang.org/x/text/language"
)

func main() {
	matcher := language.NewMatcher([]language.Tag{
		language.MustParse("en-GB"),
		language.MustParse("fr-FR"),
		language.MustParse("es-ES"),
	})
	tag, _, confidence := matcher.Match(
		language.MustParse("en"),
		language.MustParse("fr"),
		language.MustParse("en-US"),
	)
	fmt.Printf("best match: %s, confidence: %s\n", tag, confidence)
}
```

### What did you expect to see?

```
best match: en-GB, confidence: High
```

### What did you see instead?

```
best match: fr-FR, confidence: Exact
```
Repository: flutter
Issue: Support for @2x, @3x, etc naming convention for images
Labels: tool,framework,a: assets,a: images,c: proposal,P3,team-framework,triaged-framework

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill our the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Use case

<!--
     Please tell us the problem you are running into that led to you wanting
     a new feature.

     Is your feature request related to a problem? Please give a clear and
     concise description of what the problem is.

     Describe alternative solutions you've considered. Is there a package
     on pub.dev/flutter that already solves this?
-->

When creating new images or reusing images from other projects, design apps export them with @2x, @3x or similar. Even if it is not possible to support having all these images in the same folder, at least being able to understand them when they are in the 2.0x, 3.0x folder would be great. 

## Proposal

<!--
     Briefly but precisely describe what you would like Flutter to be able to do.

     Consider attaching images showing what you are imagining.

     Does this have to be provided by Flutter directly, or can it be provided
     by a package on pub.dev/flutter? If so, maybe consider implementing and
     publishing such a package rather than filing a bug.
-->

When having an image.png file, and putting a higher quality image in the 2.0x folder, flutter should accept image@2x.png
Repository: pytorch
Issue: RuntimeError with torch.unique: radix_sort: failed on 2nd step: invalid argument
Labels: module: cuda,triaged,module: sorting and selection

## 🐛 Bug

Hello, I encountered the following error when using `torch.unique` inside my code:
```
File "/new_envs/lib/python3.7/site-packages/torch/functional.py", line 471, in unique
    return_counts=return_counts,
RuntimeError: radix_sort: failed on 2nd step: invalid argument
```

The line causing this problem is `torch.unique(label)`. 

The weird thing is that sometimes I can run the code without running into any issue, but if I stop it (ctrl+c) and run again, the above error showed up again. And if I write a test file `test.py` that contains the following code
```
import torch
a = torch.Tensor(3, 5, 10).cuda()
b = torch.unique(a)
``` 
and run it with `python test.py`, the bug doesn't show up again. 

Using `torch.unique` on the interactive mode is fine 

## Environment
I install pytorch via:
```
conda create --prefix ./new_envs python=3.7
conda activate ./new_envs
conda install pytorch torchvision cudatoolkit=10.0 -c pytorch.
```

The output of collect_env script:
```
Collecting environment information...                                   [7/1926]
PyTorch version: 1.4.0
Is debug build: No
CUDA used to build PyTorch: 10.0

OS: Ubuntu 14.04.6 LTS
GCC version: (GCC) 5.2.0
CMake version: version 2.8.12.2

Python version: 3.7
Is CUDA available: Yes
CUDA runtime version: 10.0.130
GPU models and configuration: GPU 0: TITAN Xp
Nvidia driver version: 430.14
cuDNN version: Could not collect

Versions of relevant libraries:
[pip] numpy==1.18.1
[pip] torch==1.4.0
[pip] torchvision==0.5.0
[conda] blas                      1.0                         mkl  
[conda] mkl                       2020.0                      166  
[conda] mkl-service               2.3.0            py37he904b0f_0  
[conda] mkl_fft                   1.0.15           py37ha843d7b_0  
[conda] mkl_random                1.1.0            py37hd6b4f25_0  
[conda] pytorch                   1.4.0           py3.7_cuda10.0.130_cudnn7.6.3_0    pytorch
[conda] torchvision               0.5.0                py37_cu100    pytorch
```

## Additional context

<!-- Add any other context about the problem here. -->


cc @ngimel @heitorschueroff
Repository: youtube-dl
Issue: Add Vlare support
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 2020.03.01. 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 **2020.03.01**
- [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.
-->

- Single video: https://vlare.tv/v/HSzfUoye
- Playlist: https://vlare.tv/u/xdb6VaaO/playlist/501
- Channel: https://vlare.tv/u/xdb6VaaO


## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

ytdl DOES support downloading videos (although, not playlists) by using the 'generic information extractor', but some built-in support for Vlare would be nice.
Repository: pytorch
Issue: CustomFromMask pruning stores a copy of the user-provided mask
Labels: module: nn,triaged,module: pruning

## 🐛 Bug

(Not a bug, strictly speaking, because it doesn't compromise correctness, but still an issue because it affects model size).
The pruning method called `CustomFromMask` in `torch/nn/utils/prune.py` is designed to prune parameters by applying a user-provided mask. An instance of this class is then attached to the pruned module as a `forward_pre_hook`. The issue is that each hook carries (and therefore attaches to the module) a copy of the user-provided mask (of the same size as the pruned parameter), thus significantly growing the size of the model. This becomes particularly problematic in global pruning, which prunes the entire network by relying on `CustomFromMask`.

## To Reproduce

Steps to reproduce the behavior:
1. Create a `nn.Module`
1. Prune it using `torch.nn.utils.prune.custom_from_mask`
1. Check that a `forward_pre_hook` has been added to the Module
1. Notice that the hook carries and attribute called `mask` that stores a (undesirable) copy of the mask applied to the parameter that impacts the size of the Module, when serialized.

```python
import torch
from torch import nn
import torch.nn.utils.prune as prune

m = nn.Conv2d(3, 512, 3)
custom_mask = torch.randint(0, 2, size=m.weight.shape)
prune.custom_from_mask(m, 'weight', mask=custom_mask)
print([v.mask for v in m._forward_pre_hooks.values()])
```
Specifically, when comparing the size of a module pruned with any other pruning technique versus a module pruned with `CustomFromMask`, the size difference is clearly visible.
```python
m = nn.Conv2d(3, 512, 3)
custom_mask = torch.randint(0, 2, size=m.weight.shape)
prune.custom_from_mask(m, 'weight', mask=custom_mask)
torch.save(m, 'custom.pth')

n = nn.Conv2d(3, 512, 3)
prune.l1_unstructured(n, 'weight', amount=0.5)
torch.save(n, 'l1.pth')
```
Then `ls -lht *.pth` yields:
```
173K Mar  3 15:39 l1.pth
281K Mar  3 15:39 custom.pth
```
## Expected behavior
The user-provided mask is used only once when `compute_mask` is called, so it could be manually deleted afterwards. If keeping the mask was desirable for some use cases, we can add a flag in the constructor to determine whether the mask should be stored or deleted after it's been used.

## Environment

PyTorch version: 1.5.0.dev20200303
Is debug build: No
CUDA used to build PyTorch: 10.1

OS: Ubuntu 18.04.3 LTS
GCC version: (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
CMake version: version 3.10.2

Python version: 3.6
Is CUDA available: Yes
CUDA runtime version: Could not collect
GPU models and configuration:
GPU 0: Quadro GP100
GPU 1: Quadro GP100

Nvidia driver version: 418.116.00
cuDNN version: Could not collect

Versions of relevant libraries:
[pip3] numpy==1.18.1
[pip3] torch==1.5.0.dev20200303
[pip3] torchvision==0.6.0.dev20200303
[conda] Could not collect

cc @albanD @mruberry
Repository: storybook
Issue: MDX: sbdocs classes are applied to html elements, and they collide with styles applied from classnames.
Labels: question / support,theming,addon: docs,mdx

**Describe the bug**
Storybook CSS is cancelling out CSS for classNames that I'm writing.

**To Reproduce**

1. Create a `.mdx` file with the following:

```
import { Meta } from "@storybook/addon-docs/blocks";

<Meta title="Foo/Bar"  />

<Preview>
  <h2 className="font-big">Hello World</h2>
</Preview>
```

2. Import a CSS file into your `preview.js` file:

```
import "../src/index.css";
```

3. Create the css file with the following:

```
.font-big { font-size: 40px }
```

4. When you do all of this and load the above story, you should notice in the source code, Storybook has applied a set of classes to this element, and it will override the font style you set.

**Expected behavior**
I only expect the classes to be applied to actual markdown, not html. It doesn't seem very safe for people who are absolutely creating api's that accept html, to pass storybook classes onto this. Even if that was the case, it seems like `Preview` should be able to shield against this, or this should be some sort of configuration.

An alternative: There should be some feature to allow us to load our CSS "after" the Storybook CSS has loaded.

**Screenshots**
<img width="1582" alt="Screen Shot 2020-03-04 at 5 19 36 PM" src="https://user-images.githubusercontent.com/52427513/75928424-5d9f6f80-5e3c-11ea-8758-1980050df63c.png">

**Code snippets**
If applicable, add code samples to help explain your problem.

**System:**
```
Environment Info:

  System:
    OS: macOS Mojave 10.14.5
    CPU: (8) x64 Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz
  Binaries:
    Node: 10.16.0 - /usr/local/bin/node
    Yarn: 1.19.1 - /usr/local/bin/yarn
    npm: 6.11.3 - /usr/local/bin/npm
  Browsers:
    Chrome: 80.0.3987.122
    Firefox: 67.0.1
    Safari: 12.1.1
  npmPackages:
    @storybook/addon-a11y: ^6.0.0-alpha.20 => 6.0.0-alpha.20 
    @storybook/addon-actions: ^6.0.0-alpha.20 => 6.0.0-alpha.20 
    @storybook/addon-backgrounds: ^6.0.0-alpha.20 => 6.0.0-alpha.20 
    @storybook/addon-centered: ^6.0.0-alpha.20 => 6.0.0-alpha.20 
    @storybook/addon-docs: ^6.0.0-alpha.20 => 6.0.0-alpha.20 
    @storybook/addon-knobs: ^6.0.0-alpha.20 => 6.0.0-alpha.20 
    @storybook/addon-links: ^6.0.0-alpha.20 => 6.0.0-alpha.20 
    @storybook/addons: ^6.0.0-alpha.20 => 6.0.0-alpha.20 
    @storybook/react: ^6.0.0-alpha.20 => 6.0.0-alpha.20 
    @storybook/theming: ^6.0.0-alpha.20 => 6.0.0-alpha.20 
```

**Additional context**
This is similar to #8504, except I feel there's a big safety risk of applying storybook css to user supplied html, where the documentation may not display what the output of something actually is.
Repository: rust
Issue: Confusing diagnostics where the error mentions Sized but not that a trait bound is not implemented (where it would be for a Sized type).
Labels: C-enhancement,A-diagnostics,T-compiler,D-terse

This comes from the [user forum](https://users.rust-lang.org/t/wrapping-boxed-errors/38951), [playground](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=66943a8d8e850922681779926208b1fd), moved from #27964:
```rust
use std::error::Error;

fn library_function<F1, E1>(f1: F1) -> Result<(), E1>
where
    F1: FnOnce() -> Result<(), E1>,
    E1: Error, // <-remove this line -> compile
{
    f1()
}

fn main() -> Result<(), Box<dyn Error>> 
{
    library_function( || Ok(()) )
}
```
Error:
```
error[E0277]: the size for values of type `dyn std::error::Error` cannot be known at compilation time
  --> src/main.rs:13:5
   |
3  | fn library_function<F1, E1>(f1: F1) -> Result<(), E1>
   |    ----------------
...
6  |     E1: Error, // <-remove this line -> compile
   |         ----- required by this bound in `library_function`
...
13 |     library_function( || Ok(()) )
   |     ^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
   |
   = help: the trait `std::marker::Sized` is not implemented for `dyn std::error::Error`
   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
   = note: required because of the requirements on the impl of `std::error::Error` for `std::boxed::Box<dyn std::error::Error>`
```
Go figure why "library_function doesn't have a size known at compile time".

Analysis:
There is a blanket impl for `Error` on `Box<T>`, so quickly looking it up in the docs makes you think that it should implement Error, but it's not on `Box<T: ?Sized>`. credit to @Yandros

I feel the main issue here is that we have a trait bound on Error that isn't satisfied, so probably it would be nice to replace `library_function` not being sized by: `Box<dyn Error> does not implement Error. The following Impls where found: impl<T: Error> Error for Box<T>, but that requires T: Sized`.
Repository: go
Issue: x/build/cmd/gopherbot: check if next release release branch exists before considering it for backports
Labels: Builders,NeedsInvestigation

It occurred to me know that we can implement a better heuristic. If a release branch for the next version of Go does not exist yet, gopherbot should not consider creating a backport issue for that version.

Related to #37672.

/cc @toothrot @cagedmantis
Repository: TypeScript
Issue: VSCode Angular 9 Auto-Import for Custom Libraries
Labels: Needs Investigation


*TS Template added by @mjbvz*

**TypeScript Version**: 3.8.3

**Search Terms**
- angular

---

I'm currently building an Angular 9 Library using VSCode (version 1.42.1 on MAC OS). I followed the Angular Tutorial on how to create libraries - https://angular.io/guide/creating-libraries.

I also added schematics to the angular package, I'm currently having problems when I add the Library to Angular Application using the `ng add ~/projects/my-library-0.01.tgz --save `command.

VSCode is unable to auto-import components or classes defined in this package. 

> Cannot find name 'MyService'.

If I manually add `import { MyService } from 'my-library' `this works fines.

Is there a reason why the auto-import is not working for custom angular libraries?
Repository: flutter
Issue: ImageFilter.matrix and ImageFiltered do not provide an origin alignment property
Labels: engine,a: images,has reproducible steps,P2,found in release: 3.3,found in release: 3.7,team-engine,triaged-engine

The following gist is an example of how to use a `Transform` widget or an `ImageFiltered` widget to achieve a similar effect. The `Transform` widget will render its child anew with each change of the matrix, but the `ImageFiltered` widget will use a simpler, possibly more cacheable, pixel filter on the untransformed child to achieve the same effect.

The ease of use between them is similar except for the issue of trying to create a transform that rotates the child around its center point. The `Transform` widget provides an origin alignment property that makes this effect trivial to accomplish, but the `ImageFiltered` widget and the `ImageFilter.matrix` filter do not provide any alignment property and the workaround involves a difficult to manage postFrameCallback to get the information it needs. Not only is this code more work, but the answer will not be available to incorporate into the first frame rendered.

Gist: https://gist.github.com/flar/da94ae35e8b86184b404000dfda68313
Repository: pytorch
Issue: `torch.norm` is 113x slower than `torch.sqrt(a**2 + b**2)`
Labels: module: performance,triaged,module: linear algebra

## 🐛 Bug

`torch.norm` is really slow compared to `torch.sqrt(a**2 + b**2)`. The specific `input_` size is based on the output of `torch.stft`. 

## To Reproduce

```python
import torch
import timeit
import numpy

input_ = torch.randn(500, 1000, 2)


def version_one(input_):
    a, b = input_.unbind(-1)
    return torch.sqrt(a**2 + b**2)


def version_two(input_):
    return torch.norm(input_, dim=-1)


numpy.testing.assert_almost_equal(
    version_one(input_).numpy(), version_two(input_).numpy(), decimal=6)
print('Version One:', timeit.timeit('version_one(input_)', number=100, globals=globals()))
print('Version Two:', timeit.timeit('version_two(input_)', number=100, globals=globals()))
```

```bash
Version One: 0.10085414599999998
Version Two: 13.104690384
```

## Expected behavior

The performance should be similar...

## Environment

```bash
Collecting environment information...
PyTorch version: 1.4.0
Is debug build: No
CUDA used to build PyTorch: None

OS: Mac OSX 10.14.6
GCC version: Could not collect
CMake version: Could not collect

Python version: 3.7
Is CUDA available: No
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA

Versions of relevant libraries:
[pip3] numpy==1.18.1
[pip3] pytorch-nlp==0.5.0
[pip3] torch==1.4.0
[pip3] torchaudio==0.4.0
[conda] Could not collect
```


cc @vincentqb @vishwakftw @jianyuh @nikitaved @pearu @mruberry @VitalyFedyunin @ngimel
Repository: flutter
Issue: floating SliverAppBar keep elevation when hidden
Labels: framework,f: material design,c: proposal,team-design,triaged-design

## Use case
In google news for example the shadow stays visible even if the appbar is scrolled away.
So you have a small shadow below the status bar when the appbar is hidden.

## Proposal
It would be nice if this would be possible with SliverAppBar.
Repository: flutter
Issue: Plugin linking fails using local engine: Flutter.framework/Flutter, building for iOS-arm64 but attempting to link with file built for iOS Simulator-x86_64
Labels: tool,t: xcode,P2,team-tool,triaged-tool

Similar to https://github.com/flutter/flutter/issues/50568 but for plugins when building with a non-fat local engine (only x86 or only arm)

```
ld: warning: ignoring file /Users/m/Downloads/app5/ios/Flutter/Flutter.framework/Flutter, building for iOS-arm64 but attempting to link with file built for iOS Simulator-x86_64
Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_FlutterStandardMessageCodec", referenced from:
      objc-class-ref in FlutterWebView.o
  "_OBJC_CLASS_$_FlutterError", referenced from:
      objc-class-ref in FLTWKNavigationDelegate.o
      objc-class-ref in FlutterWebView.o
  "_OBJC_CLASS_$_FlutterMethodChannel", referenced from:
      objc-class-ref in FLTCookieManager.o
      objc-class-ref in FlutterWebView.o
  "_FlutterMethodNotImplemented", referenced from:
      -[FLTCookieManager handleMethodCall:result:] in FLTCookieManager.o
      ___83-[FLTWKNavigationDelegate webView:decidePolicyForNavigationAction:decisionHandler:]_block_invoke in FLTWKNavigationDelegate.o
      -[FLTWebViewController onMethodCall:result:] in FlutterWebView.o
ld: symbol(s) not found for architecture arm64
```

The plugin targets run before the app target, so it fails before xcode_backend can run and copy the right version of Flutter.framework at `FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/../Flutter"`.

Made worse by https://github.com/flutter/flutter/pull/42029/files#diff-4c9b1f4062d1444c8802dec8fea33e95L49.
Repository: kubernetes
Issue: systemd specs should be in-repo
Labels: kind/bug,sig/release,lifecycle/frozen,needs-triage

<!-- Please use this template while reporting a bug and provide as much info as possible. Not doing so may result in your bug not being addressed in a timely manner. Thanks!

If the matter is security related, please disclose it privately via https://kubernetes.io/security/
-->


**What happened**:

https://github.com/kubernetes/kubernetes/pull/87585#pullrequestreview-369105857

**What you expected to happen**:

**How to reproduce it (as minimally and precisely as possible)**:

**Anything else we need to know?**:

**Environment**:
- Kubernetes version (use `kubectl version`):
- Cloud provider or hardware configuration:
- OS (e.g: `cat /etc/os-release`):
- Kernel (e.g. `uname -a`):
- Install tools:
- Network plugin and version (if this is a network-related bug):
- Others:

/assign @justaugustus