sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: youtube-dl
Issue: Fallback to import cryptodome if crypto is missing
Labels: question

<!--

######################################################################
  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:
- Look through the README (http://yt-dl.org/readme) and FAQ (http://yt-dl.org/faq) for similar questions
- Search the bugtracker for similar questions: http://yt-dl.org/search-issues
- Finally, put x into all relevant boxes (like this [x])
-->

- [x] I'm asking a question
- [x] I've looked through the README and FAQ for similar questions
- [x] I've searched the bugtracker for similar questions including closed ones


## Question

<!--
Ask your question in an arbitrary form. Please make sure it's worded well enough to be understood, see https://github.com/ytdl-org/youtube-dl#is-the-description-of-the-issue-itself-sufficient.
-->

Hello, part of updating a project that uses youtube-dl to alpine 3.11 i noticed that alpine have removed the py-crypto package. Recommendation seems to be to use cryptodome package instead. So to my queston: would it make sense to make youtube-dl fallback to cryptodome if crypto is missing? the only instance of this i can find is https://github.com/ytdl-org/youtube-dl/blob/c712b16dc41b792757ee8e13a59bce9ab3b4e5b4/youtube_dl/downloader/hls.py#L6
Repository: TypeScript
Issue: Named imports should respect Record<string, any> types
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.7.x-dev.201xxxxx

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms: dynamic named imports, commonjs named imports**

**Code**

```ts
declare module '*.wasm' {
  type WasmProxy = Record<string, (...args: any[]) => Promise<any>>;
  const wasmProxy: WasmProxy;
  export = wasmProxy;
}
```

**Expected behaviour:**

I would expect typescript to allow **any** named import such as:
```ts
import {anything, hello, hola } from './program.wasm';
```
Since the exported namespace is a Record, where any string is valid.

**Actual behavior:**

The following code does NOT work:
```ts
// Does not work
import {anything, hello, hola } from './program.wasm';
```

Using the wildcard import works:
```ts
// Does work
import * as ns from './program.wasm';
ns.anything;
ns.hello;
ns.hola;
```
Repository: pytorch
Issue: More dynamic PyTorch APIs
Labels: high priority,triaged,module: ux

## 🚀 Feature

Implement some of the pytorch APIs taking tensors as inputs, instead of python scalars.

## Motivation

Many of the pytorch APIs takes some of the inputs as python scalars.
Example:

https://pytorch.org/docs/stable/tensors.html#torch.Tensor.narrow

This is OK when the inputs are step constants (either real constants, or command line arguments), but in case these are dynamic, they force model code to perform `item()` calls on tensors.
For pytorch CPU/GPU an `item()` call is relatively cheap, but for backends (like XLA) which like to work within a *Graph World*, they force explicit execution at intermediate graph locations by hence considerably lower performance.
It would be nice if some of the pytorch APIs would take some of the inputs as tensors.
For example, `torch.narrow()` could take `start` (and maybe even `length`) as tensor, which would map to:
```Python
at::Tensor narrow(const at::Tensor& self, const at::Tensor& start, int64_t lenght);
```
For CPU/GPU this can be easily mapped to the existing, static, `narrow()` (via a simple `item()` call), while XLA could override that and map it to `DynamicSlice()`.

Similarly, would be nice to have APIs which return the size of tensors, as tensors.
Example:
```Python
at::Tensor dimsize(const at::Tensor& self, int dim);
```


This came up a few times already, like in:

https://github.com/pytorch/xla/issues/1467
https://github.com/pytorch/xla/issues/1379

In that case a wavenet like model needs to slice tensors based on offsets (`start`) values coming off training.


cc @ezyang @gchanan @zou3519
Repository: vscode
Issue: Reserve shortcut prefix for user 
Labels: feature-request

While installing multiple third-party extensions my shortcuts quickly become messed up. 
I found almost any direct ctrl-key sequences on my linux based system where bound, mostly by default vscode commands, with the single exception of `ctrl-e`.

I started adding the individual commands I needed under that prefix in order to not remove default bindings, so if I wanted something being run with `ctrl-r` I just put it under `ctrl-e ctrl-r`.

 

I propose to reserve a prefix to user shortcuts in a similar way as [Spacemacs handily do](https://develop.spacemacs.org/doc/DOCUMENTATION#reserved-prefix-command-for-user) thus providing user a "safe harbor" to organize one's shortcuts with freedom.
Repository: create-react-app
Issue: Cannot find module './logo.svg' using custom react-scripts and Typescript template
Labels: issue: proposal

### Is your proposal related to a problem?

Yes.

When I forked this repo and re-published version 3.3.0 of react-scripts (WITHOUT ANY CHANGES!) under my own organization on npmjs, I was unable to successfully build/start a project using these custom scripts. 

Steps used:
1. Execute `npx create-react-app my-app --template typescript --scripts-version my-custom-scripts-on-npm`
2. run `yarn start`
3. See error:
```
D:/Development/custom-cra-tests/my-app/src/App.tsx
TypeScript error in D:/Development/custom-cra-tests/my-app/src/App.tsx(2,18):
Cannot find module './logo.svg'.  TS2307

    1 | import React from 'react';
  > 2 | import logo from './logo.svg';
      |                  ^
    3 | import './App.css';
    4 | 
    5 | const App: React.FC = () => {
```

### Describe the solution you'd like

After wandering around, I managed to fix this by doing the following:
1. Locate `react-app-env.d.ts` in the `src` folder of your CRA project
2. Rename  `/// <reference types="react-scripts" />` to `/// <reference types="your-custom-published-react-scripts-name-here" />`

### Describe alternatives you've considered

/

### Additional context

A pr has already been proposed to fix this issue, but it has been closed
Reference issue: https://github.com/facebook/create-react-app/issues/5875
Reference PR: https://github.com/facebook/create-react-app/pull/5827 

I am not sure why this change didn't come through, but it remains an issue to date.
Repository: youtube-dl
Issue: Please add support for likemoi.telequebec.tv
Labels: site-support-request,geo-restricted

## Checklist

- [x] I'm reporting a new site support request
- [x] I've verified that I'm running youtube-dl version **2019.11.28**
- [x] I've checked that all provided URLs are alive and playable in a browser
- [x] I've checked that none of provided URLs violate any copyrights
- [x] I've searched the bugtracker for similar site support requests including closed ones

## Example URLs

- Single episode: http://likemoi.telequebec.tv/episodes/44-episode-44
- Single skit: http://likemoi.telequebec.tv/episodes/44-episode-44/sketchs/5-la-paille
- Latest episode: http://likemoi.telequebec.tv/episodes

## Description

Comedy show on Télé-Québec.

Probably very similar to https://github.com/ytdl-org/youtube-dl/pull/22482 or https://github.com/ytdl-org/youtube-dl/commit/05446d483d089d0bc7fa3037900dadc856d3e687.
Repository: rust
Issue: In the lexer, accept number suffixes that start with `e`.
Labels: A-parser,T-lang,C-feature-request,A-proc-macros

Currently, the lexer will reject tokens like `1.0etest` expecting an exponent after the `e`. It could alternatively accept this token as `LitFloat { value: 1.0, suffix: "etest" }`. This would mean that proc macros could use suffixes that start with an `e` (although not the suffix `e` itself of course).
Repository: rust
Issue: Don't emit "value assigned to ... is never read" for each instance?
Labels: C-enhancement,A-diagnostics,T-compiler,D-verbose

Scrolling through warnings when compiling projects during the early development stages can be a bit of a chore, but there's not much the compiler can do about it as it doesn't know whether you just haven't gotten around to something or if you forgot about it. I typically add `#![allow(unused_code)]` and `#![allow(dead_code)]` to new projects and take them out when the codebase nears completion of v1, but it occurs to me that there's no real value in emitting repeated warnings for unused assignments of the same variable.

e.g. 

![image](https://user-images.githubusercontent.com/606923/71329250-8c1dd780-24e8-11ea-9dc3-3b39a21b1d6f.png)

There are different heuristics here depending on how important it is to generate all warnings in advance, including

* a bloom filter for the variable (by ast path, not name) with the corresponding buckets filled when the first warning is emitted

This means code like 

```rust
{
    let foo = bar;
    let foo = bar;
}
```

continues to emit two warnings as they are two different variables being unread, *but* this wouldn't emit two warnings:

```rust
{ 
    let mut foo = "bar";
    foo = "baz";
}
```

as we are deduplicating by variable and not by unread write so only the first assignment will generate the warning, which is *probably* ok since addressing that error by adding either of 

```rust
{
    let mut foo = "bar";
    if (foo == "bar") { ... }
    foo = "baz";
}
```

or 

```rust
{
    let mut foo = "bar";
    foo = "baz";
    if (foo == "bar") { ... }
}
```

will go back to generating the warning for the other instance of unused write.

* actually tracking individual code paths for each variable and only warning for writes that are not provably exclusive:

```rust
{ 
    let mut foo = "bar";
    foo = "baz";
}
```

The above would continue to generate two warnings, but the following would generate only one:

```rust
let mut bar;
let foo = "hello";
match foo {
    "bar" => foo = "bar",
    "baz" => foo = "qux",
}
```

as no value was overwritten at any point and a single read would suffice to address both instances of unused writes.

Personally, I think the latter is overkill and might slow things down and increase memory usage in the compiler without much benefit. The former is both fast and easy (with no allocations and predetermined memory consumption based off the size of the bloom filter).
Repository: electron
Issue: Cascading of windows
Labels: enhancement :sparkles:

Will electron has any plan to provide a flag for cascading of windows based on OS? It will be helpful in many applications if flag is provided.

### Problem Description
I have a use case in my application to cascade the windows based on last opened window. we implemented it based on screen module provided in electron. but the issue is when we have multiple screen we need to consider so many scenarios, so it will be helpful if electron is providing the flag which will save so much of time for all the developers.
Repository: youtube-dl
Issue: Please add support for play.nova.bg
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.11.28. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Make sure that all provided video/audio/playlist URLs (if any) are alive and playable in a browser.
- Make sure that site you are requesting is not dedicated to copyright infringement, see https://yt-dl.org/copyright-infringement. youtube-dl does not support such sites. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
- Search the bugtracker for similar site support requests: http://yt-dl.org/search-issues. DO NOT post duplicates.
- Finally, put x into all relevant boxes (like this [x])
-->

- [x] I'm reporting a new site support request
- [x] I've verified that I'm running youtube-dl version **2019.11.28**
- [x] I've checked that all provided URLs are alive and playable in a browser
- [x] I've checked that none of provided URLs violate any copyrights
- [x] I've searched the bugtracker for similar site support requests including closed ones


## Example URLs

<!--
Provide all kinds of example URLs support for which should be included. Replace following example URLs by yours.
-->

- Single video: https://play.nova.bg/video/midnight-sun/midnight-sun-2019-12-18


## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

Bulgarian open access for everyone, no registration needed tv show and movies platform. You may need bulgarian vpn server to access it if you are outside Bulgaria. But some free one like tunnel bear provide access for free to such server.
Repository: pytorch
Issue: Force libtorch to use CUDA context
Labels: oncall: jit,triaged

I’m trying to integrate C++ libtoch to load a model into my application. My application does many CUDA staff before I load the model with libtorch. Thus, the CUDA context has already been created.

For some reason, even the CUDA context has already been created and the calling thread has already a valid context, when I call

torch::jit::script::Module module = torch::jit::load(“test.pt”);
module.to(at::kCUDA);

a new context is created by libtorch. The new context is not event push to the stack of contexts, is overwritting the current context. I know because if after the module.to(at::kCUDA) I call cuCtxPopCurrent the current context is null.

This causes a lot of problems because I cannot interact with current allocated memory I have in my context.

#jit #cuda #c++

cc @suo
Repository: TypeScript
Issue: Generator helper should include [Symbol.toStringTag]
Labels: Needs Investigation

**TypeScript Version:**  `3.8.0-dev.20191223` and `3.7.3`

**Search Terms:**

Generator, toStringTag, transformer, helper, tslib

**Code**

The following code will error in when using `compilerOptions.target = es5`, but works correctly when compiled with `target = es2015` or greater.

```ts
// index.ts
function* f() {}
if (f()[Symbol.toStringTag] !== 'Generator') {
	  throw new Error("Bad generator!")
}
console.log('👍 Works well!');
```

```sh
tsc --target es5 --lib dom,es5,es2015 ./index.ts && node index.js
# Error: Bad generator!
tsc --target es2015 ./index.ts && node index.js
# 👍Works well!
```

**Expected behavior:**

The property should be set as expected via the helpers.

Generators should include the `Symbol.toStringTag` property `"Generator"` according to [spec](https://www.ecma-international.org/ecma-262/6.0/#sec-generator.prototype-@@tostringtag).

Some libraries check for a generator by inspecting this property. For example, [`@wordpress/redux-routine`](https://github.com/WordPress/gutenberg/blob/3ca05a7d0ef966df724ebe744b04efd4330e7c20/packages/redux-routine/src/is-generator.js#L10-L15) checks for this property and does not correctly handle generators produced by the helper.

[`regenerator-runtime`](https://www.npmjs.com/package/regenerator-runtime) is a widely used generator helper which [does set this property](https://github.com/facebook/regenerator/blob/6e9e8d7747c2ab49927bdd9dd6261753181faec1/packages/regenerator-runtime/runtime.js#L386).

**Actual behavior:**

`Symbol.toStringTag` is not included on the generator.

**Playground Link:**

[Broken with target=es5](http://www.typescriptlang.org/play/?target=1&ts=3.8.0-dev.20191221#code/GYVwdgxgLglg9mAVAAmACgJTIN4F8BQMwya6GA2gMoCeAtgEZwA2AdFHJVAE4xgDmAFQCGfALrIAhAF4pyAOQBxAKZglXIey5ys2fMmRQAFlzgB3ZKvMBRLia5oARACEhAE2R8VajXC4SHGPgEEAgAzsxKLExwfGhyAOq+ANahyKZKTEwS2gDcQA)
[Working with target=es2015](http://www.typescriptlang.org/play/?target=2&ts=3.8.0-dev.20191221#code/GYVwdgxgLglg9mAVAAmACgJTIN4F8BQMwya6GA2gMoCeAtgEZwA2AdFHJVAE4xgDmAFQCGfALrIAhAF4pyAOQBxAKZglXIey5ys2fMmRQAFlzgB3ZKvMBRLia5oARACEhAE2R8VajXC4SHGPgEEAgAzsxKLExwfGhyAOq+ANahyKZKTEwS2gDcQA)

**Related Issues:**

#19006
Repository: terminal
Issue: no { with German Keyboard via RDP (Remote Desktop APPx App only)
Labels: Help Wanted,Area-Input,Issue-Bug,Area-TerminalControl,Product-Terminal,Priority-2

Version: 0.7.3451.0
local machine: Microsoft Windows [Version 10.0.18363.535]
RDP (PAW): Microsoft Windows [Version 10.0.18363.535]
WinPS 5.1 and PSCore 7 rc1

I am using the Remote Desktop and Remote Desktop Preview APPx apps to connect to my virtual PAW where I run Windows Terminal Preview (version above and previous). Only in this configuration with a german keyboard, i get "^_" when I want to enter "{". "}" works, it works with an english keyboard, it works with classic RDP client and of course on local machine.

I wonder if this should be an issue for the Remote Desktop App, but since the issue ONLY happens together with Windows Terminal Preview, I'd rather have it here.
Repository: flutter
Issue: [webview_flutter] on IOS onPageFinished is never called (while being offline)
Labels: platform-ios,customer: crowd,p: webview,package,has reproducible steps,P2,found in release: 2.2,found in release: 2.5,team-ios,triaged-ios

If my iPhone is in Airplane mode `onPageFinished` is never called. 
For Android it works as expected  (`onPageFinished` is called and "Web page not available" is shown)

Implementation:
```
          WebView(
            onWebViewCreated: (WebViewController controller) {
              webViewController = controller;
            },
            initialUrl: "some_url",
            javascriptMode: JavascriptMode.unrestricted,
            onPageFinished: (String url) async {
              String title = await webViewController.getTitle();
              // do something with title
            },
          )
```

Doctor:
```
[✓] Flutter (Channel stable, v1.9.1+hotfix.6, on Mac OS X 10.14.5 18F132, locale en-LT)
 
[!] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses
[✓] Xcode - develop for iOS and macOS (Xcode 11.1)
[✓] Android Studio (version 3.5)
[!] IntelliJ IDEA Community Edition (version 2019.1.3)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] Connected device (1 available)
```
Repository: pytorch
Issue: Can't pin storage memory
Labels: module: docs,module: cuda,triaged

## 🐛 Bug

Can't pin storage memory.
Not sure if this is planned or common behavior, but if this is part of the interface I guess it shouldn't fail.

## To Reproduce

Steps to reproduce the behavior:

1. ```import torch; torch.randn(10).storage().pin_memory()```

AttributeError: module 'torch.cuda' has no attribute '_host_allocator'

## Expected behavior
Returns a copy of storage which is pinned.

## Environment
(built from source)

Collecting environment information...
PyTorch version: nightly
Is debug build: No
CUDA used to build PyTorch: 10.1

OS: Ubuntu 18.04.3 LTS
GCC version: (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
CMake version: Could not collect

Python version: 3.7
Is CUDA available: Yes
CUDA runtime version: Could not collect
GPU models and configuration: 
GPU 0: GeForce RTX 2080 Ti
GPU 1: GeForce RTX 2080 Ti
GPU 2: GeForce RTX 2080 Ti
GPU 3: GeForce RTX 2080 Ti
GPU 4: GeForce RTX 2080 Ti
GPU 5: GeForce RTX 2080 Ti
GPU 6: GeForce RTX 2080 Ti

Nvidia driver version: 440.44
cuDNN version: Could not collect

Versions of relevant libraries:
[pip] numpy==1.17.4
[pip] torch==nightly
[pip] torchvision==0.5.0a0+2d7c066
[conda] blas                      1.0                         mkl  
[conda] mkl                       2019.4                      243  
[conda] mkl-service               2.3.0            py37he904b0f_0  
[conda] mkl_fft                   1.0.15           py37ha843d7b_0  
[conda] mkl_random                1.1.0            py37hd6b4f25_0  
[conda] pytorch                   nightly         py3.7_cuda10.1.243_cudnn7.6.5_1    saareliad
[conda] torchvision               0.5.0a0+2d7c066          pypi_0    pypi## Additional context

<!-- Add any other context about the problem here. -->

(What I'm really trying to do is find some hack to create pinned memory which is also shared, currently only managed to do so with pin_memory() than os.fork(), (before cuda is initialized), I'd like to do it on Storage too and not just the tensor itself)...

cc @ngimel