sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: iOS intermitent black screen  when opening another UIViewController from platform channel 
Labels: platform-ios,engine,a: existing-apps,has reproducible steps,P2,found in release: 3.7,found in release: 3.10,team-ios,triaged-ios

Redirect flutter to native black screen appear for some second. only for iOS

Flutter snippet:
```dart
 try {
     
      await platform.invokeMethod('openNativeChat');
    } on PlatformException catch (e) {
      print(e.message);
    }
```

App Delegate.swiftimport UIKit
```swift
import Flutter

@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
  override func application(
    _ application: UIApplication,
    didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
  ) -> Bool {
    //GeneratedPluginRegistrant.register(with: self)
    guard let controller  = window?.rootViewController as? FlutterViewController else {
                return super.application(application, didFinishLaunchingWithOptions: launchOptions)
            }
            
            let methodChannel = FlutterMethodChannel(name: "test",
                                                     binaryMessenger: controller.binaryMessenger)
            methodChannel.setMethodCallHandler({
                (call: FlutterMethodCall, result: @escaping FlutterResult) -> Void in
                controller.view.backgroundColor = UIColor.yellow
                switch call.method {
                case "openNativeChat":
                    
                    
                     self.window?.rootViewController = nil
                    let storyboard = UIStoryboard(name: "Main", bundle: nil)
let initialViewController:InitialViewController = storyboard.instantiateViewController(withIdentifier: "InitialViewController") as! InitialViewController
                     
    
                   let navigationController = UINavigationController(rootViewController: controller)
                   // navigationController.isNavigationBarHidden = false
                    self.window = UIWindow(frame: UIScreen.main.bounds)
                    self.window?.makeKeyAndVisible()
                    self.window.rootViewController = navigationController

                    
                    navigationController.pushViewController(initialViewController, animated: true)
                    break
             
                default:
                    result(FlutterMethodNotImplemented)
                    break
                    
                }
            })
    GeneratedPluginRegistrant.register(with: self)
    return super.application(application, didFinishLaunchingWithOptions: launchOptions)
  }
}
```
Repository: pytorch
Issue: USE_AVX/USE_AVX2 does not affect __AVX2__ macro defition
Labels: triaged,module: build warnings,internals

I tried to `USE_AVX=0 USE_AVX2=0 python setup.py develop` but `__AVX2__` was defined and AVX2 specific code was built.

```
CMake Warning:
  Manually-specified variables were not used by the project:

    USE_AVX2
```
Repository: TypeScript
Issue: Cannot find usage references for most kinds of merged declarations
Labels: Bug

<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨

Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common "Bugs" That Aren't Bugs section!

Please help us by doing the following steps before logging an issue:
  * Search: https://github.com/Microsoft/TypeScript/search?type=Issues
  * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ

Please fill in the *entire* template below.
-->

<!--
Please try to reproduce the issue with the latest published version. It may have already been fixed.
For npm: `typescript@next`
This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly
-->
**TypeScript Version:**  3.9.0-dev.20200330

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:**
merged declaration find references

**Code**

```ts
namespace namespaceFunction {
  export type Foo = string;
}
function namespaceFunction() {}

namespace NamespaceClass {
  export type Foo = string;
}
class NamespaceClass {}

namespace NamespaceInterface {
  export type Foo = string;
}
interface NamespaceInterface {}

function interfaceFunction() {}
interface interfaceFunction {}

NamespaceClass.name;
namespaceFunction.name;
interfaceFunction.name;
type X = NamespaceInterface | interfaceFunction;
type Y = NamespaceClass.Foo | NamespaceInterface.Foo | namespaceFunction.Foo;
```

**Expected behavior:**
Each of these declarations has exactly one usage reference (accessible with Ctrl+Click):
- `namespaceFunction` (as function)
- `namespaceFunction` (as namespace)
- `NamespaceClass` (as class)
- `NamespaceClass` (as namespace)
- `NamespaceInterface` (as interface)
- `NamespaceInterface` (as namespace)
- `interfaceFunction` (as interface)
- `interfaceFunciton` (as function)

**Actual behavior:**
Only usage references for the following declarations can be found:
- `interfaceFunction` (as function, points to `interfaceFunction.name`)
- `namespaceFunction` (as function, points to `namespaceFunction.name`)

Unmerging these declarations by renaming allows all usage references to be found correctly.

[**Playground Link:**](https://www.typescriptlang.org/play/?ts=3.9.0-dev.20200328&ssl=1&ssc=1&pln=23&pc=78#code/HYQwtgpgzgDiDGEAEpKwRAYgV2PALgJYD2wSA3gLABQSSEAHjMQE75L4CeMymxxSALxIo+FoWABzANw0AvjQBmuAiTKpocRDjxFSACgCUFBdRob0iJADlwmjAGEANiChQKNOo2ZsO3XvxCImISMvI08C5uNnaWEM6u7uSm5rFayLZo6QCSwPgQLIoYHrT0TKzsXDxIfALCouJSstSmEvmFxZn2iLntRVbJNEoqemRtBf1YI2pGJjTjHVYLkzqqpHNm1F1xCW4AdBrNFumrowd2zcsYp2rnkM1VyAAaQds5eRPFAD5IV9rTpAe-iQAE1XmlHFEoHtakgfm8ML1PogYYEfsdrgDgKjiNIgA) <!-- A link to a TypeScript Playground "Share" link which demonstrates this behavior -->

**Related issues**: Looks like #22467 is related but not sure if this is necessarily a duplicate/a direct consequence. Also, I recently opened #36626 and the general context is similar but the issue is distinct.
Repository: pytorch
Issue: TensorBoard add_scalars throws error when dict has keys of type int
Labels: triaged

## 🐛 Bug

In `torch/utils/tensorboard/writer.py`, method `add_scalars` takes as argument `tag_scalar_dict (dict): Key-value pair storing the tag and corresponding values`.
However, when the keys of `tag_scalar_dict` are not of type `string` (e.g. `int`),  it will throw an error.

## To Reproduce

Steps to reproduce the behavior:

1. Run the example code with int keys instead of string keys as such: 

            from torch.utils.tensorboard import SummaryWriter
            writer = SummaryWriter()
            r = 5
            for i in range(100):
                writer.add_scalars('run_14h', {0:i*np.sin(i/r),
                                               1:i*np.cos(i/r),
                                               2: np.tan(i/r)}, i)
            writer.close()

The error thrown is the following:
`line 365, in add_scalars
    fw_tag = fw_logdir + "/" + main_tag.replace("/", "_") + "_" + tag
TypeError: can only concatenate str (not "int") to str
Exception ignored in: <function SimpleImageViewer.__del__ at 0x000001728CED5048>`

## Expected behavior

        .. image:: _static/img/tensorboard/add_scalars.png
           :scale: 50 %

## Environment

PyTorch version: 1.3.0
Is debug build: No
CUDA used to build PyTorch: 10.1

OS: Microsoft Windows 10 Home
GCC version: Could not collect
CMake version: Could not collect

Python version: 3.7
Is CUDA available: Yes
CUDA runtime version: 10.0.130
GPU models and configuration: Could not collect
Nvidia driver version: Could not collect
cuDNN version: Could not collect

Versions of relevant libraries:
[pip3] msgpack-numpy==0.4.4.3
[pip3] numpy==1.17.3
[pip3] torch==1.3.0
[pip3] torchtext==0.5.0
[pip3] torchvision==0.4.1
[conda] Could not collect
Repository: TypeScript
Issue: property-will-be-overwritten-by-spread error is issued multiple times
Labels: Bug

```ts
interface XX {
    paddingLeft: string;
}

declare var x: XX
declare function clonElement<Q>(props?: object): void;
clonElement({ style: {
    paddingLeft: 'hi',
    ...x
}})
```

**Expected behavior:**
One error on `paddingLeft: 'hi'`: 'paddingLeft' is specified more than once, so this usage will be overwritten.

**Actual behavior:**
Two errors.

Our old commit of ant-design issues this error _8_ times. This is probably just a result of (1) not caching the type from checking object literals (2) checking object literals multiple times during resolveCall.

Not high priority -- I'm not sure it's observable from VS Code -- and probably expensive to fix, depending on whether the reason that we decided to not cache object literal types is still true.
Repository: vscode
Issue: Provide a "focus-follow-mouse" setting
Labels: feature-request

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->

I am used for years (X11 times) with focus following the mouse, instead of having to click to type (which is slow, and wears).
Repository: terminal
Issue: Make a second `LibraryIncludes.h` that includes WIL and TIL & have it at the bottom of every `precomp.h`
Labels: Help Wanted,Product-Meta,Issue-Task,Area-CodeHealth

Can you file a follow-on task to perhaps make a second `LibraryIncludes.h` that includes WIL and TIL and have it at the bottom of every `precomp.h`?

I feel like you've done this to like 6 more projects as of this PR and I bet it will just keep coming.

We should probably put all super-powered headers at the bottom of every `precomp.h`.

_Originally posted by @miniksa in https://github.com/microsoft/terminal/pull/5131_
Repository: rust
Issue: Measure binary size impact of implicit caller location
Labels: T-compiler,I-heavy,F-track_caller

The largest unanswered questions about [implicit caller location](https://github.com/rust-lang/rust/issues/47809) are about the binary size impact of the feature and how to offer users control over it.

There are three ways I see that `#[track_caller]` inflates binaries:

1. code bloat from panicking branches that were previously fused
2. encoding the `Location` structs themselves
3. encoding the `&'static str` for every filename referenced by a `Location`

We need to determine the impact to the ecosystem for each of these before deciding on mitigation strategy.

(1) was the main concern in the RFC but it was predicated on the assumption that `#[track_caller]` would affect inlining (an artifact of the implementation proposed). Since it doesn't affect inlining now, the only lost optimization in panicking branches would be for cases where LLVM previously used knowledge of a single constant panic location to make the failure path of a function smaller.

We've not yet had any reports of this and some ad-hoc measurements don't show any difference. This matches my mental model of LLVM's ability to optimize calling conventions which is "very expensive magic". I'm open to ideas for how to better assess this, including "wait and see".

**TLDR** Re (2) and (3),

`Location`s are 24 bytes when `size_of::<usize>() == size_of::<u64>()` and we don't currently measure how many we encode. We should put these in their own section to make it easier to measure.

Which filenames do we encode? In practice: probably all source files. We should put these in their own section too.
Repository: youtube-dl
Issue: Subtitles from MPD file
Labels: 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.03.24. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Search the bugtracker for similar feature 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 feature request
- [x] I've verified that I'm running youtube-dl version **2020.03.24**
- [x] I've searched the bugtracker for similar feature requests including closed ones


## Description

<!--
Provide an explanation of your issue in an arbitrary form. Please make sure the description is worded well enough to be understood, see https://github.com/ytdl-org/youtube-dl#is-the-description-of-the-issue-itself-sufficient. Provide any additional information, suggested solution and as much context and examples as possible.
-->

Please add, when parsing an MPD, the support option for subtitles, so that we can also not only pull video and audio, we can also capture subtitles, because in cases of fragmented files it is very bad to do manually
Repository: terminal
Issue: Add clamped math methods to `til` types
Labels: Help Wanted,Product-Meta,Issue-Task,Area-CodeHealth

Add a clamped sub method to til::point instead of doing it on the outside? I feel like this line should read

```
const auto offsetPoint = coord.ClampSub(controlOrigin);
```

_Originally posted by @miniksa in https://github.com/microsoft/terminal/pull/5131_


I moved this because I thought this comment was a generally good idea. We've got checked math operators defined on the `til` types already, but there are scenarios where one might want to use clamped math instead. Those callers should be able to use `pointA.ClampedAdd(pointB)`, etc. to be able to do clamped math. 

This seems like an easier solution than having some sort of other magic to say "I want a clamped point" that _always_ does clamped math.
Repository: pytorch
Issue: libtorch for Windows. MNIST example does no work.
Labels: module: cpp,triaged

I've tried to run mnist train example (https://github.com/pytorch/examples/tree/master/cpp/mnist)
Code crushes on train_dataset creation whith message "Unhandled exception at 0x00007FFE7B879179 in MNIST.exe: Microsoft C++ exception: c10::Error at memory location 0x00000068D2EFF4B0. occurred".
[auto train_dataset = torch::data::datasets::MNIST(kDataRoot)
        .map(torch::data::transforms::Normalize<>(0.1307, 0.3081))
        .map(torch::data::transforms::Stack<>());]
Environment:
Win10, VS 2019, Release, CPU.

I'm not sure if mnist-data prpared correctly. Just put them to ./data catalog
26.03.2020  12:10         1 648 877 t10k-images-idx3-ubyte.gz
26.01.1998  18:07         7 840 016 t10k-images.idx3-ubyte
26.03.2020  12:10             4 542 t10k-labels-idx1-ubyte.gz
26.01.1998  18:07            10 008 t10k-labels.idx1-ubyte
26.03.2020  12:09         9 912 422 train-images-idx3-ubyte.gz
18.11.1996  18:36        47 040 016 train-images.idx3-ubyte
26.03.2020  12:09            28 881 train-labels-idx1-ubyte.gz
18.11.1996  18:36            60 008 train-labels.idx1-ubyte

What is wrong?

cc @yf225
Repository: pytorch
Issue: LibTorch API on Mobile
Labels: module: cpp,triaged,oncall: mobile

## 🚀 Feature
Hello, this may already be available and undocumented, but is there any way to access the full C++ frontend API on the mobile build? 

Currently the mobile build only exposes the TorchScript portion of libtorch, so, e.g. I can't use `torch::nn` operations on mobile. 


cc @yf225
Repository: create-react-app
Issue: Would it be possible to support applying two templates?
Labels: issue: proposal,needs triage

### Is your proposal related to a problem?

This happens when the developer wants to apply two templates, for example, for a project requiring Redux and typescript, that would be something like: 

`create-react-app myapp --template redux,typescript`
Repository: TypeScript
Issue: js function hover adds arguments `...args: any[]` when calling an object property named `arguments`
Labels: Bug

*TS Template added by @mjbvz*

**TypeScript Version**: 3.9.0-dev.20200330

**Search Terms**
- hover / quick info
- JavaScript

--- 

![Code_2020-03-30_14-39-22](https://user-images.githubusercontent.com/30108880/77913629-e3c0a180-7294-11ea-8308-9b97714df51f.png)
1.43.2
Repository: angular
Issue: Click event not firing only once after HammerManager destroyed on IOS
Labels: area: core,area: zones,core: event listeners,iOS,P4

<!--🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅

Oh hi there! 😄

To expedite issue processing please search open and closed issues before submitting a new one.
Existing issues often contain information about workarounds, resolution, or progress updates.

🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅-->


# 🐞 bug report

### Affected Package
The issue is caused by package @angular/platform-browser

### Is this a regression?
8.0, 8.2

### Description
Click event not firing after HammerManager destroyed on IOS.

After HammerManager destroyed. click event on any area of document is ignored exactly 1 time.

If i click button twice. it works.

The click event skip `globalZoneAwareCallback`, `globalZoneAwareCaptureCallback` function on `zone.js`.

## 🔬 Minimal Reproduction
https://angular-hammerjs-touch-weird.stackblitz.io

## 🔥 Exception or Error
No Error. just ignored click event 1 time.

## 🌍  Your Environment

**Angular Version:**
<pre><code>

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/


Angular CLI: 8.3.26
Node: 10.16.0
OS: darwin x64
Angular: 8.2.14
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

Package                            Version
------------------------------------------------------------
@angular-devkit/architect          0.803.26
@angular-devkit/build-angular      0.803.26
@angular-devkit/build-ng-packagr   0.803.26
@angular-devkit/build-optimizer    0.803.26
@angular-devkit/build-webpack      0.803.26
@angular-devkit/core               8.3.26
@angular-devkit/schematics         8.3.26
@angular/cli                       8.3.26
@ngtools/webpack                   8.3.26
@schematics/angular                8.3.26
@schematics/update                 0.803.26
ng-packagr                         5.7.1
rxjs                               6.4.0
typescript                         3.5.3
webpack                            4.39.2
</code></pre>

**Anything else relevant?**
IOS 13.3.1
- Safari
- Chrome
Repository: pytorch
Issue: Cannot JIT functions with custom backwards (e.g. swish)
Labels: oncall: jit,module: autograd,triaged

## 🚀 Feature
<!-- Please support swish opt, which can be exported by torch.jit and  save memory-->

The MemoryEfficientSwish as follows can not be exported by torch.jit: 

```
class SwishImplementation(torch.autograd.Function):
    @staticmethod
    def forward(ctx, i):
        result = i * torch.sigmoid(i)
        ctx.save_for_backward(i)
        return result

    @staticmethod
    def backward(ctx, grad_output):
        i = ctx.saved_variables[0]
        sigmoid_i = torch.sigmoid(i)
        return grad_output * (sigmoid_i * (1 + i * (1 - sigmoid_i)))
```

```
class MemoryEfficientSwish(nn.Module):
    def forward(self, x):
        return SwishImplementation.apply(x)
```


The vanilla version swish is not efficient enough: 
```
class Swish(nn.Module):
    def forward(self, x):
        return x * torch.sigmoid(x)
```




cc @suo @ezyang @SsnL @albanD @zou3519 @gqchen
Repository: vscode
Issue: Allow context key expression that compares object properties
Labels: feature-request,context-keys

@jrieken I was attempting to change the Timeline's `timeline.excludeSources` setting from an array to an object (as requested [here](https://github.com/microsoft/vscode/commit/59c57e1e899db397deb331f13e1c8c431c7dcb93#commitcomment-37761862)).

I've pushed a branch with the changes here: [eamodio/timeline-excludesources](https://github.com/microsoft/vscode/commits/eamodio/timeline-excludesources)

Here I am trying to use the `timeline.excludeSources.<source-id>` property as the `toggled` condition.
https://github.com/microsoft/vscode/blob/2d551abb57bfde80a48f2f5517b4c5fcab2380a4/src/vs/workbench/contrib/timeline/browser/timelinePane.ts#L1177

This seems to work for the initial state, but it never gets updated when the property is removed or re-added. It looks like the cause is somewhere in here:
https://github.com/microsoft/vscode/blob/db36e74f62b1b2603906d4d2c892ab12cf632a12/src/vs/platform/contextkey/browser/contextKeyService.ts#L102-L120

Where `this._values` will contain `timeline.excludeSources.<source-id>`, but the `event.affectedKeys` will only have `timeline.excludeSources`.

/cc @rebornix
Repository: youtube-dl
Issue: maoritelevision.com (appears to use brightcove)
Labels: site-support-request,broken-IE,patch-available

<!--

######################################################################
  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.03.24. 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.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

<!--
Provide all kinds of example URLs support for which should be included. Replace following example URLs by yours.
-->

- Single video: https://www.maoritelevision.com/shows/frenemies/S01E015/frenemies-episode-15


## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

A username+password is needed; the following will work:
username=rf-mtv-test@live555.com,password=testtest