sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: TypeScript
Issue: source.organizeImports organizes imports to a sort order that tslint complains about
Labels: Suggestion,Experience Enhancement

Issue Type: <b>Bug</b>

settings:
	"editor.codeActionsOnSave": {
		"source.fixAll": true,
		"source.organizeImports": true
	}
tslint.json:
{
    "extends": "tslint-microsoft-contrib",
...

Code:
```ts
import * as cp from 'child_process';
import * as fse from 'fs-extra';
import { IActionContext, parseError } from 'vscode-azureextensionui';
import { ImageNode } from '../explorer/models/imageNode';
import { ext } from '../extensionVariables';
import { docker, DockerEngineType } from './utils/docker-endpoint';
import { ImageItem, quickPickImage } from './utils/quick-pick-image';
import os = require('os');
import vscode = require('vscode');
```
That gives this error:
![image](https://user-images.githubusercontent.com/6913354/54235240-0a673b00-44ce-11e9-80d1-f25f8d158e6d.png)
 
Auto-fixing the lint issue reorders to this code:

```ts
import * as cp from 'child_process';
import * as fse from 'fs-extra';
import os = require('os');
import vscode = require('vscode');
import { IActionContext, parseError } from 'vscode-azureextensionui';
import { ImageNode } from '../explorer/models/imageNode';
import { ext } from '../extensionVariables';
import { docker, DockerEngineType } from './utils/docker-endpoint';
import { ImageItem, quickPickImage } from './utils/quick-pick-image';
```

Then pressing CTRL+S to save puts it back to the first form, which causes the lint error again.


VS Code version: Code - Insiders 1.33.0-insider (d77d8d561143cc021a82664efc056755c075d070, 2019-03-11T08:47:23.627Z)
OS version: Windows_NT x64 10.0.17763

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Xeon(R) W-2133 CPU @ 3.60GHz (12 x 3600)|
|GPU Status|2d_canvas: enabled<br>checker_imaging: disabled_off<br>flash_3d: enabled<br>flash_stage3d: enabled<br>flash_stage3d_baseline: enabled<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>native_gpu_memory_buffers: disabled_software<br>rasterization: enabled<br>surface_synchronization: enabled_on<br>video_decode: enabled<br>webgl: enabled<br>webgl2: enabled|
|Memory (System)|31.73GB (16.54GB free)|
|Process Argv||
|Screen Reader|no|
|VM|0%|

</details><details><summary>Extensions (13)</summary>

Extension|Author (truncated)|Version
---|---|---
vscode-antlr4|mik|2.1.1
vscode-cosmosdb|ms-|0.10.0
extension-manifest-editor|ms-|0.1.5
azure-account|ms-|0.8.0
csharp|ms-|1.17.1
vscode-typescript-tslint-plugin|ms-|1.0.0
azurerm-vscode-tools|msa|0.5.0
vscode-docker|Pet|0.5.2
vscode-sort-json|ric|1.13.0
scope-info|sie|0.2.0
tmcolor|sle|0.0.1
sort-lines|Tyr|1.8.0
win-ca|uko|2.4.0


</details>
<!-- generated by issue reporter -->
Repository: TypeScript
Issue: Including full error range in TSC output
Labels: Suggestion,Awaiting More Feedback

From https://github.com/Microsoft/vscode/issues/70465

**Repo**
1. For the TS code with `strict` enabled:

    ```ts
    const obj = {
        prop: Date.now() ? 'str' : undefined
    }
    
    obj.prop.toLowerCase();
    ```

1. Run a tsc task in VS Code to see reported errors (make sure to close the ts file as well)

**Problem**
We currently only report the potential undefined access error on `obj` in the line `obj.prop.toLowerCase();`. The correct range should span `obj.prop`.

The root cause of this is that VS Code's problem matcher does not have the full range of the error from tsc, only the start line and column. Here's the tsc output:

```
src/index.ts:7:1 - error TS2532: Object is possibly 'undefined'.

7 obj.prop.toLowerCase();
  ~~~~~~~~
``` 

With the current tsc output, there is also no way to extract the full range of the error. 

**Request**
Somewhere in the line `src/index.ts:7:1 - error TS2532: Object is possibly 'undefined'.
`, add the end position as well so that tooling can properly highlight it. We would want to do this in a way that doesn't detract from the error's human readability. This needs some thought
Repository: svelte
Issue: Some way of binding bidirectionally to all props in an object, capturing all custom events.
Labels: feature request,temp-stale

There seems to be no way of bidirectionally binding to all of a component's arbitrary props. 

```html
<!-- pass arbitrary props, already there -->
<svelte:component this={someComponent} {...itsProps} />

<!-- get changes to arbitrary props, missing, various potential syntaxes follow -->
<svelte:component this={someComponent} bind:{...itsProps} />

<svelte:component this={someComponent} bind:$$props />

<svelte:component this={someComponent} {...itsProps} on:propsChanged={propHandler} />
```

I would say it could/should also be available outside of `<component/>` to enable generic handling of children.

This would be useful for updating a property tree of components, which could be useful for serializing and deserializing component trees. Also for the particular situation of svelte-subdivide, which would benefit from persisting a prop configuration.

For example, at present [svelte/svelte-subdivide](https://github.com/svelte/svelte-subdivide) can receive a layout property specifying a layout geometry that will instantiate the same component in each Pane, but you can't specify the properties of this object, much less for each indivdual instance.

I'm adding this capability to [it](https://github.com/saabi/svelte-subdivide/tree/child-props). In that version, you can pass arbitrary component props individually to each pane. 

_However_, I can't capture those arbitrary props later on if they change.

It could also be useful to capture all custom events in a similar fashion, I have no need for it at present and so far can only think of its usefulness for debugging perhaps.

## Considerations

Should properties from grandchild components be available for serialization as well? How would one choose child props, or props from all descendants?

## Example
The closest I can achieve so far: 

https://v3.svelte.technology/repl?version=3.0.0-beta.15&gist=52549b8577ff8f3f47cd25139877d371

But in the example, I'm forced to add logic to Component3.svelte, which ideally would be a generic component with no special custom logic.
Repository: vscode
Issue: Settings UI is overwhelming for extensions with lots of settings
Labels: feature-request,settings-editor

Specifically for GitLens, I find the settings ui practically unusable -- mainly because GitLens has LOTS of settings, but also because there is no extension controlled order (alphabetic imo doesn't work well), no extension controlled grouping (other than alphabetic proximity), and more. And since the new settings ui became the default, I've seen an uptick in users running into many issues trying to find settings. 

To combat this (and really this was long before there was even a settings ui), GitLens provides its own built-in settings editor which is highly tailored and interactive to help guide users. But users have a very hard time discovering it. And again since the settings ui became the default users think that the vscode settings ui is the same as GitLens' settings editor, even when I explicitly provide the command to be run from the palette.

Given the above, I would *really* love a way from the vscode settings ui, extension page, etc, to at least advertise (or better yet replace/block the built-in ui) and direct people to GitLens' settings editor. Maybe something like a mini-banner with a link or something to guide a user to a much better experience.

/cc @roblourens
Repository: neovim
Issue: filter :bufdo with regex pattern
Labels: enhancement,core

I'd like to request a new feature where ex commands like `:bufdo` `:tabdo` `:windo` would accept optional regex parameter to filter the scope.
Repository: create-react-app
Issue: Feature request: importing json from sass
Labels: issue: proposal

It would be great to have out of the box support for import JSON files in SASS/CSS Modules. One source of truth for configurations. Perhaps something like this: 

https://github.com/Updater/node-sass-json-importer
Repository: flutter
Issue: [Flutter Driver] How to submit a TextField?
Labels: a: tests,framework,t: flutter driver,c: proposal,P2,team-framework,triaged-framework

## Steps to Reproduce

1. Create a TextField inside the app with an onSubmitted handler.
2. Write a driver test case that inputs text into it

(so far, this works flawlessly)

But now what, how can I submit the TextField to trigger onSubmitted without creating a separate UI element that does that when tapped?

```
[√] Flutter (Channel stable, v1.2.1, on Microsoft Windows [Version 10.0.17134.648], locale en-DE)
    • Flutter version 1.2.1 at G:\FlutterSDK
    • Framework revision 8661d8aecd (4 weeks ago), 2019-02-14 19:19:53 -0800
    • Engine revision 3757390fa4
    • Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)

[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at G:\AndroidSDK
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = G:\AndroidSDK
    • Java binary at: G:\Program Files\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
    • All Android licenses accepted.

[√] Android Studio (version 3.3)
    • Android Studio at G:\Program Files\Android Studio
    • Flutter plugin version 33.3.1
    • Dart plugin version 182.5215
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

[√] Connected device (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)

• No issues found!
```
Repository: rust
Issue: Consider appending to CLI list arguments rather than overwriting
Labels: C-enhancement,T-compiler

Right now with (at least) `-C` and `-Z` command line arguments that are lists, specifying the argument multiple times _overwrites_ the earlier options. It probably would be more logical to _append_ to that list, but this may be a breaking change for stable flags.
Repository: puppeteer
Issue: SOCKS proxy authentication
Labels: feature

According to [this comment](https://github.com/GoogleChrome/puppeteer/issues/426#issuecomment-345830027), `page.authenticate` doesn't work for SOCKS proxy.

We should make `page.authenticate` more capable to drive auth for proxies and servers.
Repository: rust
Issue: #[panic_handler] does not work with std.
Labels: T-lang

The `#[panic_handler]` attribute does not work when using the std library. Thus, there's no way for libraries to register custom panic handlers without resorting to a lazy_static or similar global initializer.

This seems like quite an oversight.
Repository: pytorch
Issue: [JIT Script] Need support on distributions.Categorical.
Labels: oncall: jit,triaged

## 🚀 Feature
Need jit script module to support `torch.distributions.Categorical`.

## Motivation

Our generative model need a sample layer during inference. Currently we are missing sampling support for script model.

## Alternatives

Categorical is a simple method to implement, we can implement a less performant workaround as below:

E.g:
We wish to have:

    sample = torch.distributions.Categorical(posterior).sample().float()

This is equivalent to:

    sample = 0
    sum = posterior[0]
    rand = torch.rand(1).squeeze()
    while bool(torch.lt(sum, rand)):
        sample += 1
        sum += posterior[sample]
    sample = torch.tensor(sample).cpu().float()

Just found a functional call that I didn't noticed before, this can solve my current problem perfectly:

    sample = torch.multinomial(posterior, 1).squeeze().cpu()

We can live with the second solution for now. But it's slow and eventually can be an issue.

## Additional context

The main issue is `torch.distributions.Categorical` is a class, we need to initialize it with different posterior (and get only one sample) in each inference step. And jit script does not support class object initialization. Can we make a function to take a posterior as parameter and sample directly from it?


cc @suo
Repository: pytorch
Issue: torch.flip is inconsistent with np.flip and also uses `dims` arg instead of `dim`
Labels: triaged,module: numpy,function request

Functions like `torch.sum` and `torch.mean` support multi-dim through argument `dim` accepting a tuple or a list.

`torch.flip` instead asks for an argument named `dims`. Yes, it doesn't do reduction, but still it processes multiple dimensions, for the sake of consistency, I propose it supports `dim` as well (and maybe `dims` may be deprecated).

https://pytorch.org/docs/master/torch.html#torch.flip says that `dims (a list or tuple) – axis to flip on` is a list or tuple, but in fact a scalar works as well, so explicit `x.flip(dim = 1)` does make sense.

Same for `torch.rot90`, `torch.roll` and `torch.tensordot` (along with `torch.flip` they are the only 4 functions to use argument name `dims`)

cc @mruberry @rgommers
Repository: go
Issue: net/http: document that context cancellation does not apply to writable bodies
Labels: Documentation,NeedsInvestigation

https://github.com/golang/go/issues/26937

To enable http.ReverseProxy to cleanly support websocket connections, http.Transport began returning writable response bodies.

This is documented. But what's undocumented is how this response body deals with the request context's cancellation. 

See https://github.com/golang/go/issues/26101

Right now, the documentation says the cancellation of the request context will cause the response body to close, even if it is writable. However, this is not the case. If a writable response body is returned, cancellation of the request context does not affect it. This is certainly the right behaviour but should be documented.
Repository: vue
Issue: v-on listeners array
Labels: feature request,has workaround

### What problem does this feature solve?
Two components with scoped slots that provide events to a child component. If they are used together some listeners may be overwritten if not normalised first. 

```html
<v-menu>
  <template #activator="{ on: menu }">
    <v-tooltip bottom>
      <template #activator="{ on: tooltip }">
        <v-btn v-on="{ ...tooltip, ...menu }"> <!-- If both have a click event, only the menu will work -->
          Dropdown w/ Tooltip
        </v-btn>
      </template>
      <span>Im A ToolTip</span>
    </v-tooltip>
  </template>
  <v-list>[...]</v-list>
</v-menu>
```

### What does the proposed API look like?
```html
<component v-on="[{ click: foo }, { click: bar }]">
```
Equivalent to:
```html
<component v-on="{ click: [foo, bar] }">
```

In the first example:
```html
<v-menu>
  <template #activator="{ on: menu }">
    <v-tooltip bottom>
      <template #activator="{ on: tooltip }">
        <v-btn v-on="[tooltip, menu]">
          Dropdown w/ Tooltip
        </v-btn>
      </template>
      <span>Im A ToolTip</span>
    </v-tooltip>
  </template>
  <v-list>[...]</v-list>
</v-menu>
```

Currently this throws `[Vue warn]: v-on without argument expects an Object value`

<!-- generated by vue-issues. DO NOT REMOVE -->
Repository: rust
Issue: Improve the help message for the error on using fully qualified syntax for nested associated types
Labels: C-enhancement,A-diagnostics,T-compiler,A-suggestion-diagnostics

Here is a small example to reproduce the error and its help message:
```
trait A {
    type Item;
}

trait B {
    type Item: A;

    fn trait_fn(x: Self::Item::Item);
}
```

Then I get the following error:
```
error[E0223]: ambiguous associated type
 --> src/main.rs:8:20
  |
8 |     fn trait_fn(x: Self::Item::Item);
  |                    ^^^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<<Self as B>::Item as Trait>::Item`
```

It looks like the word "`Trait`" in `<<Self as B>::Item as Trait>::Item` should be replaced with the trait name `A` so that the suggested expression compiles:
**help: use fully-qualified syntax: `<<Self as B>::Item as A>::Item`**.
Repository: pytorch
Issue: Android NNAPI support of Caffe2
Labels: caffe2

## ❓ Questions and Help
I want to run my nerual network model on Android mobile phone with Snapdragon DSP or Huawei NPU.

As I know, Android NNAPI supports vendor-specific drivers, including drivers for Snapdragon DSP or Huwaei NPU.

I saw some code supporting NNAPI for Android phone in Caffe2.
* [nnapi.h](https://github.com/pytorch/pytorch/blob/master/caffe2/mobile/contrib/nnapi/nnapi.h)

However, Caffe2 seems to use NNAPI on only its own test or benchmark code.
NNAPI support code seems not to be integrated into Caffe2.
* [nnapi_benchmark.cc](https://github.com/pytorch/pytorch/blob/master/caffe2/mobile/contrib/nnapi/nnapi_benchmark.cc)
* [nnapi_test.cc](https://github.com/pytorch/pytorch/blob/master/caffe2/mobile/contrib/nnapi/nnapi_test.cc)

Is there any plan to support Android NNAPI on Caffe2 main code?
Repository: flutter
Issue: Cupertino blurs should boost saturation
Labels: c: new feature,framework,engine,f: cupertino,customer: crowd,P3,team-design,triaged-design

Apple makes extensive use of blur on iOS/MacOS to guide the users focus and attention. As announced in the 2019 roadmap, Flutter wants to expand to platforms beyond mobile (such as Mac/Web) but still wants to provide the most native experience possible. This could be easily improved by providing a more open ImageFilter API to give developers the power to customize blur effects.

In order to add a iOS like blur effect in CSS, apple is using the `backdrop-filter: blur(20px) saturation(180%)` property. It´s particulary important to have control over the saturation to achive a high similarity to the iOS/MacOS translucency. 

No saturation:
![no_saturation](https://user-images.githubusercontent.com/36447137/54474234-e31cb080-47e2-11e9-8ba1-8a5be05d4619.jpg)

With saturation:
![with_saturation](https://user-images.githubusercontent.com/36447137/54474239-eca61880-47e2-11e9-9518-3c418a7fecc9.jpg)


Most of the effects defined in `UIBlurEffect.Style` could be recreated when providing a saturation filter.

Similar issues like [this](https://github.com/flutter/flutter/issues/16296) by @matthew-carroll 
or  [this](https://stackoverflow.com/questions/55190136/flutter-equivalent-off-css-backdrop-filter-blur20px-saturation180) question on stackoverflow show that these APIs are requested for a long time. I am curious if the Flutter team is currently working on improving blur and how those APIs would look like since Hummingbird needs support for this as well.
Repository: scrcpy
Issue: Customable Phone Skin for scrcpy Window
Labels: feature request

Hi, Developers.
Thank you very much for this very useful opensource software.

I have a feature request for adding generic phone skin for scrcpy including menu, home, and back button skin. It will be very nice to have it, especially for people like me who want to make tutorial for Android.

Thanks.
Repository: go
Issue: x/tools/go/ssa/interp: panic: no code for function: time.runtimeNano on darwin
Labels: NeedsInvestigation,Tools

#### What did you do?
main.go
```go
package main

import (
	"go/types"
	"log"

	"golang.org/x/tools/go/packages"
	"golang.org/x/tools/go/ssa"
	"golang.org/x/tools/go/ssa/interp"
	"golang.org/x/tools/go/ssa/ssautil"
)

func main() {
	target := "./testdata"

	cfg := &packages.Config{
		Mode:  packages.LoadAllSyntax,
		Tests: false,
	}

	pkgs, err := packages.Load(cfg, target)
	if err != nil {
		log.Fatalf("failed to load package: %v", err)
		return
	}

	ssaProg, ssaPkgs := ssautil.AllPackages(pkgs, 0)
	ssaProg.Build()

	var mainPkg *ssa.Package
	for _, ssaPkg := range ssaPkgs {
		if ssaPkg.Pkg.Name() == "main" {
			mainPkg = ssaPkg
		}
	}

	mode := interp.EnableTracing
	interp.Interpret(mainPkg, mode, &types.StdSizes{WordSize: 8, MaxAlign: 8}, "main", []string{})
}
```
testdata/t.go
```go
package main

import "fmt"

func main() {
	fmt.Println("hello")
}
```
go.mod
```
module github.com/ajalab/ssainterp

go 1.12

require golang.org/x/tools v0.0.0-20190315214010-f0bfdbff1f9c
```
#### What did you expect to see?
The program prints "hello" to stdout.

#### What did you see instead?

The program panics.
```
Entering time.runtimeNano at /usr/local/go/src/time/time.go:1076:6.
Leaving time.runtimeNano, resuming time.init at /usr/local/go/src/time/time.go:1084:34.
Panicking: string no code for function: time.runtimeNano.
Leaving time.init, resuming internal/poll.init.
Panicking: string no code for function: time.runtimeNano.
Leaving internal/poll.init, resuming os.init.
Panicking: string no code for function: time.runtimeNano.
Leaving os.init, resuming fmt.init.
Panicking: string no code for function: time.runtimeNano.
Leaving fmt.init, resuming github.com/ajalab/ssainterp/testdata.init.
Panicking: string no code for function: time.runtimeNano.
Leaving github.com/ajalab/ssainterp/testdata.init.
panic: no code for function: time.runtimeNano
```

#### Does this issue reproduce with the latest release (go1.12.1)?

yes

#### System details

```
go version go1.12.1 darwin/amd64
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/koki/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/koki/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/koki/prj/ssainterp/go.mod"
GOROOT/bin/go version: go version go1.12.1 darwin/amd64
GOROOT/bin/go tool compile -V: compile version go1.12.1
uname -v: Darwin Kernel Version 18.2.0: Thu Dec 20 20:46:53 PST 2018; root:xnu-4903.241.1~1/RELEASE_X86_64
ProductName:	Mac OS X
ProductVersion:	10.14.3
BuildVersion:	18D42
lldb --version: lldb-1000.0.38.2
  Swift-4.2
```
Repository: vscode
Issue: [html] embedded java script grammar doesn't end because of missing semicolon
Labels: bug,html

<!-- Please search existing issues to avoid creating duplicates. -->
<!-- Also please test using the latest insiders build to make sure your issue has not already been fixed: https://code.visualstudio.com/insiders/ -->

<!-- Use Help > Report Issue to prefill these. -->
- VSCode Version: latest
- OS Version: windows 10

Steps to Reproduce:

1.forget a semi-colon in a script tag in head (not required in JS for every line)
2.press ctrl + /

<!-- Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes
Repository: godot
Issue: tree_exited signal callbacks are run in the editor even when the script is not "tool", can cause editor crash
Labels: bug,topic:core,topic:editor,confirmed

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:** 3.1-stable_X11.64
<!-- Specify commit hash if non-official. -->


**OS/device including version:** Solus 3.9999 Gnome Nvidia GTX 1050TI
<!-- Specify GPU model and drivers if graphics-related. -->


**Issue description:**
<!-- What happened, and what was expected. -->
Randomly when I switch between scenes Godot crashes, the only thing on the terminal when this happens is:
```
ERROR: _load: Condition ' !f ' is true. returned: ERR_CANT_OPEN
   At: scene/resources/dynamic_font.cpp:149.
ERROR: _get_modified_time: Failed to get modified time for: 
   At: drivers/unix/file_access_unix.cpp:292.
ERROR: _load: No loader found for resource: res://
   At: core/io/resource_loader.cpp:285.
malloc(): smallbin double linked list corrupted
```

I am using GLES2

**Minimal reproduction project:**
<!-- Recommended as it greatly speeds up debugging. Drag and drop a zip archive to upload it. -->
It's not minimal but can give enough context
[mooncheeser source.zip](https://github.com/godotengine/godot/files/2974024/source.zip)