sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: youtube-dl
Issue: [bilibili] error 466 in downloading
Labels: bug

### Make sure you are using the *latest* version: run `youtube-dl --version` and ensure your version is *2017.12.31*. If it's not, read [this FAQ entry](https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl) and update. Issues with outdated version will be rejected.
- [x] I've **verified** and **I assure** that I'm running youtube-dl **2017.12.31**

### What is the purpose of your *issue*?
- [x] Bug report (encountered problems with youtube-dl)
- [ ] Site support request (request for adding support for a new site)
- [ ] Feature request (request for a new functionality)
- [ ] Question
- [ ] Other

---

Hello,i try to use youtube-dl ver12.31 to download a bilibili video but i get a 403 error

youtube-dl -F http://www.bilibili.com/video/av17843872/
[BiliBili] 17843872: Downloading webpage
[BiliBili] 17843872: Downloading video info page
ERROR: Unable to download JSON metadata: HTTP Error 403: Forbidden (caused by HT
TPError()); please report this issue on https://yt-dl.org/bug . Make sure you ar
e using the latest version; type  youtube-dl -U  to update. Be sure to call yout
ube-dl with the --verbose flag and include its complete output.
Repository: neovim
Issue: jobstart({string}) fails if 'shell' has unescaped space
Labels: bug,job-control,complexity:low

Prompted from https://github.com/vim-airline/vim-airline/issues/1595 . If neovim is ran from Git Bash which (by default) exists under `C:\Program Files\Git\usr\bin\bash` functions such as `jobstart` will break due to using the `shell` variable when running the command.

```sh
# We get this
C:\Program Files\Git\usr\bin\bash git
# Instead of
C:\Program\ Files\Git\usr\bin\bash git
```

```vim
:echo &shell
C:\Program Files\Git\usr\bin\bash.exe
```

I don't know if doing the escaping is actually possible, or if there is a better way of solving this but as long spaces in the shell path (which is set internally by nvim) do not break things I'd consider that a nice improvement.
Repository: rust
Issue: Reset rustc's scoped TLS state during unwinding.
Labels: C-cleanup,T-compiler,A-thread-locals

This should only happen in the event of an ICE, but right now, if a `Drop` implementation (for e.g. a field in `Session`) would try to access, say, the `TLS_TCX`, it would use-after-free the global `TyCtxt`.
Repository: flutter
Issue: Buttons on iOS do not use squircle paths
Labels: platform-ios,framework,a: fidelity,f: cupertino,P2,team-design,triaged-design

@abarth brings this up from time to time (I think mostly jokingly).  That CupertinoButton shouldn't actually be a rounded rect, but rather a squircle to match UIKit-based apps.
Repository: go
Issue: runtime: make defs_$GOOS.go regeneratable
Labels: NeedsInvestigation,compiler/runtime

It seems that `defs_$GOOS.go` used to generate `defs_$GOOS_$GOARCH.go` in the old days.

https://github.com/golang/go/blob/596e3d9c0176db442a51202a2ae2834ac892d594/src/runtime/defs_darwin.go#L7-L12

However, `-cdefs` is not a valid cgo option today and people started to add features ad hoc.

I think making those regeneratable again have some worthy.
Repository: rust
Issue: Option map won't compile while match works well
Labels: C-enhancement,T-lang,A-coercions

Consider this snippet:

```rust
fn xxx() -> Option<&'static str> {
    Some("word1 word2 word3")
}

fn to_words<'a>() -> Option<Box<Iterator<Item = &'a str> + 'a>> {
    xxx().map(|x|Box::new(x.split(' ')))
}

fn main() {
    println!("{}", to_words().unwrap().count());
}
```

it won't compiles with the error:

```
error[E0308]: mismatched types
 --> src/main.rs:6:5
  |
5 | fn to_words<'a>() -> Option<Box<Iterator<Item = &'a str> + 'a>> {
  |                      ------------------------------------------ expected `std::option::Option<std::boxed::Box<std::iter::Iterator<Item=&'a str> + 'a>>` because of return type
6 |     xxx().map(|x|Box::new(x.split(' ')))
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected trait std::iter::Iterator, found struct `std::str::Split`
  |
  = note: expected type `std::option::Option<std::boxed::Box<std::iter::Iterator<Item=&'a str> + 'a>>`
             found type `std::option::Option<std::boxed::Box<std::str::Split<'_, char>>>`
```

but match in exactly same case compiles well:

```rust
fn xxx() -> Option<&'static str> {
    Some("word1 word2 word3")
}

fn to_words<'a>() -> Option<Box<Iterator<Item = &'a str> + 'a>> {
    match xxx() {
        Some(x) => Some(Box::new(x.split(' '))),
        None => None
    }
}

fn main() {
    println!("{}", to_words().unwrap().count());
}
```

And if I explicitly define closure's argument type and returning value type it also compiles well:

```rust
fn xxx() -> Option<&'static str> {
    Some("word1 word2 word3")
}

fn to_words<'a>() -> Option<Box<Iterator<Item = &'a str> + 'a>> {
    let f: fn(x: &'a str) -> Box<Iterator<Item = &'a str>> = |x| {
        Box::new(x.split(' '))
    };
    
    xxx().map(f)
}

fn main() {
    println!("{}", to_words().unwrap().count());
}
```
I am sure there should not be differences between match and map at all.

This issue is reproduceble on rust stable and nightly.
Repository: opencv
Issue: Problem compiling both Python2 and 3 support on macOS
Labels: category: build/install,incomplete

<!--
If you have a question rather than reporting a bug please go to http://answers.opencv.org where you get much faster responses.
If you need further assistance please read [How To Contribute](https://github.com/opencv/opencv/wiki/How_to_contribute).

This is a template helping you to create an issue which can be processed as quickly as possible. This is the bug reporting section for the OpenCV library.
-->

##### System information (version)
<!-- Example
- OpenCV => 3.4.0
- Operating System / Platform => macOS Sierra 10.12.6
- Compiler => Apple LLVM version 8.1.0 (clang-802.0.42) 
-->

- OpenCV => 3.4.0
- Operating System / Platform => macOS Sierra 10.12.6
- Compiler => Apple LLVM version 8.1.0 (clang-802.0.42)

##### Detailed description

When trying to compile both Python 2 and 3 support compilation fails for Python 3.
I use Macports with latest Python 2.7 and 3.6 installed in /opt/local

Apparently the flags.make file generated in modules/python3/CMakeFiles/opencv_python3.dir does not include in CXX_INCLUDES the directory of Python3_INCLUDE of CMake

Also the same file for Python2 does not include it but since it adds the system directory /usr/include/python2.7 it compiles.

The only PYTHONx_INCLUDE directory that is added to flags.make is that of NUMPY.

I would expect that all the parameters given in the CMAKE GUI where reported in the flags.make file

##### Steps to reproduce

Get core and contrib 3.4.0 source zip files
Set compilation of both Python2 and 3 on macOS 10.12.6
Set /opt/local/Library/Frameworks/Python.framework/Versions/3.6/Headers/ as PYTHON3_INCLUDE_DIR and /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Headers/ as PYTHON2_INCLUDE_DIR
Compile and get a missing Python.h include for cv.so when compiling the Python3 version

Workaround: manually edit build/modules/python3/CMakeFiles/opencv_python3.dir/flags.make to add -I/opt/local/Library/Frameworks/Python.framework/Versions/3.6/Headers/
Repository: vue
Issue: [SSR] Support inline resource for specified files for server side rendering.
Labels: feature request

### What problem does this feature solve?
When we are using SSR with CommonsChunkPlugin, we often generate a `manifest.js` at the same time, but `manifest.js` is always very small (about 1kb).

Without SSR using `html-webpack-plugin` and its inline resource plugin, we are able to make `manifest.js` transformed inline into html file.

But for now we can not do for SSR that because the html output is generated by `vue-server-render` automatically.

### What does the proposed API look like?
```js
createBundleRenderer(bundle, {
  inlineResources: [] // string or RegExp
})
```

<!-- generated by vue-issues. DO NOT REMOVE -->
Repository: angular
Issue: [Animations] query doesn't work when using the async pipe
Labels: type: bug/fix,area: animations,freq2: medium,P3

## I'm submitting a...
<!-- Check one of the following options with "x" -->
```
[ x ] Bug report
```

## Current behavior
Animation query doesn't work when using the async pipe.


## Minimal reproduction of the problem with instructions
https://stackblitz.com/edit/query-async
There are 5 sections in the demo. Each container has the trigger on it. The items in all 5 sections should have the same stagger animation applied (including the rows of the MatTable). But only (1) and (4) work.

## Environment

```
Local environment:
  Angular CLI: 1.6.3
  Node: 8.9.4
  OS: win32 x64
  Angular: 5.1.3
StackBlitz: [at]angular/animations 5.1.3 (because I added them myself, it's not in the initial scaffolding) and the rest of the packages are 5.0.0, generatd by StackBlitz (I don't know how to change them, but the issue is the same locally with all packages being 5.1.3)
```
Repository: rust
Issue: Using deprecated items within the crate that deprecated them issues warnings
Labels: A-lints,T-lang,C-bug,L-deprecated

When deprecating an item, you typically still want the helper methods supporting it to work without the compiler whining that the item is deprecated.

I tried this code: [playground](https://play.rust-lang.org/?gist=de706d2986d8b1cd12a7852e29bc5c1c)

    #[deprecated]
    pub struct Foo;
    
    impl Foo {
        fn foo() -> Foo { Foo }
    }

I expected to see this happen: The code compiles without deprecation warnings.

Instead, this happened: Litterally every usage of `Foo` gets a use of deprecated item `Foo` warning.

The fact that I'm deprecating an item doesn't mean the crate itself should now be spammed with deprecation warnings. Working around it by either a global `#![allow(deprecated)]` will swallow legitimate deprecation warnings or require all uses to be tagged with it.

## Meta

Playground, all channels (how do you get the version info from the playground?)
Repository: react
Issue: Consider removing mouseenter/mouseleave polyfill
Labels: Component: DOM,Type: Breaking Change,React Core Team

As suggested in https://github.com/facebook/react/pull/10247.
Not sure we want to do it, but I decided to create an issue to track future attempts (the PR is stale).
Repository: go
Issue: cmd/gofmt: quadratic handling of large addition expressions
Labels: NeedsFix

Given a program with a large string addition
	
	var x = 1 + 1 + 1 + ... 1

gofmt takes time quadratic in the size of the expression to print it back out. Note that this is an integer addition, not a string addition: the problem does not involve string concatenation.

	go get -u rsc.io/tmp/bigprog
	bigprog gofmt

prints on my system:

	          1000  int   0.035s  strbal   0.008s  strbigbal   0.030s  str   0.026s  strbig    0.047s
	          2000  int   0.071s  strbal   0.012s  strbigbal   0.051s  str   0.079s  strbig    0.115s
	          4000  int   0.291s  strbal   0.022s  strbigbal   0.092s  str   0.271s  strbig    0.362s
	          8000  int   1.049s  strbal   0.032s  strbigbal   0.173s  str   1.092s  strbig    1.249s
	         16000  int   4.332s  strbal   0.070s  strbigbal   0.346s  str   4.338s  strbig    4.852s
	         32000  int  18.897s  strbal   0.112s  strbigbal   0.662s  str  18.212s  strbig   18.889s
	         64000  int  82.845s  strbal   0.224s  strbigbal   1.292s  str  84.138s  strbig   83.718s
	        128000  int 382.780s  strbal   0.425s  strbigbal   2.588s  str 381.781s  strbig  392.788s

See #23222 for full description of this table, but the important part here is that the int, str, and strbig columns are addition chains like above, while the faster strbal and strbigbal columns have parentheses added to make the addition parse trees balanced. The balanced times double nicely as the input size doubles, so there is no problem with actually generating large outputs. In contrast the unbalanced inputs quadruple as input size doubles, a clear quadratic slowdown. The obvious guess is that it is in the code that decides how to format expressions, and probably in the code that decides whether to insert spaces around expressions. (If so, it's my fault and I apologize.)

This is a fairly minor issue, but it would make gofmt 4X faster even on concatenations of size 1000, which are plausible in generated code (I started this after finding one of size 729).

/cc @griesemer
Repository: pytorch
Issue: Bind in Python _backward ATen functions
Labels: module: autograd,triaged

At the moment they are not bound because we don't support `std::array<bool, N>` binding, but this should be easy to add.

cc @ezyang @SsnL @albanD @zou3519 @gqchen
Repository: vscode
Issue: [html] code completion replaces text after cursor
Labels: feature-request,html

- VSCode Version: 1.19.1
- OS Version: MacOS Sierra 

Steps to Reproduce:

1. Put some html in and html page with some text  `<div>Hello my name is ....</div>`
2. Then before hello type a tag (ie strong "<str" ) 
3. Hit tab to have it expand strong. 
4. Notice that hello is consumed. 

Here is a video that shows the bug in action. 

https://dev-dynactivesoftware.appspot.com/?blobWSK=ahdzfmRldi1keW5hY3RpdmVzb2Z0d2FyZXKkAgsSEUJsb2JzdG9yZU1ldGFkYXRhIowCQU1JZnY5NVpoMndHX0RzVVJyaFJObFN2OV9pOWlBR2dsQm5BMHhzNWRFT1ZELS04Rmd2SnI2Mk52N0VESFI4S0Z2MnhZLUI1RFp0NGFUT3pOa3BvUnpFRUR0MHJFQy1PQ0JlQkRlalFYVmdZR0poV1liVUJfWDhXTUpjYmRJYXVVckFBTG1BZjhJODM1NFBLVDhuY0NDOWdkb05HN0F5NkZhVm9XT3hUcThVakVUNHZZUERIWTVHcHI3LXZUZjE2Y2Ixay02aVNtQXdYN0EybkdfNmF3aTUyajlxRm9wcDU4eUtodHo3dEVEd0FKdXFsckE5UFVwUGZsX3k3UVE0TTRPZnJKWnZXTHd0RwyiAQZkcy5jbXM

<!-- Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes/No

I didn't check because I couldn't figure out how to do this. I opened the command typed the suggested line and I got. 

-bash: code: command not found
Repository: kubernetes
Issue: Setting defaultMode is not Fully Respected When Pod.spec.securityContext.runAsUser is Set
Labels: kind/bug,sig/storage,priority/important-longterm,lifecycle/frozen,triage/accepted

**Is this a BUG REPORT or FEATURE REQUEST?**:

/kind bug

**What happened**:

Setting `Pod.spec.securityContext.runAsUser` causes the group read permission bit to be set on secrets exposed via volumes, even if `Pod.spec.volumes[x].defaultMode` is set to `256`.

See also: https://github.com/openshift/origin/issues/16424

**What you expected to happen**:

Given a `defaultMode` of `256` the file mode should be `0400` but it is `0440` instead.

**How to reproduce it (as minimally and precisely as possible)**:

Create the following objects and observe the logs of the created pod:

```
---
apiVersion: v1
data:
  test: dGVzdA==
kind: Secret
metadata:
  name: test-secret
type: Opaque

---
apiVersion: v1
kind: Pod
metadata:
  generateName: issue-repro-
spec:
  securityContext:
    runAsUser: 1000
    fsGroup: 1000
  containers:
  - image: busybox
    name: busybox
    imagePullPolicy: IfNotPresent
    args:
    - "ls"
    - "-alR"
    - "/tmp/dummy-secret"
    volumeMounts:
    - mountPath: /tmp/dummy-secret
      name: test-secret

  volumes:
  - name: test-secret
    secret:
      defaultMode: 256
      secretName: test-secret

```

**Anything else we need to know?**:

**Environment**:
- Kubernetes version (use `kubectl version`):
```
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.0", GitCommit:"925c127ec6b946659ad0fd596fa959be43f0cc05", GitTreeState:"clean", BuildDate:"2017-12-16T03:15:38Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.0", GitCommit:"0b9efaeb34a2fc51ff8e4d34ad9bc6375459c4a4", GitTreeState:"clean", BuildDate:"2017-11-29T22:43:34Z", GoVersion:"go1.9.1", Compiler:"gc", Platform:"linux/amd64"}
```
- Cloud provider or hardware configuration:
```
$ minikube version
minikube version: v0.24.1
```
- OS (e.g. from /etc/os-release):
```
$ cat /etc/os-release
NAME=Buildroot
VERSION=2017.02
ID=buildroot
VERSION_ID=2017.02
PRETTY_NAME="Buildroot 2017.02"
```
- Kernel (e.g. `uname -a`):
```
$ uname -a
Linux minikube 4.9.13 #1 SMP Thu Oct 19 17:14:00 UTC 2017 x86_64 GNU/Linux
```
- Install tools:
- Others:
Repository: electron
Issue: Add --disable-smooth-scrolling command line switch.
Labels: enhancement :sparkles:,platform/macOS,platform/linux

<!--
Thanks for opening an issue! A few things to keep in mind:

- The issue tracker is only for bugs and feature requests.
- Before reporting a bug, please try reproducing your issue against
  the latest version of Electron.
- If you need general advice, join our Slack: http://atom-slack.herokuapp.com
-->

* Electron version: 1.7.9
* Operating system: macOS

This is a feature request. I feel that Chromium's smooth scrolling feature is annoying. It would be nice if that could be turned off by some command line switch. Currently, this command line switch is not supported by electron
Repository: godot
Issue: Engine.GetSingleton() fails to resolve auto loaded nodes in C#
Labels: topic:core,documentation

**Godot version:**
`master` / 0e6e98a65f26c915b5717992ba881cf33406c8bf

**OS/device including version:**
_Manjaro Linux 17.1-rc2_

**Issue description:**
If I have an auto loaded node named `RootContext`, running the following code fails to resolve the node instance with an error, _"Failed to retrieve non-existent singleton 'RootContext'"_:
```c#
var context = Engine.GetSingleton("RootContext");
```

However, the following code correctly resolves and retrieves the node correctly in the same settings (invoked inside another `Node` instance):
```c#
var context = GetNode("/root/RootContext");
```
I'm not entirely sure if it's the correct way to resolve singletons in C# though.
Repository: TypeScript
Issue: Better error for semicolon after decorator
Labels: Suggestion,Help Wanted,Domain: Error Messages

<!-- BUGS: Please use this template. -->
<!-- QUESTIONS: This is not a general support forum! Ask Qs at http://stackoverflow.com/questions/tagged/typescript -->
<!-- SUGGESTIONS: See https://github.com/Microsoft/TypeScript-wiki/blob/master/Writing-Good-Design-Proposals.md -->

**TypeScript Version:**  2.7.0-dev.20171230

**Code**

```typescript
import { component } from "babyioc";

import { Member } from "./Effects";

class Example {
    @component(Member);
    public readonly member: Member;
}
```

**Expected behavior:**

```
file.ts(6,23): error TSXXXX: Semicolons not allowed after decorators.
```

**Actual behavior:**

```
file.ts(6,23): error TS1146: Declaration expected.
```

Not very important IMO, but a little confusing.
Repository: opencv
Issue: Python bindings: objects sharing between multiple threads
Labels: feature,category: python bindings,RFC

OpenCV C++ algorithms/objects are not thread-safe by default due performance and coding simplification reasons.
Concurrent usage of OpenCV objects in multiple threads leads to application crashes.

It is OpenCV usage / programming issue, but it confuses OpenCV users.

Improvement options are:
- integrate automatic locks into generated Python wrappers for OpenCV objects and its methods. Perhaps with timeout runtime parameter and appropriate message on potential "deadlock".
- add detection check with appropriate message if objects is created in one thread, and then it is used from another thread. Implement runtime option to configure this.
- add annotation for Python bindings generator to eliminate such checks for thread-safe OpenCV objects: some define like CV_THREADSAFE or doxygen comment.


**Note**: sharing OpenCV itself between processes via "fork" doesn't work too.

Related issue: https://github.com/opencv/opencv_contrib/issues/1508 ( /cc @Sahloul )
Repository: rust
Issue: Using items from a deprecated module does not warn
Labels: A-lints,A-resolve,T-compiler,C-bug,L-deprecated

Attempting to `use deprecated_module;` or `use deprecated_module::*;` fails, but doing `use deprecated_module::SpecificItem;` compiles with no error. Right now in Diesel I'm actually seeing an even more confusing error:

>  use of deprecated item 'types::__test_reexports'

Even though there is nothing in the project with that name. However, I'm unable to reproduce that issue outside of Diesel.

Regardless, the following code compiles without warnings, but should warn.

```rust
#[deprecated(since = "0.1.0")]
pub mod foo {
    pub use std::option::Option;
}

pub mod bar {
    use foo::Option;
}
```
Repository: rust
Issue: A deprecated module containing tests emits an incredibly confusing deprecation warning that is impossible to silence
Labels: A-lints,A-diagnostics,T-compiler,A-libtest,C-bug,L-deprecated

This code demonstrates the issue in question:

```rust
#[deprecated(since = "0.1.0")]
mod foo {
    #[test]
    fn stuff() {}
}
```

Attempting to run `cargo test` on this will give an incredibly opaque error message: `use of deprecated item 'foo::__test_reexports'`. I had to resort to grepping rustc's codebase to figure out where this was coming from.

Additionally, there is *no* way to silence this error, other than allowing use of deprecated items for the entire crate. Attempting to put `#[allow(deprecated)]` either on the test itself, or on the deprecated module has no effect.
Repository: rust
Issue: libtest Shouldn't Panic On Unexpected Command-line Arg
Labels: T-dev-tools,A-libtest,C-bug

Right now, if the user passes a command-line argument to a test or benchmark executable that isn't recognized, it will produce an error like the following:

```
thread 'main' panicked at '"Unrecognized option: \'example\'."', /checkout/src/libtest/lib.rs:278:26
note: Run with `RUST_BACKTRACE=1` for a backtrace.
error: bench failed
```

There are two problems with this. First, it would be nice to give a cleaner error message, since this is an expected case. Second and more importantly, the panic halts the `cargo bench` or `cargo test` run without running other executables.

I've attached an example project showing this. The fake benchmark harness in `benches/example.rs` checks for the argument `--example`. However, the `libtest` harness for the tests in the `src` directory is launched first and panics on seeing the same argument. This means that the naive `cargo bench -- --example` doesn't work as one would expect.

[command-line-example.zip](https://github.com/rust-lang/rust/files/1609277/command-line-example.zip)

This is a problem for me because it means I can't add command-line arguments to Criterion.rs benchmarks without an extra hassle for users unless `libtest` also accepts those same arguments.
Repository: youtube-dl
Issue: I can't download from qqmusic
Labels: geo-restricted,account-needed

Please help me, one month ago i can download from site, but now i can't
sorry for my english

> youtube-dl https://y.qq.com/n/yqq/song/0048jnGb1B9mpX.html
> [qqmusic] 0048jnGb1B9mpX: Download song detail info
> [qqmusic] 0048jnGb1B9mpX: Retrieve vkey
> [qqmusic] 0048jnGb1B9mpX: Checking m4a video format URL
> [qqmusic] 0048jnGb1B9mpX: m4a video format URL is invalid, skipping
> [qqmusic] 0048jnGb1B9mpX: Checking mp3-320 video format URL
> [qqmusic] 0048jnGb1B9mpX: mp3-320 video format URL is invalid, skipping
> [qqmusic] 0048jnGb1B9mpX: Checking mp3-128 video format URL
> [qqmusic] 0048jnGb1B9mpX: mp3-128 video format URL is invalid, skipping
> ERROR: No video formats found; please report this issue on https://yt-dl.org/bug
>  . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.