sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: go
Issue: x/mobile: gradle plugin uses same command-line flags for gomobile and gobind but thier flags are not same
Labels: mobile

Please answer these questions before submitting your issue. Thanks!

### What version of Go are you using (`go version`)?

go version go1.7.3 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/tenntenn/Documents/gopath"
GORACE=""
GOROOT="/usr/local/go1.7"
GOTOOLDIR="/usr/local/go1.7/pkg/tool/darwin_amd64"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/mq/m9_twy8j1vl9ppr6j5xqtfq80000gn/T/go-build520115728=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"

### What did you do?
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.

gradle plugin uses same command-line flags for gomobile and gobind as `GOMOBILEFLAGS`.
But thier flags are not same.
if `-x` or `-v` would be given to `GOMOBILEFLAGS`, gradle reports errors:

```
:gobindDebug
flag provided but not defined: -x
Usage of /Users/tenntenn/Documents/gopath/bin/gobind:
  -bootclasspath string
        Java bootstrap classpath.
  -classpath string
        Java classpath.
  -javapkg string
        custom Java package path prefix used instead of the default 'go'. Valid only with -lang=java.
  -lang string
        target language for bindings, either java, go, or objc (experimental). (default "java")
  -outdir string
        result will be written to the directory instead of stdout.
  -prefix string
        custom Objective-C name prefix used instead of the default 'Go'. Valid only with -lang=objc.
:gobindDebug FAILED
```

### What did you expect to see?
`gomobile` and `gobind` flags should be given different variables such as `GOMOBILEFLAGS` and `GOBINDFLAGS`.

### What did you see instead?
gradle reports errors.
Repository: youtube-dl
Issue: [1tv.ru] Missing videos
Labels: bug

Hello dear coders !
Not a long time ago 1tv.ru has changed its web page video casting method, I'll explain:
Before each video was separated by different .mp4 files thus user has ability to get each .mp4 w/o using Y-DL, on that time, even by standard wget.

Now instead of one mp4 file I see many .ts chunks- as RTR, other video sites has - and Y-DL is downloading just _one_ video (yes, joining .ts chunks into one .mp4), although web page contains more than one video.

Please, take a look at this URL: http://www.1tv.ru/news/issue/2016-12-01/14:00

You can notice a playlist button at up-right corner, yet there are the same videos below main video.

I am asking about making Y-DL compatible with this new java-script method on 1tv.ru site - so user (as me) will be able to choose what video number to get - OR - to get all videos parts (different news that I mean) in one .mp4 file joined after getting whole playlist.
And please, do not miss different quality options on the site, also.

Thanks in advance!
-Viktor
Repository: opencv
Issue: Inconsistent HOG descriptor for non-continuous vs continuous Mat
Labels: RFC

<!--
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.1
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2015
-->

- OpenCV => 3.1
- Operating System / Platform => Ubuntu 14.04 64 Bit
- Compiler => gcc 4.8.4

##### Detailed description

Computing HOG features using `HOGDescriptor::compute()` with a non-continuous matrix produces different results than doing it with a continuous matrix. If this behaviour is expected it would be nice to have a warning or at least some hint in the documentation.

##### Steps to reproduce

1. load an image with dimensions > 32x64 (w x h) into `cv::Mat image`
2. compute HOG features and pass the image like this: `image(cv::Rect(0, 0, 32, 64))`
3. copy region to `cv::Mat patch` using `image(cv::Rect(0, 0, 32, 64)).copyTo(patch)`
4. comput HOG features for patch
5. compare the two feature vectors (should be the same, but are actually different)

<!-- to add code example fence it with triple backticks and optional file extension
    ```.cpp
    // C++ code example
    ```
 or attach as .txt or .zip file
-->
Repository: go
Issue: x/build: test whether Go core changes break external tools and debuggers
Labels: Builders

Changes to the Go core (compiler output, libraries, x/tools) can break tools and debuggers that build on them, such as gocode (@nsf), Delve (@derekparker), and Backtrace's ptrace (@abelmathew).  While those tool authors can test for breakages against tip, it might be useful for us to know when CLs submitted to the Go core break tools that are important to the Go community.  We should work with the authors to ensure the tools are fixed for each new Go release.

@bradfitz suggested we may be able to extend the builders to help with this testing.
Repository: youtube-dl
Issue: Add vidyard support
Labels: site-support-request

## Please follow the guide below

- You will be asked some questions and requested to provide some information, please read them **carefully** and answer honestly
- Put an `x` into all the boxes [ ] relevant to your *issue* (like that [x])
- Use *Preview* tab to see how your issue will actually look like

---

### Make sure you are using the *latest* version: run `youtube-dl --version` and ensure your version is *2016.12.01*. 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 **2016.12.01**

### 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)
- [x] Site support request (request for adding support for a new site)
- [ ] Feature request (request for a new functionality)
- [ ] Question
- [ ] Other

---

### If the purpose of this *issue* is a *site support request* please provide all kinds of example URLs support for which should be included (replace following example URLs by **yours**):

Vidyard homepage: https://www.vidyard.com/

- Single video: ~~http://play.vidyard.com/MYsNEfzgpaB4w8xGWL2g7A~~
- Same video embedded on another site: ~~https://www.purestorage.com/otb/ep1.html~~
- Downloadable link to the same video: ~~http://cdn.vidyard.com/videos/Tty5gmS1jK8gPPatNZSCRg/full_hd.mp4?5R1bEOiBmTPTd29ZHp6WJbAB2_2Ffz6As5zIVJlFfEBx5r0B6ZGGus0ZpcRiljHOZi7zRLk4BSgvU5-1SIv7pJHEfwz6XHojWyhk0kwVpPMqF94~~
- ~~Playlist: https://www.youtube.com/playlist?list=PL4lCao7KL_QFVb7Iudeipvc2BCavECqzc~~

Edit: These all 404 now, see link in the comment below.
Repository: TypeScript
Issue: Allow augmentation of re-exported module
Labels: Suggestion,Experience Enhancement

I've sadly discovered that it not possible to augment a ES2015 module that is being re-exported. At least not without specifying the full path to the ES2015 that is then being re-exported.

This has significant implications, particularly for library authors and consumers.

An example would probably help clarify. 

Suppose as an authored of a library I want to expose a simple surface area from which consumers should import from. I do this by creating an index.ts file that re-exports modules from nested sub-folders like so:

```ts
// index.ts
export { AClass } from './path/to/class-a';
export { BClass } from './path/to/class-b';
export { CClass } from './path/to/class-c';
```

Now a consumer can import like so:
```ts
import { AClass, BClass } from 'some-library'; 
```

The benefits of the above:

1. As library author I am *free to reorganise the modules* into sub-folders as the library code base grows without breaking consumers
2. As library consumer *I don't need to have intimate knowledge of how the library organises it's file on disk* - instead I have one path to import modules and this is the name of the npm package itself.

Once augmentation enters the picture all of the above benefits are now gone.

**This is really bad for everyone.**

What can be done about the situation?

Thanks
Christian
Repository: pytorch
Issue: Keyword arguments passed to module's __call__ aren't forwarded to the hooks
Labels: module: nn,low priority,triaged,enhancement

Our current signature of the nn forward hook is `(module, input, output)` (where `input` and `output` are tuples), so there's no good way to pass kwargs to them (can't append to input, because dicts are unordered, passing as kwargs seems quite inconvenient for the user).

cc @albanD @mruberry @jbschlosser @walterddr @kshitij12345
Repository: go
Issue: x/net/websocket: remedy neglect; merge with gorilla websocket?
Labels: NeedsDecision

It is not well maintained, and essentially everyone uses https://github.com/gorilla/websocket.

This was raised as a concern in #17244: because it is in the x/net repository, people attach greater value to it than it really ought to have.

/cc @dsnet

**EDIT 2016-12-02:** Copying in my better-phrased problem statement from later in the thread:

The problem I see is that the ownership/maintenance story of x/net/websocket is unclear. It may suit your needs, and that is fine! However, it's not getting the same level of support as the standard library or even gorilla/websocket; it has no established owner AFAIK.

Along the lines of #17244, there is concern that it elevates the status and visibility of the package. I've anecdotally heard of it confusing many new users whose needs were much better filled with gorilla/websocket. I have not heard of someone using gorilla/websocket and then deciding to use x/net/websocket instead.
Repository: electron
Issue: Cache data is written to `userData` dir instead of `cache` dir
Labels: bug :beetle:,10-x-y,11-x-y,12-x-y,13-x-y

* Electron version: 1.3.9 (via Atom 1.12.6) and unknown (via Slack 2.3.2)
* Operating system: Linux

### Expected behavior

Files stored by Electron on behalf of electron apps, should follow the XDG Base Directory specification and place only config files in $XDG_CONFIG_HOME/<App name> (default ~/.config/). cache and data files should be placed in XDG_CACHE_HOME (default: ~/.cache) and XDG_DATA_HOME (default: ~/.local/share) respectively.

https://specifications.freedesktop.org/basedir-spec/latest/ar01s03.html

### Actual behavior

As seen in Atom and Slack on Linux, they leave non-config files in ~/.config/Atom and ~/.config/Slack/ in particular, they leave folders such as "databases", "GPUCache", "Cache", "logs", and "Local Storage". Atom mention this as an Electron issue in https://github.com/atom/atom/issues/8281 ("where electron stores it's files"). 

Could still be it's not Electron's fault that the apps store non-config files in these locations, but hopefully you know more than me here.
Repository: vue
Issue: list rendering optimization fails in some cases
Labels: improvement

I have virtual scrolling list with a lot of rows. I only show a few of them at a time using

this.view = this.items.splice(position, position + 5)

If 'position' is incremented or decremented, you would expect that in the DOM one element gets added, and one  gets deleted. In the 'up' direction, that is the case. But in the down direction, all elements get removed and added again. I have a couple of images in each row, and this hurts performance quite a bit.

### Vue.js version
2.1.3

### Reproduction Link
https://jsbin.com/netereyuxa/1/edit?html,console,output

### Steps to reproduce
press up / down, see that in the up direction one LI is removed and one added at each step, and in the down direction all LIs are replaced every time.

### What is Expected?
Only one LI added, one LI removed

### What is actually happening?
All LI's removed and added
Repository: go
Issue: cmd/link: internal linking for GOOS=linux, -buildmode=plugin
Labels: compiler/runtime

Please answer these questions before submitting your issue. Thanks!

### What version of Go are you using (`go version`)?
(1.8beta1)
go version devel +41908a5 Thu Dec 1 02:54:21 2016 +0000 darwin/amd64

### What operating system and processor architecture are you using (`go env`)?

Darwin:
```
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/urso/.gvm/pkgsets/go1.8beta1/global"
GORACE=""
GOROOT="/Users/urso/.gvm/gos/go1.8beta1"
GOTOOLDIR="/Users/urso/.gvm/gos/go1.8beta1/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/2s/38f_b6sj0mn6_14km12vyq0r0000gn/T/go-build255645567=/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"
```

Linux:

```
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/urso/.gvm/pkgsets/go1.8beta1/global"
GORACE=""
GOROOT="/home/urso/.gvm/gos/go1.8beta1"
GOTOOLDIR="/home/urso/.gvm/gos/go1.8beta1/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build240993252=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
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?

Try to cross compile the plugin by setting GOOS=linux (darwin)

```
package main

import "fmt"

func F() { fmt.Println("Hello World!") }

func main() {}
```

### What did you expect to see?
plugin being build

### What did you see instead?

Darwin:

```
$ GOOS=linux go build -buildmode=plugin plugin.go
# command-line-arguments
warning: unable to find runtime/cgo.a
/Users/urso/.gvm/gos/go1.8beta1/pkg/tool/darwin_amd64/link: running clang failed: exit status 1
ld: unknown option: -z
clang: error: linker command failed with exit code 1 (use -v to see invocation)
```

Linux:
```
$ GOOS=darwin go build -buildmode=plugin plugin.go
# command-line-arguments
warning: unable to find runtime/cgo.a
/home/urso/.gvm/gos/go1.8beta1/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/usr/bin/ld: -f may not be used without -shared
collect2: error: ld returned 1 exit status
```
Repository: TypeScript
Issue: Allow declaring properties inside class constructors
Labels: Suggestion,Awaiting More Feedback

It's a little clunky setting up properties in classes right now.

Here's what I have to do at the moment to set a property value in the constructor:
```TypeScript
class Animal {
    public interruptedSound: string;
    constructor(public sound: string) {
        this.interruptedSound = sound.substring(0, 3);
    }
}
let dog = new Animal("woof");
console.log(dog.sound); // woof
console.log(dog.interruptedSound); // woo
```

Notice that `interruptedSound`'s setup is split over two lines, and I have to declare it as a string even though it could be inferred from the fact that `sound.substring` returns a string.
What I'd like to be able to do:
```TypeScript
class Animal {
    constructor(public sound: string) {
        this.interruptedSound = sound.substring(0, 3); // now a detectable property of type string
    }
}
let dog = new Animal("woof");
console.log(dog.sound); // woof
console.log(dog.interruptedSound); // woo
```

This would avoid having to declare all properties at the top before being able to use them in constructors, saving a lot of boilerplate on complex classes. F# already does [something similar](https://fsharpforfunandprofit.com/posts/classes/) to make setting up types much quicker and simpler. There wouldn't be any JavaScript compatibility issues, because JavaScript already works this way. 

In cases where the property _is_ declared separately, give precedence to the declaration.

The `private`, `public` or `readonly` keywords could even be used before the assignment to modify the property, e.g.
```TypeScript
class Animal {
    constructor(public sound: string) {
        private readonly this.interruptedSound = sound.substring(0, 3);
    }
    changeSounds() {
        this.sound = "meow";
        this.interruptedSound = "meo"; // error, interruptedSound is readonly
    }
}
let dog = new Animal("woof");
console.log(dog.sound); // woof
console.log(dog.interruptedSound); // error, interruptedSound is private
```
Repository: rust
Issue: Iterator adaptors should allow unsized function fields
Labels: C-enhancement,T-libs-api,A-iterators

For example `::std::iter::Map<::std::ops::Range<u8>, Fn(u8) -> u32>` is fully technically possible type, except `Map` doesn't allow for unsized `F`, because it is not marked as such.
Repository: youtube-dl
Issue: Allow merging extracted tracks
Labels: request

Hello dear authors, gurus. I have small Q:
What we have here -
format code  extension  resolution note
249          webm       audio only DASH audio   53k , opus @ 50k (48000Hz), 4.51MiB
250          webm       audio only DASH audio   75k , opus @ 70k (48000Hz), 5.20MiB
171          webm       audio only DASH audio  118k , vorbis@128k (44100Hz), 8.02MiB
140          m4a        audio only DASH audio  128k , m4a_dash container, mp4a.40.2@128k (44100
Hz), 11.56MiB
251          webm       audio only DASH audio  146k , opus @160k (48000Hz), 9.51MiB
160          mp4        256x144    DASH video  114k , avc1.4d400c, 30fps, video only, 10.11MiB
278          webm       256x144    DASH video  117k , webm container, vp9, 30fps, video only, 8
.69MiB
242          webm       426x240    DASH video  248k , vp9, 30fps, video only, 19.69MiB
133          mp4        426x240    DASH video  253k , avc1.4d4015, 30fps, video only, 22.33MiB
243          webm       640x360    DASH video  452k , vp9, 30fps, video only, 36.37MiB
134          mp4        640x360    DASH video  638k , avc1.4d401e, 30fps, video only, 53.72MiB
244          webm       854x480    DASH video  836k , vp9, 30fps, video only, 67.12MiB
135          mp4        854x480    DASH video 1165k , avc1.4d401f, 30fps, video only, 102.34MiB
247          webm       1280x720   720p 1717k , vp9, 30fps, video only, 134.38MiB
136          mp4        1280x720   720p 2344k , avc1.4d401f, 30fps, video only, 203.90MiB
302          webm       1280x720   DASH video 2915k , vp9, 60fps, video only, 232.22MiB
248          webm       1920x1080  1080p 3139k , vp9, 30fps, video only, 238.95MiB
298          mp4        1280x720   DASH video 3493k , avc1.4d4020, 60fps, video only, 289.88MiB
137          mp4        1920x1080  1080p 4623k , avc1.640028, 30fps, video only, 384.84MiB
303          webm       1920x1080  DASH video 5095k , vp9, 60fps, video only, 394.73MiB
299          mp4        1920x1080  DASH video 6001k , avc1.64002a, 60fps, video only, 510.46MiB
17           3gp        176x144    small , mp4v.20.3,  mp4a.40.2@ 24k
36           3gp        320x180    small , mp4v.20.3,  mp4a.40.2
43           webm       640x360    medium , vp8.0,  vorbis@128k
18           mp4        640x360    medium , avc1.42001E,  mp4a.40.2@ 96k
22           mp4        1280x720   hd720 , avc1.64001F,  mp4a.40.2@192k (best)

-- 299 is the best video-only track, yet 140 is audio-only track 128kbps, AND - 22 is the video+audio, with audio 192kbps. Please tell me, how to "rip" audio from 22 and combine it with 299 (as usual -f n+n) into one .mp4 ?
Thanks in advance !
Repository: TypeScript
Issue: Improvement: Design metadata should contain property names and types
Labels: Suggestion,Revisit,Domain: Decorators

At the moment it's not possible to get all Properties of a Type with the corresponding design-type of the property.
It's only possible to get all properties of an object by using Object.keys() and this wouldn't return properties which haven't been set, of course the simply don't exist.
So it wold be a great feature, if a class which emits metadata because of a decorator would also emit a metadata called something like 'design:properties' which contains a list of all property-names with the corresponding type.
Repository: go
Issue: net: Dial should not conceal effective errors
Labels: NeedsInvestigation

https://go-review.googlesource.com/8768 changed to return the first detected error on consecutive or parallel dialing as opposed to the previous. Unfortunately this change makes debugging hard. Also it probably makes package developers using the net package confusing.

For example, assuming we need to fetch some resource from golang.org on the node which has IP dual stack functionality and IPv4-only connectivity to golang.org, the current implementation returns an error regarding IPv6 transport even when the IPv4 connectivity is lost in the middle of the path.

I guess that there are two options; a) returning all detected errors by either a nested OpError or new error type in OpError when the connection setup function fails, b) returning the most effective error by referring to information on IP routing and forwarding.

I'd prefer the former. @pmarks-net, What do you think?
Repository: nvm
Issue: How to run the tests locally?
Labels: testing

I tried the instructions as readme says, but there are always errors there like:

```
+ rm -Rf v* src alias
+ mkdir src alias
    Aliases
    ✓ "nvm alias" should not accept aliases with slashes
    ✓ "nvm unalias" should not accept aliases with slashes
    ✓ Running "nvm alias <aliasname> <target>" again should change the target
    ✓ Running "nvm alias <aliasname>" should list but one alias.
    ✓ Running "nvm alias" lists implicit aliases when they do not exist
    ✓ Running "nvm alias" lists manual aliases instead of implicit aliases when present
    ✓ Running "nvm alias" should list all aliases.
      circular
      ✓ nvm_resolve_alias
      ✓ nvm_resolve_local_alias

      lts
N/A: version "N/A -> N/A" is not yet installed.

You need to run "nvm install N/A" to install it before using it.
mv: cannot move '/usr/bin/alias/lts' to '/usr/bin/alias/lts.bak': Permission denied
rm: cannot remove '/usr/bin/alias/lts/*': Permission denied
rm: cannot remove '/usr/bin/alias/lts/boron': Permission denied
rm: cannot remove '/usr/bin/alias/lts/argon': Permission denied
      ✗ "nvm alias" should ensure LTS alias dir exists
```

Tried on Ubuntu 12.04, 14.04 and 16.04, none of them can directly pass the test. Is there anything special need to be setup? I also tried to run travis ci with Ubuntu 14.04 (See https://travis-ci.org/PeterDaveHelloKitchen/nvm/builds/178530168), the tests also failed.

Thanks.