sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: opencv
Issue: Matrix size overflow in core/src/matrix.cpp
Labels: feature,priority: low,category: core

##### System information (version)

- OpenCV : 4.1.0 (custom compilation) and the latest 4.1.1 (dowloaded from the release page for Windows)
- Operating System / Platform : Windows 64 Bit
- Compiler : Visual Studio 2015

##### Detailed description

```
OpenCV(4.1.0) Error: Assertion failed ((int)nelems >= 0) in cv::Mat::reserve,
file d:\librairies\opencv\opencv-4.1.0\modules\core\src\matrix.cpp, line 626
```

I wanted to create a matrix of size 1 951 054 560 using `cv::Mat::push_back` of `std::vector<float>`. Unfortunalety, at the last `cv::Mat::reserve` in `core/src/matrix.cpp`, I got stuck on the `CV_Assert( (int)nelems >= 0 )`. I think it is because of a int_32 overflow [there](https://github.com/opencv/opencv/blob/master/modules/core/src/matrix.cpp#L626).
Indeed, I had a 1 463 290 920 sized matrix but with a growth factor of 1.5 would become a  2 194 936 380 which is above the int_32 limit of  2 147 483 648. 

##### Steps to reproduce

Some raw code to demonstrate it : 
```c++
# I also tried vector<double> with the same outcome.
#include <iostream>
#include <vector>
#include <opencv2/core.hpp>

using namespace std;
using namespace cv;

int main()
{
	vector<float> foo = vector<float>(1463290920, 0.0f);
	vector<float> overflow = vector<float>(1, 0.0f);
	Mat m;
	m.push_back(foo);
	m.push_back(overflow);
}
```

I tried the long long cast instead of the int one and it seems to be working :
```c++
#include <iostream>
#include <vector>
#include <opencv2/core.hpp>

using namespace std;
using namespace cv;

int main()
{
	size_t r = 1463290920;
	cout << (r * 3 + 1) / 2 << endl;
	cout << max(r + 1, (r * 3 + 1) / 2) << endl;
	cout << (long long)max(r + 1, (r * 3 + 1) / 2) << endl;
	cout << ((long long) max(r + 1, (r * 3 + 1) / 2) >= 0) << endl;
}
```
Repository: react
Issue: ErrorBoundary rendering multiple copies of itself when ref assignment fails
Labels: Type: Bug,Component: Reconciler

**Do you want to request a *feature* or report a *bug*?**

bug

**What is the current behavior?**

When a error occurs during the assignment of a `ref` (and maybe other conditions), a error boundary wrapping that error may get confused and it renders itself multiple times inside the same parent. See https://codesandbox.io/s/stoic-fermi-6etqb which renders:

```html
<div id="root">
  <div class="boundary"><span>content</span></div>
  <div class="boundary"><span>error</span></div>
</div>
```

**What is the expected behavior?**

```html
<div id="root">
  <div class="boundary"><span>error</span></div>
</div>
```
Repository: flutter
Issue: [google_maps_flutter] Circle strokewidth is slightly off on iOS
Labels: platform-ios,a: quality,p: maps,package,has reproducible steps,P3,found in release: 2.0,found in release: 2.2,team-ios,triaged-ios

The stroke appers a lot weider on iOS than on Android.
Tested on 2 devices with same Device Pixel Ratio (3.0)

## Steps to Reproduce

1.  [Android](https://photos.app.goo.gl/udtaJpaLtdauTKAs8)
2. [iOS](https://i.imgur.com/d0lrLPe.png)

## Example Code:

```dart
class HomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
   print(
        'Device Ratio: ' + MediaQuery.of(context).devicePixelRatio.toString(),
   );
    return Scaffold(
      body: Container(
        color: Colors.green,
        child: GoogleMap(
          initialCameraPosition: CameraPosition(
            target: const LatLng(47.6, 8.8796),
            zoom: 15,
          ),
          circles: Set<Circle>()
            ..add(Circle(
              circleId: CircleId('hi2'),
              center: LatLng(47.6, 8.8796),
              radius: 50,
              strokeWidth: 3,
              strokeColor: Colors.black,
            )),
          markers: Set<Marker>()
            ..add(
              Marker(
                markerId: MarkerId('hi'),
                position: LatLng(47.6, 8.8796),
              ),
            ),
        ),
      ),
    );
  }
}
```

## Logs

```
[✓] Flutter (Channel master, v1.8.5-pre.78, on Mac OS X 10.14.6 18G87, locale de-DE)
    • Flutter version 1.8.5-pre.78 at /Users/mhein/Documents/flutter
    • Framework revision 0f4ae3ff4e (4 days ago), 2019-08-08 08:25:37 +0100
    • Engine revision f200ee13aa
    • Dart version 2.5.0 (build 2.5.0-dev.1.0 f29f41f1a5)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/mhein/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 10.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.2.1, Build version 10E1001
    • CocoaPods version 1.7.0

[✓] Android Studio (version 3.4)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 37.1.1
    • Dart plugin version 183.6270
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[✓] VS Code (version 1.36.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.2.0

[✓] Connected device (2 available)
    • FRD L09                   • 73QDU17715005241 • android-arm64 • Android 7.0 (API 24)
    • Android SDK built for x86 • emulator-5554    • android-x86   • Android 9 (API 28) (emulator)

• No issues found!
```
Repository: youtube-dl
Issue: fembed
Labels: site-support-request


## 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 2019.08.02. 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])
-->

- [ ] I'm reporting a new site support request
- [ ] I've verified that I'm running youtube-dl version **2019.08.02**
- [ ] I've checked that all provided URLs are alive and playable in a browser
- [ ] I've checked that none of provided URLs violate any copyrights
- [ ] I've searched the bugtracker for similar site support requests including closed ones


## Example URLs


- Single video: https://www.fembed.com/v/zyvn5ykx8v1
- Single video: https://www.fembed.com/v/zyvn5ykx8v1


## Description

https://www.fembed.com/v/zyvn5ykx8v1
Repository: pytorch
Issue: [feature request] Subset of eigenvalues/eigenvectors 
Labels: module: performance,feature,module: cpu,triaged

## 🚀 Feature
Computation of a subset of eigenvalues and eigenvectors

Inspired by [MATLAB eigs](https://it.mathworks.com/help/matlab/ref/eigs.html#bu2_q3e-sigma):

    o = torch.eigs(A, B, k, sigma)

Solves the generalized eigenvalue problem `A * V = d * B * V `

- `k`: Number of eigenvalues to compute, specified as a positive scalar integer.
- `sigma`: The eigenvalues closest to the number sigma.


## Motivation
I need the first `k` smallest eigenvalues of a `n * n` matrix, currently it's an intractable problem in PyTorch.

e.g. with `k=30` and `n=500`

MATLAB:
```matlab
[phi, e] = eigs(S, L, 30, -1e-5);
% Elapsed time is 0.074229 seconds.
```

NumPy:
```python
e, phi = scipy.sparse.linalg.eigs(S, 30, L, sigma=-1e-5)
# Elapsed time is 2.5 seconds.
```

PyTorch:
```python
e, phi = torch.symeig(C, eigenvectors=True)

# cpu
# Elapsed time is 5 seconds plus the time for the cholesky decomposition. 

# cuda
# Elapsed time is 2 seconds plus the time for the cholesky decomposition. 
```

## Pitch
I want to be able to compute the subset of eigenvalues/eigenvectors of a matrix that I need, without computing all the others.

## Alternatives
Computing all the eigenvalues/eigenvectors and then selecting the relevant ones.

## Usecase 
The [Laplace-Beltrami](https://en.wikipedia.org/wiki/Laplace%E2%80%93Beltrami_operator) operator is a key tool in geometry processing, and its eigenvalues/eigenvectors are an optimal basis to represent smooth functions on surfaces.
For example, it's common to project functions into the basis of LB eigenvectors, truncating the base to the first k-elements. This is equivalent to the low-pass filtering of the Fourier series:

![spec8](https://user-images.githubusercontent.com/11019190/62874586-d2d11900-bd21-11e9-8bbd-cb646af36568.png)

Moreover, the associated eigenvalues encode [properties of the surface](https://arxiv.org/abs/1811.11465), e.g. when sorted they lie on a line and the slope of this line is proportional to the surface's area.

If only `k` elements of the spectrum will be used, it is extremely wasteful computing all the eigenvalues/eigenvectors of the Laplace-Beltrami operator, since when discretized their number is equal to the number of vertices in the mesh, yielding an intractable problem in practice.
Repository: terminal
Issue: Unicode Right-To-Left override (U+202E) displaces text to the right terminal edge
Labels: Product-Conhost,Help Wanted,Area-Rendering,Issue-Bug,Product-Terminal,Issue-Task,Priority-2

<!-- 
🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨

I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING:
1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement.
2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement.
3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number).
4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement.
5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement.

All good? Then proceed!
-->

<!--
This bug tracker is monitored by Windows Terminal development team and other technical folks.

**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.

If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link.

Please use this form and describe your issue, concisely but precisely, with as much detail as possible.

-->

# Environment

```none
Windows build number: 10.0.18956.1000
Windows Terminal version (if applicable): 0.3.2171.0
```

# Steps to reproduce

1. Create a file with the [Unicode Right-To-Left override](http://www.unicode-symbol.com/u/202E.html) character in its name, such as `harmless_file[U+202E]txt.exe`
2. Display this files name in the Terminal by running `dir /b` in cmd or `ls` in PowerShell etc.

# Expected behavior

- The files name should appear as `harmless_fileexe.txt`

# Actual behavior

-The files name appears as:

harmless_file &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exe.txt

Screenshot comparing Windows Terminal, conhost and File Explorer:
![unicode_rtl_windows_terminal](https://user-images.githubusercontent.com/25607767/62881122-50e7ec80-bd2f-11e9-9dd0-83bd246e70bc.png)
Repository: TypeScript
Issue: Types `number` and explicitly constrained `T extends unknown` shouldn't be comparable
Labels: Suggestion,Awaiting More Feedback

```ts
const num = 1;
function check<T extends unknown>(x: T) {
  return x === num;
}
check(num);
```

**Expected**: Error: This condition will always return 'false' since the types 'T' and '1' have no overlap.
**Actual**: No error.

Contrast this with the following example from #32768.

```ts
const num = 1;
function check<T>(x: T) {
  return x === num;
}
check(num);
```
Repository: youtube-dl
Issue: Unsupported URL: 2x2tv.ru
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 2019.08.02. 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 **2019.08.02**
- [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://2x2tv.ru/video/atomnyj-les/sezon-2/seriya-9-sekret-skuki/](url)
- LiveTV stream: [https://2x2tv.ru/online](url)


## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

All media examples above plays fine in Google Chrome browser.
Repository: kubernetes
Issue: Probe.SuccessThreshold validation is contextual (bad)
Labels: kind/bug,priority/backlog,sig/node,lifecycle/frozen,triage/accepted

Comments for this field (staging/src/k8s.io/api/core/v1/types.go) say "Must be 1 for liveness" and #77807 is adding startup in the same way.

This is kind of gross API.  It would be nice if we could just make that field work normally for those contexts (I am not sure why we don't want it to work, even if it is odd).

/kind bug
/sig node
Repository: pytorch
Issue: TensorIterator stubs are designed for merge conflicts.
Labels: module: internals,triaged

I ran into some merge conflicts with https://github.com/pytorch/pytorch/pull/23847 because people add their stubs to the end of the list, but this is guaranteed to cause merge conflicts as we port more ops to TensorIterator.

Instead, we should arrange these in alphabetical order (maybe outside of the "basic arithmetic" ops, and have clear comments saying that you are expected to add stubs in alphabetical order.
Repository: vscode
Issue: [css] SCSS/SASS Auto Intellisense doesn't work after last entry
Labels: bug,css-less-scss

Version: 1.37.0 (system setup)
Commit: 036a6b1d3ac84e5ca96a17a44e63a87971f8fcc8
Date: 2019-08-08T02:33:50.993Z
Electron: 4.2.7
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Windows_NT x64 6.1.7601

Steps to Reproduce:

1. Create .scss file enter expected autocomplete feature (e.g. `&:hover`) and notice that autocomplete works properly.
![autocomplete-1](https://user-images.githubusercontent.com/4359573/62889310-1a01de80-bd0f-11e9-93ad-5289bfe4d28e.png)

2. After last block, enter new block with `&` and intellisense is not activated
![autocomplete-after](https://user-images.githubusercontent.com/4359573/62889318-1cfccf00-bd0f-11e9-99fe-7ba953793dcf.png)

3. Before first `&` block, enter new `&:` and intellisense is activated properly
![autocomplete-before](https://user-images.githubusercontent.com/4359573/62889323-20905600-bd0f-11e9-8ece-23d02b07fa44.png)

Same issue in nested blocks. Any attempt to do an `&` block with a pseudo-class after the first one appears to fail. The dev console shows no problems.

Does this issue occur when all extensions are disabled?: Yes
Repository: rust
Issue: Error "cannot infer type" when using '?' in async block + bad diagnostic
Labels: A-diagnostics,T-compiler,A-inference,A-async-await,A-suggestion-diagnostics,AsyncAwait-Triaged,D-papercut,D-terse

This seems related to #42424, except I don't see an obvious workaround like in #42424.

```rust
#![feature(async_await)]

use std::io::Error;

fn make_unit() -> Result<(), Error> { 
    Ok(())
}

fn main() {
    let fut = async {
        make_unit()?;
        
        Ok(())
    };
}
```

Fails with the error

```
error[E0282]: type annotations needed for `impl std::future::Future`
  --> src/main.rs:11:9
   |
10 |     let fut = async {
   |         --- consider giving `fut` the explicit type `impl std::future::Future`, with the type parameters specified
11 |         make_unit()?;
   |         ^^^^^^^^^^^^ cannot infer type
```
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=ea7e5f7b6e1637f6a39aee0b8209c99e

First of all, it seems like this shouldn't be an error--it should be able to deduce that the return type is `Result<(), io::Error>`, but also the diagnostic **does not work**. If you try to add `impl std::future::Future<Output=Result<(), Error>>` as a type annotation, it also fails to compile because `impl Trait` is only allowed as return types and argument types. 

[Playground link](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=e2dacce6293b9d0bb238a3df0d4f2877)
Repository: flutter
Issue: TabView swipe animates too slow compared to Android
Labels: framework,f: material design,a: fidelity,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 our the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Use case

When you swipe through your tabs, it takes quite some time until the animation is finished. So you really have to wait until you can scroll down. It also slows down even more at the end of the animation. On native android apps this animation is way faster...

## Proposal

Please make the animation similar to android.

Thanks in advance :)
Repository: pytorch
Issue: deprecate cuda arch 3.5/3.7 in nightlies
Labels: module: binaries,triaged

Now that we just finished releasing 1.2.0, we should take this perfect opportunity to kick out 3.5/3.7 (K40, K80 GPUs) in nightlies, and see how many people are affected.

cc @ezyang
Repository: react
Issue: Verify that Dehydrated Boundaries (and SuspenseList) Works with DevTools
Labels: Component: Developer Tools,Type: Needs Investigation,React Core Team

The fixture might be a good start https://github.com/facebook/react/tree/master/fixtures/ssr (enableSuspenseServerRenderer flag to try it).

It has a long suspending thing.

It doesn't have a SuspenseList yet but might be nice.
Repository: TypeScript
Issue: Configure from package.json
Labels: Suggestion,Awaiting More Feedback

## Search Terms

package.json, config, configuration, tsconfig

## Suggestion

Allow `package.json` as an alternate source for `tsconfig.json` options. To be clear, I am requesting that you please re-evaluate #6590 - it has been 2 years since that issue was posted, so interests may have changed and I believe this feature holds good value.

### UPDATE: 2022-04-28

**Please vote how you would like to see this feature implemented here:** https://github.com/microsoft/TypeScript/issues/32830#issuecomment-1112372061

## Use Cases

> What do you want to use this for?

Provide a broader configuration support and decluttering the project root of configuration files that can easily be moved to `package.json`.

> What shortcomings exist with current approaches?

Some users prefer to store their all their configuration files in 1 larger file. Right now, that is not an option.

## Examples
Example of what the `package.json` would look like.
```
{
	"name": "example",
	"version": "1.0.0",
	"description": "This is an example",
	"license": "MIT",
	"tsconfig": {
		"compilerOptions": {
			"module": "commonjs",
			"moduleResolution": "node",
			"outDir": ".build",
			"pretty": true,
			"rootDir": "./",
			"sourceMap": true,
			"target": "ES5",
			"strict": true
		},
		"exclude": [
			"node_modules"
		],
		"include": [
			"index.ts",
			"src/**/*"
		]
	}
}
```

## Checklist

My suggestion meets these guidelines:

* ✅ This wouldn't be a breaking change in existing TypeScript/JavaScript code
* ✅ This wouldn't change the runtime behavior of existing JavaScript code
* ✅ This could be implemented without emitting different JS based on the types of the expressions
* ✅ This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
* ✅ This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).