sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: cumprod gradgradcheck fails in fast_mode=True
Labels: module: autograd,module: tests,triaged

To reproduce:
1. Set `gradcheck_fast_mode=True` in cumprod's OpInfo (in testing/_internal/common_method_invocations.py)
2. Run `python test/test_ops.py -k test_fn_gradgrad_cumprod_cuda_float64`

Produced error:
```
RuntimeError: Jacobian mismatch for output 0 with respect to input 0,
numerical:tensor(-0.1710, device='cuda:0')
analytical:tensor(-0.1722, device='cuda:0')

The above quantities relating the numerical and analytical jacobians are computed 
in fast mode. See: https://github.com/pytorch/pytorch/issues/53876 for more background 
about fast mode. Below, we recompute numerical and analytical jacobians in slow mode:

Numerical:
 tensor([[0., 0., 0.,  ..., 0., 0., 0.],
        [0., 0., 0.,  ..., 0., 0., 0.],
        [0., 0., 0.,  ..., 0., 0., 0.],
        ...,
        [0., 0., 0.,  ..., 0., 0., 0.],
        [0., 0., 0.,  ..., 0., 0., 0.],
        [0., 0., 0.,  ..., 0., 0., 0.]], device='cuda:0')
Analytical:
tensor([[0., 0., 0.,  ..., 0., 0., 0.],
        [0., 0., 0.,  ..., 0., 0., 0.],
        [0., 0., 0.,  ..., 0., 0., 0.],
        ...,
        [0., 0., 0.,  ..., 0., 0., 0.],
        [0., 0., 0.,  ..., 0., 0., 0.],
        [0., 0., 0.,  ..., 0., 0., 0.]], device='cuda:0')

The max per-element difference (slow mode) is: 3.448352714485736e-13.
Fast gradcheck failed but element-wise differences are small. This means that the
test might've passed in slow_mode!
```
As the error message above describes, running in `fast_mode=False` allows the test to pass.

cc @ezyang @albanD @zou3519 @gqchen @pearu @nikitaved @soulitzer @Lezcano @Varal7 @mruberry @VitalyFedyunin @walterddr
Repository: flutter
Issue: Platform channel null safety errors could be clearer
Labels: framework,d: api docs,a: error message,a: annoyance,a: null-safety,P2,team-framework,triaged-framework

(synthesizing feedback from google customer)
Given a platform channel call like

```dart
Future<List<String>> getFoo() async {
    return await _channel
        .invokeMethod<List<String>>(arg);
}
```

the error returned is

```
04-15 14:04:36.151 15279 15453 I flutter : [SEVERE] get foo type 'List<Object?>' is not a subtype of type 'List<String>?' in type cast #0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:158:41)
04-15 14:04:36.151 15279 15453 I flutter : <asynchronous suspension>
04-15 14:04:36.151 15279 15453 I flutter : #1      SomeClass.getFoo (package:some.package/some_file.dart:17:12)
```

It's not immediately clear that it's the parametrization of the generic that has nullability differences. It's also not immediately clear what the solution is since https://dart.dev/codelabs/null-safety#exercise-nullable-type-parameters-for-generics points to the problem but not to the solution. 

Maybe this could be a linter caught in the IDE?
Repository: godot
Issue: Text is rendered with inconsistent offset/scale due to font oversampling
Labels: bug,confirmed,topic:gui

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

Godot version: 3.2.3.stable
<!-- Specify commit hash if using non-official build. -->


OS/device including version: Win10 Pro, GTX950M Driver: 466.11Both GLES 
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->


Issue description: Whenever i set my game to fullscreen the fonts get messed up. It looks like the letters are moved slightly up/down and missing their top/bottom parts with resptect to which direction they moved. The default font / custom fonts behave the same way. What is strange that it only happens when the window is in "fullscreen". So if i simply drag the window around to resize it nothing happens, the fonts are behaving as expected. However if i press the maximise button or run a code to set the window to fullscreen it happens.  Thanks in advance!

Stretch:
Mode: 2d
Aspect: keep



**Steps to reproduce: Not known. When the same project run by others it behaved as expected**


**Minimal reproduction project:

**
[Example.zip](https://github.com/godotengine/godot/files/6326810/Example.zip)
![1](https://user-images.githubusercontent.com/82614782/115059407-cf266a00-9ee6-11eb-8286-70f5147e1d36.png)
![2](https://user-images.githubusercontent.com/82614782/115059409-cfbf0080-9ee6-11eb-928e-3b4a62a267f0.png)



<!-- A small Godot project which reproduces the issue. Drag and drop a zip archive to upload it. -->
Repository: storybook
Issue: Args value difference depending on the opening of the story
Labels: bug,args,needs triage

**Describe the bug**

The content of args differ depending on how the story is displayed and whether the story has argTypes by default


**To Reproduce**
Example with angular and [this story](https://github.com/storybookjs/storybook/blob/2cdf01a07b54f9946cdb0453431ddf93510031bb/examples/angular-cli/src/stories/addons/controls/addon-controls.stories.ts#L5) : 

```ts
import { Story, Meta } from '@storybook/angular';
import { DocButtonComponent, ISomeInterface } from '../docs/doc-button/doc-button.component';

export default {
  title: 'Addons/Controls',
  component: DocButtonComponent,
} as Meta;

const Template: Story = (args, context) => {
  // to see agrs and argTypes in console
  console.log(args, context); // < ---

  return {
    props: args,
  };
};

const someDataObject: ISomeInterface = {
  one: 'Hello worlds',
  two: true,
  three: ['One', 'Two', 'Three'],
};

export const Basic = Template.bind({});
Basic.args = { label: 'Args test', isDisabled: false, someDataObject };

export const Disabled = Template.bind({});
Disabled.args = { label: 'Disabled', isDisabled: true };

```

1. opening of the project on the story `Basic` (/index.html?path=/story/addons-controls--basic)  (refresh the browser on this story if necessary !! )
the console.log displays : 
 ```
accent: undefined
appearance: "secondary"
buttonRef: undefined
calc: undefined
inputValue: undefined
internalProperty: "Public hello"
isDisabled: false
item: undefined
label: "Args test"
onClick: undefined
privateMethod: undefined
processedItem: undefined
protectedMethod: undefined
publicMethod: undefined
showKeyAlias: undefined
size: "medium"
someDataObject: {one: "Hello worlds", two: true, three: Array(3)}
somethingYouShouldNotUse: false
_inputValue: "some value"
_value: "Private hello"
``` 

2. navigate to the story `Disabled`.
the console.log displays : 
```
appearance: "secondary"
internalProperty: "Public hello"
isDisabled: true
label: "Disableds"
size: "medium"
somethingYouShouldNotUse: false
_inputValue: "some value"
_value: "Private hello"
```

3. refresh f5
the content of agrs is no longer the same 
it contains a lot of undefined values like step 1


**System**
Please paste the results of `npx sb@next info` here.

**Additional context**
- We also notice that default values of properties that have no control but with a default value are also added in args. 
but we would expect it to be present in argsType to have the docs. but not in the values of args
like `_inputValue` or `_value` or `internalProperty` (really dangerous for angular imho)

- There is also perhaps a link with the `show code` which is displayed or not depending on whether you are on the 1st story displayed
Repository: flutter
Issue: Google Maps: Proposal: Add Hexadecimal code / HSL for colors to get accurate colors.
Labels: c: new feature,a: quality,p: maps,package,c: proposal,team-ecosystem,P3,triaged-ecosystem

### Hi Google,

So I am developing an application where I need to fetch marker colors for Google maps in Flutter. To my dismay when I saw that Google maps flutter marker icon Color is only in BITMAPDESCRIPTOR and that is in only HUE format.

When the whole flutter application is using hexadecimal colors why are we only using the first value of HSL color and only "double hue."


**Problems and Limitations with this current scenario:
1) if we send only hue color it appears different on the application because the HSL (SATURATION AND LIGHT) are different for different colors. While Google is only using hue. This makes applications post very different results from expected results.

2) The Only solution I found on the internet was to send map marker icons and display them on the map. Which is also very absurd.**  


HERE in this example from bitmap.dart file of official google maps flutter.


```
  static const double hueRed = 0.0;

  /// Convenience hue value representing orange.
  static const double hueOrange = 30.0;

  /// Convenience hue value representing yellow.
  static const double hueYellow = 60.0;

  /// Convenience hue value representing green.
  static const double hueGreen = 120.0;

  /// Convenience hue value representing rose.
  static const double hueRose = 330.0;

```

![image](https://user-images.githubusercontent.com/43144366/115067545-85e81180-9f0a-11eb-9a84-0a7e8f929187.png)



**As you can see the expected result is far more different than the given input, This is devastating as our requirement is to create specific colors for different categories in the application**


### What Google can do?

Please create a unified system for flutter. When the whole application is using HEXADECIMAL APPROACH why only google maps is using the bitmap descriptor color and only in the HUE format without Saturation and Light.

Please either add HSL as a full-function to get the accurate colors. 

THANKS.
Repository: vscode
Issue: ALT+SCROLL in .deb should to be disable and run none
Labels: upstream,linux,trackpad/scroll

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
- VS Code Version:
- OS Version:

Steps to Reproduce:

1.
2.

<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes/No

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->

Just Do It!
1. install debian buster 10 with xfce
2. install mscode insider
3. open one file with ~1000 lines and send cursor to end
4. ALT+SCROLL UP results in scroll file and zoom screen when should to be only

- VS Code Version: code-insiders_1.56.0-1618572971_amd64.deb
- OS Version: Debian Buster 10 with XFCE
- Machine: STi IS1412 with 2GB and SSD 120GB with more 50% used and processor running in 1.20 Ghz

Does this issue occur when all extensions are disabled?: Yes/No -> To do Steps to Reproduce with disable extensions if func return true then if return No to do auto/bot to report.
Repository: pytorch
Issue: qnnpack uses deprecated pthreadpool APIs
Labels: triaged

Without adding a special `-Wno-deprecated-declarations` flag to compilation, building qnnpack (both the one in aten and in `third_party/QNNPACK` output a bunch of warnings. These APIs should be replaced by their supported counterparts.

```
[959/3019] Building C object confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/f32-vscaleextexp/gen/avx512f-p5-scalef-x144.c.o
In file included from ../third_party/XNNPACK/include/xnnpack.h:15:0,
                 from ../third_party/XNNPACK/src/xnnpack/params.h:15,
                 from ../third_party/XNNPACK/src/xnnpack/vscaleextexp.h:11,
                 from ../third_party/XNNPACK/src/f32-vscaleextexp/gen/avx512f-p5-scalef-x144.c:16:
../third_party/pthreadpool/include/pthreadpool.h:183:2: warning: ‘pthreadpool_function_1d_t’ is deprecated [-Wdeprecated-declarations]
  pthreadpool_function_1d_t function,
  ^~~~~~~~~~~~~~~~~~~~~~~~~
../third_party/pthreadpool/include/pthreadpool.h:189:2: warning: ‘pthreadpool_function_1d_tiled_t’ is deprecated [-Wdeprecated-declarations]
  pthreadpool_function_1d_tiled_t function,
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../third_party/pthreadpool/include/pthreadpool.h:196:2: warning: ‘pthreadpool_function_2d_t’ is deprecated [-Wdeprecated-declarations]
  pthreadpool_function_2d_t function,
  ^~~~~~~~~~~~~~~~~~~~~~~~~
../third_party/pthreadpool/include/pthreadpool.h:203:2: warning: ‘pthreadpool_function_2d_tiled_t’ is deprecated [-Wdeprecated-declarations]
  pthreadpool_function_2d_tiled_t function,
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../third_party/pthreadpool/include/pthreadpool.h:212:2: warning: ‘pthreadpool_function_3d_tiled_t’ is deprecated [-Wdeprecated-declarations]
  pthreadpool_function_3d_tiled_t function,
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../third_party/pthreadpool/include/pthreadpool.h:223:2: warning: ‘pthreadpool_function_4d_tiled_t’ is deprecated [-Wdeprecated-declarations]
  pthreadpool_function_4d_tiled_t function,
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
Repository: opencv
Issue: `cv2.VideoCapture().grab()` skips frames with .webm videos
Labels: priority: low,category: videoio



##### System information (version)
<!-- Example
- OpenCV => 4.2
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2017
-->

- OpenCV => 4.5.1
- Operating System / Platform => MacOS 10.14.6
- Compiler => clang++ (ver 9.1.0.9020039)

##### Detailed description

I'm using `cv2` and `pafy` to do work on streamed YouTube videos. If the stream is a webm, the `capture.grab()` method returns `False` prematurely (typically around >90% through the stream).

##### Steps to reproduce

<!-- to add code example fence it with triple backticks and optional file extension
    ```.cpp
    // C++ code example
    ```
 or attach as .txt or .zip file
-->
```.py
import cv2
import pafy

url = pafy.new('https://www.youtube.com/watch?v=rR4n-0KYeKQ').getbestvideo('webm').url
cap = cv2.VideoCapture(url) # fps = 23.98 and video length = 71 secs
theoretical_frames = cap.get(cv2.CAP_PROP_FRAME_COUNT) # so theoretical_frames is correct
actual_frames = 0

while True:
    if not cap.grab():
        break
    actual_frames += 1

print(actual_frames, theoretical_frames)
```
`1607 1716`

##### Issue submission checklist

 - [x] I report the issue, it's not a question
   <!--
   OpenCV team works with forum.opencv.org, Stack Overflow and other communities
   to discuss problems. Tickets with question without real issue statement will be
   closed.
   -->
 - [x] I checked the problem with documentation, FAQ, open issues,
       forum.opencv.org, Stack Overflow, etc and have not found solution
   <!--
   Places to check:
   * OpenCV documentation: https://docs.opencv.org
   * FAQ page https://github.com/opencv/opencv/wiki/FAQ
   * OpenCV forum: https://forum.opencv.org
   * OpenCV issue tracker: https://github.com/opencv/opencv/issues?q=is%3Aissue
   * Stack Overflow branch: https://stackoverflow.com/questions/tagged/opencv
   -->
 - [x] I updated to latest OpenCV version and the issue is still there
   <!--
   master branch for OpenCV 4.x and 3.4 branch for OpenCV 3.x releases.
   OpenCV team supports only latest release for each branch.
   The ticket is closed, if the problem is not reproduced with modern version.
   -->
 - [x] There is reproducer code and related data files: videos, images, onnx, etc
   <!--
   The best reproducer -- test case for OpenCV that we can add to the library.
   Recommendations for media files and binary files:
   * Try to reproduce the issue with images and videos in opencv_extra repository
     to reduce attachment size
   * Use PNG for images, if you report some CV related bug, but not image reader
     issue
   * Attach the image as archive to the ticket, if you report some reader issue.
     Image hosting services compress images and it breaks the repro code.
   * Provide ONNX file for some public model or ONNX file with with random weights,
     if you report ONNX parsing or handling issue. Architecture details diagram
     from netron tool can be very useful too. See https://lutzroeder.github.io/netron/
   -->
Repository: go
Issue: x/mobile/webview: cross iOS/android web view
Labels: NeedsInvestigation,FeatureRequest,mobile

This is a dup of https://github.com/golang/go/issues/10247, it was autoclosed.
Repository: go
Issue: x/tools/gopls: add a debug endpoint to download diagnostic information
Labels: NeedsInvestigation,FeatureRequest,gopls,Tools

A few patterns have emerged related to troubleshooting gopls issues:

- Someone files a gopls issue, and our first response is to ask them to attach logs. More than half the time (I'd guess), we don't get a follow up response from the person filing the issue.
- Someone encounters a bug, but can't repro in a fresh session and it's too late to capture logs in their current session.
- Someone has memory problems, and they have to grab a heap dump / profile. Again, this is a burden on users that often leads to disengagement.

EDIT: after a couple years, we have new ideas and new problems. Coopting this feature request for the v0.12.0 milestone.

Especially with the new gopls performance work, we need a way to collect debug information from an already running gopls. We've seen that custom commands are a good way to achieve this, as they leverage the LSP protocol and therefore don't need any additional endpoints. A custom debuging command should enable the following:

- Collecting memory statistics (I actually added such a  command in https://go.dev/cl/468935)
- Collecting pprof information.
- Collecting exported metrics from the debug package.
- Collecting recent logs from a ring buffer.
  - We should consider including 'trace' level logs that aren't reflected to the LSP client.
- Collecting bugs observed on the server (via bug package)

~With #45518, we'll be able to dynamically start the gopls debug server. This means that users should always be able to access a user interface into internals of the running gopls process. We should leverage this to make it easier to collect diagnostic information.~

~This is the idea we've discussed:~
 ~1. add a new endpoint to the debug server that provides a form allowing the user to select different types of diagnostic information (off the top of my head: RPC logs, heap dump, profile, execution traces), and specify a collection period.~
 ~2. when this form is submitted, start collecting this information for the specified period.~
 ~3. after collection completes, redirect the user to download a zipped payload that they can send to us.~
Repository: vscode
Issue: Views should use full name
Labels: bug,workbench-views

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->

1. Drag `NPM SCRIPTS` from Explorer container to Activity Bar
2. Hover over it or invoke context menu
3. It says `Explorer`

I think it can be solved by an extension using `contextualTitle`, but it's just logical for vscode to do that automatically and use the view id instead of a container name.

![Screenshot (467)](https://user-images.githubusercontent.com/9638156/115076839-cc873d00-9f05-11eb-97ab-4f4c711cbc17.png)
Repository: godot
Issue: Light2D and LightOccluder2D artifacts when using high smoothing values
Labels: topic:rendering,topic:2d

**Godot version:**
3.2.3


**OS/device including version:**
Nvidia GTX 1070, 460.67, GLES3


**Issue description:**
There's a square cutting in front of the occluder. Also the shadow is very sharp along the diagonals of that square.


**Steps to reproduce:**
Create a Light2D with Filter Smoothing, enough to make it visibly softer, and a LightOccluder2D to move around.
Here's a recording:

https://user-images.githubusercontent.com/9743949/115076617-7b774900-9f05-11eb-9925-621ba77dc33c.mp4


The diagonals accentuation of the shadows are still there with Gradient Length. It's not as obvious, but might be relevant for finding the root cause. A recording for this as well:

https://user-images.githubusercontent.com/9743949/115077259-6949da80-9f06-11eb-9fbb-9adb6d4637ca.mp4



**Minimal reproduction project:**
[Light2DArtifacts.zip](https://github.com/godotengine/godot/files/6327724/Light2DArtifacts.zip)
Repository: TypeScript
Issue: Missing type error for invalid use of #private field
Labels: Suggestion,Awaiting More Feedback

# Bug Report

ES #private fields are [not source-positional](https://github.com/tc39/proposal-class-fields/issues/328), but scoped to each instance of a class. (That is unfortunate, in my humble opinion). However TypeScript is not detecting this case.

### 🔎 Search Terms

typescript no type error private field mixin

### 🕗 Version & Regression Information

4.3-beta (I didn't try earlier)

### ⏯ Playground Link


[Playground link with relevant code](https://www.typescriptlang.org/play?target=99&ts=4.3.0-beta#code/C4TwDgpgBAwsD2AnAPAFSgXigbwL4D5MoA7CAdygAoA6WgQ0QHMBnALijuJAG0BdASkyFUAKBEAzAK7EAxsACW8YlABi8eAFl5AD3nFkMKBG3AIxACbNYCRPkoAhOswjsYg7CKhREEYJMTKMgA2TlZq8EYmZpZQjs44nl5QAMTi6kQAjABMAMyJXqbMwJRp8Ozh7vlJMkrM8EEQ1EHwjCXq1Knq-FW4ib29IsGhsHTAkaYWYepausSUAPIARgBWEHLuvUPMVgAiLePRU5o6egsra8AbYjXERVAyRKQUMKOD1IXFT1B7jPxAA)

### 💻 Code

```ts
type Ctor<T = {}> = new (...args: any[]) => T

function FooMixin<C extends Ctor>(Base: C) {
  return class Foo extends Base {
    #foo = 123
    test(foo: Foo) {
      console.log(foo.#foo)
    }
  }
}

class Cat extends FooMixin(Object) {}
class Dog extends FooMixin(Object) {}

const c = new Cat
c.test(new Dog) // Should there be a type error here, perhaps?
```

### 🙁 Actual behavior

No type error, but only a runtime error.

### 🙂 Expected behavior

There should perhaps also be a type error, if that's possible.

### Mixin docs

The [TypeScript Mixin documentation](https://www.typescriptlang.org/docs/handbook/mixins.html) advertises that people can use #private fields with class-factory mixins:

> ```ts
> // Mixins may not declare private/protected properties
> // however, you can use ES2020 private fields
> ```

This may lead people to the try them and they'll have this issue.