sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: youtube-dl
Issue: Add Support for Royal Institute Christmas Lectures (1825 - ):  richannel.org
Labels: site-support-request

The Royal Institute Christmas Lectures ... it's been a thing since 1825.

A good example page is the first of the 1991 Richard Dawkins Lectures:
http://www.richannel.org/christmas-lectures-1991-richard-dawkins--waking-up-in-the-universe

the proper steam appears to be is embedded in 
<object type="application/x-shockwave-flash" ..
with a <param name="flashvars" value="netstreambasepath= ...

however the page is littered with other video addresses as references or footnotes ( youtube links and wikipedia articles ).

It'd be much appreciated .. cheers :)
Repository: go
Issue: x/review/git-codereview: 'git sync' should say what happened
Labels: help wanted,NeedsFix

When `git sync` does a fast forward or rebase, it would be nice to know what it did.

Something like this:

```
$ git sync
Synced local branch 'foo' HEAD to d34db33f (17 new commits)
$ git sync
Local branch 'foo' HEAD at d34db33f (no new commits)
```
Repository: youtube-dl
Issue: [NDTV] Support live streams
Labels: request

Example url : http://www.ndtv.com/video/live/channel/ndtv24x7

youtube-dl --verbose  -g http://www.ndtv.com/video/live/channel/ndtv24x7
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', '-g', 'http://www.ndtv.com/video/live/channel/ndtv24x7']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.01.16
[debug] Python version 2.7.9 - Linux-3.10.0-123.13.2.el7.x86_64-x86_64-with-centos-7.0.1406-Core
[debug] exe versions: none
[debug] Proxy map: {}
WARNING: Falling back on generic information extractor.
ERROR: Unsupported URL: http://www.ndtv.com/video/live/channel/ndtv24x7
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 670, in _real_extract
    doc = parse_xml(webpage)
  File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 1504, in parse_xml
    tree = xml.etree.ElementTree.XML(s.encode('utf-8'), **kwargs)
  File "/usr/local/lib/python2.7/xml/etree/ElementTree.py", line 1300, in XML
    parser.feed(text)
  File "/usr/local/lib/python2.7/xml/etree/ElementTree.py", line 1642, in feed
    self._raiseerror(v)
  File "/usr/local/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
    raise err
ParseError: not well-formed (invalid token): line 49, column 81
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 600, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 260, in extract
    return self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 1075, in _real_extract
    raise UnsupportedError(url)
UnsupportedError: Unsupported URL: http://www.ndtv.com/video/live/channel/ndtv24x7
Repository: nvm
Issue: When NVM_DIR is a symlink, `nvm_ls` breaks
Labels: testing,bugs,pull request wanted

Per some of the discussion on here: https://github.com/creationix/nvm/pull/616#issuecomment-70540684 as reported by @patrick-steele-idem

Solution is to add `-L` to the `find` command inside `nvm_ls`. The tricky part is writing a test for it :-)
Repository: go
Issue: proposal: net/v2: Addr, LocalAddr, RemoteAddr must return established endpoint addresses
Labels: v2,Proposal

Example here: http://play.golang.org/p/0zfs2UZ7ZY

I don't know if this is intended, but it feels weird.
Repository: go
Issue: cmd/compile: better error message when attempting to use a shadowed type name
Labels: NeedsInvestigation

The compiler will emit a confusing error when a type is shadowed within a function. It should somehow try and make clear that the inner type shadows the global type.

```
prog.go:13: cannot use Range literal (type Range) as type Range in assignment
```

[Link to play.golang.org example](http://play.golang.org/p/ljMvbQf_WC)

[Link to golang-nuts thread](https://groups.google.com/d/topic/golang-nuts/F_awVFRD2mo/discussion)

``` go
package main

type Range struct{ Start, End int }

type Foo struct{ rng Range }

func main() {

    type Range struct{ Start, End int }
    foos := []Foo{}

    for i, foo := range foos {
        foos[i].rng = Range{}
    }
}
```

See also #8853.

Edit: I incorrectly referred to "shadowing" as "aliasing".
Repository: neovim
Issue: Dockerfile
Labels: distribution

Would you all be open to a Dockerfile for using neovim and as a neovim official image? I can make the pull request. Or would you rather wait until development was more stable.
Repository: go
Issue: net: implement multicast network interface API on DragonFly BSD
Labels: help wanted,OS-Dragonfly

See https://github.com/golang/go/blob/master/src/net/interface_dragonfly.go.
Repository: go
Issue: net: implement multicast network interface API on OpenBSD
Labels: help wanted,OS-OpenBSD

See https://github.com/golang/go/blob/master/src/net/interface_openbsd.go.
Repository: go
Issue: net: implement multicast network interface API on NetBSD
Labels: help wanted,OS-NetBSD,NeedsFix

See https://github.com/golang/go/blob/master/src/net/interface_netbsd.go.
Repository: youtube-dl
Issue: Add support for soundcloud tags
Labels: site-support-request

it advised me to report this:

```
$ youtube-dl https://soundcloud.com/tags/folk
[soundcloud] tags/folk: Resolving id
[soundcloud] tags/folk: Downloading info JSON
ERROR: Unable to download JSON metadata: HTTP Error 404: Not Found (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.
$ youtube-dl --verbose https://soundcloud.com/tags/folk
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'https://soundcloud.com/tags/folk']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.01.16
[debug] Python version 2.7.8 - Linux-3.16-3-amd64-x86_64-with-debian-8.0
[debug] exe versions: avconv 2.4.3, avprobe 2.4.3, ffmpeg 2.4.3, ffprobe 2.4.3, rtmpdump 2.4
[debug] Proxy map: {}
[soundcloud] tags/folk: Resolving id
[soundcloud] tags/folk: Downloading info JSON
ERROR: Unable to download JSON metadata: HTTP Error 404: Not Found (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 "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 293, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1412, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python2.7/urllib2.py", line 410, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 448, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)


```
Repository: youtube-dl
Issue: Add support for www.be-at.tv
Labels: site-support-request

example url (shortened): http://www.be-at.tv/i3wCAA
example url (full): http://www.be-at.tv/brands/shelborne-hotel/dj-mag-recession-sessions/solomun
Repository: go
Issue: x/pkgsite: don't show un-runnable examples as runnable
Labels: help wanted,NeedsFix,pkgsite

The example for exec.Command won't run in the playground sandbox because it depends on 'tr'.

http://golang.org/pkg/os/exec/#Command

There are other such examples. We should probably detect (somehow) that they won't run, and not display them as runnable examples on golang.org.
Repository: youtube-dl
Issue: unable to extract facebook video in private group, user with two-factor auth
Labels: request

```
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['https://www.facebook.com/video.php?v=PRIVATE', '--username', u'PRIVATE', '--password', u'PRIVATE', '--twofactor', 'PRIVATE', '--verbose']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.01.25
[debug] Python version 2.7.8 - Linux-3.18.2-2-ARCH-x86_64-with-glibc2.2.5
[debug] exe versions: ffmpeg 2.5.2, ffprobe 2.5.2, rtmpdump 2.4
[debug] Proxy map: {}
[facebook] Downloading login page
[facebook] Logging in
ERROR: Unable to extract h; 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.
Traceback (most recent call last):
  File "/home/jakutis/.bin/youtube-dl/youtube_dl/YoutubeDL.py", line 613, in extract_info
    ie_result = ie.extract(url)
  File "/home/jakutis/.bin/youtube-dl/youtube_dl/extractor/common.py", line 265, in extract
    self.initialize()
  File "/home/jakutis/.bin/youtube-dl/youtube_dl/extractor/common.py", line 260, in initialize
    self._real_initialize()
  File "/home/jakutis/.bin/youtube-dl/youtube_dl/extractor/facebook.py", line 107, in _real_initialize
    self._login()
  File "/home/jakutis/.bin/youtube-dl/youtube_dl/extractor/facebook.py", line 93, in _login
    r'name="h"\s+(?:\w+="[^"]+"\s+)*?value="([^"]+)"', login_results, 'h'),
  File "/home/jakutis/.bin/youtube-dl/youtube_dl/extractor/common.py", line 522, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract h; 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.
```
Repository: rust
Issue: Imprecise floating point operations (fast-math)
Labels: A-LLVM,I-slow,C-enhancement,T-lang,C-feature-request,A-floating-point

There should be a way to use imprecise floating point operations like GCC's and Clang's `-ffast-math`. The simplest way to do this would be to do like GCC and Clang and implement a command line flag, but I think a better way to do this would be to create a `f32fast` and `f64fast` type that would then call the fast LLVM math functions. This way you can easily mix fast and "slow" floating point operations.

I think this could be implemented as a library if LLVM assembly could be used in the `asm` macro.
Repository: go
Issue: runtime: cgo performance tracking bug
Labels: Performance

Running this stupid microbenchmark on linux/amd64, with different version of Go.
http://play.golang.org/p/5U0i26sA8U

```
package main

// int rand() { return 42; }
import "C"

import "testing"

func BenchmarkCgo(b *testing.B) {
    for i := 0; i < b.N; i++ {
        C.rand()
    }
}

func main() {
    testing.Main(func(string, string) (bool, error) {
        return true, nil
    }, nil, []testing.InternalBenchmark{
        {"BenchmarkCgo", BenchmarkCgo},
    }, nil)
}
```

```
$ go1 run cgobench.go -test.bench=.
testing: warning: no tests to run
PASS
BenchmarkCgo    50000000            30.8 ns/op
$ go112 run cgobench.go -test.bench=.
testing: warning: no tests to run
PASS
BenchmarkCgo    50000000            40.9 ns/op
$ go121 run cgobench.go -test.bench=.
testing: warning: no tests to run
PASS
BenchmarkCgo    50000000            46.1 ns/op
$ go133 run cgobench.go -test.bench=.
testing: warning: no tests to run
PASS
BenchmarkCgo    50000000            48.3 ns/op
$ go141 run cgobench.go -test.bench=.
testing: warning: no tests to run
PASS
BenchmarkCgo    10000000           160 ns/op
$ go run cgobench.go -test.bench=. # today's Go tip, f4a2617
testing: warning: no tests to run
PASS
BenchmarkCgo    10000000           203 ns/op
```

Why? Go 1.4 is much worse than any of the previous releases.
And Go tip is even worse than Go 1.4. This might be understandable,
but I wonder why Go 1.4 is that much slower than 1.3.3?
Repository: nvm
Issue: git `autocrlf` setting causes syntax errors after install
Labels: installing node,bugs

I'm getting the following error when opening a new shell after installing nvm:

``` bash
: command not found
: command not found
'ash: /Users/jtelford/.nvm/nvm.sh: line 12: syntax error near unexpected token `{
'ash: /Users/jtelford/.nvm/nvm.sh: line 12: `nvm_has() {
```

I successfully installed nvm with the following command:

``` bash
$ curl https://raw.githubusercontent.com/creationix/nvm/v0.23.2/install.sh | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  5226  100  5226    0     0   8682      0 --:--:-- --:--:-- --:--:--  8681
=> Downloading nvm from git to '/Users/jtelford/.nvm'
=> Cloning into '/Users/jtelford/.nvm'...
remote: Counting objects: 3230, done.
remote: Total 3230 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (3230/3230), 608.11 KiB | 128.00 KiB/s, done.
Resolving deltas: 100% (1827/1827), done.
Checking connectivity... done.

=> Source string already in /Users/jtelford/.bash_profile
=> Close and reopen your terminal to start using nvm
```

I am running OSX 10.10.1, and my shell is iTerm2 v2.0

Is there something I am doing wrong?

Thanks for your help :)
Repository: youtube-dl
Issue: site support campus.codeschool
Labels: site-support-request,account-needed

Please support http://campus.codeschool.com/courses/shaping-up-with-angular-js/
Repository: TypeScript
Issue: findReferences doesn't give results in the right order
Labels: Bug,Visual Studio,Help Wanted

Search for "globalTemplateStringsArrayType" in checker.ts. The results are not in the right order (the order of the text spans).
Repository: TypeScript
Issue: Make the Compiler and Language Service API Asynchronous
Labels: Suggestion,Needs More Info

It makes very little sense that IO-bound operations (e.g. readFile, writeFile) are synchronous when we run on a platform whose touted strength is in writing IO-bound applications through asynchronous non-blocking APIs.

Compile times could probably be shaved down by a bit, especially for large projects with many files. Additionally, tooling experience should be as responsive as possible and avoid blocking in the event that IO takes place, enabling several optimizations to free memory on the managed side.

With #1664, this should be significantly easier.

This means that at the very least, the following would change to have asynchronous counterparts.
- `createSourceFile` (because of `/// <reference ... />` comments)
- `createProgram`
- all of the language service API
Repository: go
Issue: x/tools/cmd/oracle: provide element documentation for the "describe" operation.
Labels: NeedsInvestigation

Hello. Recently [Goclipse](https://github.com/GoClipse/goclipse) has added integration with the Go Oracle tool within Eclipse, for a Open Definition functionality. There's a few things Go Oracle could improve upon, to further improve the integration.
- Namely, could the "describe" operation be modified to include a field with the documentation of the underlying element (if the element is a definition)?

That would be very useful: it would allow documentation popups in the editor (similar to what is being done here: https://raw.githubusercontent.com/bruno-medeiros/DDT/master/documentation/screenshots/sample_ddocView.png). It could even be used to complement tools such as https://github.com/nsf/gocode, to provide documentation info during during Content Assist: http://i.imgur.com/IQnyP2l.png
Repository: rust
Issue: Revise usage of LLVM lifetime intrinsics
Labels: C-cleanup,A-LLVM,I-slow,I-needs-decision,T-compiler

Currently, rustc emits lifetime intrinsics to declare the shortest possible lifetime for allocas. Unfortunately, this stops some optimizations from happening. For example, @eddyb came up with the following example:

``` rust
#![crate_type="lib"]

extern crate test;
#[derive(Copy)]
struct Big {
  large: [u64; 100000],
}

pub fn test_func() {
  let x = Big {
    large: [0; 100000],
  };
  test::black_box(x);
}
```

This currently results in the following optimized IR:

``` llvm
define void @_ZN9test_func20hef205289cff69060raaE() unnamed_addr #0 {
entry-block:
  %x = alloca %struct.Big, align 8
  %0 = bitcast %struct.Big* %x to i8*
  %arg = alloca %struct.Big, align 8
  call void @llvm.lifetime.start(i64 800000, i8* %0)
  call void @llvm.memset.p0i8.i64(i8* %0, i8 0, i64 800000, i32 8, i1 false)
  %1 = bitcast %struct.Big* %arg to i8*
  call void @llvm.lifetime.start(i64 800000, i8* %1)
  call void @llvm.memcpy.p0i8.p0i8.i64(i8* %1, i8* %0, i64 800000, i32 8, i1 false)
  call void asm "", "r,~{dirflag},~{fpsr},~{flags}"(%struct.Big* %arg) #2, !noalias !0, !srcloc !3
  call void @llvm.lifetime.end(i64 800000, i8* %1) #2, !alias.scope !4, !noalias !0
  call void @llvm.lifetime.end(i64 800000, i8* %1)
  call void @llvm.lifetime.end(i64 800000, i8* %0)
  ret void
}
```

As you can see, there are still two allocas, one for `x` and one copy of it in `%arg`, which is used for the function call. Since `x` is unused otherwise, we could directly call `memset` on `%arg` and drop `%x` altogether. But the lifetime of `%arg` only start _after_ the `memset` call, so the optimization doesn't happen. Moving the call to `llvm.lifetime.start` up makes the optimization possible.

Now, the lifetime intrinsics only buy us anything if the ranges don't overlap. If the ranges overlap, we may as well make them all start at the same point. One way might be to insert start/end calls at positions that match up with scopes in the language, using an insertion marker like we do for allocas to insert the start calls and a cleanup scope for the end calls. This should also make things more robust than it currently is. We had a few misoptimization problems due to missing calls to `llvm.lifetime.end`. :-/
Repository: angular
Issue: Support UTF in Angular expressions
Labels: type: bug/fix,effort2: days,freq1: low,area: core,area: compiler,state: confirmed,core: binding & interpolation,P3,compiler: parser,canonical

Currently the lexer in change detection uses `StringWrapper.charCodeAt()`
- in Dart it returns `s.codeUnitAt()` which supports UTF
- in JS it returns `str.charCodeAt()` which does not support UTF
Repository: rust
Issue: Trait bounds are not yet enforced in type definitions
Labels: A-type-system,E-hard,A-trait-system,P-medium,I-needs-decision,T-compiler,C-future-incompatibility,T-types

Opening an issue since I could not find any information on when/if this will be enforced. Would be really useful for some generalizing I am trying for parser-combinators which I can't do currently without complicating the API.

Specifically I'd like to use a trait bound in a type definition to access an associated type to avoid passing it seperately but due to this issue I simply get a compiler error.

Simplified code which exhibits the error:

``` rust
trait Stream {
    type Item;
}

trait Parser {
    type Input: Stream;
}

fn test<T>(u: T) -> T
    where T: Parser {
    panic!()
}

type Res<I: Stream> = (I, <I as Stream>::Item);

impl <'a> Stream for &'a str { type Item = char; }
impl <I> Parser for fn (I) -> Res<I> where I: Stream { type Input = I; }

//Works
//fn f(_: &str) -> (&str, char) {

//Errors
fn f(_: &str) -> Res<&str> {
    panic!()
}

fn main() {
    let _ = test(f as fn (_) -> _);
}

```
Repository: rust
Issue: Stability checker doesn't recurse down reexports properly
Labels: A-stability,T-libs-api,C-bug,F-staged_api

stability.rs:

```rs
#![crate_type="lib"]
#![feature(staged_api)]

#![staged_api]
#![stable(feature = "stability", since = "1.0.0")]

mod foo {
   #[derive(Copy)]
   pub struct Bar;
}

#[unstable(feature="foobar")]
pub mod foobar {
    pub use super::foo::*;
}
```

test.rs:

```rs
extern crate stability;
use stability::foobar::Bar;

fn main(){
   let x = Bar; //~ ERROR use of unmarked library feature
}
```

`#[unstable]` is inherited through mods (only `#[stable]` isn't inherited). However, in this particular case, the inheritance doesn't cross the reexport.

A more concrete example is the `hash_state` module. Chris fixed the stability of its items in [this PR](https://github.com/rust-lang/rust/pull/21745/files#diff-796e83d7a4e724593264d6bbf50a3e22R27), however the module itself was [private](https://github.com/rust-lang/rust/blob/9836742d6a5bd610074d2d944d472b0dfed3991b/src/libstd/collections/mod.rs#L374) and [reexported as an `#[unstable]` module](https://github.com/rust-lang/rust/blob/9836742d6a5bd610074d2d944d472b0dfed3991b/src/libstd/collections/mod.rs#L390) before the PR. Yet, usage of items within the `hash_state` module [were broken](https://github.com/rust-lang/rust/issues/21883) before the PR.

This seems wrong, `#[unstable]` (and the others, except `#[stable]`) should be inherited down `pub use`s.

cc @brson
Repository: youtube-dl
Issue: Write playlist index number into the id3v2 "track" field (and playlist title into the "album" field)
Labels: request

Many YouTube video playlist with screencasts (video tutorials) has a very specific order, if you watch them on the web page all of them will play in the intended order, but once all of them are downloaded locally you will notice that that order is gone, because the video titles (and the filename) has not index number correlative on it (no even in the id3v2 track field), so the order is now alphabetic. 

There's two approaches to solve this issue: 
1. Rename all the files putting the play-list index correlative in the filename.
2. Write the play-list correlative into the id3v2 track field (then sort them by the respective column in the video player).

The first approach could be ok, except if you want re-download the same file in order to get missing metadata. The second will avoid the prior issue, but no all the video player (specially in Android) has that feature), but it will be a piece of cake to rename them in batch using a tag editor (I use kid3 and sometimes EasyTag) having the track number.

So, my suggestion is: write the playlist index number in the id3v2 track field using the `--add-metadata` but only when the `playlist` variable is in the URL query string. Even better: in that case it would retrieve too the playlist title and write it into the id3v2 album field.
Repository: rust
Issue: &mut self borrow conflicting with itself.
Labels: A-type-system,A-borrow-checker,T-compiler,A-NLL,C-bug,T-types,fixed-by-polonius

I don't know why this happens but rovar and XMPPwocky on IRC believed it to be a compiler bug.

``` rust
struct A {
    a: i32
}

impl A {
    fn one(&mut self) -> &i32{
        self.a = 10;
        &self.a
    }
    fn two(&mut self) -> &i32 {
        loop {
            let k = self.one();
            if *k > 10i32 {
                return k;
            }
        }
    }
}
```

...gives the following error...

```
<anon>:12:21: 12:25 error: cannot borrow `*self` as mutable more than once at a time
<anon>:12             let k = self.one();
                              ^~~~
<anon>:12:21: 12:25 note: previous borrow of `*self` occurs here; the mutable borrow prevents subsequent moves, borrows, or modification of `*self` until the borrow ends
<anon>:12             let k = self.one();
                              ^~~~
<anon>:17:6: 17:6 note: previous borrow ends here
<anon>:10     fn two(&mut self) -> &i32 {
...
<anon>:17     }
              ^
error: aborting due to previous error
playpen: application terminated with error code 101
```

Interestingly, if the second method is changed to...

``` rust
    fn two(&mut self) -> &i32 {
        loop {
            let k = self.one();
            return k;
        }
    }
```

This will compile fine.

playpen: http://is.gd/mTkfw5