sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: youtube-dl
Issue: Soundcloud results in 403 error
Labels: bug,cant-reproduce

### Make sure you are using the *latest* version: run `youtube-dl --version` and ensure your version is *2017.01.02*. 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.01.02**

### Before submitting an *issue* make sure you have:
- [x] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [x] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones

### 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

---

Verbose output:
```
$ youtube-dl -v https://soundcloud.com/efkv/hair
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'https://soundcloud.com/efkv/hair']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.01.02
[debug] Python version 2.7.9 - Linux-4.5.2-armada375-armv7l-with-Debian-8
[debug] exe versions: ffmpeg 2.8.9, ffprobe 2.8.9
[debug] Proxy map: {}
[soundcloud] efkv/hair: Resolving id
[soundcloud] efkv/hair: Downloading info JSON
ERROR: Unable to download JSON metadata: HTTP Error 403: Forbidden (caused by HTTPError()); 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.
  File "/home/rafa/bin/youtube-dl/youtube_dl/extractor/common.py", line 406, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/home/rafa/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2001, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python2.7/urllib2.py", line 437, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 550, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 475, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 558, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
```
Repository: TypeScript
Issue: tsc CLI: option to always exit with 0 exit code
Labels: Suggestion,Awaiting More Feedback

It would be nice if the tsc command had an option to always exit with a 0 exit code when there were compile errors. I want to run something in my script after compiling. Currently I have to do this:

``` bash
set -e
# script stuff
set +e
tsc …
set -e
```

However this workaround means all errors from `tsc` will be silently ignored, not just compile errors.
Repository: angular
Issue: @Directive @Hostbinding cannot set @Input of @Component
Labels: hotlist: error messages,freq2: medium,area: core,core: inputs / outputs,core: host and host bindings,type: confusing,P4,area: docs

**I'm submitting a bug**
```
[X] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
```

**Current behavior**
This is an issue similar to #10499. There seems to be a problem whereby an `@Directive` cannot set an `@Component` input property. Meaning if you apply a directive to the component's tag and have said directive set the component's input property using an `@Hostbinding` it throws the following error:

`Can't bind to 'X' since it isn't a known property of 'X'.`

**Expected behavior**
I hoped it would be possible to set an Component's input property using a simple Directive. Though I would also understand that if this is by design. If it's by design then i think the error message reported back to the user should be improved  as it doesn't clearly indicate why it isn't work as the programmer might expect it to work. 

**Minimal reproduction of the problem with instructions**
https://plnkr.co/edit/V2KBlhbv7AciGfEi0lkE

**What is the motivation / use case for changing the behavior?**
There  are a few use cases that would be simplified by having the ability for having an `@Directive` being able to set the component's Input property without modifications to the source Component. One of the use cases highlighted in the example above resolves around the md-input from @angular/material2 (using an external library over which you have no influence).   Where a `[disabled]` property can be set indicating if the component is disabled.  We have wanted to use this together with an role checking directive to disable / enable an input based on the user's role / permissions. 

There  are of course other ways like wrapping the `md-input` and all of the other input's @angular/material2 provides in our own custom input value access-or components which would do this for us but we thought it would be easier to go down this route instead of wrapping all other inputs. 

* **Angular version:** 2.0.X
2.4.1

* **Browser:** [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
all
 
* **Language:** [all | TypeScript X.X | ES6/7 | ES5]
all
Repository: kubernetes
Issue: Remove client side validation in kubectl
Labels: sig/api-machinery,sig/cli,priority/important-longterm,lifecycle/frozen

As evidenced by https://github.com/kubernetes/kubernetes/pull/38071, client side validation made some assumptions that were broken (assuming that types across different groups will not have the same name), and fixing so that future clients get the correct behavior while still allowing legacy clients to work has been much more labor intensive than if we had not done this on the client.

We should remove all client side validation in favor of server side equivalents.  Now that kubectl create and update pass direct to the server, all that must be moved is detection of unspecified fields, which can be provided by the API server directly.

The minimal change would be to automatically do a swagger schema pass on the api server on any JSON input in the versioned, data form.  Internal clients use protobuf which already has affordances for handling unrecognized fields, and are less impacted by this issue.

@kubernetes/sig-api-machinery-misc @kubernetes/sig-cli-misc
Repository: rust
Issue: rustc generates a lot of llvm ir for small programs due to inline generated drops
Labels: C-enhancement,A-codegen,A-destructors,I-compiletime,T-compiler,C-optimization

Building https://github.com/jrmuizel/webrender/blob/sample-min/sample-min/src/main.rs ends up generating 12MB of LLVM IR (25MB of LLVM IR with debug info turned on). This seems like an excessive amount and it has a big impact on build times.
Repository: rust
Issue: add test: cross compiling core for `no_std` targets
Labels: A-testsuite,C-enhancement,E-needs-test,T-dev-tools,WG-embedded

For these targets

- `thumbv6m-none-eabi`
- `thumbv7m-none-eabi`
- `thumbv7em-none-eabi`
- `thumbv7em-none-eabihf`
- `nvptx-nvidia-cuda`
- `msp430-none-elf`
- `msp430x-none-elf`
- `nvptx64-nvidia-cuda`

These targets have zero tests in tree. Let's at least test cross compiling `core` for them to catch LLVM / codegen related regressions.

This would have catched #38824 before it landed in master.

cc @alexcrichton @brson Does a run-make test sounds OK for this? Do we have at least one bot configured with `--enable-llvm-assertions`?
Repository: You-Dont-Know-JS
Issue: java super constructor is not automatically called
Labels: for second edition

section https://github.com/getify/You-Dont-Know-JS/blob/master/es6%20%26%20beyond/ch3.md#subclass-constructor states:
Not all class languages have the subclass constructor automatically call the parent constructor. C++ does, but Java does not. 
--
IMO Java subclasses DO call the superclass constructor automatically. Unlike Javascript, Java by default automatically calls super() _without_ any arguments.
Repository: go
Issue: compress/bzip2: Reader behavior diverges from C library
Labels: NeedsFix

A review of the standard library implementation and the C implementation reveals the following divergent behaviors:
* Reader does not reject missing terminating repeator value in RLE1 stage.
Reproducer: 
```425a6831314159265359e16e6571000001840020002000211846e0bb9229c284870b732b88```
* Reader chokes in RLE1 stage with suboptimal use of repeater codes:
Reproducer: 
```425a6831314159265359f59a903a000004c40040002000200020a9a082138bb9229c28487acd481d00```
* Reader chokes when given an under-subscribed prefix tree. Unlike DEFLATE, the bzip2 format does not "require" that prefix trees be canonical and complete. This issue is harder to fix without using the exact same prefix implementation as the C library (as most other language ports do).
Reproducer: 
```425a683131415926535958fdd3b000000008007fe02000228630100300797bed2c7a82ee48a70a120b1fba7600```

C version used: [bzip2-1.0.6](http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz)
Repository: opencv
Issue: SyntaxError: invalid syntax on has_mat = len(list(filter(lambda x: x[0] in {"Mat", "vector_Mat"}, args))) > 0
Labels: bug,category: build/install

[ 96%] Generating pyopencv_generated_include.h, pyopencv_generated_funcs.h, pyopencv_generated_types.h, pyopencv_generated_type_reg.h, pyopencv_generated_ns_reg.h
Traceback (most recent call last):
  File "/app/opencv-3.2.0/modules/python/python3/..//src2/gen2.py", line 4, in <module>
    import hdr_parser, sys, re, os
  File "/app/opencv-3.2.0/modules/python/src2/hdr_parser.py", line 855
    has_mat = len(list(filter(lambda x: x[0] in {"Mat", "vector_Mat"}, args))) > 0
                                                      ^
SyntaxError: invalid syntax
make[2]: *** [modules/python3/pyopencv_generated_include.h] Error 1
make[1]: *** [modules/python3/CMakeFiles/opencv_python3.dir/all] Error 2
make: *** [all] Error 2
Repository: youtube-dl
Issue: Download only 1mb of file and use title in filename
Labels: request

I am using the below to download only 1 mb of the file. 

`youtube-dl -v URL -o - | head -c 1000000 > output.mp4`

can i use %(title)s.%(ext)s instead of output.mp4
Repository: rust
Issue: Mut borrow lifetime expanded to the enclosing function
Labels: C-enhancement,A-borrow-checker,T-compiler

Both Rust stable (v1.14) and nightly (468227129 2017-01-03), regardless of optimization flags, will expand the lifetime of an `&mut` borrow to the enclosing function in a fairly specific case. Here's a minimal snippet that will trigger the bug:

```
fn foo<'a>(_: &'a mut [&'a str; 0]) {}

fn bar(_: &mut [&str; 0]) {}

fn main() {
    let mut a = [];
    foo(&mut a);
    bar(&mut a);
}
```

rustc fails with `cannot borrow 'a' as mutable more than once at a time`. This bug still happens if the array is replaced by at least `Vec`s and `HashMap`s. However, it compiles fine if `foo` takes a slice instead of an array, or if either or both inner and outer lifetime constraints are removed from `foo`'s argument.

I don't know if this is relevant or not, but I compiled my original code with `-Z dump-mir` both before and after the commit that hit this bug, with both stable and nightly, and the dumped mir for the function that does the borrows is the same in all instances.
Repository: neovim
Issue: Alternate file wrongly setup
Labels: bug-vim

- `nvim --version`: NVIM v0.2.0-280-ge21aef1e1
- Vim (version: ) behaves differently? No
- Operating system/version: Arch Linux
- Terminal name/version: Sakura
- `$TERM`: xterm-256color

### Actual behaviour
the alternate file is setup to be the current file

### Expected behaviour
the alternate file should be empty

### Steps to reproduce using `nvim -u NORC`

- start nvim
- open a file
- `echo expand('%:p')` is the same as `echo expand('#:p')`

**Notes**:
- if the file being opened is given in argument (`nvim /path/to/file`), then `expand('#:p')` is empty as expected
- It's not a big deal but we have 2 inconsistent cases
- I use this: `set statusline+=%=%{!empty(expand('#:t'))?'#'.expand('#:t').'\ ❭\ ':''}` and obviously the reported alternate file is the same as the current one which is unneeded information
Repository: flutter
Issue: Request: API for changing the color of status bar
Labels: c: new feature,framework,f: material design,P3,team-design,triaged-design

I need to change status bar color to `blue[700]` and app bar color to `blue[500]` _without gradient_, but existing flutter material widgets do not support it.

https://developer.android.com/reference/android/view/Window.html#setStatusBarColor(int)
Repository: go
Issue: doc: reproduce the screencast with the default GOPATH
Labels: Documentation,NeedsInvestigation

"[How to write code](https://golang.org/doc/code.html#GOPATH)" document includes a [screencast](https://www.youtube.com/watch?v=XCsL89YtqCs) to explain the workspaces and the go tool. We may need to reproduce it to avoid setting GOPATH.

A similar cast is also required for the Windows users. Even though a large portion of our existing and potential users are Windows users, our core material is lacking references.

/cc @adg @campoy @broady
Repository: TypeScript
Issue: No completions for `extends` clause for members of a namespace containing only interfaces and types followed by expression
Labels: Bug

When attempting to get completions from `tsserver` for the members of a namespace that only exports interfaces and types (such as `typescript/lib/protocol.d.ts`) within an `extends` clause that is followed by an expression, `tsserver` returns no completions.

**TypeScript Version:**  2.1.4

**Code**

Given the following file (we'll call `test.ts`):

```ts
function foo() {
}

namespace Bar {
	export interface Baz {
	}
}

interface Blah extends Bar.

foo();
```

If completions are requested for the end of the line beginning `interface Blah`:

```
{"seq":4733259223085117,"type":"request","command":"completions","arguments":{"file":"test.ts","line":9,"offset":28,"prefix":""}}
```

No completions will be returned:

```
{"seq":0,"type":"response","command":"completions","request_seq":4733259223085117,"success":false,"message":"No content available."}
```

However, if a concrete type is included in the namespace, completions work. For instance, if the contents of the file are changed to the following:

```ts
function foo() {
}

namespace Bar {
	declare const one: number;
	export interface Baz {
	}
}

interface Blah extends Bar.

foo();
```

When completions are requested:

```
{"seq":6078778290829809,"type":"request","command":"completions","arguments":{"file":"test.ts","line":10,"offset":28,"prefix":""}}
```

Completions are returned:

```
{"seq":0,"type":"response","command":"completions","request_seq":6078778290829809,"success":true,"body":[{"name":"Baz","kind":"interface","kindModifiers":"export","sortText":"0"}]}
```

Similarly, if the `extends` clause is followed by a declaration, completions will be returned:

```ts
namespace Bar {
	export interface Baz {
	}
}

interface Blah extends Bar.

function foo() {
}

foo();
```

Completions are requested:

```
{"seq":1722172452472771,"type":"request","command":"completions","arguments":{"file":"test.ts","line":6,"offset":28,"prefix":""}}
```

And completions are returned:

```
{"seq":0,"type":"response","command":"completions","request_seq":1722172452472771,"success":true,"body":[{"name":"Baz","kind":"interface","kindModifiers":"export","sortText":"0"}]}
```
Repository: go
Issue: net/http: half-closed connection triggers request cancellation
Labels: help wanted,NeedsInvestigation

Please answer these questions before submitting your issue. Thanks!

#### What did you do?

https://play.golang.org/p/DnXwH5qJkD

#### What did you expect to see?

A client that sends a request followed immediately by a FIN can read a response from the server.

#### What did you see instead?

The half-close is detected and the request is cancelled immediately.

#### Does this issue reproduce with the latest release (go1.7.4)?

No

#### System details

```
go version go1.8beta2 darwin/amd64
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/benburkert"
GORACE=""
GOROOT="/Users/benburkert/sdk/go1.8beta2"
GOTOOLDIR="/Users/benburkert/sdk/go1.8beta2/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/qs/qkt9twmx4qg379d6f8kxl1vm0000gn/T/go-build530443777=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
GOROOT/bin/go version: go version go1.8beta2 darwin/amd64
GOROOT/bin/go tool compile -V: compile version go1.8beta2 X:framepointer
uname -v: Darwin Kernel Version 16.3.0: Thu Nov 17 20:23:58 PST 2016; root:xnu-3789.31.2~1/RELEASE_X86_64
ProductName:	Mac OS X
ProductVersion:	10.12.2
BuildVersion:	16C67
lldb --version: lldb-360.1.70
```
Repository: go
Issue: cmd/compile: improve code generation for temporary slice copy and inlining
Labels: Performance,compiler/runtime

Please answer these questions before submitting your issue. Thanks!

### What version of Go are you using (`go version`)?
go version go1.8beta2 darwin/amd64

### What operating system and processor architecture are you using (`go env`)?
```
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/rasky/Sources/go"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.8beta2_1/libexec"
GOTOOLDIR="/usr/local/Cellar/go/1.8beta2_1/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/lw/jdbk7p_d4gj6qpydczpbw2080000gn/T/go-build116611858=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
```

### What did you do?
```go
func DebugPerf(mem []byte, x int) {
	op := binary.LittleEndian.Uint32(mem[x:])
	fmt.Println(op)
}
```

### What did you expect to see?
When inlining, the temporary slice could be fully elided. Moreover, a single bound-check on `x+3` would be sufficient. 

### What did you see instead?
```
	test.go:9	0x1086bc1	488b442470		MOVQ 0x70(SP), AX
	test.go:9	0x1086bc6	488b4c2460		MOVQ 0x60(SP), CX
	test.go:9	0x1086bcb	4839c8			CMPQ CX, AX
	test.go:9	0x1086bce	0f879c000000		JA 0x1086c70
	test.go:9	0x1086bd4	4829c1			SUBQ AX, CX
	test.go:9	0x1086bd7	488b542468		MOVQ 0x68(SP), DX
	test.go:9	0x1086bdc	4829c2			SUBQ AX, DX
	test.go:9	0x1086bdf	48ffca			DECQ DX
	test.go:9	0x1086be2	48c1fa3f		SARQ $0x3f, DX
	test.go:9	0x1086be6	4883f2ff		XORQ $-0x1, DX
	test.go:9	0x1086bea	4821d0			ANDQ DX, AX
	test.go:9	0x1086bed	4883f903		CMPQ $0x3, CX
	test.go:9	0x1086bf1	7676			JBE 0x1086c69
	test.go:9	0x1086bf3	488b4c2458		MOVQ 0x58(SP), CX
	test.go:9	0x1086bf8	8b0401			MOVL 0(CX)(AX*1), AX
```

Basically, the last line (with AX=x) plus a single bound-check would be sufficient.
Repository: youtube-dl
Issue: Download an Ongoing YouTube Live Stream from the Start
Labels: request

### Make sure you are using the *latest* version: run `youtube-dl --version` and ensure your version is *2017.01.05*. 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.01.05**

### Before submitting an *issue* make sure you have:
- [x] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [X] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones

### What is the purpose of your *issue*?
- [ ] 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)
- [X] Question
- [ ] Other

---

The command I'm using to download the YouTube Livestream is 
`youtube-dl --no-part -f [ID] [URL]`

Now, this works completely fine. However, it only starts downloading from the present and continues from there. Is there any way to get it to start downloading from the beginning of the stream and then when it gets to the present, just continue downloading alongside the stream?
Repository: neovim
Issue: recognize single "Shift" keystroke
Labels: enhancement,gui,tui,input,complexity:low

- `nvim --version`: 0.2 (In future)
- Vim (version: ) behaves differently? no
- Operating system/version: Windows 7, 8, 10, etc.
- Terminal name/version:
- `$TERM`:

### Actual behaviour
I don't know.
### Expected behaviour
Recognize Capslock as a hotkey;
 recognize a single Shift stroke as a hotkey;
recognize Alt-Enter stroke as a hotkey

### Steps to reproduce using `nvim -u NORC`
I don't know.
```
nvim -u NORC

```
Repository: three.js
Issue: EdgesGeometry shows unnecessary cords
Labels: Enhancement

##### Description of the problem 
The EdgesGeometry takes all the cords shared between faces and if the faces are not coplanar (or their "dot" is less than the thresholdDot) then it shows them as edges.

The problem is that in some cases a cord is the sum of two other cords in two different faces. In this case the cord is shown as edge even if its's not.

This is the wireframe:
![screen shot 2017-01-06 at 12 02 01](https://cloud.githubusercontent.com/assets/5675600/21715998/01b68580-d408-11e6-911c-d43090dbc16d.png)

and this is with the EdgesGeometry:
![screen shot 2017-01-06 at 12 01 44](https://cloud.githubusercontent.com/assets/5675600/21715997/01b2fcf8-d408-11e6-9175-f8628cd184c6.png)

I'm thinking we should, for each cord, check if there is a vertex in it, and if so, split the face in two using that vertex.
Any idea on how we could do it?

##### Three.js version

- [x] Dev
- [x] r82
- [ ] ...

##### Browser

- [x] All of them
- [ ] Chrome
- [ ] Firefox
- [ ] Internet Explorer

##### OS

- [x] All of them
- [ ] Windows
- [ ] Linux
- [ ] Android
- [ ] IOS
Repository: TypeScript
Issue: Declare local variable as optional
Labels: Suggestion,Awaiting More Feedback

Every time I type an undefinable variable, I think I typed something wrong:
```ts
let a: string | undefined;
```
Why do I think I did something wrong? It's because I never add `undefined` type to a union type as above except in variable declarations.

Don't you think it is time, introduce the optional operator to local variable declarations as well?
```ts
let a?: string;
```
The above syntax feel very natural and idiomatic typescript for me.