sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: Lower performance when forwarding JIT model with libTorch 1.6 compared with 1.5
Labels: oncall: jit

## 🐛 Bug

Testing the new version of libTorch 1.6 I have realized that when forwarding an exported JIT traced model is about 3 times slower than using libTorch 1.5. I am testing it in CPU using Windows and iOS devices.

## To Reproduce

Steps to reproduce the behavior:

1. Export a JIT traced model of a neural network (Example: YOLO). There penalty appears when exporting with PyTorch 1.5 or 1.6
2. Load model in a C++ runtime using libTorch 1.5. Measured time ~420ms
3. Load model in a C++ runtime using libTorch 1.6. Measured time ~1450ms

Code used for testing it (iOS)
```
// File path
NSString* filePath = [[NSBundle mainBundle] pathForResource:@"model" ofType:@"pt"];
torch::NoGradGuard no_grad_guard;
// Load model
torch::jit::script::Module _impl = torch::jit::load(filePath.UTF8String);
_impl.eval();
// Input tensor that expect the model
torch::Tensor inputTensor = torch::randn({1, 3, 416, 416});
std::vector<torch::jit::IValue> input;
input.emplace_back(inputTensor);
// Inference loop
for (int i = 0; i < 3; i ++)
{
    NSDate *methodStart = [NSDate date];
    torch::jit::IValue output = _impl.forward(input);
    NSDate *methodFinish = [NSDate date];
    NSTimeInterval executionTime = [methodFinish timeIntervalSinceDate:methodStart];
    NSLog(@"Process time: %f ms", executionTime*1000.0f);
}
```

## Expected behavior

The time needed for a forward with a JIT exported model would be the same for both versions: 1.5 and 1.6

## Environment
 - PyTorch Version (1.6):
 - OS (Windows, iOS):
 - How you installed PyTorch (`pip`):
 - How you installed LibTorch (iOS: cocoapod, Windows: release version):
 - Python version: 3.6.9
 - Any other relevant information: C++ 

## Additional context


cc @suo @gmagogsfm
Repository: go
Issue: x/tools/gopls: go to the definition of the only non-test interface implementation
Labels: gopls,Tools

<p>(Currently using v0.4.4 with Go 1.14.6.)</p>

<p>When exploring new codebases I often go to the definition of a method
just to find out that the method is actually a part of an interface.
I then use the “find implementations” action to find the implementation.
Often there is only one non-test implementation.</p>

<p>So, I would like to request a new action which would act like the
current one, but go to the definition of the only non-test interface
implementation if there is only one, or to the definition of the
interface if there are several.</p>
Repository: flutter
Issue: Use dart_test.yaml in flutter test
Labels: a: tests,tool,c: proposal,P3,team-tool,triaged-tool

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Use case

<!--
     Please tell us the problem you are running into that led to you wanting
     a new feature.

     Is your feature request related to a problem? Please give a clear and
     concise description of what the problem is.

     Describe the alternative solutions you've considered. Is there a package
     on pub.dev/flutter that already solves this?
-->

The `test` package supports having a `dart_test.yaml` file to configure tests and the test runner. `pub test` uses that file, but it seems like `flutter test` doesn't. When trying to do good testing, having this configuration file is of great help, so it would be good if `flutter test` used it.


## Proposal

Just parse and use the `dart_test.yaml` file as `pub test` does.
<!--
     Briefly but precisely describe what you would like Flutter to be able to do.

     Consider attaching images showing what you are imagining.

     Does this have to be provided by Flutter directly, or can it be provided
     by a package on pub.dev/flutter? If so, maybe consider implementing and
     publishing such a package rather than filing a bug.
-->
Repository: godot
Issue: Reparenting TileMap to Navigation2D in ancestor scene removes modifications in descendent scene.
Labels: bug,topic:editor,confirmed

**Godot version:**
3.1-stable, 3.2.2-stable


**OS/device including version:**
Windows 10 Home 1909.


**Issue description:**
When reparenting a TileMap node to a Navigation2D node in a Scene that is inherited by another scene, the inherited scene loses all modifications to its TileMap (tile_data: `PoolIntArray`) irrevocably.

The workaround is to duplicate the TileMap in the ancestor scene, reparent the duplicate TileMap to the Navigation2D in the ancestor scene, and copying the `tile_data` between the TileMaps in the descendent scene (in my case, through an IDE).

This issue was recorded in a tutorial I'm following that uses 3.1-stable, and I faced the same issue in 3.2.2-stable.
In contrast, performing this reparenting was reflected by changes in only three lines of code in the repo: two in the descendent scene indicating the change in the TileMap node's parent and shifting of indices for one other node in the ancestor scene, and one in the ancestor scene indicating the change in the TileMap node's parent.

This is especially painful given the amount of work needed in duplicating the nodes and potentially losing TileMap changes if this bug is not known, or if the user is not familiar with editing .tscn files in an IDE.


**Steps to reproduce:**
- *master*
1. Create a new scene.
2. Add a TileMap node as its child.
3. Add/Import a TileSet to the TileMap and edit the TileMap node. Save this scene.
\-
4. Inherit a descendent scene from this scene.
5. Repeat Step 3 for the descendent scene.
\-
6. Add a Navigation2D node to the topmost node in the ancestor scene.
\-
- *bug*
7. (
  Reparent the TileMap node to the Navigation2D node within the ancestor scene. Save the ancestor scene.
)
\-
- *workaround*
8. (
  Perform workaround as described:
    W1. Duplicate the TileMaps in the ancestor scene.
\-
    W2. Parent the duplicate TileMap to the Navigation2D node.
\-
    W3. Copy tile_data between TileMaps in descendent scene.
\-
    W4. Delete the original TileMap node in the ancestor scene.
\-
  (Optional) Rename TileMap node.
)

**Minimal reproduction project:**
[navigation2d-tilemap-bug.zip](https://github.com/godotengine/godot/files/5028113/navigation2d-tilemap-bug.zip)
Contains a Git repo with individual commits that add new files as a group of repro steps, and the *bug* and *workaround* as separate branches.
Repository: pytorch
Issue: Logsigmoid as chaining operation
Labels: triaged,function request

## 🚀 Feature

I would like to have a chained log sigmoid operation in `torch.Tensor` object.

## Motivation

I prefer to use chained versions of the operations like `x.sum()`, `x.mean()`, etc. instead of `torch.sum()` `torch.mean()`, etc.
This prevents me from the formulation of hardly readable long operations.
For example:
```x.pow(2).sum(dim=1).mean()```
is much cleaner than:
```torch.mean(torch.sum(torch.pow(x, 2), dim=1))```

Currently, the operation is available only in torch.nn or as torch module method or can be implemented as the combination of sigmoid and logarithm, which is less numerically stable.

## Pitch

Add log sigmoid to tensor object methods.
```
import torch
x = torch.rand(2, 3, 10, 10)
log_sigmoid_from_x = x.logsigmoid()
```
Repository: rust
Issue: Local path of sysroot dependencies gets used in debuginfo when rust-src is installed
Labels: A-debuginfo,E-needs-test,T-compiler,C-discussion,WG-debugging

```rust
pub fn main() {
    unsafe { core::arch::x86_64::_mm_pause(); }
}
```

I expected to see this happen: The `/rustc/...` path is used for the inlined `_mm_pause` function just like all parts of libcore that are not getting inlined in the current crate.

Instead, this happened:

The local path `/home/bjorn/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libcore/../stdarch/crates/core_arch/src/x86/sse2.rs` is used in the debuginfo:

```
$ dwarfdump test
[...]
< 2><0x000002ed>      DW_TAG_namespace
                        DW_AT_name                  core_arch
< 3><0x000002f2>        DW_TAG_namespace
                          DW_AT_name                  x86
< 4><0x000002f7>          DW_TAG_namespace
                            DW_AT_name                  sse2
< 5><0x000002fc>            DW_TAG_subprogram
                              DW_AT_linkage_name          _ZN4core9core_arch3x864sse29_mm_pause17h9ff98bbc8d329b2cE
                              DW_AT_name                  _mm_pause
                              DW_AT_decl_file             0x00000002 /home/bjorn/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libcore/../stdarch/crates/core_arch/src/x86/sse2.rs
                              DW_AT_decl_line             0x00000016
                              DW_AT_inline                DW_INL_inlined
[...]
```

### Meta
<!--
If you're using the stable version of the compiler, you should also check if the
bug also exists in the beta or nightly versions.
-->

`rustc --version --verbose`:
```
rustc 1.44.1 (c7087fe00 2020-06-17)
binary: rustc
commit-hash: c7087fe00d2ba919df1d813c040a5d47e43b0fe7
commit-date: 2020-06-17
host: x86_64-unknown-linux-gnu
release: 1.44.1
LLVM version: 9.0
```
Repository: go
Issue: cmd/go: go test -json outputs too verbose
Labels: NeedsDecision

Without `-json`

```
golang.org/x/sync$ go test ./...
ok      golang.org/x/sync/errgroup      (cached)
ok      golang.org/x/sync/semaphore     (cached)
ok      golang.org/x/sync/singleflight  (cached)
ok      golang.org/x/sync/syncmap       (cached)
```

With `-json`

```
golang.org/x/sync$ go test -json ./...
{"Time":"2020-08-05T10:45:49.695703-04:00","Action":"run","Package":"golang.org/x/sync/semaphore","Test":"TestWeighted"}
{"Time":"2020-08-05T10:45:49.698457-04:00","Action":"output","Package":"golang.org/x/sync/semaphore","Test":"TestWeighted","Output":"=== RUN   TestWeighted\n"}
{"Time":"2020-08-05T10:45:49.69849-04:00","Action":"output","Package":"golang.org/x/sync/semaphore","Test":"TestWeighted","Output":"=== PAUSE TestWeighted\n"}
...
{"Time":"2020-08-05T10:57:34.15016-04:00","Action":"output","Package":"golang.org/x/sync/syncmap","Test":"TestConcurrentRange","Output":"--- PASS: TestConcurrentRange (0.34s)\n"}
{"Time":"2020-08-05T10:57:34.150165-04:00","Action":"pass","Package":"golang.org/x/sync/syncmap","Test":"TestConcurrentRange","Elapsed":0.34}
{"Time":"2020-08-05T10:57:34.150172-04:00","Action":"output","Package":"golang.org/x/sync/syncmap","Output":"PASS\n"}
{"Time":"2020-08-05T10:57:34.150176-04:00","Action":"output","Package":"golang.org/x/sync/syncmap","Output":"ok  \tgolang.org/x/sync/syncmap\t(cached)\n"}
{"Time":"2020-08-05T10:57:34.150855-04:00","Action":"pass","Package":"golang.org/x/sync/syncmap","Elapsed":0.006}
```

Recently vscode-go switched to use `go test -json` and outputs `Output` field, but found this is too verbose (more like `-v` mode).
Repository: ant-design
Issue: Extend Rule[] array with validation status field and make it work as validateStatus
Labels: Inactive

- [x] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.

### What problem does this feature solve?
It would be great to set color of validation message and border of input in a declarative way. E.g. status='warning' in rules of Form.Item could set message and input border color to orange *if* a validation error occurred. Right now there is validateStatus in Form.Item but it forces us to save multiple states or overriding multiple CSS selectors to do that.

### What does the proposed API look like?
```
status: 'error' | 'warning'
```

```
<Form.Item
  ...
  rules={[
    {
      ...
      status: 'warning'
    }
  ]}
>
  ...
</Form.Item>
```


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: create-react-app
Issue: EACCES: permission denied, open 'yarn.lock'
Labels: stale,needs triage,issue: bug report

### Describe the bug


```
▲ projects/play/create-react-app npx create-react-app app1

Creating a new React app in /home/vyorkin/projects/play/create-react-app/app1.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...

yarn add v1.22.4
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.12: The platform "linux" is incompatible with this module.
info "fsevents@1.2.12" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@2.1.2: The platform "linux" is incompatible with this module.
info "fsevents@2.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "react-scripts > @typescript-eslint/eslint-plugin > tsutils@3.17.1" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
[4/4] Building fresh packages...
error An unexpected error occurred: "EACCES: permission denied, open '/home/vyorkin/projects/play/create-react-app/app1/yarn.lock'".
info If you think this is a bug, please open a bug report with the information provided in "/home/vyorkin/projects/play/create-react-app/app1/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Aborting installation.
  yarnpkg add --exact react react-dom react-scripts cra-template --cwd /home/vyorkin/projects/play/create-react-app/app1 has failed.

Deleting generated file... node_modules
Deleting generated file... package.json
Deleting generated file... yarn.lock
Done.
```

But

```
yarn create react-app my-app
```

works.

### Did you try recovering your dependencies?

Doesn't make sense in my case / Not applicable

### Which terms did you search for in User Guide?

--

### Environment

OS: NixOS 20.03
```

 △ projects/play/create-react-app npx --version
6.14.7

 ▲ projects/play/create-react-app node --version
v14.7.0
```

### Steps to reproduce

Just run the command above.

### Expected behavior

Same as in README

### Actual behavior

See above

### Reproducible demo

See above
Repository: PowerToys
Issue: Allow to remap complex keyboard events (macros)
Labels: Idea-New PowerToy,Product-Keyboard Shortcut Manager

## Keyboard Manager should allow mapping complex keyboard events in `Key` and `Mapped To` parameters

Currently, the keyboard manager allows for remapping of simple keyboard events, such as single key-down, to a different keyboard event, which may include multiple modifiers (`Ctrl`, `Shift`, `Alt`). It would be a benefit to allow input parameters to be complex keyboard events including modifiers (`Ctrl`), multiple key events (holding down `Shift (Left)` and `Shift (Right)`), and key-up events (mapping `Ctrl (Left)` to be `Ctrl` on key-down and `Esc` on key-up).

The specific use-case I want to see is to replicate an AutoHotKey script that modifies the `Caps Lock` to `Ctrl` when pressed with another key, so `Caps Lock - V` would send`Ctrl - V`, but to send `Esc` on key-up if no other key is pressed. Additionally, the script also maps `Shift (Left)` and `Shift (Right)` combo to send `Caps Lock`.

---

If you'd like to see this feature implemented, add a 👍 reaction to this post.
Repository: youtube-dl
Issue: Support for byNWR
Labels: site-support-request

<!--

######################################################################
  WARNING!
  IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################

-->


## Checklist

<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl:
- First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2020.07.28. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Make sure that all provided video/audio/playlist URLs (if any) are alive and playable in a browser.
- Make sure that site you are requesting is not dedicated to copyright infringement, see https://yt-dl.org/copyright-infringement. youtube-dl does not support such sites. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
- Search the bugtracker for similar site support requests: http://yt-dl.org/search-issues. DO NOT post duplicates.
- Finally, put x into all relevant boxes (like this [x])
-->

- [X ] I'm reporting a new site support request
- [X ] I've verified that I'm running youtube-dl version **2020.07.28**
- [X ] I've checked that all provided URLs are alive and playable in a browser
- [ X] I've checked that none of provided URLs violate any copyrights
- [ X] I've searched the bugtracker for similar site support requests including closed ones


## Example URLs

<!--
Provide all kinds of example URLs support for which should be included. Replace following example URLs by yours.
-->

- Single video: https://www.bynwr.com/articles/if-footmen-tire-you-what-will-horses-do
- Single video: https://www.bynwr.com/articles/the-burning-hell



## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

Accounts are free to create. Some movies are viewable without an account.
Repository: go
Issue: cmd/go: misleading error message when a dependency's go.mod is a symbolic link
Labels: NeedsDecision,modules

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.15rc1 darwin/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
go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/jayconrod/Library/Caches/go-build"
GOENV="/Users/jayconrod/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/jayconrod/Code/modcache"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/jayconrod/go"
GOPRIVATE=""
GOPROXY="direct"
GOROOT="/opt/go/installed"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/opt/go/installed/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/jayconrod/Code/test/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/rq/x0692kqj6ml8cvrhcqh5bswc008xj1/T/go-build173749482=/tmp/go-build -gno-record-gcc-switches -fno-common"
</pre></details>

### What did you do?

* Create a module where `go.mod` is a symbolic link to another file.
* Tag and publish a release, for example, https://github.com/jayconrod/modtest/tree/v0.0.0-symlink
* In a new module, add a requirement on the version with the symbolic link.
* Run any command that loads the build list.

### What did you expect to see?

* If a module zip file is downloaded, there should be an error explaining that when the module zip file was created, `go.mod` was a symbolic link. Symbolic links aren't included in zip files, so this should be an error.
* If only `go.mod` is downloaded, there should be a similar error. We use `git cat-file` to extract `go.mod` from a repository without checking other constraints, but we should check for this.
* This should be documented in [golang.org/x/mod/zip](https://pkg.go.dev/golang.org/x/mod/zip?tab=doc).
* `gorelease` should report an error for this condition.

Alternatively, we could make this work without error by changing the command used to extract `go.mod` files from repositories. For Git, we use `git cat-file` without `--follow-symlinks`, which that prints the name of the file the link points to (resulting in weird error messages. If we used `--follow-symlinks` then the `go.mod` file would be usable by MVS but not included in the zip file.

### What did you see instead?

```
$ go build
go: github.com/jayconrod/modtest@v0.0.0-symlink: go.mod is missing module path at revision v0.0.0-symlink
```
Repository: go
Issue: cmd/cgo: fix C linker problems when linking C++ static libraries
Labels: NeedsInvestigation,compiler/runtime

Currently, if I link a static library containing C++ files, Go can't tell the difference and uses the C linker for example gcc.exe (not g++.exe), which causes the standard C++ libraries to not be linked.
I can think of 2 ways to fix this.
Either add a "#cgo: c++" directive that tells Go that this is a C++ package, or just always use the C++ linker.
Repository: flutter
Issue: Add scrollbar to `LicensePage` group overview page
Labels: framework,f: material design,f: scrolling,c: proposal,P3,team-design,triaged-design

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Use case

<!--
     Please tell us the problem you are running into that led to you wanting
     a new feature.

     Is your feature request related to a problem? Please give a clear and
     concise description of what the problem is.

     Describe the alternative solutions you've considered. Is there a package
     on pub.dev/flutter that already solves this?
-->
The new LicensePage in Flutter 1.20 is great!
See https://api.flutter.dev/flutter/material/LicensePage-class.html

However when having many licenses and scrolling the page there is no visible scrollbar in the overview page (before click a license group). Scrollbar is visible when reading license text though (after clicking a license group).

## Proposal

<!--
     Briefly but precisely describe what you would like Flutter to be able to do.

     Consider attaching images showing what you are imagining.

     Does this have to be provided by Flutter directly, or can it be provided
     by a package on pub.dev/flutter? If so, maybe consider implementing and
     publishing such a package rather than filing a bug.
-->
Add scrollbar in the license group overview page.