sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: Improve color controls for flutter.
Labels: c: new feature,framework,would be a good package,P3,team-framework,triaged-framework

It would be great to have improved color functions similar to as outlined here:

https://thoughtbot.com/blog/controlling-color-with-sass-color-functions
Repository: terminal
Issue: Use C++/WinRT FastAbi
Labels: Area-Build,Product-Meta,Issue-Task

This will reduce the QI burden (and have miscellaneous other poorly-documented effects) in our consumption of C++/WinRT.
Repository: godot
Issue: Doing =+ should raise a syntax error 
Labels: enhancement,discussion,topic:gdscript

**Godot version:**
3.1.1 stable official

**OS/device including version:**
OSX 10.14.4


**Issue description:**
I made a typo, instead of writing 
`weight += o.get_weight()`
I wrote
`weight =+ o.get_weight()`

IMHO, if there is **no space** beetwen the assignement and the + sign, then the syntax should not be valid, to avoid such error to be time consuming

**Steps to reproduce:**
Just test something like 
`weight =+ o.get_weight()`
Repository: pytorch
Issue: Multiplying a very large CUDA tensor with another tensor yields unexpected result
Labels: module: dependency bug,module: cuda,triaged

## 🐛 Bug

Multiplying a very large CUDA tensor with another tensor yields unexpected result.

## To Reproduce

Steps to reproduce the behavior:
1. Generate the following random matrices
```
A = torch.randn((11111111, 20), device=torch.device("cuda"))
B = torch.randn((20, 2), device=torch.device("cuda"))
```

2. Then `(A @ B)[8807984:]` must be the same as `A[8807984:] @ B`. But it is not the case!

Minimal example:
```
A = torch.randn((11111111, 20), device=torch.device("cuda"))
B = torch.randn((20, 2), device=torch.device("cuda"))
print((A @ B)[8807984:].equal(A[8807984:] @ B))
```
returns `False`

## Expected behavior

```
A = torch.randn((11111111, 20), device=torch.device("cuda"))
B = torch.randn((20, 2), device=torch.device("cuda"))
print((A @ B)[8807984:].equal(A[8807984:] @ B))
```
Should return `True`

## Environment

PyTorch version: 1.1.0
Is debug build: No
CUDA used to build PyTorch: 9.0.176

OS: Ubuntu 18.04.2 LTS
GCC version: (Homebrew gcc 5.5.0_4) 5.5.0
CMake version: Could not collect

Python version: 3.7
Is CUDA available: Yes
CUDA runtime version: 9.1.85
GPU models and configuration: GPU 0: GeForce GTX 1080 Ti
Nvidia driver version: 390.116
cuDNN version: Could not collect

Versions of relevant libraries:
[pip] numpy==1.17.0
[pip] pytorch-lightning==0.3.6.9
[pip] torch==1.1.0
[pip] torchkge==0.10.3
[pip] torchvision==0.3.0
[conda] blas                      2.10                        mkl    conda-forge
[conda] libblas                   3.8.0                    10_mkl    conda-forge
[conda] libcblas                  3.8.0                    10_mkl    conda-forge
[conda] liblapack                 3.8.0                    10_mkl    conda-forge
[conda] liblapacke                3.8.0                    10_mkl    conda-forge
[conda] mkl                       2019.4                      243
[conda] pytorch                   1.1.0           py3.7_cuda9.0.176_cudnn7.5.1_0    pytorch
[conda] pytorch-lightning         0.3.6.9                  pypi_0    pypi
[conda] torchkge                  0.10.3                    dev_0    <develop>
[conda] torchvision               0.3.0           py37_cu9.0.176_1    pytorch

cc @ezyang @gchanan @zou3519
Repository: godot
Issue: RichTextLabel and Label shadow colors multiply the main font color instead of overriding it
Labels: bug,topic:core,confirmed

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:**
3.1.1 stable


**OS/device including version:**
Windows 10


**Issue description:**
Label and Richtextlabel shadow colors are copied from the font color and then modulated. This affects bitmap fonts, so that only full black shadows can be used. Not sure if other nodes use shadows, in that case they might suffer from the same problem. buttons do not have shadows.

The shadow colors should be a white (255, 255, 255, 255) color instead, so they can be modulated separately from the original font color.

![screenshot 46](https://user-images.githubusercontent.com/15088582/62725690-e9236000-ba15-11e9-8688-2753ebb729cc.jpg)

**Steps to reproduce:**
Add the supplied font to a label 

**Minimal reproduction project:**
[fonts.zip](https://github.com/godotengine/godot/files/3483040/fonts.zip)
Added a colored font to test with. The 'm' and 'a' characters are colored, use those to test :)
<!-- Recommended as it greatly speeds up debugging. Drag and drop a zip archive to upload it. -->
Repository: flutter
Issue: Modify FDE menubar plugin API to support multiple shortcuts
Labels: c: new feature,framework,platform-mac,a: desktop,customer: octopod,P3,team-macos,triaged-macos

Currently, the FDE menubar plugin API only allows a single LogicalKeySet shortcut. It would be great if this would allow for multiple. The use case at hand for me is a 'delete' action, which I would really like to be bound to both the backspace and delete keys as independent LogicalKeySets. Ideally, one of these shortcuts would be treated as the primary in that the symbols reflecting its keys would be shown in the menu item, and any other shortcuts would trigger the callback and menu highlight but wouldn't be shown in the menu item.
Repository: youtube-dl
Issue: Request support for wetv.vip
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.08.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.08.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.
-->

- Single video: https://wetv.vip/play?vid=o00318x0wds
- Playlist: https://wetv.vip/play?cid=jenizogwk2t8400


## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

This site is official site for chinese/korean dramas. there is a lot of free content and yes a lot of content, that you need subscription for. Can you please look into it, if its possible to add it?
thanks
Repository: pytorch
Issue: fractional_max_pool2d_with_indices silently ignores output_ratio if output_size is provided
Labels: module: error checking,triaged,module: pooling

Reading the code: https://github.com/pytorch/pytorch/blob/32efb431294d99a60899b0809c6363065608e556/torch/nn/functional.py#L339-L350 , it looks like if both output_ratio and output_size are provided, then the function ignores output_ratio. There should be a check for this.

cc @heitorschueroff
Repository: TypeScript
Issue: Give more information in --extendedDiagnostics
Labels: Suggestion,Experience Enhancement,Rescheduled

This is a list I may keep adding to as I help troubleshoot users with slow projects.

# Breakdown of file types

Much of the time, users just have a lot of .d.ts files in `node_modules`. It'd be easier to tell the cause if I could see the breakdown of:

* `.ts`/`.tsx` files
* `.d.ts` files
* `.js`/`.jsx` files

I'd want to know number of lines and number of files.

# Breakdown of program construction time

I've seen many examples of incorrect `exclude` globs that try to exclude `node_modules` but fail to do so.

What I'm looking for is number of folders explored during program construction time.
Repository: pytorch
Issue: Tests do not pass with the latest protobuf
Labels: module: protobuf,caffe2,triaged

Updating protobuf submodule to the latest version causes test errors, as shown in #22595 (for example, https://ci.pytorch.org/jenkins/job/caffe2-builds/job/py2-devtoolset7-rocmrpm-centos7.5-test/29677/console ).

The latest protobuf has been reported twice to fix build on ARM: #22564

Looks like a low-hanging fruit, might worth fixing it.
Repository: pytorch
Issue: tensor.var_mean variant for existing torch.var_mean (and same for std_mean)
Labels: triaged,function request,module: reductions

According to docs, the method variant currently seems absent (yet the input tensor is clear, so a method variant makes sense):

https://pytorch.org/docs/stable/torch.html?highlight=var_mean#torch.var_mean
Repository: pytorch
Issue: torch.{save,load} data corruption when serializing a Module with __{get,set}state__
Labels: high priority,module: serialization,triaged,quansight-nack

Repro:

```
import torch
import tempfile


class Foo(torch.nn.Module):
    def __init__(self):
        super().__init__()
        self.x = torch.rand(3, 4)

    def __getstate__(self):
        print('storage', self.x.storage())
        print('cdata', self.x.storage()._cdata)
        print('data', self.x)
        return (self.x,)

    def __setstate__(self, state):
        x = state[0]
        print('storage', x.storage())
        print('cdata', x.storage()._cdata)
        print('data', x)

foo = Foo()
with tempfile.NamedTemporaryFile() as f:
    torch.save(foo, f)
    f.seek(0)
    loaded = torch.load(f)

```

Output

```
storage  0.616813063621521
 0.1769922971725464
 0.8948532938957214
 0.48996198177337646
 0.05472159385681152
 0.5072327852249146
 0.2782403826713562
 0.28143006563186646
 0.34611016511917114
 0.08622455596923828
 0.3336881399154663
 0.06343936920166016
[torch.FloatStorage of size 12]
cdata 94388766643008
data tensor([[0.6168, 0.1770, 0.8949, 0.4900],
        [0.0547, 0.5072, 0.2782, 0.2814],
        [0.3461, 0.0862, 0.3337, 0.0634]])
storage  -6.13554555064281e-24
 3.079493505200218e-41
 -6.0064247976762345e-24
 3.079493505200218e-41
 1.401298464324817e-45
 0.0
 4.0678076049753325e-31
 6.206981819115192e-36
 6.206981819115192e-36
 6.206981819115192e-36
 6.206981819115192e-36
 2.7953761007662624e-20
[torch.FloatStorage of size 12]
cdata 94388766662208
data tensor([[-6.1355e-24,  3.0795e-41, -6.0064e-24,  3.0795e-41],
        [ 1.4013e-45,  0.0000e+00,  4.0678e-31,  6.2070e-36],
        [ 6.2070e-36,  6.2070e-36,  6.2070e-36,  2.7954e-20]])
```

cc @ezyang @gchanan @zou3519
Repository: TypeScript
Issue: Utility type: Object entries tuple
Labels: Suggestion,Awaiting More Feedback

## Search Terms

Utility type, object entries, tuple, mapped type

## Suggestion

An `Entries<T>` utility type that constructs a union of all object entry tuples of type T in `lib.es5.d.ts`.

```typescript
/**
 * Construct a union of all object entry tuples of type T
 */
type Entries<T> = {
    [P in keyof T]: [P, T[P]];
}[keyof T];
```

## Use Cases

I understand the history behind why `Object.entries` provides `string` as the key type rather than the actual keys (because there may exist more actual keys that those defined in the type). I refer to discussion [here](https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208).

Sometimes, however, we can be confident that only properties defined in the type will be present at runtime, and have found that a utility type like this can be helpful to more strictly define such types, particularly in tests.

## Examples

```typescript
const expected = {
   foo: "foo",
   bar: "Bar",
   baz: "BAZ",
} as const;

(Object.entries(expected) as Entries<typeof expected>).forEach(([input, output]) => {
  // where `myFunction`'s first parameter only accepts `"foo" | "bar" | "baz"` (or a superset)
  expect(myFunction(input)).to.equal(output);
});
```

```typescript
function thatAcceptsJsxAttributeTuples(attributes: readonly Entries<JSX.IntrinsicElements["path"][]>): void {
  // ...
}
```

## 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: vue-element-admin
Issue: npm run preview打开页面空白
Labels: bug,enhancement :star:


## Bug report（问题描述）
使用npm run preview 打包成功生成dist文件夹,使用file协议可以打开dist目录下的index文件出现登录界面,可是使用http://localhost:9526/访问时页面空白
#### Steps to reproduce（问题复现步骤）
npm run preview
使用浏览器打开 http://localhost:9526/

#### Screenshot or Gif（截图或动态图）
![image](https://user-images.githubusercontent.com/44657251/62747862-da29c580-ba88-11e9-818c-ffbc20e41715.png)

![image](https://user-images.githubusercontent.com/44657251/62747596-caf64800-ba87-11e9-96fe-e34e9fa01c2d.png)

#### Other relevant information（格外信息）
- Your OS:
- Node.js version:8.9.3
- vue-element-admin version:master上的最新版本
Repository: vscode
Issue: [themes] Show extension info in Preferences: Color Theme panel
Labels: feature-request,themes

<!-- Please search existing issues to avoid creating duplicates. -->

In current `Preferences: Color Theme` panel, there is no extension info that lets users know which extension provided the themes. I'd like to purge some unwanted theme extensions, but I don't know which one I should uninstall.

![image](https://user-images.githubusercontent.com/32427260/62754454-73190a80-baa2-11e9-8aba-a03202ccd79a.png)

It will be great if we can add the extension info at the right of theme name :) Something like the below picture.

![ theme_panel](https://user-images.githubusercontent.com/32427260/62755539-03f1e500-baa7-11e9-919a-fbbcc378c48a.png)


<!-- Describe the feature you'd like. -->
Repository: pytorch
Issue: [Caffe2] build android in v1.1.0 with headfile error
Labels: caffe2,triaged

pytorch version v1.1.0
I have built the android caffe2 lib with android ndk r20 and x86 ABI like this

`./scripts/build_android.sh -DANDROID_ABI=x86 -DANDROID_TOOLCHAIN=clang `

Then I copy all headfiles and lib from build_android folder to my android project.
And I got this error when build android JNI native cpp codes with this head file <caffe2/core/operator.h>:

----------------------------------------------------------------------------------
In file included from ../../../../src/main/cpp\caffe2/core/operator.h:1375:

../../../../src/main/cpp\caffe2/core/c10_operator.h:5:10: fatal error: 'torch/csrc/jit/script/function_schema_parser.h' file not found

#include <torch/csrc/jit/script/function_schema_parser.h>

         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

1 error generated.

ninja: build stopped: subcommand failed.

----------------------------------------------------------------------------------

I guess this file referenced a torch function that shouldn't be in caffe2 install files or this function can be re-implemented.

Can anyone give me some advice? Thank you very much.
Repository: flutter
Issue: Expose convolution matrix filter.
Labels: c: new feature,engine,P3,team-engine,triaged-engine

I'd like to apply convolution filters to a canvas without having to record the content and work on the raw pixel data.

I believe there is no way to do that. Is there a reason why?

## Proposal
Expose [SkImageFilters::MatrixConvolution](https://github.com/google/skia/blob/master/include/effects/SkImageFilters.h#L198)
Repository: terminal
Issue: Define size for background image
Labels: Help Wanted,Area-Settings,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).
-->

As we are now able to define background image position using `backgroundImageAlignment`. It makes really easy to put an image to lower right of the terminal. 
It will be very appreciated to also define the size of this image. It will help to place a large image in a corner of the terminal.

# Proposed technical implementation details (optional)

<!-- 
A clear and concise description of what you want to happen.
-->
Add properties into the profiles.json file: eg. `backgroundImageWidth` and `backgroundImageHeight`.
Repository: terminal
Issue: 400 Client Error in Azure Cloud Shell Connector
Labels: Help Wanted,Issue-Bug,Product-Terminal,Area-AzureShell

# Environment

Windows build number: Microsoft Windows [version 10.0.18362.10005]
Windows Terminal version (if applicable): 0.3.2171.0

# Steps to reproduce

1- Open a new CloudShell tab and log in
2- Execute some azure cli commands for about 10 min

# Expected behavior

Azure CLI commands continue to execute without any problem

# Actual behavior

After some time, the azure cli commands will failed with the following error : 
```Error occurred in request., HTTPError: 400 Client Error: Bad Request for url: http://localhost:50342/oauth2/token```

Executig several times the same commands (```az keyvault secret show --vault-name $kvName -n $secretName --query id -o tsv```for instance) won't change anything. However the azure cloud shell is opened in the browser (shell.azure.com) the same command will work and executing azure cli commands will start working again in the azure cloud shell of windows terminal.
Repository: flutter
Issue: Allow configuring a default `--local-engine`
Labels: c: new feature,tool,P2,team-tool,triaged-tool

<!-- 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

I' m using a locally built engine, and I need to pass `--local-engine` everywhere when use flutter command, such as `flutter doctor` 

Or an error : `You must specify --local-engine if you are using a locally built engine.`

The IDE VSCode and Android Studio / IntelliJ currently not support pass this to all flutter calls,
so it's hard to use them.

Maybe add a fallback check for an environment variable like LOCAL_ENGINE is the easyest way for all tools to work.

<!--
     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?
-->

## 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.
-->

I patched flutter_tools locally like this:

```
diff --git "a/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart" "b/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart"
index d332cc1b6..302ab0169 100644
--- "a/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart"
+++ "b/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart"
@@ -459,7 +459,11 @@ class FlutterCommandRunner extends CommandRunner<void> {
     if (globalResults['local-engine'] != null) {
       localEngine = globalResults['local-engine'];
     } else {
-      throwToolExit(userMessages.runnerLocalEngineRequired, exitCode: 2);
+      localEngine = platform.environment['LOCAL_ENGINE'];
+
+      if (localEngine == null) {
+        throwToolExit(userMessages.runnerLocalEngineRequired, exitCode: 2);
+      }
     }
 
     final String engineBuildPath = fs.path.normalize(fs.path.join(enginePath, 'out', localEngine));

```
Repository: vue
Issue: Warn when v-for with a Range is not a valid integer
Labels: discussion

### What problem does this feature solve?
When using the v-for directive with a Range and the number passed is not a valid integer (valid integer = an integer between 0 and 2^32-1), Vue.JS still tries to create an Array and then throws the error `[Vue warn]: Error in render: "RangeError: Invalid array length"`.

This happened to me while passing a computed property to the directive: `v-for="n in lists"` where `lists` is the computed property.

When the developer has multiple v-for directives, it is unclear where the error occurs, making the debugging process though.

If the mistake is caught by Vue before creating the Array, rendering the component shouldn't have to stop. Instead we can throw a warning and render an empty v-for directive. This would would make debugging easier, since other v-for directives in the same component would still render.

### What does the proposed API look like?
Add a check in /src/core/instance/render-helpers/render-list.js at line 22, checking if a valid number is:
* higher or equal to 0
* lower or equal to 2^32 - 1
* modules to 1 is equal to 0

```javascript
else if (typeof val === 'number') {
  if (val >= 0 && val <= 4294967295 && val % 1 === 0) {
    ret = new Array(val)
    for (i = 0; i < val; i++) {
      ret[i] = render(i + 1, i)
    }
  } else {
    warn (
      `Number passed to v-for directive not valid (expected valid integer), got ${val}`,
      this
    )
    ret = []
  }
}
```

<!-- generated by vue-issues. DO NOT REMOVE -->