sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: RuntimeError: polar does not support automatic differentiation for outputs with complex dtype.
Labels: triaged,complex_autograd

## 🐛 Bug

<!-- A clear and concise description of what the bug is. -->

## To Reproduce

Steps to reproduce the behavior:

<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->
>>> x = torch.randn(3,4, dtype=torch.double, requires_grad=True)
>>> y = torch.randn(3,4, dtype=torch.double, requires_grad=True)
>>> c=torch.polar(x,y)
Traceback (most recent call last):
  File \"\<stdin\>\", line 1, in \<module\>
RuntimeError: polar does not support automatic differentiation for outputs with complex dtype.
## Expected behavior

<!-- A clear and concise description of what you expected to happen. -->

## Environment
 - PyTorch Version (e.g., 1.0):1.8.0
 - OS (e.g., Linux):MacOS
 - How you installed PyTorch (`conda`, `pip`, source):pip3
 - Build command you used (if compiling from source):
 - Python version:Python 3.7.4 (default, Sep  7 2019, 18:27:02)[Clang 10.0.1 (clang-1001.0.46.4)] on darwin
 - CUDA/cuDNN version: None
 - GPU models and configuration: None
 - Any other relevant information:

## Additional context

<!-- Add any other context about the problem here. -->
Repository: terminal
Issue: Allow smaller minimum width when in focus mode
Labels: Help Wanted,Area-UserInterface,Product-Terminal,Issue-Task

It is not current possible to resize the terminal window so that is narrower than around 460px.  I'm guessing this is to ensure there is enough room for tab headers and title bar etc.  However, it would be desirable, when in focus mode, to be able to narrow the window further.  This would facilitate simple "kiosk" apps (like the old Windows "widgets"). E.g. in the picture below, output is from a periodic script and is guaranteed never to exceed the text width being shown.  I'd like to be able to make the terminal window narrower to fit the text to avoid wasting screen real-estate.

![min_width](https://user-images.githubusercontent.com/9131337/111820854-e408e100-88d9-11eb-9650-fc8c9ef74363.png)

Note this is not the same as #6820 although it is related.  That request is to _prevent_ the user from narrowing the window beyond a certain threshold.
Repository: PowerToys
Issue: [telemetry] add telemetry events for all modules settings
Labels: Area-Telemetry,Priority-1

Once 0.35 is released and the new approach to send settings telemetry is validated, add the same approach to all other modules.
The new approach has been added by https://github.com/microsoft/PowerToys/pull/10328 and it applies to the plugin manager.

 - [x] Color Picker(#10417)
 - [x] FancyZones
 - [ ] File Explorer add-ons
 - [ ] Image Resizer
 - [ ] Keyboard Manager
 - [ ] Power Rename
 - [ ] PowerToys Run
    - [x] PowerToys Run - Plugin Manager (#10328)
 - [ ] Shortcut Guide
Repository: flutter
Issue: [google_maps_flutter] Maps is flickering on hot reload or marker updates
Labels: platform-android,c: performance,p: maps,package,has reproducible steps,P2,found in release: 2.0,found in release: 2.1,team-android,triaged-android

Hi,

Basically is this comment in StackOverflow: https://stackoverflow.com/questions/66245336/flutter-constant-flickering-in-the-map?noredirect=1#comment117118610_66245336

The minimal code doesn't show this performance: https://github.com/flutter/flutter/issues/43785#issuecomment-790855719

The main problem, the full code is a production app so I can't share anything about the code.

What the most I can share is the full widget structure:

```
WillPop
- MaterialApp
-- Scaffold
--- AppBar
--- SizedBox
---- Column
----- Container
------ Row
------- Text with setState
------- Widget2
----- Container
------ Flexible
-------- Column (visible when click in BottomNavigation to be offline)
-------- FractionallySizedBox
--------- GoogleMaps (visible when click in BottomNavigation to be online)
--- FloatingActionButton
--- BottomNavigationBar
```
When I do a hot reload, the map flicks and the zoom is lost.

When I track the current location, with any marker inside the map, it starts to flick, and if I let the app running for a while, it closes automatically.

<details>
<summary>Flutter doctor</summary>

```
  [✓] Flutter (Channel stable, 1.22.6, on Linux, locale es_CO.UTF-8)
      • Flutter version 1.22.6 at /home/nestor/bin/flutter-sdk
      • Framework revision 9b2d32b605 (hace 8 semanas), 2021-01-22 14:36:39 -0800
      • Engine revision 2f0af37152
      • Dart version 2.10.5
  
  [!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
      • Android SDK at /home/nestor/Android/Sdk
      • Platform android-30, build-tools 30.0.3
      • Java binary at: /home/nestor/bin/android-studio/jre/bin/java
      • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
      ✗ Android license status unknown.
        Run `flutter doctor --android-licenses` to accept the SDK licenses.
        See https://flutter.dev/docs/get-started/install/linux#android-setup for more details.
  
  [!] Android Studio
      • Android Studio at /home/nestor/bin/android-studio
      ✗ Flutter plugin not installed; this adds Flutter specific functionality.
      ✗ Dart plugin not installed; this adds Dart specific functionality.
      • android-studio-dir = /home/nestor/bin/android-studio
      • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
  
  [✓] VS Code (version 1.54.3)
      • VS Code at /usr/share/code
      • Flutter extension version 3.20.0
  
  [✓] Connected device (1 available)
      • GT N5110 (mobile) • 41038b16e6ad4043 • android-arm • Android 7.1.2 (API 25)
  
  ! Doctor found issues in 2 categories.
```

</details>
Repository: pytorch
Issue: Missing tests for gradcheck
Labels: module: autograd,module: tests,triaged

This issue tracks the missing tests that might be useful to add:
- fail when we complete backward while running with undefined gradients but the output of .grad() is not none
- fail when grad_input is incorrect dtype/size (this is not able to be done with hooks because hooks cannot modify size of tensors)

cc @ezyang @albanD @zou3519 @gqchen @pearu @nikitaved @soulitzer @Lezcano @Varal7 @mruberry @VitalyFedyunin @walterddr
Repository: pytorch
Issue: [JIT] TorchScript does not correctly handle `torch.` namespace functions called with `kwargs`
Labels: oncall: jit,days

```
import torch

def foo(x):
    return torch.sigmoid(input=x)

x = torch.randn(3, 4)
print(foo(x))
"""
tensor([[0.3897, 0.3828, 0.1852, 0.8445],
        [0.2609, 0.6442, 0.3572, 0.7560],
        [0.1253, 0.4718, 0.6553, 0.1772]])
"""

scripted = torch.jit.script(foo)
"""
Traceback (most recent call last):
  File "ns.py", line 9, in <module>
    scripted = torch.jit.script(foo)
  File "/data/users/jamesreed/pytorch/torch/jit/_script.py", line 995, in script
    qualified_name, ast, _rcb, get_default_args(obj)
RuntimeError: 
Arguments for call are not valid.
The following variants are available:
  
  aten::sigmoid(Tensor self) -> (Tensor):
  Argument self not provided.
  
  aten::sigmoid.out(Tensor self, *, Tensor(a!) out) -> (Tensor(a!)):
  Argument self not provided.

The original call is:
  File "ns.py", line 4
def foo(x):
    return torch.sigmoid(input=x)
           ~~~~~~~~~~~~~ <--- HERE

"""
```

The PyTorch ops in the `torch.` namespace take the input argument with kwarg name `input`, not `self`

cc @gmagogsfm
Repository: flutter
Issue: Fix and re-enable disabled shell_tests testcases
Labels: team,engine,dependency: fuchsia,P2,team-engine,triaged-engine

I disabled the tests
```
shell_tests
              ShellTest.CacheSkSLWorks
              ShellTest.FrameRasterizedCallbackIsCalled
              ShellTest.ExternalEmbedderNoThreadMerger
              ShellTest.OnPlatformViewDestroyWithoutRasterThreadMerger
              ShellTest.ReportTimingsIsCalledImmediatelyAfterTheFirstFrame
              ShellTest.DisallowedDartVMFlag
              ShellTest.SetResourceCacheSize
              ShellTest.SetResourceCacheSizeEarly
              ShellTest.SetResourceCacheSizeNotifiesDart
              ShellTest.Screenshot
              ShellTest.RasterizerScreenshot
              ShellTest.DiscardLayerTreeOnResize
```
on Fuchsia Emulator. To see the test fail, you can remove the test filters at

https://flutter.googlesource.com/recipes/+/refs/heads/master/recipes/femu_test.py#190

Then run the femu builder
```
led get-builder 'luci.flutter.try:Linux Fuchsia' | led edit -r femu_test | led edit-recipe-bundle | led launch
```
Repository: TypeScript
Issue: JS Intellisense not detecting ES6 Symbol properties assigned after Initialization
Labels: Bug

<!-- ⚠️⚠️ 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: 1.54.3
- OS Version: Windows 10 Pro, version 20H2, build 19042.804

Steps to Reproduce:

1. Initialize a Symbol
2. Initialize an empty object literal
3. Assign the object a function, using the symbol as its property

The following code also demonstrates some of the steps to reproduce:

```js
const symKey = Symbol();


/** @namespace */
var objLiteral = {
    literalPublicFn1() {},

    /**
     * You found the secret fn!
     */
    [symKey]() {},
};


/** @namespace */
var objAssigned = {};

/** @memberof objAssigned */
objAssigned.laterPublicFn1 = function() {};

/** 
 * You found the secret fn!
 * @memberof objAssigned 
 * */
objAssigned[symKey] = function () {}
```

For both objects, the string properties are picked up by Intellisense and autocompleted as expected. However, Intellisense only provides function info for the symbol on the `objLiteral` object, where the symbol property was declared as part of the literal. For the `objAssigned` object, where the symbol property was assigned after initialization, no function info is provided.

In other words, intellisense works when calling `objLiteral[symKey]()` but not when calling `objAssigned[symKey]()`

<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes

<!-- 🪓 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 direct to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
Repository: TypeScript
Issue: Method defined with defineProperty is not callable
Labels: Bug

# Bug Report

### 🔎 Search Terms
defineProperty callable

### 🕗 Version & Regression Information

- This is the behavior in every version I tried

### ⏯ Playground Link

[Playground link with relevant code](https://www.typescriptlang.org/play?ts=4.2.3&useJavaScript=true#code/GYVwdgxgLglg9mABAQQBQEpEG8BQBfHHAeQCMArAU2gDoATC4GMCgBQCc4AHCtqAT1TJqnDlDj9uAGkQAiALYzpWRADcAhgBsQFAFyJQkWAkRyM2PNIDubGFDUkNuxFDbbpEBIwDmINvcd6LtqIeOgA3DgeYADOUIhqiAC8iMyWKBgROGrUpuiEhEA)

### 💻 Code

<!-- Please post the relevant code sample here as well-->
```js
// This is JavaScript, not TypeScript
function A() {} // define A with class syntax leads to the same results

Object.defineProperty(A.prototype, "m", { value: function m() {}, writable: true, configurable: true });
const a = new A();

a.m()
```

### 🙁 Actual behavior
TypeScript identifies `m` as a method, but says it has no call signatures: Type '{}' has no call signatures.

### 🙂 Expected behavior
TypeScript allows `a.m()`.
Repository: pytorch
Issue: Generate delegates for all non-structured kernels
Labels: triaged,module: dispatch

- New Delegate dispatch key, not used in native functions yaml
- Generate Delegates for ALL operations
- Rename Math to Composite
Repository: flutter
Issue: canvaskit missing sampling variants in 2 cases
Labels: dependency: skia,platform-web,a: images,e: web_canvaskit,P2,team-web,triaged-web

Filing a copy of https://bugs.chromium.org/p/skia/issues/detail?id=11732 here for tracking.

From @flar 

> In reworking the canvaskit renderer for Flutter web to switch over to the new sampling options, I found 2 areas where we don't yet see APIs that take the new parameters.
> 
> Canvas.drawAtlas has no sampling variants - i.e. drawAtlasOptions, drawAtlasCubic
> 
> ImagerFilter.MakeMatrixTransform still takes FilterQuality, but no sampling options/variants
Repository: flutter
Issue: Arrow keys in RTL move the wrong way
Labels: a: text input,framework,f: material design,a: internationalization,has reproducible steps,P2,found in release: 2.1,team-framework,triaged-framework

The left/right arrow keys should move the caret left/right respectively, regardless of the text direction.  In Flutter they move in the wrong direction in RTL text.

The methods that handle this in RenderEditable should be updated to perform the correct behavior without being renamed.  ~~So for example, the method [_moveGivenSelectionLeft](https://github.com/flutter/flutter/blob/8c44abc009a333b0494598c0cfda0fbc07358234/packages/flutter/lib/src/rendering/editable.dart#L735) actually moves the selection upstream right now, not necessarily left.  It should be modified to move the selection left like it says.~~ This is out of date, see below.

## Steps to Reproduce

1. Run the app below, which is just a TextField with some Arabic text in it, on a device with arrow keys.
2. Try to navigate with the left and right arrow keys.

**Expected results:** The cursor moves left with the left key and right with the right key.  Tested on TextEdit on a Mac after changing my keyboard to Arabic.

**Actual results:** The cursor movement direction is reversed.

<details>
  <summary>Code</summary>

```dart
import 'package:flutter/material.dart';
 
void main() {
  runApp(MyApp());
}
 
class MyApp extends StatelessWidget {
  final TextEditingController controller = TextEditingController(text: 'شسيب');

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: TextField(
            controller: controller,
          ),
        ),
      ),
    );
  }
}
```

</details>
Repository: pytorch
Issue: [package] Buck integration for dependency analysis
Labels: triaged

## 🚀 Feature
Buck is used internally as a build system and already has an understanding of the dependencies of a package. `torch.package` should be able to interoperate with and reuse this Buck dependency graph to automatically manage externs for a given buck target.
Repository: PowerToys
Issue: [Feature Request] Device Dependent Primary Mouse Button Configuration
Labels: Idea-Enhancement,Idea-New PowerToy,Area-Accessibility

## 📝 Provide a description of the new feature

_What is the expected behavior of the proposed feature?  What is the scenario this would be used?_

Due to a damaged shoulder I use a different mouse button as my primary when using an external mouse (_right mouse, left touchpad_). For Windows versions prior to Windows 10 it was possible to configure the mouse and touchpad separately to use different buttons so that switching was an automatic process. Unfortunately this now does not seem to be the case and touchpad settings defer to the mouse settings whatever configuration interface you navigate via. 

![image](https://user-images.githubusercontent.com/385879/111853838-834aca00-8914-11eb-8364-8a793e1d067d.png)

I have a Surface Book 2 with the latest drivers and Windows reports both the trackpad and the external mouse as simple HID-compliant mouse with no additional custom drivers available.

![image](https://user-images.githubusercontent.com/385879/111853994-079d4d00-8915-11eb-9e38-3144d84ff854.png)

What I would love to see is a way to assign separate primary mouse buttons for different mice via Power Tools so that I can switch between without having to open settings and manually do so. 

As you can see I am not alone in experiencing this issue.

https://answers.microsoft.com/en-us/windows/forum/windows_10-hardware-winpc/windows-10-different-primary-button-for-two-mice/0b1916e2-a38b-419f-884d-519a37fdf4db

---

If you'd like to see this feature implemented, add a 👍 reaction to this post.
Repository: pytorch
Issue: [package] Clear and minimal interface for what a package provides
Labels: triaged

## 🚀 Feature
It would be great if a package had a clear and minimal interface that can be used to determine precisely what functions a package provides.  


More info: https://fb.quip.com/SXUTA2Lbh7G6
Repository: pytorch
Issue: Support `Generic` Type in TorchScript
Labels: oncall: jit,weeks

## 🚀 Feature
TorchScript has partial support for inheritance of `nn.Module`s. Python's generic type is one way to meta-program a subclass of a Module to have different types while still sharing code in base implementations. However, this is currently not supported in TorchScript.

## Motivation

https://fburl.com/xipyy7q4

## Alternatives

Perform manual TypeVar replacement on strings representing code and using `ScriptModule` and its `define()` method to define dynamic methods out of processed string.

## Additional context

Python's `typing` module provides `get_args` method that can extract concrete type of generic type placeholders, see this example:
```
import torch
from typing import TypeVar, Generic, get_args, get_origin

T = TypeVar( "T" )

class Base(torch.nn.Module, Generic[T]):
    def forward(self) -> T:
        return 1


class Derived( Base[int] ):
    pass

print(get_args(Derived.__orig_bases__[0]))
```

It will print `(<class 'int'>,)`. 

However, I haven't figured out how to map placeholder name `T` to the extracted type, potentially it needs source code parsing of `Base` class.

## Current Behavior
If we try to `torch.jit.script` an instance of `Derived`, the error TorchScript gives is:
```
RuntimeError:
Unknown type name 'T':
  File "simple_generics.py", line 7
    def forward(self) -> T:
                         ~ <--- HERE
        return 1
```

cc @gmagogsfm
Repository: pytorch
Issue: [package] Heuristics for extern-ing common dependencies
Labels: triaged

## 🚀 Feature
In addition to automatically externing certain stdlib modules, we should have heuristics that we apply to automatically extern common dependencies like thrift.
Repository: godot
Issue: GLES2 referencing `DEPTH_TEXTURE` in shader corrupts `SCREEN_TEXTURE`
Labels: bug,topic:rendering,confirmed,documentation,topic:shaders



<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:**
<!-- Specify commit hash if using non-official build. -->
v3.2.3.stable.mono.official

**OS/device including version:**
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->
Windows 10. OpenGL ES 2.0 Renderer: GeForce RTX 2070 Super/PCIe/SSE2


**Issue description:**
<!-- What happened, and what was expected. -->
For 3D graphics and GLES2 if you reference DEPTH_TEXTURE in shader in anyway SCREEN_TEXTURE becomes completely white. The simplest example is: shader with code
```
shader_type spatial;

void fragment() {
	ALBEDO=texture(SCREEN_TEXTURE,SCREEN_UV).rgb;
}
```
allows objects to be visible behind the mesh. But when any reference in code to the DEPTH_TEXTURE is made for example
```
shader_type spatial;

void fragment() {
	texture(DEPTH_TEXTURE,UV);
	ALBEDO=texture(SCREEN_TEXTURE,SCREEN_UV).rgb;
}
```
mesh becomes white. According to Godot documentation, DEPTH_TEXTURE  and SCREEN_TEXTURE  should be independent. The issue occurs only with GLES2, while GLES3 renders correctly.

**Minimal reproduction project:**
<!-- A small Godot project which reproduces the issue. Drag and drop a zip archive to upload it. -->
[gles2bug.zip](https://github.com/godotengine/godot/files/6174715/gles2bug.zip)
Repository: pytorch
Issue: RMSProp documentation is confusing
Labels: module: docs,module: optimizer,triaged,enhancement

## 📚 Documentation

<!-- A clear and concise description of what content in https://pytorch.org/docs is an issue. If this has to do with the general https://pytorch.org website, please file an issue at https://github.com/pytorch/pytorch.github.io/issues/new/choose instead. If this has to do with https://pytorch.org/tutorials, please file an issue at https://github.com/pytorch/tutorials/issues/new -->

The documentation on the parameters for [`torch.optim.RMSprop`][torch.rmsprop] is vague and seems to contradict itself. I couldn't tell what `alpha` means without looking at the code (it's the exponential discount factor for the second moment running average, [which Keras calls `rho`][keras.rmsprop]). On the other hand, the sentence
> The effective learning rate is thus α/(sqrt(v) + ε) where α is the scheduled learning rate and v is the weighted moving average of the squared gradient.

uses alpha to mean the learning rate, which corresponds to `lr`. The documentation also does not explain how the second moment running average is computed, which would help explain how to use the discount rate `alpha`.

[torch.rmsprop]: https://pytorch.org/docs/stable/optim.html#torch.optim.RMSprop
[keras.rmsprop]: https://keras.io/api/optimizers/rmsprop/

cc @brianjo @mruberry @vincentqb
Repository: create-react-app
Issue: Create react app with yarn 2 results in compile time error
Labels: needs triage,issue: bug report

### Describe the bug

Running create react app with yarn 2 as the package manager results in an app that cannot be started. The specific error that occurs is:

'Failed to load config "react-app" to extend from.'

The current yarn version being used is 2.4.1.
Repository: neovim
Issue: Visual-Block insert does not insert all characters
Labels: enhancement,bug-vim

<!-- Before reporting: search existing issues and check the FAQ. -->

- `nvim --version`: NVIM v0.5.0-dev+1135-g0f318e0f9-dirty
- `vim -u DEFAULTS` (version: 8.2) behaves differently? Yes, but worse
- Operating system/version: Linux 5.10.0-1-amd64 #1 SMP Debian 5.10.5-1 (2021-01-09) unknown unknown GNU/Linux
- Terminal name/version: kitty 0.19.3 created by Kovid Goyal
- `$TERM`: xterm-kitty

### Steps to reproduce using `nvim -u NORC`

Insert the following text in any file:
```



        onAuthRequired
        onBeforeRequest
        onBeforeSendHeaders
        onHeadersReceived
```

Place the cursor on the first `o` of the first line containing text, go in visual-block mode and select all `o`s. Go in insert mode with `I`, press backspace until all space has been removed and then type `browser.webrequest.` and exit insert mode.

### Actual behaviour
```
browser.webrequest.onAuthRequired
        webrequest.onBeforeRequest
        webrequest.onBeforeSendHeaders
        webrequest.onHeadersReceived
```

### Expected behaviour
```
browser.webrequest.onAuthRequired
browser.webrequest.onBeforeRequest
browser.webrequest.onBeforeSendHeaders
browser.webrequest.onHeadersReceived
```