sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: WidgetTester.startGesture should bounds check the offset
Labels: a: tests,framework,d: api docs,P2,team-framework,triaged-framework

If you call `WidgetTester.startGesture` with coordinates that are outside the bounds of the screen no error or warning is issued.

It is also undefined if the argument to that method is physicalPixels or logicalPixels.
Repository: pytorch
Issue: LSTMCell consumes x1.5 more memory on CUDA on pytorch >=1.3 comparing to pytorch 1.2
Labels: module: rnn,module: cuda,module: memory usage,triaged

## 🐛 Bug

From pytroch 1.3 LSTMCell consume x1.5 more memory compared to pytorch 1.2

## To Reproduce

Steps to reproduce the behavior:

Make lstmcell object and check memory usage

```
import torch
rnn = torch.nn.LSTMCell(10, 20).cuda()
input = torch.randn(6, 3, 10).cuda()
hx = torch.randn(3, 20).cuda()
cx = torch.randn(3, 20).cuda()
output = []
for i in range(6):
    hx, cx = rnn(input[i], (hx, cx))
    output.append(hx)
print(torch.cuda.memory_allocated())
```

## Expected behavior

Eat less VRAM like in 1.2

## Environment

You can run it from colab
https://colab.research.google.com/drive/18R1aMLcM2uL91gTbYdhm9urWRJaEQUuE

## Additional context

I had thread at forum
https://discuss.pytorch.org/t/50-vram-used-on-torch-1-3-compared-to-1-2/63398/24


cc @ngimel @zou3519
Repository: neovim
Issue: Indentation-aware textwidth
Labels: enhancement

I would like to be able to not impose a maximum character width via `textwidth`, but still ensure that the length of every line, ignoring the whitespace at the start of the line due to indentation, is limited to a certain amount. This ensures that things like comments are formatted in a readable way.

I don't think this can be accomplished easily currently (correct me if I'm wrongi). Perhaps a `formatoptions` option can be added?
Repository: pytorch
Issue: Add Compound key, make custom ops default to it (but keep internal users using CatchAll)
Labels: triaged,internals

(to be expanded)
Repository: electron
Issue: Retrieving the full content size, not just the visible size
Labels: enhancement :sparkles:

<!--  As an open source project with a dedicated but small maintainer team, it can sometimes take a long time for issues to be addressed so please be patient and we will get back to you as soon as we can.
-->

### Preflight Checklist
<!-- Please ensure you've completed the following steps by replacing [ ] with [x]-->

* [x] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/master/CONTRIBUTING.md) for this project.
* [x] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md) that this project adheres to.
* [x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

### Problem Description
<!-- Is your feature request related to a problem? Please add a clear and concise description of what the problem is. -->

I need to basically take a screenshot of a rendered HTML string but the `capturePage` method doesn't actually capture the entire thing all the time, but just the visible part of it.

It can capture the full thing if the window gets resized to the actual content size, but there's no way to retrieve the full content size without executing some javascript in it, but I'd much rather like to disable javascript execution entirely in these windows containing arbitrary HTML.

### Proposed Solution
<!-- Describe the solution you'd like in a clear and concise manner -->

Maybe a `BrowserWindow#getContentFullSize` could be added.

### Alternatives Considered
<!-- A clear and concise description of any alternative solutions or features you've considered. -->

I'm not sure there's an alternative that doesn't involve enabling javascript in the captured window.
Repository: go
Issue: x/build: automated testing of popular, open source Go projects
Labels: Builders,NeedsInvestigation,FeatureRequest

Basic idea is that we'd automatically build and test a large, representative sampling of open source Go projects, to help catch regressions during the development cycle that aren't caught by tests in the Go repo itself.

Some thoughts:

If running tests is a concern for resource/security concerns, even just verifying that projects still build would be useful data sometimes. E.g., cmd/cgo changes have a high frequency of breaking builds.

I think ~nightly testing would be adequate, but even weekly would probably be useful.

/cc @dmitshur
Repository: vue-element-admin
Issue: 下拉选择框，点击会导致页面崩溃。
Labels: not vue-element-admin bug

<!--
    注意：为更好的解决你的问题，请参考模板提供完整信息，准确描述问题，信息不全的 issue 将被关闭。

    Note: In order to better solve your problem, please refer to the template to provide complete information, accurately describe the problem, and the incomplete information issue will be closed.
-->


## Bug report（问题描述）
在页面上添加的 el-select，在多次点击切换选项会导致界面崩溃，然后重新加载页面。
#### Steps to reproduce（问题复现步骤）
1、https://panjiachen.gitee.io/vue-element-admin/#/components/drag-dialog
2、点击 “Open a drag dialog”按钮
3、不断切换选项

#### Screenshot or Gif（截图或动态图）


#### Link to minimal reproduction（最小可在线还原demo）

<!--
Please only use Codepen, JSFiddle, CodeSandbox or a github repo
-->

#### Other relevant information（格外信息）
正如我发的链接，该链接的环境同样会出现。
- Your OS: win10 18362.778(1903)
- Node.js version: 12.16.2
- vue-element-admin version: 4.2.1
Repository: angular
Issue: Language Service: integration with custom-elements.json specification
Labels: feature,area: language-service,cross-cutting: custom elements,feature: under consideration

# 🚀 feature request

While working in Angular templates, it would be valuable to have autocompletion for custom elements properties and events.

Note: VSCode currently supports for custom element attributes with html file extension.

### Relevant Package

This feature request is for @angular/language-service

### Description

Given the following `custom-elements.json` file:

<details><summary><code>custom-elements.json</code></summary>
<p>

```json
{
  "version": 1.2,
  "tags": [
    {
      "name": "demo-wc-card",
      "description": "This is a container looking like a card with a back and front side you can switch",
      "attributes": [
        {
          "name": "header",
          "description": "Header message",
          "type": "string",
          "defaultValue": "Your message"
        }
      ],
      "properties": [
        {
          "name": "backSide",
          "description": "Indicates that the back of the card is shown",
          "type": "boolean"
        }
      ]
    }
  ]
}
```
</p>
</details>

No suggestions are provided for property `backSide`:

<img width="448" alt="Screen Shot 2020-05-01 at 7 12 47 PM" src="https://user-images.githubusercontent.com/1571918/80852758-dffba400-8bdf-11ea-9d74-7017c4ea5d4e.png">

Ideally, the property description and type would be shown.

---

Here's an example of a functioning attribute in VSCode. This works due to VSCode's HTML Language Service honoring the custom-elements.json spec.

<img width="454" alt="Screen Shot 2020-05-01 at 7 12 30 PM" src="https://user-images.githubusercontent.com/1571918/80852754-dbcf8680-8bdf-11ea-93de-b7ce11ea4c05.png">

Here's an example repository demoing the VSCode integration: https://github.com/microsoft/vscode-custom-data/tree/master/samples/helloworld.

For information on the specification format, see https://github.com/w3c/webcomponents/issues/776.


### Describe the solution you'd like

First-class support for custom elements properties and events.

### Describe alternatives you've considered

This sort of editor support is novel, no known alternative options exist.
Repository: flutter
Issue: TextField edit menu position problem
Labels: a: text input,platform-ios,framework,a: fidelity,has reproducible steps,P2,found in release: 3.7,found in release: 3.9,team-ios,triaged-ios

When there is a lot of text in the TextField, the actual height of the text exceeds the TextField a lot,   so, if I select all the text, an edit menu will pop up, similar to 'copy / cut / select all'.

But the position of the edit menu will be far away from the TextField, and displayed on the first line of the actual height of the text. 

anybody can help please?
Repository: pytorch
Issue: Builtin FusedLayerNorm is slower than apex one
Labels: module: performance,module: cuda,triaged

benchmarks by @myleott: https://github.com/pytorch/fairseq/issues/2012#issuecomment-622607286
 (for both fp32 and fp16)

cc @ngimel @VitalyFedyunin
Repository: create-react-app
Issue: Support TypeScript namespace 
Labels: issue: proposal,needs triage

https://github.com/welldone-software/why-did-you-render

> You can also manually track any component you want by setting whyDidYouRender on them like this:
```js
function BigListPureComponent() {
  return <div>
    //some heavy component you want to ensure doesn't happen if its not neceserry
  </div>
}
BigListPureComponent.whyDidYouRender = true
```

In TypeScript, if we want whyDidYouRender be `readonly`, we should write:

```ts
function BigListPureComponent() {
  return <div>
    //some heavy component you want to ensure doesn't happen if its not neceserry
  </div>
}
namespace BigListPureComponent {
  export const whyDidYouRender = true;
}
```

But CRA doesn't support namespace now.
Repository: PowerToys
Issue: Feature Request: Crop Picture
Labels: Idea-Enhancement,Product-Image Resizer

# Summary of the new feature/enhancement

Simple interface to CROP an image

# Proposed technical implementation details (optional)

-Right-Click image
-Select "Crop Picture"
-Image appears with bounding box and horizontal and vertical handles at edges and corners
-Select one of the "aspect ratio's": original, free, 1/1, 4/3, 3/2, 16/9 ...
-Drag vertical or horizontal edges or corners inwards (while outside area appears darker)
-Using ALT-key while dragging corner will resize all edges at once (similar to Photoshop).
-Using ALT-key while dragging edge will resize opposite edges at once (similar to Photoshop).
-Click Ok or Cancel: Ok will save cropped image in original format adding (Cropped) to name.
Repository: rust
Issue: opportunistically evaluate constants while populating `mir::Body::required_consts`
Labels: C-cleanup,T-compiler,A-const-eval,A-mir-opt,A-mir-opt-inlining

We can evaluate all constants that do not depend on generic parameters in https://github.com/rust-lang/rust/blob/0b958790b336738540d027d645718713849638d7/src/librustc_mir/transform/required_consts.rs#L19

We make that a `MutVisitor` that evaluates all constants that it can and replaces them in-place and only adds those that it couldn't evaluate to the `required_const` list.

This way we never have to evaluate another constant in the entire MIR optimization pipeline, because we know none can be evaluated (modulo those that we already evaluate for merging `required_const`s during inlining.

cc @rust-lang/wg-mir-opt I think I like having the above invariant. It will make working with constants in MIR much simpler and make any kind of error handling that would have to be implemented unified into a single location.
Repository: vscode
Issue: [html] No values suggested for `autocapitalize`
Labels: feature-request,html

- VSCode Version: 1.45.0
- OS Version: macOS 10.15.4

Steps to Reproduce:

1. Copy the following to an HTML file: `<div role="" autocapitalize=""></div>`
2. Notice that there is autocompletion for the role's attribute values but, even though VS Code knows about autocapitalize's values (shown when you are autocompleting that attribute), it does not show suggestions for it's values.

Does this issue occur when all extensions are disabled? Yes
Repository: flutter
Issue: Consider making resized image provider API default
Labels: framework,a: images,c: proposal,P3,team-framework,triaged-framework

Given that it benefits the memory and the intended affect is that the quality of the rendered image shouldn't see a drop. If there aren't any other downsides and once the API matures it might make sense to make this the default behavior.
Repository: go
Issue: cmd/go: "package … is not in GOROOT" is confusing in module mode when the package would exist in GOPATH mode
Labels: NeedsInvestigation,modules

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.14.2 linux/amd64
</pre>

### Does this issue reproduce with the latest release?
Yes


### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env

</pre></details>

### What did you do?
If a parent folder contained a `go.mod` this overrides the GOPATH setting and there is no clear indication this is happening.
lets say the following exists in the file system
```
/work/go.mod 
```
and say you create a folder like
```
/work/projects/x/src/my/test2/main.go
```
and you export the GOPATH to point to your project
```
export GOPATH=/work/projects/x/
```
You will get an error like
```
can't load package: package my/test2 is not in GOROOT (/home/me/.gvm/gos/go1.14.2/src/my/test2)
```
And much time and head bashing will occur because you dont realize that go is using the `/work/go.mod` and overrides your `GOPATH` that you defined. This behavior is different then go 1.12 as well (it compiles without issue) so that adds to the confusion. (To be fair... I am totally guilty as sin for my own nasty creation, but there should be a better way of pointing out the root cause.)

### What did you expect to see?
It would be great to see some reference to the `go.mod` file in the error message and not the `GOROOT`. 
```
can't load package: package my/test2 is not in GOROOT (/home/me/.gvm/gos/go1.14.2/src/my/test2) with (/work/go.mod)
```
Or even more directly
```
can't load package: package my/test2 is not in go.mod (/work/my/test2)
```
I agree the former error is not wrong, but it is pointing in the wrong direction

### What did you see instead?
```
can't load package: package my/test2 is not in GOROOT (/home/me/.gvm/gos/go1.14.2/src/my/test2)
```
Repository: flutter
Issue: Widgets can't be placed in a const set due to ==/hashCode override
Labels: framework,dependency: dart,c: proposal,P2,team-framework,triaged-framework

All widgets have an override of `==` and `hashCode` which is marked non-virtual to discourage users from implementing it: https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/widgets/framework.dart#L508

Placing a  widget in a const set literal results in the diagnostic: `const_set_element_type_implements_equals`.


```
const { Text('hello') }
```

While this is technically true, it seems like we could detect that the implementations are trivial? Another approach would be to allow `@nonVirtual` to annotate declarations made in the superclass without providing an implementation.

```
abstract class Widget {

  @nonVirtual
  int get hashCode;

  @nonVirtual
   bool operator ==(Object other);
}
```
Repository: flutter
Issue: Device Discovery of Custom Embedders
Labels: c: new feature,tool,engine,e: embedder,c: proposal,P3,team-engine,triaged-engine

## Use case

Currently the flutter tools do not provide a mechanism for custom embedders to register as a device, like how `linux` appears when running `flutter devices`. Currently for [flutter-rs](https://github.com/flutter-rs) we invoke `flutter attach` with the observatory URL, which is quite limiting. If we had some method for registering the "device"/application instance, all tooling including cli and IDEs would show the instance as being available to attach to, and therefore would allow easy debugging.

## Proposal

A few different approaches I have thought of so far

- Plugin support for flutter_tools

A flutter command such as `flutter add-tool flutter-rs-dev` could fetch and install a `pub.dev` package that will be given a chance to register a `DeviceDiscovery` handler for example. Or given other such hooks.

This would allow for maximum flexibility. And in the future would allow other hooks to be added, such as wiring up `futter run`.

- JSON Device

Another form of device discovery could be added, where if a `custom_device.json` file exists in the root of the project, it reads this file to find a name and observatory url combination.

This would be very simple, and wouldn't require many changes.

- Some other form of embedder discovery

Some other mechanism to detect when an observatory is started.
Repository: node
Issue: VM ESM with dynamic imports resolves promises before linking is complete
Labels: vm,esm

<!--
Thank you for reporting an issue.

This issue tracker is for bugs and issues found within Node.js core.
If you require more general support please file an issue on our help
repo. https://github.com/nodejs/help


Please fill in as much of the template below as you're able.

Version: output of `node -v`
Platform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows)
Subsystem: if known, please specify affected core module name
-->

* **Version**: v14.1.0
* **Platform**: Darwin Simens-MacBook-Pro.local 18.7.0 Darwin Kernel Version 18.7.0: Mon Feb 10 21:08:45 PST 2020; root:xnu-4903.278.28~1/RELEASE_X86_64 x86_64
* **Subsystem**: VM, ESM

### What steps will reproduce the bug?

See https://github.com/SimenB/node-vm-esm-promise-awaiting

Run `node --experimental-vm-modules index.js` to reproduce.

<!--
Enter details about your bug, preferably a simple code snippet that can be
run using `node` directly without installing third-party dependencies.
-->

### How often does it reproduce? Is there a required condition?

Almost every time. There seems to be some race condition in there. I've added a manual timeout in there - tweak its numbers to see different behavior. In the code the timeout is 1 second and then one of the tests fail almost every time. Increasing the timeoyt will often make both tests fail

### What is the expected behavior?

All linking and execution should happen before the promises resolve.

<!--
If possible please provide textual output instead of screenshots.
-->

### What do you see instead?

The promises resolve, so the internal state of `completed` is set to `true`, which later throws.

<!--
If possible please provide textual output instead of screenshots.
-->

### Additional information

The reproduction is adapted from a bug report to Jest (https://github.com/facebook/jest/issues/9430#issuecomment-622664754), so apologies if it looks a little wonky. I've tried to emulate sorta what happens under the hood in Jest down to solely node core modules.

Note that I might very well have gotten some semantics wrong in the dynamic linking, so please tell me if I'm doing something really dumb in the reproduction (except having no module cache at all) - I've probably made the same mistake in Jest's implementation. Main difference is that the calls will linger - In jest these would all be inside `test()` calls or some such that we execute later. I don't think it impacts the reproduction much though - the promises resolve seconds before linking complete, so I don't think it's necessarily tied to dangling promises. I might very well be wrong though. 

For some extra context if it's helpful, here's Jest's implementation: https://github.com/facebook/jest/blob/7a3c9977847cc9fafed6f6662289f3c35e44e0c6/packages/jest-runtime/src/index.ts#L323-L456

It's spread a bit around, but those are the essential bits where we use the VM APIs.

<!--
Tell us anything else you think we should know.
-->
Repository: flutter
Issue: Embedder Engine build artifacts missing in Target build to generate AOT image
Labels: engine,e: embedder,platform-linux,P2,team-engine,triaged-engine

## Generating an AOT image for Target Linux Embedder Engine requires a Host Engine build.

Required tools to generate a target AOT (linux arm/arm64) are missing from Target build, which involves needing to build for Host to get the tools.

```
out/host_release/dart-sdk/bin/dart
out/host_release/gen/frontend_server.dart.snapshot
```

This is with master.

Target build config
```
GN_ARGS = " \
  --clang \
  --target-os linux \
  --linux-cpu ${@gn_target_arch_name(d)} \
  --target-sysroot ${STAGING_DIR_TARGET} \
  --target-triple ${@gn_clang_triple_prefix(d)} \
  --target-toolchain ${S}/buildtools/linux-x64/clang \
  --runtime-mode release \
  --embedder-for-target \
  --enable-fontconfig \
  --lto \
  --full-dart-sdk \
  --disable-desktop-embeddings \
  "
```

I documented steps that built me an AOT ELF image here:  https://github.com/jwinarske/meta-flutter/issues/7
Repository: TypeScript
Issue: `allowUnusedLabels` should be false in the --init configuration
Labels: Suggestion,In Discussion

**TypeScript Version:**  nightly

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:** allowUnusedLabels

**Code**

Compile with `tsc --init`
```ts
console.log("a", "b"), { value: 3 };
```

**Expected behavior:** This should be an error;  the closing paren was misplaced

**Actual behavior:** No error

**Playground Link:** https://www.typescriptlang.org/play?#code/MYewdgziA2CmB00QHMAUAiAhugNAAnQCN0BKfAbzwDdNoBXWALjwGY8BfAbgCgg

**Related Issues:** No
Repository: godot
Issue: alpha Shaders on sprites cause weird issues
Labels: topic:rendering

**Godot version:**
3.2.1
**OS/device including version:**
Windows 10
**Issue description:**
As title Suggests, editing the alpha values on a sprite with a shader causes the sprite to stretch out oddly, as seen below, as well as losing previous transparency values

![image](https://user-images.githubusercontent.com/19394539/80893308-1f51ef80-8cc9-11ea-96eb-603ebe0541fc.png)

to recreate, simply specify COLOR.a to be any valid value
Repository: vscode
Issue: Git - "Revert selected ranges" doesn't work for staged chunks
Labels: feature-request,git

1. Have a line changed and git staged
2. Select range in side-by side diff editor
2. Context-click range, see `"Revert Selected Range"` entry
2. Attempt to run it (or invoke the command manually)
2. Nothing happens.

I think it either shouldn't be shown in the context menu/command pallete, or it should work.