sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: opencv
Issue: opencv-python VideoCapture in dell EMC centos gets 10s delay
Labels: incomplete,needs reproducer,needs investigation

<!--
If you have a question rather than reporting a bug please go to http://answers.opencv.org where you get much faster responses.
If you need further assistance please read [How To Contribute](https://github.com/opencv/opencv/wiki/How_to_contribute).

Please:

* Read the documentation to test with the latest developer build.
* Check if other person has already created the same issue to avoid duplicates. You can comment on it if there already is an issue.
* Try to be as detailed as possible in your report.
* Report only one problem per created issue.


This is a template helping you to create an issue which can be processed as quickly as possible. This is the bug reporting section for the OpenCV library.
-->

##### System information (version)
<!-- Example
- OpenCV => 3.1
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2015
-->

- OpenCV =>4.1.1
- Operating System / Platform => centos7.7
- Compiler => python,anaconda

##### Detailed description
when i use 
```
cv2.VideoCapture('') rtsp camera stream 
```
and then imshow the realtime frame,i get a 10s delay,sometimes 8s.
My machine is DELL EMC double cores.
The same code in other machine ,windows or other centos machine ,it shows the realtime camera.
i think if opencv is incompatible with the machine with double core .
I try change to ubuntu ,but it has same problem.
Hope for get your reply,thanks.
<
!-- your description -->

##### Steps to reproduce

<!-- to add code example fence it with triple backticks and optional file extension
    ```.cpp
    // C++ code example
    ```
 or attach as .txt or .zip file
-->
Repository: PowerToys
Issue: RAM disk
Labels: Idea-New PowerToy

# Summary of the new feature/enhancement
Now that a modern desktop PCs comes with a ton of RAM, it would be awesome to have a MS-supported RAM-disk solution. Modern SSDs are fast, but not a match for a fast DDR4 unit. 

It could be used as a:
- "transient" tmp folder
- storage for compilation artifacts/system headers directory(build time improvements, yay!) 
- any HDD-intensive application

Also It might be able to automatically copy some folder on it on Windows startup and periodically write-back changes.
Repository: vscode
Issue: SCM - Make registerDiffInformationCommand public
Labels: feature-request,api,scm

I see that the `registerDiffInformationCommand` has been propsed for a while. I was wondering if you have an eta for when it will be stable. The selected ranges functionality would be useful.
Repository: node
Issue: doc: http.ServerResponse close event
Labels: http,doc

<!--
Thank you for reporting a possible bug in Node.js.

Please fill in as much of the template below as you can.

Version: output of `node -v`
Platform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows)
Subsystem: if known, please specify the affected core module name

If possible, please provide code that demonstrates the problem, keeping it as
simple and free of external dependencies as you can.
-->

* **Version**: 12.x

<!-- Please provide more details below this comment. -->

In the [version 10 documentation](https://nodejs.org/docs/latest-v10.x/api/http.html#http_event_close_1) it states that the 'close' event is emitted on a response when the connection is terminated before the response has ended.

In the [version 12 documentation](https://nodejs.org/docs/latest-v12.x/api/http.html#http_event_close_1) it simply states that the connection was terminated. This does not seem consistent with the behaviour I have seen, where the event is actually emitted at the end of each response, which I have also found described in [a commit](https://github.com/nodejs/node/commit/ffb503be5f07a26d73a2b3b59955636452948ba7) introduced in version 11.

Can you clarify that the event in version 12 is in fact emitted at the end of each response, in which case I would be happy to submit a PR to update the docs.
Repository: node
Issue: console.log failure while working with worker threads.
Labels: worker,stdio

* **Version**: 12.4.0
* **Platform**: Docker which runs on mac (Darwin Kernel Version 18.7.0, xnu-4903.278.12~1/RELEASE_X86_64 x86_64)
* **Subsystem**: 

<!-- Please provide more details below this comment. -->

Hello everyone.

Thank you for your hard work on NodeJS.

Now, i developed a small service, which takes 4 csv files, parses them, maps them together and imports them into elasticsearch.

Each file is being parsed on a different thread.

The parsed content of one of the files is being send via an Event to a different file, this file spawns for each set of data, a new thread that will import that set into ES.

In parallel on the main thread, i send the content of one of the files in chunks via an Event with the contents of the remaining 2 files, to a different script again.

Which will spawn a new thread for that chunk of data. That thread will map the given data to the chunk provided, if they match. Send the mapped data back to the main thread, which again will spawn a new thread who will import the mapped data into ES.

The issue i have here is, that once everything is working at the same time, the only console.logs i get are the ones from the main thread. Everything that is being logged on a worker thread, is being lost somewhere, while the main thread is under load.

Note: The actual code is being processed as it should, it is just the console.logs who do not care.

This makes debugging on worker threads really difficult. Maybe i am missing something.
Repository: rust
Issue: Too many `type inside `async` object must be known in this context` errors
Labels: A-diagnostics,T-compiler,A-inference,C-bug,A-async-await,AsyncAwait-Triaged,D-verbose

This code ([Playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=1bc26deb3213fe0b2fb95f71a2c6e60d))
```rust
use futures::stream::{iter/*, StreamExt*/};

async fn produce_11_errors() {
    iter(vec![1, 2, 3])/*.collect::<Vec<_>>()*/.await;
}

fn main() {}
```
currently produces 11 errors:
- 1 of `the trait bound is not satisfied`
- 10 of `type inside async object must be known in this context`.

If you add elements to vec, it will generate even more.

<!-- TRIAGEBOT_START -->

<!-- TRIAGEBOT_ASSIGN_START -->

<!-- TRIAGEBOT_ASSIGN_DATA_START$${"user":"doc-jones"}$$TRIAGEBOT_ASSIGN_DATA_END -->

<!-- TRIAGEBOT_ASSIGN_END -->
<!-- TRIAGEBOT_END -->
Repository: rust
Issue: Syntax of `rustc --cfg` with key and value is obscure.
Labels: A-frontend,C-enhancement,A-diagnostics,T-compiler

Hi,

I was recently defeated by `rustc --cfg`.

`rustc -h` says:
```
--cfg SPEC      Configure the compilation environment
```

Hrm, well I know that stuff like `--cfg var` should work, but that I should also be able to assign a value:

```
$ rustc --cfg key=val -
error: invalid `--cfg` argument: `key=val` (expected `key` or `key="value"`)

$ rustc --cfg key="val" -
error: invalid `--cfg` argument: `key=val` (expected `key` or `key="value"`)
```

Eh? I passed exactly what the error asked. And obviously the backticks can't form the solution, as they'd open a sub-shell.

The solution is to use: `rustc --cfg 'key="val"'`

The quoting is very specific.

Swapping the single and double quotes won't work:
```
$ rustc --cfg "key='val'" -
error: character literal may only contain one codepoint
 --> <quote expansion>:1:5
  |
1 | key='val'
  |     ^^^^^
help: if you meant to write a `str` literal, use double quotes
  |
1 | key="val"
  |     ^^^^^
```

And oddly, quoting the value is ok, but not the key:
```
$ rustc --cfg '"key"="val"' -
error: invalid `--cfg` argument: `"key"="val"` (expected `key` or `key="value"`)
```

I find this wholly unexpected and I had to grep the source code to find out how to use the argument :(

So are the current limitations of the interface intentional?

If so, we should improve the `-h` doc and error message.

If not, what do we want? Should `--cfg` accept:
 * `key=val`
 * `'key="val"`
 * `"key='val'"`
 * `'"key"="val"'`
 * `"key=val"`

Thanks.
Repository: terminal
Issue: Azure Cloud Shell to connect to Sovereign Clouds
Labels: Product-Terminal,Issue-Task,Area-AzureShell


The Azure Cloud Shell component needs to be able to connect to Azure Clouds other than the default Commercial cloud.  Currently the relevant URL endpoints are hard coded to Commercial.
Repository: TypeScript
Issue: Support "evolving any" with forEach / internal functions
Labels: Suggestion,Awaiting More Feedback

TypeScript 2.1 [introduced](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-1.html#improved-any-inference) the notion of an "evolving" `any` type, a variable whose type is determined based on subsequent usage:

```ts
function square(xs: number[]) {
    const ys = [];
    for (const x of xs) {
        ys.push(x * x);
    }
    return ys;  // type is number[], hooray!
}
```

Unfortunately this is a bit brittle. If you ever introduce an internal function (say if you use `forEach`) then the inferred type is lost and you get a no implicit any error:

```ts
function square(xs: number[]) {
    const ys = [];  // Variable 'ys' implicitly has type 'any[]' in some locations
                    // where its type cannot be determined. (7034)
    xs.forEach(x => {
        ys.push(x * x);
    });
    return ys;  // Variable 'ys' implicitly has an 'any[]' type. (7005)
}
```

The two forms do the same thing, so it's somewhat surprising that the for-of version passes the type checker but the `forEach` version does not.

I find the "evolving any" construct to be incredibly useful, but I have to scrap it every time I introduce an arrow function. I'm proposing that it be extended to work for cases like this.

**TypeScript 3.7.2**
[Playground link](https://www.typescriptlang.org/play/?ssl=16&ssc=6&pln=13&pc=8#code/GYVwdgxgLglg9mABAZwI4gIYCcCmAKAD2QC5EwQBbAIxywG0BdASkQG8AoRLxCBZKRAE9kiALyJGAbk7dgcLIjy8w-RAURxga5Cw7d9Q5ADoADiGQALQogBUaptP0BfGV1xQQWJMOkv2oSFgEFHRsHAAmQhIyShp6ZjZXHj4BYTEJBkduIiM5LABRDAgrdVEAPkSDbmFTcxLbeyyuJwck909vZF92IA)

**Expected behavior:**

I'd expect both versions to pass the type checker and infer the type of `ys` as `number[]`.
Repository: go
Issue: x/build/env/windows: add GUI shell?
Labels: help wanted,OS-Windows,Builders,NeedsInvestigation,FeatureRequest

Now that we have `gomote rdp` (#26090) for RDP access to our Windows buildlets, I discovered our Windows images are pretty spartan over RDP.

I guess they don't have the Windows GUI enabled?

@johnsonj, is that configurable? I assume, and Google suggests? I don't see anything in https://github.com/golang/build/blob/master/env/windows/startup.ps1 that looks like it's explicitly disabling it, at least.
Repository: flutter
Issue: flutter does not support GBK encoding.
Labels: c: new feature,framework,a: internationalization,dependency: dart,c: proposal,P2,team-framework,triaged-framework

## Steps to Reproduce
flutter does not support GBK encoding.
We wish gbk supporting coming soon.


1. put gbk encoding file in the assets dir.
the attachment file is here.
[gbk.txt](https://github.com/flutter/flutter/files/3853512/gbk.txt)
file content is:
```
# this file should be opened by encoding GBK or GB2312.
测试中文
如果有问题就报错
GBK及GB2312编码
加入标点符号，。测试
中英文ppp混杂-@abc测试
flutter能否支持GBK？
很多文件都在使用
```

2. load file content.
codes are here:
```
_readContentByString() async {
    final content = await rootBundle.loadString('assets/gbk.txt');
    print(content);
  }

  _readContentByBytes() async {
    final bytes = await rootBundle.load('assets/gbk.txt');
    final array = bytes.buffer.asUint8List();
    final str = String.fromCharCodes(array);
    print(str);
  }
```

3. Sample codes link here:
[sample project](https://gist.github.com/monkingame/271a7ce45b66c08bd930fa2922bfa4bf)
Note: gbk.txt must be in [assets] directory.
[gbk.txt](https://github.com/flutter/flutter/files/3853512/gbk.txt)

4. Run the project
If run _readContentByString,then exception occured:
```
Unhandled Exception: FormatException: Bad UTF-8 encoding 0xb2 (at offset 56)
```

If run _readContentByBytes,then file content shows:
```
flutter: # this file should be opened by encoding GBK or GB2312.
²âÊÔÖÐÎÄ
Èç¹ûÓÐÎÊÌâ¾Í±¨´í
GBK¼°GB2312±àÂë
¼ÓÈë±êµã·ûºÅ£¬¡£²âÊÔ
ÖÐÓ¢ÎÄppp»ìÔÓ-@abc²âÊÔ
flutterÄÜ·ñÖ§³ÖGBK£¿
ºÜ¶àÎÄ¼þ¶¼ÔÚÊ¹ÓÃ
```

**Target Platform:**
iOS
**Target OS version/browser:**
13.2
**Devices:**
Simulator or physical iphone


## Exception Logs
```
[VERBOSE-2:ui_dart_state.cc(148)] Unhandled Exception: FormatException: Bad UTF-8 encoding 0xb2 (at offset 56)
[38;5;244m#0      _Utf8Decoder.convert  (dart:convert/utf.dart:530:13)[39;49m
[38;5;244m#1      Utf8Decoder.convert  (dart:convert/utf.dart:327:13)[39;49m
[38;5;244m#2      Utf8Codec.decode  (dart:convert/utf.dart:59:56)[39;49m
[38;5;244m#3      AssetBundle.loadString[39;49m
<asynchronous suspension>
[38;5;244m#4      CachingAssetBundle.loadString.<anonymous closure>[39;49m
[38;5;244m#5      _LinkedHashMapMixin.putIfAbsent  (dart:collection-patch/compact_hash.dart:291:23)[39;49m
[38;5;244m#6      CachingAssetBundle.loadString[39;49m
[38;5;248m#7      MyApp._readContentByString[39;49m
<asynchronous suspension>
[38;5;244m#8      _InkResponseState._handleTap[39;49m
[38;5;244m#9      _InkResponseState.build.<anonymous closure>[39;49m
dart-lang/core#257     GestureRecognizer<…>
```

## flutter analyze
```
No issues found! (ran in 2.1s)
```

## flutter doctor -v
```
No issues found!
```
Repository: pytorch
Issue: Add support for integer matrix multiplication (particularly for dtype = torch.int8 )
Labels: feature,module: cuda,triaged

## 🚀 Feature
<!-- A clear and concise description of the feature proposal -->

Implement GPU INT8 matrix multiplication in PyTorch.

## Motivation

<!-- Please outline the motivation for the proposal. Is your feature request related to a problem? e.g., I'm always frustrated when [...]. If this is related to another GitHub issue, please link here too -->

In order to save time by using less GPU memory per data (hence, being able to use bigger batch sizes), I think it would be nice to be able to use int8 when representing the data, for example, for combinatorial problems, since the combinatorial space is vast.

## Pitch

<!-- A clear and concise description of what you want to happen. -->
I'd like to be able to perform a matrix multiplication in GPU when using dtype = torch.uint8

## Alternatives

<!-- A clear and concise description of any alternative solutions or features you've considered, if any. -->

A current alternative is to use float32 or float16 dtypes

## Additional context

<!-- Add any other context or screenshots about the feature request here. -->
As far as I'm aware, INT8 GPU matrix multiplication is already supported for CUDA and cuBLAS, but I'm not sure if it is competitive with using half precision.

cc @ngimel
Repository: go
Issue: x/crypto/blake2b: provide reset that allows specifying a new key
Labels: NeedsInvestigation

blake2b digests are pretty large. They account for 60% of allocated space in my benchmark, so they're a good candidate for re-use, except that (at least in my case, PASETO), I need to use a new key every time. It'd be nice if there was a reset function that let me specify a new key.

The API options for this aren't particularly nice, since the blake2b functions all return `hash.Hash` instead of a concrete type. The two options I see are: (1) provide a package-level `ResetKey` function that accepts a `hash.Hash` and panics if given the wrong kind of hash, and (2) provide a package-level `ResetKey` interface and promise that blake2b `hash.Hash`es can be type-asserted to that interface. (Or some other name. The reset should perhaps also accept a new size.)

If there's API consensus, I can try my hand at implementing.

cc the three people who have touched that file: @aead @rasa @ValarDragon
Repository: flutter
Issue: Custom Overlay for Tooltip Widget
Labels: c: new feature,framework,f: material design,customer: mulligan (g3),c: proposal,P3,team-design,triaged-design

Internal: b/148141781

## Use case

I want to provide a "bubble" in the bottom of  **Tooltip**. And also, "X" icon to close the tooltip. Currently,  Tooltip class doesn't provide any property to customize overlay. It is showing a simple Text widget inside a ConstrainedBox. It also lacks a way of showing/hiding tooltip programmatically. 

I'm achieving my use case with basically **copying the whole Tooltip class** and changing the __TooltipOverlay_ [build](https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/material/tooltip.dart#L493) method. 

Tooltip decoration property is only useful to change the shape and background color. There is also no way to show/hide tooltip programmatically.

## Proposal

How about providing a **overlay** parameter in Tooltip?
If it is not provided, `_TooltipOverlay` can be used as a default overlay. 

I would be happy to give a PR with tests. I don't want to copy the whole **Tooltip** class from the framework to just modify a single method!

And also, exposing show/hide tooltip would make the widget very much useful!
Repository: godot
Issue: [Mono] Runtime loaded assemblies are not getting recognized by the engine
Labels: bug,topic:dotnet

**Godot version:**
3.1.1
**OS/device including version:**
Windows 7 x64
**Issue description:**
If you are going to load an external node that got some sort of attached script to it, even if you are going to load the assembly with the implementation of that class, Godot still cannot find that class by any means. It only shows up a message, simular to this: `Cannot instance script because the class '%ClassName%' could not be found. Script: res://%ClassName%.cs`
**Minimal reproduction project:**
[Core.zip](https://github.com/godotengine/godot/files/3854240/Core.zip)
Repository: neovim
Issue: API: named extmarks enhancements (tracking issue)
Labels: enhancement,marks

followup of https://github.com/neovim/neovim/pull/11356

potential enhancements (discuss / RFC):

- list all marks, not only per-buffer
- jump to a mark from anywhere
- set a "named mark" with an arbitrary name, via `:mark {name}`
- jump to a "named mark" , perhaps by `:jump {name}`
Repository: opencv
Issue: Add support for super-fisheye lenses
Labels: feature,category: calib3d

Initial work has been done in https://github.com/opencv/opencv/pull/6801. Find all discussions and opened issues in the PR.
Repository: TypeScript
Issue: Compiler error message improvement: Special casing container objects
Labels: Suggestion,Experience Enhancement

## Search Terms

array promise container error message compare  

## Suggestion

Could it be worth having an extra special case message when the only difference is that you haven't included an array indicator instead of listing the property differences e.g.

3.7:
```
src/index.ts:356:5 - error TS2322: Type '{ renderedMessage: string; id: string; category: 0 | 1 | 2 | 3; code: number; start: number | undefined; }[][]' is not assignable to type '{ renderedMessage: string; id: string; category: 0 | 1 | 2 | 3; code: number; start: number | undefined; }[]'.
      Type '{ renderedMessage: string; id: string; category: 0 | 1 | 2 | 3; code: number; start: number | undefined; }[]' is missing the following properties from type '{ renderedMessage: string; id: string; category: 0 | 1 | 2 | 3; code: number; start: number | undefined; }': renderedMessage, id, category, code, start

    356     errors,
            ~~~~~~

      src/index.ts:235:3
        235   errors: {
              ~~~~~~
        The expected type comes from property 'errors' which is declared here on type 'TwoSlashReturn'
```

To:


```
src/index.ts:356:5 - error TS2322: Type '{ renderedMessage: string; id: string; category: 0 | 1 | 2 | 3; code: number; start: number | undefined; length: number | undefined; }[][]' is not assignable to type '{ renderedMessage: string; id: string; category: 0 | 1 | 2 | 3; code: number; start: number | undefined; length: number | undefined; }[]'.

Type '{ renderedMessage: string; id: string; category: 0 | 1 | 2 | 3; code: number; start: number | undefined; length: number | undefined; }[]' is in an array here:

    356     errors,
            ~~~~~~

      src/index.ts:235:3
        235   errors: {
              ~~~~~~
        But not here
```

and the reverse?



<!-- A summary of what you'd like to see added or changed -->

## Use Cases

Any case of mismatched types where the difference is that the object on one side of the comparison is the same object but wrapped in an array. Perhaps this could also work for a [Promise too](https://www.typescriptlang.org/play/index.html#code/C4TwDgpgBAglC8UDeBYAUFKALCAbXA9gFxQDOwATgJYB2A5upgO4EW4AmJNArgLYBGECugC+6dOwgBjXAEMK0XBGBRZRGOLSyEUAAoUCvKqQgA6BaQK4AbhAAU22aVgBKTdsQBtWQF0gA)?


## 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: react
Issue: Feature Request: Soft Component
Labels: Type: Discussion

```
import React, {useState} from 'react';
import ReactDOM from 'react-dom';

function PageLayout({title, children}) {
  return <div>
    <h1>{title}</h1>
    <input type="text"/>
    {children}
  </div>;
}
function Page2({setPage}) {
  return <PageLayout title="Page2">
    <button onClick={() => {setPage(() => Page1);}}>Test</button>
  </PageLayout>
}
function Page1({setPage}) {
  return <PageLayout title="Page1">
    <button onClick={() => {setPage(() => Page2);}}>Test</button>
  </PageLayout>
}
function App() {
  let [Page, setPage] = useState(() => Page1);
  return <Page setPage={setPage}/>; 
}
ReactDOM.render(<App />, document.getElementById('app'));
```

https://codesandbox.io/embed/serene-browser-tehj4?fontsize=14

The above code is most intuitive pattern for build multiple page web app. -- Don't mind the setPage. Just focus Page component returns PageLayout instance.

But react's diff algorithm is not optimized for that pattern.  If you click "Test" button. The text you inputed in input will lost.

So I proposal "Soft Component" concept. Two soft component will be treated as same component in diff algorithm. In the example, we change Page1 and Page2 to soft components. Thus solve the problem I shown above.