sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: opencv
Issue: cudev false dependency in opencv dnn (with OPENCV_DNN_CUDA)
Labels: category: build/install,category: gpu/cuda (contrib)

##### System information (version)
- OpenCV => master

##### Detailed description

The cudev module is a false dependency for the CUDA backend in the DNN module. The `WITH_CUDA` option requires cudev. Maybe there is a way to avoid requiring cudev (and hence opencv_contrib) if only CUDA support in OpenCV DNN is required?

##### Issue submission checklist

 - [x] I report the issue, it's not a question
   <!--
   OpenCV team works with answers.opencv.org, Stack Overflow and other communities
   to discuss problems. Tickets with question without real issue statement will be
   closed.
   -->
 - [x] I checked the problem with documentation, FAQ, open issues,
       answers.opencv.org, Stack Overflow, etc and have not found solution
   <!--
   Places to check:
   * OpenCV documentation: https://docs.opencv.org
   * FAQ page: https://github.com/opencv/opencv/wiki/FAQ
   * OpenCV forum: https://answers.opencv.org
   * OpenCV issue tracker: https://github.com/opencv/opencv/issues?q=is%3Aissue
   * Stack Overflow branch: https://stackoverflow.com/questions/tagged/opencv
   -->
 - [x] I updated to latest OpenCV version and the issue is still there
   <!--
   master branch for OpenCV 4.x and 3.4 branch for OpenCV 3.x releases.
   OpenCV team supports only latest release for each branch.
   The ticket is closed, if the problem is not reproduced with modern version.
   -->
 - [ ] There is reproducer code and related data files: videos, images, onnx, etc
   <!--
   The best reproducer -- test case for OpenCV that we can add to the library.
   Recommendations for media files and binary files:
   * Try to reproduce the issue with images and videos in opencv_extra repository
     to reduce attachment size
   * Use PNG for images, if you report some CV related bug, but not image reader
     issue
   * Attach the image as archite to the ticket, if you report some reader issue.
     Image hosting services compress images and it breaks the repro code.
   * Provide ONNX file for some public model or ONNX file with with random weights,
     if you report ONNX parsing or handling issue. Architecture details diagram
     from netron tool can be very useful too. See https://lutzroeder.github.io/netron/
   -->
Repository: flutter
Issue: [video_player] Can't  Change HSL Video Quilty
Labels: c: new feature,p: video_player,package,team-ecosystem,P3,triaged-ecosystem

**“HLS”, “MPEG-DASH” Adaptive Bitrate  Streaming** 

Quality Change Features Need.
Repository: pytorch
Issue: All keys matched successfully missing when loading state dict on optimizers
Labels: module: optimizer,triaged

## 🐛 Bug

<!-- A clear and concise description of what the bug is. -->


## To Reproduce

Steps to reproduce the behavior:

1. Create a model 
2. Save model 
3. load model state dictionary 
4. Message <All keys matched successfully> appears
5. Create optimizer
6. Save optimizer
7. load optimizer state dictionary 
8. The message is missing

<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->
```
import torch 
import torchvision.models as models

alexnet = models.alexnet()
torch.save(alexnet.state_dict(), './alexnet.pth')
alexnet.load_state_dict(torch.load('./alexnet.pth'))
# <All keys matched successfully>
adam = torch.optim.Adam(alexnet.parameters())
torch.save(adam.state_dict(), './adam.pth')
adam.load_state_dict(torch.load('./adam.pth'))

``` 

## Expected behavior
The message <All keys matched successfully> should be printed when optimizer state is loaded
<!-- A clear and concise description of what you expected to happen. -->
It would be nice if load_state_dict is consistent for both models and optimizers
## Environment
Collecting environment information...
PyTorch version: 1.5.0+cu101
Is debug build: No
CUDA used to build PyTorch: 10.1

OS: Ubuntu 20.04 LTS
GCC version: (Ubuntu 8.4.0-3ubuntu2) 8.4.0
CMake version: version 3.17.2

Python version: 3.8
Is CUDA available: Yes
CUDA runtime version: 10.1.105
GPU models and configuration: GPU 0: GeForce RTX 2070
Nvidia driver version: 440.64
cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.4

Versions of relevant libraries:
[pip3] numpy==1.18.3
[pip3] torch==1.5.0+cu101
[pip3] torchvision==0.6.0+cu101
[conda] Could not collect
## Additional context

<!-- Add any other context about the problem here. -->


cc @vincentqb
Repository: ant-design
Issue: [HELP_WANTED] common chunk for ant.design
Labels: ⚙️ Workflow,help wanted,Inactive,good first issue

目前网站打包策略是 all in one 的，每次更新网站后，用户都要重新下载所有文件，需要把不常变的部分提出来。
Repository: go
Issue: cmd/go: 'go fmt ./...' does not see files with tags in subpackages
Labels: NeedsFix

<!--
Please answer these questions before submitting your issue. Thanks!
For questions please use one of our forums: https://github.com/golang/go/wiki/Questions
-->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.14.4 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
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/user/.cache/go-build"
GOENV="/home/user/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/user"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/home/user/.goroot"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/user/.goroot/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
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 -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build876391637=/tmp/go-build -gno-record-gcc-switches"
</pre></details>

### What did you do?

I have a subpackage in my repo in which all files have a tag. I run `go fmt ./...` in the top directory of my repo.

### What did you expect to see?

I expect all Go files in my repo to be formatted including those with a tag.

### What did you see instead?

Files in the subpackage were not formatted!

Here I proveded an example repo where everyone can reproduce the bug:

```
$ git clone https://github.com/starius/gofmt-bug
$ cd gofmt-bug
$ go fmt ./...
$ go fmt ./bar
bar/bar.go
```

If there are files without tag in the same package (./bar in my case), `go fmt ./...` sees all the files and works as expected.
Repository: opencv
Issue: Cannot open include file: 'fibersapi.h'
Labels: priority: low,category: build/install,platform: win32

##### System information (version)
- OpenCV => 4.3
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2019

##### Detailed description

When building with "v140_xp", "fibersapi.h" cannot be opened ("modules/core/src/system.cpp").
##### Steps to reproduce

```PowerShell
cmake .. -G "Visual Studio 16 2019" -T v140_xp
cmake --build . --config Release
```

```PowerShell
fatal error C1083: Cannot open include file. 'fibersapi.h':No such file or directory
```
Repository: opencv
Issue: Discussion of "Change OpenCV License to Apache 2" Evolution Proposal
Labels: evolution

Discussion thread for [OE 32. Change OpenCV License to Apache 2](https://github.com/opencv/opencv/wiki/OE-32.--Change-OpenCV-License-to-Apache-2).

Please, put your comments, concerns or express your excitement here
Repository: PowerToys
Issue: [Run] Packaged apps only available via localized name
Labels: Issue-Bug,Product-PowerToys Run

# Environment

```
Windows build number: 10.0.19041.264
PowerToys version: 0.18.2
PowerToy module for which you are reporting the bug (if applicable): PowerToys Run
```

# Problem
For packaged apps we not indexing the englisch name.

# Details / Example
In start I can search for `Rechner` or `calculator` to open the calculator app. The app is shown as "Rechner (= German)". In PT Run the app can only be found by its localized name `Rechner`.

### Screenshots
![image](https://user-images.githubusercontent.com/61519853/83949312-4e590500-a823-11ea-9558-0fb618d74f34.png)

![image](https://user-images.githubusercontent.com/61519853/83949269-033ef200-a823-11ea-86b5-1119ff50e9a4.png)

Related to https://github.com/microsoft/PowerToys/issues/3773
Repository: flutter
Issue: Add `--endless-trace-buffer` to `flutter drive`
Labels: team,tool,c: performance,t: flutter driver,P2,team-tool,triaged-tool

Currently, many performance tests in our devicelab uses `--trace-startup` to actually achieve the effect of `--endless-trace-buffer` (see [[1]]). Almost none of those tests uses such flag to trace the startup performance.

All our startup performance tests use `flutter run --trace-startup` (see [[2]]) which will close the app right after startup. On the contrary, `flutter drive --trace-startup` does not close the app after startup or after the entire drive run.

Shall we add `--endless-trace-buffer` option to `flutter drive` so we can use it instead of `--trace-startup`? That should reduce some confusions.

[1]: https://github.com/flutter/flutter/blob/cce6b3c5aeb12488d7dbec854a0b3adb4b720cd0/dev/devicelab/lib/tasks/perf_tests.dart#L294
[2]: https://github.com/flutter/flutter/blob/cce6b3c5aeb12488d7dbec854a0b3adb4b720cd0/dev/devicelab/lib/tasks/perf_tests.dart#L243
Repository: rust
Issue: False unused_braces lint warning when using non-proc macro
Labels: A-lints,T-compiler,C-bug,L-unused_braces

I tried this code:

```rust
#![allow(dead_code)]
#[derive(Debug)]
struct Foo;
#[derive(Debug)]
struct Bar;
enum SomeWrapperEnum {
    Foo(Foo),
    Bar(Bar),
}

macro_rules! match_all {
    ($on:expr, $with:ident, $body:tt, $($var:ident),*) => {
        match $on {
            $(
                SomeWrapperEnum::$var($with) => { $body },
            )*
        }
    }
}

macro_rules! dispatch {
    ($on:expr, $with:ident, $body:tt) => {
        match_all!($on, $with, $body, Foo, Bar)
    }
}

fn main() {
    let quz = SomeWrapperEnum::Foo(Foo);
    dispatch!(quz, inner, { println!("{:?}", inner) } );
}
```

I expected to see this happen: No warnings, or applying hints from warnings improves the code.

Instead, this happened: The unused_braces lint fired, and applying the hint breaks the code.

The hint:
```
29 |     dispatch!(quz, inner, { println!("{:?}", inner) } );
   |                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these braces
```
If the braces are removed:
```
29 |     dispatch!(quz, inner, println!("{:?}", inner));
   |                                  ^ no rules expected this token in macro call
```
Note: Adding a semicolon after the `println!()` (and leaving the braces) results in no warning and the code still compiles.

I'm using stable, but reproduced on stable, debug, and nightly on play.rust-lang.org.  The lint was added in #70081.  I see #70717, but there are no explicit `ref`s here.  And I also see #70814, but these are not proc macros.

`rustc --version --verbose`:
```
rustc 1.44.0 (49cae5576 2020-06-01)
binary: rustc
commit-hash: 49cae55760da0a43428eba73abcb659bb70cf2e4
commit-date: 2020-06-01
host: x86_64-unknown-linux-gnu
release: 1.44.0
LLVM version: 9.0
```
Repository: godot
Issue: Cannot sort Optionbutton's items by their text and Id alphabetically
Labels: topic:gui

<!-- 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. -->3.2.1.stable
**OS/device including version:**
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->Windows 10 Home 1909
**Issue description:**
<!-- What happened, and what was expected. -->I wanted to sort items of a OptionButton by their text but $OptionButton.items.sort() didn't do anything as far as I could find out. They are also not sorted by their Id.
**Steps to reproduce:**
Create a scene with root node OptionButton. Add Items to it and put some text in each in an alphabetically unsorted order. Attach a script to it. In `_ready():`
type `items.sort()`
Start the scene.
[OptionButton items sort bug.zip](https://github.com/godotengine/godot/files/4740816/OptionButton.items.sort.bug.zip)

**Minimal reproduction project:**
<!-- A small Godot project which reproduces the issue. Drag and drop a zip archive to upload it. -->
Repository: flutter
Issue: FocusNode does not auto scroll to TextFormField when item already selected
Labels: a: text input,framework,f: material design,f: scrolling,f: focus,has reproducible steps,P2,found in release: 3.3,found in release: 3.7,team-design,triaged-design

Scenario: this is a big form, the user selects the TextFormField and then manually scrolls down to the save button. if the _formKey.currentState.validate() detects validation issues we can to get the focus back the the TextFormField with issues.

first, we call _myFocusNode.unfocus(); // this works because the keyword is automatically close.
next, we call FocusScope.of(context).requestFocus(_myFocusNode) //this also works because we can start typing right after. but, **the FocusScope.of(context).requestFocus is not automatically scrolling back to the TextFormField.**

If we try to another TextFormField (Tfield2) other than the last selected, the Tfield2 gets focus and the scroll also makes it visible.

NOTE: if we start typing again, the scroll is executed and the TextFormField becomes visible. 

![Jun-06-2020 12-04-57](https://user-images.githubusercontent.com/5774873/83952488-066bbb00-a7ee-11ea-857e-83bbf4ff9ef7.gif)
Repository: pytorch
Issue: F.affine_grid dispatch async issue
Labels: module: performance,module: nn,module: cuda,triaged

## 🐛 Bug

It seems like `F.affine_grid` dispatch is not entirely async. I'm not sure if this is a bug or necessary behaviour (I'm not too familiar with how the internals of async dispatch work).

Here is a `torch.autograd.profiler.profile` chrome trace of using `F.affine_grid` normally:

<a href="https://ibb.co/7yChwXf"><img src="https://i.ibb.co/mzTpLGj/affine-grid-trace.png" alt="affine-grid-trace" border="0"></a>

As you expect, dispatching the function only takes a few hundred microseconds. However, when you have some CUDA operations before calling `F.affine_grid`, it takes much longer, even though the inputs to `F.affine_grid` don't depend on the other operations.

<a href="https://ibb.co/j8cqGZn"><img src="https://i.ibb.co/gr5QwFk/affine-grid-slow.png" alt="affine-grid-slow" border="0"></a>

## To Reproduce

```python
import math
import torch
from torch import nn
from torch.nn import functional as F

net = nn.Sequential(nn.Conv2d(1, 16, 5, padding=2),
                    nn.ReLU(inplace=True),
                    nn.Conv2d(16, 32, 3, padding=1),
                    nn.ReLU(inplace=True),
                    nn.Conv2d(32, 64, 3, padding=1),
                    nn.ReLU(inplace=True),
                    nn.Conv2d(64, 128, 3, padding=1),
                    nn.ReLU(inplace=True)).cuda()
imgs = torch.rand((batch_size, 1, 28, 28), device='cuda')  # mnist-like
poses = torch.empty((batch_size, 3)).uniform_(-20, 20)
thetas = pose2theta_2d(poses, *imgs.shape[-2:]).cuda()
torch.cuda.synchronize()

with torch.autograd.profiler.profile(enabled=True, use_cuda=True) as p:
    out = net(imgs)
    grid = F.affine_grid(thetas, imgs.shape)
    F.grid_sample(imgs, grid)

p.export_chrome_trace('trace')
```

The first trace is produced by commenting out `out = net(imgs)`, the second is produced by running all the code. The helper function `pose2theta_2d` is in [this gist](https://gist.github.com/n2cholas/e8a087dad2d16d2221b077f1e9259df6) (on an unrelated note, if there is a more efficient/idiomatic way to convert a pose vector or homogenous transformation matrix to theta for `F.affine_grid`, please let me know).

## Expected behavior

I expect the dispatch of the function to not depend on what's happening on the GPU.

## Environment

```
Collecting environment information...
PyTorch version: 1.5.0
Is debug build: No
CUDA used to build PyTorch: 10.2

OS: Ubuntu 18.04.4 LTS
GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
CMake version: version 3.10.2

Python version: 3.6
Is CUDA available: Yes
CUDA runtime version: Could not collect
GPU models and configuration: 
GPU 0: GeForce GTX 1080
GPU 1: GeForce GTX 1080

Nvidia driver version: 440.64
cuDNN version: Could not collect

Versions of relevant libraries:
[pip3] numpy==1.16.6
[pip3] torch==1.5.0
[pip3] torchvision==0.6.0
[conda] Could not collect
```


cc @ngimel @albanD @mruberry @VitalyFedyunin
Repository: flutter
Issue: [pigeon] clean up dart source directory structure
Labels: package,team-ecosystem,p: pigeon,P3,triaged-ecosystem

<img width="805" alt="Screen Shot 2020-06-06 at 6 53 45 PM" src="https://user-images.githubusercontent.com/156888/83958469-0dfb8600-a827-11ea-8403-81b2b193e513.png">

Make this import more ergonomic. Generally, move all non-public API dart files into /src/ folder.  

See:
<img width="948" alt="Screen Shot 2020-06-06 at 6 54 18 PM" src="https://user-images.githubusercontent.com/156888/83958473-223f8300-a827-11ea-974d-b4d18d42bd86.png">

There is no ambiguity which files should be imported here. 

cc @gaaclarke
Repository: flutter
Issue: [pigeon] let tooling figure out the java package from the java_out path rather than manually entering
Labels: package,team-ecosystem,p: pigeon,P3,triaged-ecosystem

Since Java path and package should match anyway. Could save typing out twice. 

cc @gaaclarke
Repository: flutter
Issue: [pigeon] display "common" Dart syntax issues before crashing
Labels: package,team-ecosystem,p: pigeon,P2,triaged-ecosystem

for instance

```dart
@FlutterApi()
abstract class Api {
  foo();
}
```

is invalid because there's no return type. But the error message from running pigeon is 

```
Unhandled exception:
type '_SpecialTypeMirror' is not a subtype of type 'ClassMirror'
#0      Pigeon.parse (package:pigeon/pigeon_lib.dart:179:37)
#1      Pigeon.run (package:pigeon/pigeon_lib.dart:340:48)
#2      main (file:///Users/xster/development/samples/add_to_app/flutter_module_books/_pigeon_temp_.dart:7:21)
#3      _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:299:32)
#4      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)

pub finished with exit code 255
```

Wonder if there's a way to attach our own analysis_options.yaml for basic Dart linting.

cc @gaaclarke
Repository: flutter
Issue: [pigeon] data classes should be immutable
Labels: package,team-ecosystem,p: pigeon,P3,triaged-ecosystem

Have a constructor that takes all the fields and remove setters. It's suitable for interop since it's only made on one side (the receiving side shouldn't have any setters) and it makes it more suitable for use on the same side (the sender can construct the object more ergonomically, the receiving side can pass around an immutable object without worrying about mutations)

cc @gaaclarke
Repository: TypeScript
Issue: Add "sourceMapDir", "declarationMapDir", "inlineDeclarationMap", and "declarationMapInlineSources" compiler options
Labels: Suggestion,Awaiting More Feedback

## Search Terms

TypeScript, Compiler Options, Source Maps, Declaration Files

## Suggestion

Currently, there exist the TypeScript compiler options `sourceMap`, `inlineSourceMap`, `inlineSources`, `declaration`, `declarationMap`, and `declarationDir` but there is no way to tell the compiler the folder for the source map files and the declaration map files. The declaration map cannot be part of the declaration file, too, and the source code cannot be inlined into a declaration map.

Therefore, please add the compiler options:
- `sourceMapDir`: the folder of the emitted source map files;
- `declarationMapDir`: the folder of the declaration map files;
- `inlineDeclarationMap`: the declaration map is put into the declaration file using a comment;
- `declarationMapInlineSources`: the source code becomes part of the declaration map similar to the option `inlineSources` for generated JavaScript files inlining TypeScript sources.

The options `inlineDeclarationMap` and `declarationMapInlineSources` should also be usable together. It is similar to using `inlineSourceMap` and `inlineSources` together.

Using Gulp together with `gulp-typescript` and `gulp-sourcemaps` there is already the possibility to specify a source map folder and declaration map folder using `sourcemaps.write("<folder>", options)` but it would be better to have that possibility as part of a TypeScript compiler option.

## Use Cases

Of course, these compiler options are not necessary in most cases but they open up more flexibility to the user, and the implemetation should not be very difficult.

At least the option `inlineDeclarationMap` would reduce the cluttering of files in the `declarationDir` folder, and `declarationMapInlineSources` together with `inlineDeclarationMap` would make it possible to ship a declaration file with the sources as one file.

## Checklist

My suggestion meets these guidelines:

* [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [x] This wouldn't change the runtime behavior of existing JavaScript code
* [x] This could be implemented without emitting different JS based on the types of the expressions
* [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).
Repository: flutter
Issue: [pigeon] data classes can implement Serializable on Android
Labels: package,team-ecosystem,p: pigeon,P3,triaged-ecosystem

Should be a trivial addition (since there's already from and to map). 

Would make it easier to pass around on Android, with Intents and Bundles. 

cc @gaaclarke
Repository: PowerToys
Issue: Coloring windows
Labels: Idea-New PowerToy

# Enable window to have custom background color (or theme) to distinguish environments

- When editing or comparing (config) files named alike in prod and test environments, it is sometimes confusing to have about the same content, the same file name (of course), and this led me already to bad mistakes, applying setting to the wrong environment :-(
- It would be safer to have (for example) a reddish background for the notepad editing the prod version, and a greenish (or default) background for the test version.
- I don't have any OS2 machine available to verify, but as far as I remember, such custom coloring of windows was possible in Presentation Manager

# Proposed technical implementation details (optional)

- Add a theming entry to context menu on right click in any window, the theming would activate a preset theme named like 'development', 'test', 'production', 'to do', with preset colors, fonts, title bar color...
- The theme would be applied only to the current window, but if possible, could be persisted for the next time the same item is opened.