sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: opencv
Issue: [calib3d] Mismatch between documentation and sample code for `StereoSGBM`
Labels: category: documentation,category: calib3d

##### Detailed description

The documentation and sample for `StereoSGBM` don't match.

* [What documentation says](https://github.com/opencv/opencv/blob/master/modules/calib3d/include/opencv2/calib3d.hpp#L3287): `blockSize Matched block size. It must be an odd number \>=1 . Normally, it should be somewhere in the 3..11 range`
* [What python sample code says](https://github.com/opencv/opencv/blob/master/samples/python/stereo_match.py#L47): `blockSize = 16`

One of them should be wrong: either the documentation is lacking, or the sample code is erroneous. The sample code for cpp is very different and has odd values as default as well as checks the user's input.

##### 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.
   -->
 - [x] 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: vue
Issue: Safari doesn't see frame inside vue app
Labels: bug,has PR,has workaround

### Version
2.6.11

### Reproduction link

https://jsfiddle.net/posva/vczwh82g/2/







### Steps to reproduce

In Safari click different links to load iframes

### What is expected?

all iframes should load

### What is actually happening?

the one rendered inside vue doesn't load
<!-- generated by vue-issues. DO NOT REMOVE -->
Repository: PowerToys
Issue: Investigate `Numpad Enter` vs `Enter` for remaping keys in Keyboard Manager 
Labels: Idea-Enhancement,Help Wanted,Product-Keyboard Shortcut Manager

<!--
**Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**.
Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue.
-->

## ℹ Computer information

- Windows build number: 2004
- PowerToys version: v0.20.0
- PowerToy module: **Keyboard Manager** 

## 📝 Provide detailed reproduction steps (if any)

1. Open `Remap a Key` button in **Keyboard Manager** module
2. You just can not remap `Numpad Enter` to some new key, instead there's only the normal `Enter` key

### ✔️ Expected result

_What is the expected result of the above steps?_ 

There should be a `Numpad Enter` option in the left checkbox.

### ❌ Actual result

_What is the actual result of the above steps?_

Missing `Numpad Enter` option in the left checkbox.

## 📷 Screenshots

_Are there any useful screenshots? WinKey+Shift+S and then just paste them directly into the form_

Not necessary.
Repository: godot
Issue: [Bullet] Performance issues when adding lot of convex shapes to a RigidBody
Labels: topic:physics,topic:3d,performance

**Godot version:**
Godot_v3.2.3-rc3_win64

**OS/device including version:**
W10

**Issue description:**
I try to do a 3D voxel blocky game. Each grid of voxel is a rigidbody, each rigidbody is capable to move and collide with others. As a result I can't use concave shapes or height maps and I'm forced to create a lot of box shapes.

In a baby case scenario, I have 16x16x16 blocks per chunk, and 2x2x2 chunks. If I randomly add blocks 75% of the time I get an average of 600 shapes per chunks (optimized by merging boxes). It takes 13 seconds to populate everything. And then it takes 4 seconds to add a block in one of these chunks.

I've tried to use the CollisionObject API and the PhysicsServer API and both have this problem. The fastest solution so far is to have one shape owner per shape.

Once the calculations are done the engine isn't particularly struggling. So I figured there must be something wrong with the shape addition algorithms.

I'm open to suggestion if there's something better to do.

Thanks!
Repository: PowerToys
Issue: [FancyZones] Option to preserve the window aspect ratio
Labels: Idea-Enhancement,FancyZones-Dragging&UI,Product-FancyZones

With Firefox you can make frameless pop-ups from videos to move freely around your screen. These are fixed in aspect according the video.

When trying to put it into a zone it scales based on available horizontal space meaning if your zone has a wider ratio than the video it will reach outside of the zone.

So It would be nice to see an option or keybind to only fill zone space or alternatively to choose whether or not you want to scale with available vertical space.
Repository: PowerToys
Issue: [Run][File Plugin] search for folders only
Labels: Idea-Enhancement,Help Wanted,Product-PowerToys Run,Run-Plugin

## 📝 Provide a description of the new feature

I often enough want to navigate to a deeply buried folder quickly, but typing in it in PT Run just brings up a lot of files.
What I want is an option, preferably typing the slash `/` to let PT Run know I only want to see folders as result.

---

If you'd like to see this feature implemented, add a 👍 reaction to this post.
Repository: rust
Issue: Confusing notes with per-method where-bounds when bounds are not satisfied
Labels: C-enhancement,A-diagnostics,A-trait-system,T-compiler,D-confusing

The following code:

```rust
trait Fruit {
    type Error;
}

struct Peach;
impl Fruit for Peach {
    type Error = ();
}

struct Banana<F>(F);
impl<F> Banana<F> {
    fn peel(&self) -> Result<(), F::Error> where F: Fruit {
        unimplemented!()
    }
}

fn pineapple() -> Result<(), ()> {
    let banana: Banana<&Peach> = Banana(&Peach);
    banana.peel()?;
    Ok(())
}
```

[playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=2fe932e57a6ca751fd9f7bf1288f67da)

outputs the following error:

```
error[E0599]: no method named `peel` found for struct `Banana<&Peach>` in the current scope
  --> src/lib.rs:19:12
   |
10 | struct Banana<F>(F);
   | -------------------- method `peel` not found for this
...
19 |     banana.peel()?;
   |            ^^^^ method not found in `Banana<&Peach>`
   |
   = note: the method `peel` exists but the following trait bounds were not satisfied:
           `<&Peach as Fruit>::Error = _`
```

The `note` in this error is confusing as it only leads further away from the solution and is also difficult to read. In particular it is talking about trait bounds, but the `<&Peach as Fruit>::Error = _` presented is not even a trait bound. The real problem here is that `F: Fruit` is not satisfied. 

The error message improves significantly when the bound is moved to the `impl` generic instead as such:

```rust
impl<F: Fruit> Banana<F> {
    fn peel(&self) -> Result<(), F::Error> {
        unimplemented!()
    }
}
```

We should strive for a similar note when the where-bound is applied to method like in the original example.
Repository: TypeScript
Issue: Clean up syntax for importing and using nested type declarations
Labels: Suggestion,Awaiting More Feedback

<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨

Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker.

Please help us by doing the following steps before logging an issue:
  * Search: https://github.com/Microsoft/TypeScript/search?type=Issues
  * Read the FAQ, especially the "Common Feature Requests" section: https://github.com/Microsoft/TypeScript/wiki/FAQ

-->

## Search Terms

<!-- List of keywords you searched for before creating this issue. Write them down here so that others can find this suggestion more easily -->

- import 
- import equals
- nested import

## Suggestion

<!-- A summary of what you'd like to see added or changed -->

The current syntax for importing nested modules is confusing. For example, to specifically use a single property from an interface I would need to do something like this:

```typescript
// interface.ts
interface Example {
    Foo: string
}

// file.ts
import { Example } from 'interface.ts';
import Foo = Example.Foo // this is weird, as I'm not actually importing any resource here
```

From what I understand, import is not importing anything here. It's confusing and looks like it's doing something totally different at first glance. In this case, I could also use `type Bind = interfaces.Bind`, but I don't want to create a new resource.

A much nicer syntax would be adding a `use` or `take` keyword, or adding support for importing nested modules

## Use Cases

<!--
What do you want to use this for?
What shortcomings exist with current approaches?
-->

This suggestion is just for readability and developer experience.

## Examples

<!-- Show how this would be used and what the behavior would be -->
Importing nested modules with `use` or `take`
```typescript
// interface.ts
interface Example {
    Foo: string
}

// file.ts
import { Example } from 'interface.ts';
take { Foo } from Example;
```

importing nested interface/namespace values:

```typescript
// interface.ts
interface Example {
    Foo: string
}

// file.ts
import { Example: { Foo } } from 'interface.ts';
```

## 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: pytorch
Issue: [discussion] Support __round__ magic
Labels: triaged,enhancement,module: numpy

Then `round(torch_tensor)` would work. Currently wrappers like in https://github.com/pytorch/fairseq/blob/38f35cccea01482d143c488c75fceb352875d654/fairseq/logging/meters.py#L53 have to be done.

However, this is not supported in NumPy

cc @mruberry @rgommers
Repository: go
Issue: runtime: gcc_libinit.c _cgo_try_pthread_create 'EAGAIN' undeclared
Labels: NeedsInvestigation,compiler/runtime

### Problem

Hi, I'm getting the below error when compiling a CGO project.

```
# runtime/cgo
gcc_libinit.c: In function '_cgo_try_pthread_create':
gcc_libinit.c:106:14: error: 'EAGAIN' undeclared (first use in this function)
   if (err != EAGAIN) {
              ^~~~~~
gcc_libinit.c:106:14: note: each undeclared identifier is reported only once for each function it appears in
gcc_libinit.c:114:1: error: control reaches end of non-void function [-Werror=return-type]
```
The C code compiles successfully. This seems to be an issue in CGO ?

### Some basic investigation

I checked the code in `/usr/local/go/src/runtime/cgo/gcc_libinit.c` and it does include `#include <errno.h>`. But still the error `'EAGAIN' undeclared` appears.

https://github.com/golang/go/blob/master/src/runtime/cgo/gcc_libinit.c#L9

### Workaround
- Adding `#define EAGAIN 11` in  `/usr/local/go/src/runtime/cgo/gcc_libinit.c` solves this.

Or,

- Including `#include <asm-generic/errno.h>` in `/usr/local/go/src/runtime/cgo/gcc_libinit.c` solves this.

### Other details
- OS: Debian 10
- Go version: go version go1.14.6 linux/amd64
- gcc & gccgo version: gcc (Debian 8.3.0-6) 8.3.0
Repository: flutter
Issue: Allow atomic Flutter releases
Labels: c: new feature,team,P2,team-release,triaged-release

Today, Flutter releases are triggered by a push to the release branch. From there, LUCI git pollers will pick up the new commits, and trigger packaging builds (one per host platform per architecture). At the end of each build, they are zipped, uploaded to cloud storage, and a manifest JSON file for the website is updated.

## Problems with current process

1. If one of the packaging builds fail but others succeed (as happened [here](https://docs.google.com/document/d/1TeCpj-T0HAp7DcY2ag-q5iX218TeOHNcW5fUusaum0c/view), we are in a strange state that is difficult to recover from.
1. There is latency between when the different platform archives are available on the website.
1. There is latency between when a release is pushed to the branch and when it is available on the website.
1. The release archive is not tested before it is publicly available (although the code has already been tested on the candidate branch).
1. Build triggering has to be timed approximately 1 hour before the intended release.

We should have a system where packaging archives are built but not publicly available, and then, upon all green builds, the release can be pushed to release branch which triggers a quick simple CI job that merely updates the website manifest.

## Blockers to atomic releases

The Flutter tool assumes a release channel is a git branch (e.g. the source of truth for the `stable` channel is the upstream `stable` branch). It reports the current branch as the name of the local branch it has checked out, and it subscribes to upgrades by checking if the upstream remote branch has newer commits. To allow a release package to be created before it is publicly available to existing customers, either:
  1. an SDK package would have to be created with a git repo whose release branch is *ahead* of the upstream repository yet still tracking it; or
  2. the Flutter tool would have to be refactored to not rely on git branches for identifying the current release and for subscribing to upgrades.

Solution 1 would be messing with git history in a way that would be difficult to reason about and difficult to test, and Solution 2 would be a significant amount of work and need to be scoped with a design doc (especially how to subscribe to upgrades).
Repository: next.js
Issue: JSConfig with Webpack 5 Resolution Does Not Work
Labels: bug,Webpack

# Bug report

@timneutkens @Timer I'm using Yarn 2 and I have a Next.js application within a monorepo alongside some other Webpack 5 applications. I have set the `resolutions` at the root package.json level to resolve to Webpack 5. What I've found is that by doing that, it actually breaks my `jsconfig.json` and absolute imports. This is a continuation of this [comment](https://github.com/vercel/next.js/issues/13341#issuecomment-667254164). 
> @sokra Should be fixed as of 5.0.0-beta.24

I've updated to `webpack@5.0.0-beta.24` and `next@9.5.2-canary.8` and the error is still present. I've updated my [reproduction repo](https://github.com/Kinbaum/broken-jsconfig) to reflect it. This is the error I see in the terminal:

```shell
Module not found: Your application tried to access components, but it isn't declared in your dependencies; this makes the require call ambiguous and unsound.

Required package: components (via "components/Header")
Required by: /broken-jsconfig/packages/next-app/pages/

  3 |  * This import throws an error when using webpack 5 resolution in monorepo
  4 |  */
> 5 | import Header from 'components/Header';
  6 | import styles from '../styles/Home.module.css'
  7 | 
  8 | export default function Home() {
```
Repository: pytorch
Issue: How can I specify NumPy while building PyTorch?
Labels: module: build,triaged


I tried the following command

```
TORCH_CUDA_ARCH_LIST="6.1" NO_TEST=1 USE_MKLDNN=0 FULL_CAFFE2=1 USE_NUMPY=1 python setup.py build
```

And PyTorch is **100% built successfully**. But in the end, it shows:

```
NumPy not found
```

I `pip install numpy --user` under ` ~/.local` . How can I specify **numpy** while building **pytorch**?


Cheers





cc @malfet @seemethere @walterddr
Repository: flutter
Issue: Track the number of commits dropped per engine roll 
Labels: team-infra,P3,triaged-infra

quote from @yjbanov 

> The reason this number is important is because when we drop a lot of commits, there's a much higher chance that it will have to be rolled back, and the extra size of the drop makes the rollback process disproportionately more difficult (e.g. it requires a longer bisection). Large number of commits also means higher latency between an engine change and its landing in the framework.

This should be doable when we parse/collect flutter rollers metrics.
Repository: godot
Issue: Pan mode stays on after opening any editor UI
Labels: bug,topic:editor

Godot 3.1

Issue:
Everytime when the pan mode is used and ui opens up, the pan mode stays on until you press a button on your mouse again.


Steps to reproduce:
Example 1:
turn pan mode on by either holding your middle or your right mouse button.
keep the mouse button pressed and now do CTRL + Q.
Now, if you cancel the action and do nothing else , the cursor will stay in the "dragging" state and move the scene around
This works for every ui element.
Example 2:
Create a Node and select it so you can delete it. Now start dragging the scene again and press DELETE.
If you now cancel the delete action you will also stay in the pan mode and move around.
Repository: flutter
Issue: migrate SystemChannels.navigation to standard codec
Labels: c: new feature,framework,engine,P3,team-engine,triaged-engine

The SystemChannels.navigation is currently using the json codec and is inefficient. we would like to migrate it over to the standard codec.
Repository: node
Issue: `error` event not emitted when destroying an HTTP request without a socket
Labels: http

* **Version**: v14.5.0
* **Platform**: Linux solus 5.6.19-158.current \#1 SMP PREEMPT Sun Jul 26 14:17:01 UTC 2020 x86_64 GNU/Linux
* **Subsystem**: http

### What steps will reproduce the bug?

```js
const http = require('http');
const net = require('net');

const request = http.get('http://example.com', {
    createConnection: () => null
});

request.once('error', console.error);

request.destroy(new Error('Oh no.'));
```

### How often does it reproduce? Is there a required condition?

Always.

### What is the expected behavior?

```
Error: Oh no.
```

### What do you see instead?

```
```

(hangs indefinitely)
Repository: pytorch
Issue: torch.distributed.rpc package not work well with generator and lambda
Labels: triaged,module: rpc

I'm using torch.distributed.rpc package to work on a distributed training POC, currently I'm seeing rpc package itself is using pickle and pickle not work well with some python features like generator and lambda, so that put extra limitation, what even worse is if I try to reference some other python package that used lambda or generator I have no way to combine usage of this and rpc package.

So my question is:
1. can we use other pickling package that has fewer limitations like dill?
2. Any suggestion to work around this issue, especially when I try to use rpc with another package already using lambda or generator?

Thanks for any suggestions. 


cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @gqchen @aazzolini @rohan-varma @xush6528 @jjlilley @osalpekar @jiayisuse @agolynski
Repository: youtube-dl
Issue: open.fm support
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.
-->

- https://open.fm/stacja/radio-nowy-swiat


## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

audio streams with music
Repository: youtube-dl
Issue: Add a custom protocol handler
Labels: request

## Checklist

- [x] I'm reporting a feature request
- [x] I've verified that I'm running youtube-dl version **2020.07.28**
- [x] I've searched the bugtracker for similar feature requests including closed ones

## Description

Windows, Linux, and Mac support the creation of custom protocol handlers to launch applications from within other applications, namely web browsers. For instance, [Steam uses a protocol handler that websites can use to allow users to run Steam commands](https://developer.valvesoftware.com/wiki/Steam_browser_protocol). [This third party tool allows calling youtube-dl from the protocol URI ytdl://](https://github.com/Silverfeelin/youtube-dl-handler), but it only supports Windows. For Linux, adding a protocol handler is very trivial thanks to the XDG standard. You would simply create a .desktop file that xdg-open would use. This would be useful for browser extensions that could utilize this protocol to make video downloads simpler. As for Mac, I'm not quite sure how it would be done.

```
[Desktop Entry]
Exec=youtube-dl %u
MimeType=x-scheme-handler/ytdl;
Name=youtube-dl
NoDisplay=true
Type=Application
```