sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: 3 point arc in custom painter
Labels: framework,c: proposal,P3,team-framework,triaged-framework

Not a bug report, my flutter works just fine.

## Use case Trying to create the below shape with custom painter
https://rive.app/a/Pshah/files/flare/suggestion/preview

//https://dribbble.com/shots/10853019-Youtube-Music-Player: Notice the swipe gestures, trying to right a package for that

I was trying to form this shape with custom painter, here's my code: https://github.com/ppshah2023/3-Point-Arc, but I found out that I can't do that. When you create one arc, that arc is upright. Trying to create another arc that's backwards to that arc is backwards, and flutter doesn't allow that.

## Proposal 3 Point arc

I want to create a backward arc, but I thought that creating a technical 3 point arc would be better. Where the current point is stored, and you provide 2 points to define the semicircle of that arc.

I found that such an option is offered in many design vector programs, and this would be a nice touch to add to flutter.

It could be package where there's a thousand more additions for neat vector graphic stuff, but this sort of thing should just be built into flutter. So that it's maintained and not a second choice.
Repository: material-ui
Issue: Theme interoperability with styled-components and emotion
Labels: breaking change,typescript

<!-- Provide a general summary of the issue in the Title above -->

Here is the type:

```
export interface CSSProperties extends BaseCSSProperties {
  // Allow pseudo selectors and media queries
  // `unknown` is used since TS does not allow assigning an interface without
  // an index signature to one with an index signature. This is to allow type safe
  // module augmentation.
  // Technically we want any key not typed in `BaseCSSProperties` to be of type
  // `CSSProperties` but this doesn't work. The index signature needs to cover
  // BaseCSSProperties as well. Usually you would use `BaseCSSProperties[keyof BaseCSSProperties]`
  // but this would not allow assigning React.CSSProperties to CSSProperties
  [k: string]: unknown | CSSProperties;
}
```

<!--
  Thank you very much for contributing to Material-UI by creating an issue! ❤️
  To avoid duplicate issues we ask you to check off the following list.
-->

<!-- Checked checkbox should look like this: [x] -->

- [x] The issue is present in the latest release.
- [x] I have searched the [issues](https://github.com/mui-org/material-ui/issues) of this repository and believe that this is not a duplicate.

## Current Behavior 😯

When I try to spread something like `theme.typography.h5` into an object that Emotion.js will consume, I get a type error. 

## Expected Behavior 🤔

Yes, I can pick off individual values fine, but I'd rather be able to use whole objects and spread them in.

## Steps to Reproduce 🕹

Try to spread `useTheme().typography.h5` into the css prop from Emotion.js.

https://codesandbox.io/s/funny-kepler-6u22j

## Context 🔦

<!--
  What are you trying to accomplish? How has this issue affected you?
  Providing context helps us come up with a solution that is most useful in the real world.
-->

I use Material-UI for components and theming. I use Emotion for adding additional styles to Material-UI components and other components. 

Sometimes, I want to use an entire `useTheme().typography[key]` set of styles to override something. For instance, I want a Typography component to have an `h2` variant (have h2 in the dom, for semantic reasons), but I want it to have `h5` styles for visual reasons.

## Your Environment 🌎

| Tech        | Version |
| ----------- | ------- |
| Material-UI | v4.9.8  |
| React       |   16.13.1 |
| TypeScript  | 3.8.3 |
| Emotion.js | 10.0.28 |
Repository: flutter
Issue: Retain canvas state for high performance drawing
Labels: engine,c: performance,c: proposal,perf: speed,P2,team-engine,triaged-engine

Hi,

I would like to be able to continuously draw to a canvas and be able to reflect the canvas state on the screen.

Currently with CustomPainter the paint callback receives a canvas that cannot be set, therefore many developers in the community are relying on passing a points array as state to the custom painter, and then reiterate through the ever growing array redrawing all the points over and over again.

One possible solution: perform the drawing operation into a canvas (member of a widget for ex) and then be able to draw that canvas onto the other canvas in the paint callback of a custom painter by passing it to the custom painter. (HTML5 Canvas allows for drawing one canvas onto another as a reference / Swift allows for drawing CGContext onto another as another reference)

I recently created the following issue: #53804 - which gives a good background to this request.

Thank you for creating this awesome framework!

M
Repository: opencv
Issue: null-pointer-dereference and buffer overflow: OpenCV 3.4
Labels: priority: low,category: core,affected: 3.4

##### System information (version)
- OpenCV => 3.4.9
- Operating System / Platform => Win64


##### Detailed description

There appear to be several places where a nullptr dereference can occur in core(persistence). These have been listed as security vulnerabilities in https://nvd.nist.gov/vuln/detail/CVE-2019-14493
It appears they were fixed in OpenCV4 but not in OpenCV 3.4 (see issue https://github.com/opencv/opencv/issues/15127 and pull request https://github.com/opencv/opencv/pull/15145). 

Similarly, another security bug is listed here https://nvd.nist.gov/vuln/detail/CVE-2019-5063 where a buffer overflow can occur. It appears that https://github.com/opencv/opencv/pull/15868 fixes all locations where buffer overflow can happen in master, but in the 3.4 branch and in 3.4 releases, the fixes were not added (ie https://github.com/opencv/opencv/blob/3.4/modules/core/src/persistence_xml.cpp#L409 in 3.4 vs https://github.com/opencv/opencv/blob/master/modules/core/src/persistence_xml.cpp#L631 in master) . It should be noted that this error is potentially not reproducible in OpenCV 3.4 (see issue https://github.com/opencv/opencv/issues/15857)

As these are both bugs, can we have these fixes back-ported to Open CV 3.4 (if applicable)?
Repository: youtube-dl
Issue: Support https://www.lumni.fr
Labels: site-support-request

- [x ] I'm reporting a new site support request
- [x ] I've verified that I'm running youtube-dl version **2020.03.24**
- [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

- Single video: http://www.lumni.fr/video/la-guerre-froide


## Description

Videos by the France 4, which is a French national channel. There are lived during the day on tv and are provided to help pupils to learn at home because of the covid-19.
Repository: pytorch
Issue: CUDNN_STATUS_INTERNAL_ERROR with GPU RTX 8000
Labels: needs reproduction,module: cudnn,module: cuda,triaged

Bug:🐛
cuDNN error: CUDNN_STATUS_INTERNAL_ERROR

## To Reproduce
Steps to reproduce the behavior:

Python crnn.py

<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->

## Expected behavior

It works fine on GPU RTX6000,V100 
So it should works fine on RTX8000 too.

## Environment

-Python 3.6
-Pytorch 1.3.1
-Torchvision 0.4
 - OS Linux (Ubuntu)
 - How you installed PyTorch : pip3

cc @ngimel @csarofeen @ptrblck
Repository: flutter
Issue: [espresso] : Unable to run espresso test locally
Labels: package,team-ecosystem,P2,p: espresso,triaged-ecosystem

I followed all the steps mentioned in `readme` to run a simple espresso test to check text of a button and then click on it, but getting below error :
```

> Task :app:compileDebugAndroidTestJavaWithJavac FAILED
/Users/deeptibelsare/Documents/DarshanUdacity/Flutter/flutter_app_demo/android/app/src/androidTest/java/com/example/MainActivityTest.java:27: error: cannot find symbol
        ActivityScenario.launch(MainActivity.class);
                                ^
  symbol:   class MainActivity
  location: class MainActivityTest
1 error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugAndroidTestJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

```

I've this screen for validation:

![Screen Shot 2020-04-02 at 1 03 13 PM](https://user-images.githubusercontent.com/16548367/78222167-5ffbf480-74e2-11ea-8f4d-3a8def8d26f4.png)


And below is a simple test:
```

@Before
    public void setUp() throws Exception {
        ActivityScenario.launch(MainActivity.class);
    }

    @Test
    public void tapButton() {
        onFlutterWidget(withValueKey("buttonText")).check(matches(withText("Send")));
        onFlutterWidget(withValueKey("buttonText")).perform(click());
    }
```

Appreciate any help in resolving this issue.

Also, what are the other actions, assertions and matchers that I can leverage to write a comprehensive UI test ? Currently I see `click`, `withText`, `withTooltip` and  `withValueKey`
Repository: TypeScript
Issue: Provide a ReadonlyRegExp type
Labels: Suggestion,Awaiting More Feedback

## Search Terms

readonlyregexp readonly regexp

## Suggestion

Provide a new `ReadonlyRegExp` type that represents a read only `RegExp`.

## Use Cases

This is similar to other readonly types, e.g. `ReadonlyArray` -- I prefer my code to be immutable by default. I have a `DeepReadonly` helper that could map `RegExp` to `ReadonlyRegExp`.

Note that `Readonly<RegExp>` does not work:
```typescript
'a'.replace(/a/ as Readonly<RegExp>, 'b')

/*
No overload matches this call.
  The last overload gave the following error.
    Argument of type 'Readonly<RegExp>' is not assignable to parameter of type 'string | RegExp'.
      Type 'Readonly<RegExp>' is missing the following properties from type 'RegExp': [Symbol.match], [Symbol.replace], [Symbol.search], [Symbol.split](2769)
*/
```

## Examples

```typescript
const emailRegExp = /[a-z]@[a-z\.]/ as ReadonlyRegExp;

export function suppressPII(message: string) {
    return message.replace(emailRegExp, '');
}
```

## 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: torch.autograd.set_detect_anomaly(True) does not exist in C++?
Labels: module: cpp,triaged

## 🐛 Bug

I got the following error when calling `optimizer.backward()`.
`one of the variables needed for gradient computation has been modified by an inplace operation: [CPUFloatType [50, 40]], which is output 0 of TBackward, is at version 2; expected version 1 instead. Hint: enable anomaly detection to find the operation that failed to compute its gradient, with torch.autograd.set_detect_anomaly(True). after train`

## To Reproduce
Not sure, since I can't see which operation that makes my code crash.

<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->

## Expected behavior

I expected the function that was listed in the error to exist.

## Environment

 - PyTorch Version (e.g., 1.0): Libtorch 1.4
 - OS (e.g., Linux): Windows 7 64 bit
 - How you installed PyTorch (`conda`, `pip`, source): source
 - Build command you used (if compiling from source): none
 - Python version: 3.6
 - CUDA/cuDNN version: none
 - GPU models and configuration: none
 - Any other relevant information: none



cc @yf225
Repository: vscode
Issue: [semantic tokens] provide code assist for tokenModifiers
Labels: feature-request,themes

refs #93804:

no code assist for tokenModifiers:
<img width="672" alt="2020-04-02_11-59-20" src="https://user-images.githubusercontent.com/1898161/78236003-b6b10080-74d9-11ea-8103-cec53834ae19.png">

I did get code assist in other cases:
<img width="803" alt="2020-04-02_11-59-50" src="https://user-images.githubusercontent.com/1898161/78236058-cc262a80-74d9-11ea-9040-0b876db62f69.png">
Repository: godot
Issue: Weird Light2D mask behaviour when using `light()` in shader
Labels: discussion,topic:rendering,documentation

**Godot version:**
3.2.1

**OS/device including version:**
Linux 5.5.13-1-MANJARO
**Issue description:**
When using a Light2D as a mask and modifying its appearance in a shader using `light()` the colors are off.
![Screenshot_20200402_132050](https://user-images.githubusercontent.com/30960698/78243842-caae2f80-74e4-11ea-8c7c-8ab402ff53f1.png)

**Steps to reproduce:**
1.Create a Light2D as a mask
2.In the masked sprite add a shader which resamples the original texture and pass it to the `LIGHT.rgb`.

(see reproduction project)

**Minimal reproduction project:**
https://framadrive.org/s/a7PrNRKJ47XGtyr
Repository: opencv
Issue: OpenCV4.2.0 VideoCapture bug
Labels: priority: low,category: videoio(camera),incomplete,platform: win32,needs investigation

##### System information (version)
- OpenCV => 4.2.0
- Operating System / Platform => Windows 10 64 Bit (One virtual machine)
- Compiler => Visual Studio 2019

when i use 2.4.9, everything works fine. but if i use opencv4.2.0, i got the following image.


```.cpp
#include <iostream>
#include "opencv2/opencv.hpp"
#include <Windows.h>
#include <time.h>

using namespace std;
using namespace cv;

int main(int argc, char* argv[])
{
    cv::VideoCapture capture(0);
    if (!capture.isOpened())

    {
        std::cout << "video not open." << std::endl;
        return -1;
    }

    if (!capture.isOpened())    // 如果视频不能正常打开则返回
        return -1;

    Mat frame;
    while (true)
    {
        time_t now = time(NULL);
        capture >> frame;   // 等价于cap.read(frame);
        if (frame.empty())  // 如果某帧为空则退出循环
        {
            Sleep(20);
            continue;
        }
        cv::imwrite(to_string(now)+".jpg", frame);
        imshow("video", frame);
        waitKey(20);    // 每帧延时20毫秒
    }
    capture.release();  // 释放资源
    return 0;
}
```
 
![image](https://user-images.githubusercontent.com/7344217/78244563-71f88a00-7518-11ea-8b65-74de7a480b89.png)
Repository: electron
Issue: session option to do not cache authentications
Labels: enhancement :sparkles:

### Preflight Checklist
<!-- Please ensure you've completed the following steps by replacing [ ] with [x]-->

* [x] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/master/CONTRIBUTING.md) for this project.
* [x] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md) that this project adheres to.
* [x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

### Problem Description
We have a product where we run multiple webpages in parallel, we use `session.setProxy()` to set the proxy. Our proxy provider give the possibility to have different IP on each request. To authenticate on that proxy we have smth `http://customer-x-session-${session}-country-us:password@proxy-host.io:port` then use `webContents.on('login')` to make the basic authentication. 
The problem here is with the `session` auth cache, so for each request we need to make again the auth with different username which contains that sessions.
So, I found a workaround with `session.clearAuthCache()` but when we have 10 web pages loading in the same session, on the each page navigation we call first `session.clearAuthCache()` but is canceling the pages which are still loading.

### Proposed Solution
Maybe add some config to the session to not cache the basic auth because it's really a problem when it's come to using different proxy username or different endpoints which requires basic auth.

Thank you.
Repository: PowerToys
Issue: Current monitor sinalyzer
Labels: Idea-New PowerToy,Product-Window Manager

Hi!

# Summary of the new feature/enhancement

There's something which annoys me on using multiple monitors: sometimes, I start to type on the wrong one and mess with code or trigger an unintended keyboard shortcut.

Is it possible to change the color of the toolbar of the current monitor? I need a way to easily know which one is the focused window.

Thank you!
Repository: TypeScript
Issue: Include CompilerHost in TransformationContext
Labels: Suggestion,In Discussion

## Search Terms
compiler host, CompilerHost,
transformation context, TransformationContext,
transformer, custom transformer

## Suggestion
I'd like to access the `CompilerHost` instance from my custom transformers (via `TransformationContext`).

As far as I can see this wouldn't expose any "risky" patterns like #25147.

## Use Cases
My specific use-case is resolving import declarations. This can be done using `ts.resolveModuleName` (https://github.com/microsoft/TypeScript/issues/28276#issuecomment-435016356), but this requires a `CompilerHost` instance.

## Example
An example for my specific use-case would be:
```ts
const transformer: ts.TransformerFactory<ts.SourceFile> = context => {
    return file => {
        return ts.visitEachChild(
            file,
            node => {
                if (ts.isImportDeclaration(node)) {
                    const resolved = ts.resolveModuleName(
                        (node.moduleSpecifier as ts.StringLiteral).text,
                        file.fileName,
                        context.getCompilerOptions(),
                        context.getCompilerHost() // this is currently impossible
                    )
                    
                    // do something interesting with resolved
                }
                return node;
            },
            context
        )
    }
}
```

## Workaround
Luckily there is a workaround for this:
```ts
const host = ts.createCompilerHost(context.getCompilerOptions());
```
But this feels redundant and somewhat "wrong".

## 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: Error when loading jit traced FasterRCNN model in C++
Labels: oncall: jit,triaged

## 🐛 Bug

<!-- A clear and concise description of what the bug is. -->
I used the torch.jit.trace() in python to trace the fasterrcnn_resnet50_fpn model provided in the latest torchvision (I installed the torchvision from source). However, an unhandled exception occured when I used libtorch API to load this model.

## To Reproduce

Steps to reproduce the behavior:

1.Use Python API to trace model:
model = torchvision.models.detection.maskrcnn_resnet50_fpn(pretrained=True)
script_model = torch.jit.script(model)
script_model.save("./data/rcnn.pt")

2. Load "rcnn.pt" in Libtorch:
torch::jit::script::Module  module = torch::jit::load("./data/rcnn.pt");

3. Then the exception occured:
Unhandled exception at 0x00007FFF5D1CA839 in RCNN_Pytorch_Demo.exe: Microsoft C++ exception: torch::jit::script::ErrorReport at memory location 0x00000037EDCEEF30.

<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->


## Expected behavior
<!-- A clear and concise description of what you expected to happen. -->
It should load the traced model without exception.


## Environment
Visual Studio 2017

PyTorch version: 1.4.0+cu92
Is debug build: No
CUDA used to build PyTorch: 9.2

OS: Microsoft Windows 10 Professional
GCC version: Could not collect
CMake version: version 3.16.0-rc3

Python version: 3.6
Is CUDA available: Yes
CUDA runtime version: 9.2.148
GPU models and configuration: 
GPU 0: GeForce GTX 1080 Ti
GPU 1: GeForce GTX 1080 Ti

Nvidia driver version: 432.00
cuDNN version: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2\bin\cudnn64_7.dll

Versions of relevant libraries:
[pip] efficientnet-pytorch==0.5.1
[pip] numpy==1.17.4
[pip] numpydoc==0.8.0
[pip] torch==1.4.0+cu92
[pip] torchfile==0.1.0
[pip] torchnet==0.0.4
[pip] torchvision==0.5.0+cu92
[conda] blas                      1.0                         mkl    defaults
[conda] efficientnet-pytorch      0.5.1                     <pip>
[conda] mkl                       2018.0.2                      1    defaults
[conda] mkl-service               1.1.2            py36h57e144c_4    defaults
[conda] mkl_fft                   1.0.1            py36h452e1ab_0    defaults
[conda] mkl_random                1.0.1            py36h9258bd6_0    defaults
[conda] numpy                     1.14.3           py36h9fa60d3_1    defaults
[conda] numpy                     1.17.4                    <pip>
[conda] numpy-base                1.14.3           py36h555522e_1    defaults
[conda] numpydoc                  0.8.0                    py36_0    defaults
[conda] torch                     1.4.0+cu92                <pip>
[conda] torchfile                 0.1.0                     <pip>
[conda] torchnet                  0.0.4                     <pip>
[conda] torchvision               0.6.0a0                   <pip>
Libtorch 1.4.0




cc @peterjc123 @maxluk @nbcsm @guyang3532 @gunandrose4u @mszhanyi @skyline75489 @gmagogsfm @suo
Repository: PowerToys
Issue: Profiles in Keyboard Manager 
Labels: Idea-Enhancement,Product-Keyboard Shortcut Manager

Have both predefined profiles (e.g. mac/linux/etc) available to user, and also allow the user to create custom profiles.
Provide a quick way to switch between profiles.
Repository: vscode
Issue: Timeline providers that don't need URI's should be able to render on empty workbench
Labels: feature-request,timeline

#84297

Currently when the workbench has no ActiveTextEditor, the timeline view won't load anything. But there is a category of "workspace timeline" events that should be able to work without any active editor.

For instance:
Timeline of past/future sprints/iterations
Timeline counting down days till code freeze/GA/etc.
Timeline of git tags/releases

I think the provideTimeline should give an optional uri, and if an extension needs the URI they simply return undefined to be excluded from the timeline. But if not, they can elect to be shown even when theres no active editor.