sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: youtube-dl
Issue: Pass arguments to ffmpeg 
Labels: question


## 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

Is it possible to pass arguments to ffmpeg directly from youtube-dl cli?

I did some search, and have found [one example in the python code level](https://www.reddit.com/r/youtubedl/comments/j68jd2/how_can_i_pass_arguments_to_ffmpeg_to_use_on/), but I'm wondering if it is possible from youtube-dl cli.

The use case is, for `--extract-audio` to convert video files to audio-only files, or doing audio-only downloading, it'll be super if I can increase the audio volume using ffmpeg option on the fly, instead of me doing it again afterwards.

I don't know if it is even possible, so I'm just asking. thx
Repository: pytorch
Issue: OpInfo JIT tests do not work with Tensor kwarg arguments
Labels: oncall: jit,module: tests,better-engineering

Remove the skip here https://github.com/pytorch/pytorch/blob/911952220ddfd8330532e516499959c1a77c613a/torch/testing/_internal/common_methods_invocations.py#L4301 to trigger the error below.

```
________________________________________________________________________________________________ TestCommonCPU.test_variant_consistency_jit_cov_cpu_complex64 ________________________________________________________________________________________________
Traceback (most recent call last):
  File "/shared/users/heitorschueroff/pytorch/test/test_ops.py", line 413, in test_variant_consistency_jit
    check_against_reference(self,
  File "/shared/users/heitorschueroff/pytorch/torch/testing/_internal/common_jit.py", line 84, in check_against_reference
    outputs_test = self.runAndSaveRNG(func, nograd_inputs, kwargs)
  File "/shared/users/heitorschueroff/pytorch/torch/testing/_internal/common_jit.py", line 154, in runAndSaveRNG
    results = func(*inputs, **kwargs)
  File "/shared/users/heitorschueroff/pytorch/torch/testing/_internal/jit_metaprogramming_utils.py", line 307, in script_fn
    fn, tensors = gen_script_fn_and_args(method_name, func_type, *args, **kwargs)
  File "/shared/users/heitorschueroff/pytorch/torch/testing/_internal/jit_metaprogramming_utils.py", line 298, in gen_script_fn_and_args
    CU = torch.jit.CompilationUnit(script)
RuntimeError: 
undefined value tensor:
  File "<string>", line 3

def the_method(i0):
    return torch.cov(i0, correction=0, fweights=None, aweights=tensor([0.0518, 0.4681], dtype=torch.float32, requires_grad=True))
```

cc @mruberry @VitalyFedyunin @walterddr @gmagogsfm
Repository: excalidraw
Issue: Install excalidraw on OpenShift
Labels: docker

As special case of #1772 provide a way to install excalidraw on OpenShift container platform.
Repository: puppeteer
Issue: Taking a delayed screenshot causes a resize event with a document.documentElement.clientWidth of 1
Labels: bug,screenshot,confirmed,P3

### Steps to reproduce

**Tell us about your environment:**

* Puppeteer version: 9.1.1
* Platform / OS version: Windows 10, ubuntu 20.04.2
* URLs (if applicable):
* Node.js version: 12.19.0, 10.24.1

**What steps will reproduce the problem?**

While this looks to be a race condition that does not happen every time, I've gotten it to reliably occur for me with the code below.  The issue seems to occur when taking a screenshot of a page that "takes a while" - because of a large screen size, an arbitrary delay, a series of tasks that need to be performed before the screenshot, etc. 

Page:
```
<html>
<head>
	<script type="module">
		window.addEventListener('resize', () => {
			console.log('resize', document.documentElement.clientWidth); // or window.innerWidth
		});
	</script>
</head>
<body>
	<div id="test">Test Text</div>
</body>
</html>
```
Script:
```
const delay = async(page) => {
	await page.evaluate(() => {
		return new Promise(resolve => {
			setTimeout(resolve, 2000);
		});
	});
};

const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.setViewport({ width: 800, height: 800, deviceScaleFactor: 1 });
page.on('console', msg => console.log(msg.text()));
await page.goto(`<page above>`, { waitUntil: ['networkidle0', 'load'] });

await delay(page);
console.log('***');
await page.screenshot({ path: `1.png` });
await delay(page);
console.log('***');
await page.screenshot({ path: `2.png` });
await delay(page);
console.log('***');
await page.screenshot({ path: `3.png` });
```

Output:
```
***
resize 1
resize 800
***
resize 1
resize 800
***
resize 1
resize 800
```

Increasing the timeout duration and/or the size of the viewport increases the reliability that the resize of 1 will happen.  If I go down to a small timeout on my machine, I'll see the `resize 1` lines disappear (but the resize of 800 remains).

**What is the expected result?**
The resize event is not fired (or, if the core puppeteer code needs a resize to happen, a resize to a `clientWidth` of `1` should not happen).

**What happens instead?**
Sometimes, when the page takes a while to do something before the screenshot is taken, the screenshot will cause a `resize` event and a `document.documentElement.clientWidth`/`window.innerWidth` of 1.


This is triggering incorrect screenshots of UI code that reacts to `resize` events, where they will react to the size of 1 and then may not be able to recalculate with the 800 before the screenshot occurs.  This may be the same issue as https://github.com/puppeteer/puppeteer/issues/3371, but that could also be referring to the size 800 resize events I'm seeing as well.  The size 1 resize events occur without a tall element on the page (as shown above), and the described workaround there seems to make things worse for this issue.
Repository: go
Issue: x/tools/gopls: consider adding special cases for main Go tree and golang.org/x modules when linkifying issues
Labels: NeedsInvestigation,FeatureRequest,gopls,Tools

@heschi [pointed out](https://go-review.googlesource.com/c/build/+/321011/1/cmd/release/release.go#279) to me that `gopls` has a feature of turning text like `org/repo#123` into links to corresponding GitHub issues.

The main Go repository and most (if not all) golang.org/x modules use the main Go issue tracker (https://golang.org/issues) and have many¹ existing comments that refer to Go issues as just "#​123" or "issue 123".

If it's deemed okay to add special cases to that behavior for the Go project itself, this is a feature request to adjust the linkifying behavior of `gopls` to recognize when the module path is something in the standard library (just `std`, `cmd` would go a long way) or has a `golang.org/` prefix, and not require the "golang/go" prefix. That would help make existing comments useful and reduce the desire to be adding the otherwise-not-strictly-needed "golang/go" prefix in Go comments.

<details><summary>¹ (Details)</summary><br>

A quick grep in the Go tree at commit a2c07a9a1a445c28fa4db9bd1472b28cad3ca818:

```
"see issue \d+"  - 286 matches
"see issue #\d+" - 143 matches
"see #\d+"       - 82 matches
"golang/go#\d+"  - 5 matches
```

</details>

CC @stamblerre, @heschi.
Repository: go
Issue: cmd/cgo: generates incorrect int constants from #define with cast to ulong typedef with clang
Labels: NeedsInvestigation,compiler/runtime

### What version of Go are you using (`go version`)?

<pre>
go version go1.16.4 darwin/amd64
</pre>

### Does this issue reproduce with the latest release?

Yes

### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/svanders/Library/Caches/go-build"
GOENV="/Users/svanders/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/svanders/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/svanders/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/Users/svanders/sdk/go1.16.4"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/Users/svanders/sdk/go1.16.4/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.16.4"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/dev/null"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/t8/5_d5bl793710gx_c4fh3_k6r0000gn/T/go-build2777539228=/tmp/go-build -gno-record-gcc-switches -fno-common"
</pre></details>

### What did you do?

$ cat main.go

```go
package main

// typedef unsigned long my_ul;
// #define UL ((unsigned long)(-2))
// #define MY_UL ((my_ul)(-2))
import "C"
import "fmt"

func main() {
	fmt.Println(C.UL / 2)
	fmt.Println(C.MY_UL / 2)
}
```

$ go run ./main.go

### What did you expect to see?

Like on linux I would expect this output:
```
9223372036854775807
9223372036854775807
```

### What did you see instead?

On MacOS Catalina (10.15.7) I get this output instead
```
9223372036854775807
-1
```

the according generated code in `_cgo_gotypes.go` looks like this:
```
const _Ciconst_UI64 = -0x2
const _Ciconst_ULL = 0xfffffffffffffffe
```
so the cast seems to be ignored, if it is a typedef of `unsigned long` (or `unsigned long long`).
Repository: pytorch
Issue: Unhelpful error message when type annotation is violated.
Labels: oncall: jit

## 🐛 Bug

When a NamedTuple is passed to a ScriptModule and the input is incorrectly typed, the error message is very difficult to interpret. (And actually leads on in the wrong direction.)

Note for internal devs: Q197088 is the original customer issue.

## To Reproduce

Steps to reproduce the behavior:

```
import torch
from typing import Dict, List, NamedTuple, Union, Tuple

class TestClass(NamedTuple):
    value: List[str]

class Wrapper(torch.jit.ScriptModule):

    @torch.jit.script_method
    def forward(self, x: TestClass) -> TestClass:
        return x
        
# Fine
Wrapper()(TestClass(["a"]))

# Not fine
Wrapper()(TestClass([None]))
```

```
forward() Expected a value of type '__torch__.TestClass' for argument 'x' but instead found type 'TestClass (aka NamedTuple(value))'.
Position: 1
Value: TestClass(value=[None])
Declaration: forward(__torch__.Wrapper self, __torch__.TestClass x) -> (__torch__.TestClass)
Cast error details: Unable to cast Python instance to C++ type (compile in debug mode for details)
```

## Expected behavior

The error should indicate that the schema was violated, rather than describing `__torch__.TestClass` (it's not clear at the outset how that differs from `__main__.TestClass`) and advising the user to recompile.



cc @gmagogsfm
Repository: deno
Issue: localStorage API errors for compiled deno binaries
Labels: feat,compile

I was excited to try out the new `localStorage` API (which seems like a great and natural fit for CLI's) and I found that it throws an error for any compiled output. This was run with Deno `1.10.2` on macOS.

welcome.ts
```
console.log("Welcome to Deno!")

localStorage.setItem("foo", "bar")
console.log(localStorage.getItem("foo"))
console.log(localStorage.length)
```

output : uncompiled

```
❯ deno run --location=https://127.0.0.1 welcome.ts
Welcome to Deno!
bar
1
```

output : compiled

```
❯ deno compile --unstable --location=https://127.0.0.1 welcome.ts
Check file:///private/tmp/cli/welcome.ts
Bundle file:///private/tmp/cli/welcome.ts
Compile file:///private/tmp/cli/welcome.ts
Emit welcome

❯ ./welcome
Welcome to Deno!
error: NotSupported: LocalStorage is not supported in this context.
    at DOMExceptionNotSupportedError (deno:runtime/js/99_main.js:199:16)
    at unwrapOpResult (deno:core/core.js:106:13)
    at Object.opSync (deno:core/core.js:120:12)
    at createStorage (deno:extensions/webstorage/01_webstorage.js:93:22)
    at localStorage (deno:extensions/webstorage/01_webstorage.js:178:24)
    at file://$deno$/bundle.js:2:1
```

The error message seems to originate from here:

https://github.com/denoland/deno/blob/dfe528198d363ebc883da84dc816bce112ecd24b/extensions/webstorage/lib.rs#L70
Repository: pytorch
Issue: DDP grads dont have parity with local training when grads are undefined
Labels: oncall: distributed,triaged,module: ddp

## 🐛 Bug
The following test fails for DDP:

```
@unittest.skipIf(BACKEND != 'nccl' and BACKEND != 'gloo',
                         "Only Nccl & Gloo backend support DistributedDataParallel")
        @skip_if_lt_x_gpu(2)
        def test_undefined_grad_parity_unused_parameters(self):
            x = torch.ones(1, 2).to(self.rank)
            net = Net().to(self.rank)
            local_net = copy.deepcopy(net)
            net = torch.nn.parallel.DistributedDataParallel(
                net,
                device_ids=[self.rank],
                find_unused_parameters=False,
            )
            out = net(x).sum()
            local_out = local_net(x).sum()
            # Simulates undefined gradients.
            torch._C._functions.UndefinedGrad()(out).backward()
            torch._C._functions.UndefinedGrad()(local_out).backward()
            for (dist_param_name, dist_param), (local_param_name, local_param) in zip(net.named_parameters(), local_net.named_parameters()):
                dist_grad = dist_param.grad
                local_grad = local_param.grad
                self.assertEqual(dist_grad, local_grad, f"DDP param {dist_param_name} grad {dist_grad} does not match local param {local_param_name} with grad {local_grad}")
```

The main reason is that if an autograd hook fires in the reducer, we will consider that param as having a grad and allreduce it. If the grad is not defined, we zero the part of the corresponding bucket and proceed, so we end up writing zero to the grad field.

Historically, the main use case of `find_unused_parameters=True` has been how we get undefined gradients, DDP works well in this case by checking if the param hasn't been used across all ranks, and if so, avoids allreducing it. However, in the general case where the param's grad is `None` it does not work as seen above.

I'm not actually sure if there are any practical scenarios where the grad can be `None` but the parameter is still used, however. This could potentially happen if the user has a custom autograd function following the DDP model, that returns `None` for gradients depending on some custom logic. There also have not been any user reports of this issue, so this is probably a low-pri fix for now.

cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @agolynski @SciPioneer @H-Huang @mrzzd @cbalioglu @gcramer23
Repository: youtube-dl
Issue: Request for support for new site: Univision 
Labels: site-support-request

## Checklist

- [x] I'm reporting a new site support request
- [x] I've verified that I'm running youtube-dl version **2021.05.16**
- [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: https://www.univision.com/shows/te-acuerdas-de-mi/te-acuerdas-de-mi-capitulo-14-video
- Single video: https://www.univision.com/shows/quererlo-todo/quererlo-todo-capitulo-75-video
- Playlist: https://www.univision.com/shows/quererlo-todo

## Description

[Univision](https://www.univision.com/) is an official TV broadcasting site providing some of its content free, while others are behind a pay-wall. Typically, the newest episodes are behind the pay-wall and older episodes are provided free of charge. 

## Example output

```
> youtube-dl -v https://www.univision.com/shows/te-acuerdas-de-mi/te-acuerdas-de-mi-capitulo-13-video
[debug] System config: ['--prefer-free-formats']
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.univision.com/shows/te-acuerdas-de-mi/te-acuerdas-de-mi-capitulo-13-video']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.05.16
[debug] Python version 3.9.5 (CPython) - Linux-5.11.19-300.fc34.x86_64-x86_64-with-glibc2.33
[debug] exe versions: ffmpeg 4.4, ffprobe 4.4
[debug] Proxy map: {}
[generic] te-acuerdas-de-mi-capitulo-13-video: Requesting header
WARNING: Falling back on generic information extractor.
[generic] te-acuerdas-de-mi-capitulo-13-video: Downloading webpage
[generic] te-acuerdas-de-mi-capitulo-13-video: Extracting information
ERROR: Unsupported URL: https://www.univision.com/shows/te-acuerdas-de-mi/te-acuerdas-de-mi-capitulo-13-video
Traceback (most recent call last):
  File "/home/galik/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 815, in wrapper
    return func(self, *args, **kwargs)
  File "/home/galik/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 836, in __extract_info
    ie_result = ie.extract(url)
  File "/home/galik/bin/youtube-dl/youtube_dl/extractor/common.py", line 534, in extract
    ie_result = self._real_extract(url)
  File "/home/galik/bin/youtube-dl/youtube_dl/extractor/generic.py", line 3520, in _real_extract
    raise UnsupportedError(url)
youtube_dl.utils.UnsupportedError: Unsupported URL: https://www.univision.com/shows/te-acuerdas-de-mi/te-acuerdas-de-mi-capitulo-13-video

```
Repository: vscode
Issue: Calling `TextEditorEdit.replace` to replace a line of text introduces a partial selection of the new text
Labels: bug,api,editor-api

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: No, but expected because this is a bug with the extension API

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
Version: 1.56.2
Commit: 054a9295330880ed74ceaedda236253b4f39a335
Date: 2021-05-12T16:44:45.182Z
Electron: 12.0.4
Chrome: 89.0.4389.114
Node.js: 14.16.0
V8: 8.9.255.24-electron.0
OS: Linux arm 5.10.17-v7l+

Note: Reproduces on all OS's

Steps to Reproduce:

1. From an extension, create a command to run the following code:
   ```js
   function myCommand () {
   	return new Promise((resolve, reject) => {
   		const editor = vscode.window.activeTextEditor;
   		const {range} = editor.document.lineAt(0);
   		return editor.edit((editBuilder) => {
   			editBuilder.replace(range, "abcdef");
   		}).then(resolve, reject);
   	});
   }
   ```
2. With that extension loaded, create a new document and type "123" as the only text, leaving the cursor after the 3
3. Invoke the above command via `Ctrl+Shift+P`

Expected:
Document text is  "abcdef", cursor is after the 'f', no selection is present

Actual:
Document text is "abcdef", cursor is after the 'f', **the text "def" is selected**

Originally found here: https://github.com/DavidAnson/vscode-markdownlint/issues/159
Repository: create-react-app
Issue: How to fix immer problem?
Labels: stale,needs triage

When I try to initialize an app by "npx create-react-app organic-app" in windows terminal it throws me the following error:

internal/modules/cjs/loader.js:888
throw err;

Cannot find module "immer", 
Require stack: 
project_dir\node_modules\react-dev-utils\immer.js 
project_dir\node_modules\react-scripts\scripts\utils\verifyTypeScriptSetup.js
project_dir\node_modules\react-scripts\scripts\start.js 
![gitta](https://user-images.githubusercontent.com/63036027/118755245-5a01d800-b88a-11eb-993d-b7a27fe7a36f.PNG)

My npm version: 7.13.0
Node version: 14.17.0

but immer is showing here:
![gittu](https://user-images.githubusercontent.com/63036027/118756320-769f0f80-b88c-11eb-9fb2-c3cd77b1db10.PNG)


But in ubuntu it works fine. 
Npm version in Ubuntu: 7.13.0
Node: 15.5.0