sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: youtube-dl
Issue: can not get  the best video from viki
Labels: geo-restricted

**Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.01.16. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.**
I've verified and I assure that I'm running youtube-dl 2017.01.16
**Before submitting an issue make sure you have:**
At least skimmed through README and most notably FAQ and BUGS sections
Searched the bugtracker for similar issues including closed ones
**What is the purpose of your issue?**
Feature request (request for a new functionality)

How can i get the best fomat from the viki?

![image](https://cloud.githubusercontent.com/assets/25115961/22072843/91c39cb4-ddde-11e6-93b3-94d9f07f44ae.png)
![image](https://cloud.githubusercontent.com/assets/25115961/22072924/df8ce162-ddde-11e6-819c-07896b1077f0.png)
Only  low format  can be gotten .
Repository: TypeScript
Issue: Error when augmenting UMD module
Labels: Bug

**TypeScript Version:**  2.1.1 / nightly (2.2.0-dev.201xxxxx)

**Code**

```ts
// @Filename: /node_modules/foo/index.d.ts
export = __foo;
export as namespace foo;
declare namespace __foo {
    export import foo = __foo;
    class C {
        x: number;
    }
}

// @Filename: /a.ts
import { foo } from "foo";
declare module "foo" {
    namespace __foo {}
}
new foo.C();
```

**Expected behavior:**

No error.

**Actual behavior:**

`/a.ts(5,15): error TS2686: 'foo' refers to a UMD global, but the current file is a module. Consider adding an import instead.`
Repository: angular
Issue: Forms should throw error if two or more NgModels appear in form with the same name
Labels: feature,freq1: low,area: forms,state: has PR,good first issue,feature: under consideration,feature: votes required

[ ] bug report => search github for a similar issue or PR before submitting
[x] 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**

Currently there is no error or warning if two form controls have the same name:

```
<input name="entireStateCoverage" type="checkbox" [(ngModel)]="item.entireStateCoverage">
<input name="entireStateCoverage" type="checkbox" [(ngModel)]="item.active">
```

**Expected behavior**

Forms should throw error if duplicate names are detected.

**What is the motivation / use case for changing the behavior?**

This leads to unpredictable results (value overwrites) which are difficult to find.

* **Angular version:** 2.4.3

* **Browser:** [all]
 
* **Language:** [all]
Repository: rust
Issue: missing_docs does not trigger for types only used in exported fields of enumerations
Labels: A-lints,T-compiler,C-bug

IMO, this should be a compilation failure because although `Foo` is not explicitly exported, it is publicly visible via the `Bar::A` variant:

`lib.rs`:

```rust
#![deny(missing_docs)]

mod types;

pub use types::Bar;
```

`types.rs`:

```rust
pub struct Foo;

/// A bar.
pub enum Bar {
    /// A `Bar` variant.
    A(Foo),
}
```

Oddly enough, it seems to also be happy with the missing crate-level docs…

Using 1.14.0 (from Fedora's repository).
Repository: opencv
Issue: cv::ocl::setUseOpenCL(false) does not really stop using GPU
Labels: bug,category: core,category: ocl,category: t-api,incomplete,needs reproducer

<!--
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.2
- Operating System / Platform => Windows 10
- Compiler => VS 2013

##### Detailed description

I set cv::ocl::setUseOpenCL(false); and verified using useOpenCL(). But my code is still using GPU when I use UMat. How can I stop using GPU? Temporarily I am using a workaround that uses Mat instead of UMat. UMat should not use GPU when ocl is not used.

##### Steps to reproduce

Just use UMat in your code. Do some computation. Set cv::ocl::setUseOpenCL(false). 
I used GPU-Z to verify GPU load/usage.
Repository: TypeScript
Issue: DOM: Font Loading API
Labels: Suggestion,Revisit,Domain: lib.d.ts

**TypeScript Version:**  2.1.1

**Code**

```ts
// An example usage of Font Loading API
var font = new FontFace("SinkinSans","url('SinkinSans.ttf') format('truetype')");
font.load().then(()=>{
    // font loaded
    document.fonts.add(font);
});

```

**Expected behavior:** FontFace, FontFaceSet and document.fonts must exist in the DOM typings

**Actual behavior:** TypeScript generates an error, it still emits but errors are shown.

More info: 
* https://googlechrome.github.io/samples/font-face-set/
* https://developer.mozilla.org/en-US/docs/Web/API/CSS_Font_Loading_API
* https://webkit.org/blog/6643/improved-font-loading/
Repository: vue
Issue: v-on:change randomly fails on range input bound on a computed property
Labels: bug,has workaround

### Vue.js version
2.1.10

### Reproduction Link
http://jsbin.com/bapoca/edit?html,js,console,output

### Steps to reproduce
The above JSBin contains a slider (range) that logs the value of a computed property it is bound to (`sliderRadius`), when it changes: `v-on:change="log"` (log is a declared function)

### What is Expected?
I would expect that each time the slider changes, the prop is logged in the console.

### What is actually happening?
Two different scenarios: 
- you drag and release the slider handler (aka thumb): the prop is *always* logged in the console (i.e. the change handler fires properly all the times)
- you directly click where you want the handler to get to: the prop isn't logged all the times (i.e. the change handler fails about in 3 out of 5 occasions).

See the animated gif below, using the provided JSBin (recorded on Google Chrome, OSX – the same happens on Safari, thought)

[![vueRangeChangeError.gif](https://s29.postimg.org/lvgj9pepz/vue_Range_Change_Error.gif)](https://postimg.org/image/a6cjlqnr7/)

Thank you.
Repository: You-Dont-Know-JS
Issue: investigate static generics and see if they need inclusion
Labels: for second edition

array generics, string generics, etc.
Repository: youtube-dl
Issue: Use fallback Youtube server if local cache is unavailable
Labels: request

### Make sure you are using the *latest* version: run `youtube-dl --version` and ensure your version is *2017.01.18*. 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.18**

### 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)
- [x] Feature request (request for a new functionality)
- [ ] Question
- [ ] Other

---
When Google CDN server peered or hosted by local ISP (blah-blah-blah.googlevideo.com) that holds media files is unavailable, youtube-dl just hangs on TCP connect and returns a system error after a timeout. It's an obvious, straightforward behavior. However, the website (at least default Javascript player served for Firefox) checks if any data from server is available after 5 seconds, and automatically reconnects to a different (global/anycast?) CDN server (in my case, r6---sn-4g57kn6e.googlevideo.com) to play the video. I guess they bothered to handle that case because of the total amount of Google cache nodes, and ubiquitous network problems and misconfigurations.

I think it's a rare case where youtube-dl is less resilient and useful than the official way of watching Youtube.

Steps to reproduce: set iptables to drop packets to CDN servers Google picks for your IP address range, check what player on the website does.
Repository: pytorch
Issue: Feature Request: Locally Connected Layer
Labels: proposal accepted,feature,module: nn,triaged,Stale

The Lua version of Torch implements a [Locally Connected Layer](https://github.com/torch/nn/blob/master/doc/convolution.md#spatialconvolutio) (Convolution without shared weights). It would be good to have an implementation of this available on the python API version as well.

cc @albanD @mruberry @jbschlosser @walterddr @kshitij12345
Repository: rust
Issue: Type-inference breaks depending on the order of arguments in a function call
Labels: A-inference,C-bug

Given ([playground link](https://play.rust-lang.org/?gist=1f7090c618d23c418db366553b4d1916&version=stable&backtrace=0)):

```rust
pub trait Int { fn zero() -> Self; }

impl Int for u8 { fn zero() -> u8 { 0 } }
impl Int for i8 { fn zero() -> i8 { 0 } }

pub trait FromSigned<T> {
    fn from_signed(T) -> Self;
}

impl<T: Int, U: Int> FromSigned<T> for U {
    fn from_signed(x: T) -> U {
        U::zero()
    }
}

pub fn from_signed<To, Fr>(x: Fr) -> To
    where Fr: Int,
          To: FromSigned<Fr>
{
    To::from_signed(x)
}
```

I ran into the following:

```rust
fn main() {
    // This type-checks:
    255u8 == from_signed(-1i8); 
    // This doesn't type checkL
    from_signed(-1i8) == 255u8; 
}
```

In particular, my intuition says that `a == b` desugars into `equals(a, b)`. That `equals(a, b)` type-checks but `equals(b, a)` doesn't is extremely weird, in particular since `equals` expects both arguments to be of the same type.
Repository: angular
Issue: Way to handle media queries in animation
Labels: feature,area: animations,freq3: high,P4,feature: under consideration

**I'm submitting a ...**  (check one with "x")
```
[ ] bug report => search github for a similar issue or PR before submitting
[x] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
```

I'm facing a problem where I want to run different enter transitions depending on width of screen. With Angular 1 animation, based on css classes, it was really easy to accomplish different transition rules depending on media queries. You'd simply do something like (scss)

```sass
.ng-enter {
  transform: translateX(-100%);
  &.ng-enter-active {
    transform: translateX(0);
  }
}

@media (max-width: 600px) {
  .ng-enter {
    transform: translateX(100%);
  }
}
```

... to have it slide in from right on small devices. Also the positioning/css etc. was close to where other parts of the styling was, so it was easy to match any pixel numbers etc. against other css declarations. With Angular 2's animation API, we currently see these downsides

1. We can't use media queries
2. Combinations with pseudo classes is impossible and you'd have to replicate e.g. hover with mouseenter/leave listeners etc. (see #10196)
3. They can't be put in css files for use by designers and non-programmers if you want them out of .ts/.js
4. It's harder to find where an animation is declared as it could be both in our typescript or css

This is a feature request for dealing with primarily with 1., but potentially the others as well. I can see the following solutions

1. You come up with some kind of syntax for adding media query abilities, along the lines of the #10196, maybe something like
```
state('@media (max-width: 600px) :enter', ...)
```
2. ...or states can be mapped to css classes as well, thereby allowing users to choose where to put animation logic, i.e. something like
```
state(':enter', addClass('enter'))
```
3. Or 2. is done automatically and you wouldn't have to write any ts/js if you didn't want to and could just do it like Angular 1
4. Or just not use `*ngIf` on outer element, bind an inner element via *ngIf and add classes to outer element, and use css transitions (possible today, but only if applicable css context allow you to nest extra elements)
5. Or use javascript to calculate that state (possible today, but cumbersome)
```
state('void => small', ...)
state('void => large', ...)
<foo *ngIf="..." [@myAnimation]="isLargeScreen ? 'large' : 'small'"
```

What are your thoughts. I'd personally prefer 3. as I think it allows most freedom and solves all bullets above. If you recommend 4. or 5., what are your thoughts about the downsides?


* **Angular version:**
2.4.2
Repository: rust
Issue: #![cfg] to disable a crate disables #![no_std]
Labels: A-attributes,I-needs-decision,T-lang,C-bug

Using `#![cfg]` to disable a crate on platforms where it makes no sense is usually a great idea. That way people can unconditionally depend on your crate and use it only on the targets where it is needed. However it disables the entire crate, including all global attributes, which means normally a crate that has `#![no_std]` wouldn't depend on std, but if you use `#![cfg]` to disable that crate, suddenly it does depend on std! The only workaround is to not use `#![cfg]` and instead manually disable each item in the `lib.rs`, except for specific attributes like `#![no_std]`.

For example:
```Rust
// rustc foo.rs --crate-type=rlib
#![no_std]
#![cfg(any())]
```
```Rust
// rustc bar.rs -Zprint-link-args -Lcrate=current_directory
#![no_std]
extern crate foo;
fn main() {}
```
Observe as libstd is passed to the linker despite both crates using `#![no_std]`.
Repository: rust
Issue: Allow `process::Child` to be used with external calls to `waitpid` 
Labels: T-libs-api,C-feature-accepted,A-process

The `wait` and `wait_with_output` methods of `process::Child` expect to do the waiting for the child to exit themselves.  If you are running many processes at once, and you don't know which one will finish first, this is inconvenient, because the system calls `wait` and `waitpid` consume each exit notification as they report it.  (`waitid` can be told not to do that, but it is not fully supported in the libc crate yet.)  That places the `Child` object in an inconsistent state, in which it is not safe to call `wait` or `wait_with_output`.

If `Child` had a `set_exit_status` method, an application in this situation could use it to keep the objects consistent:  something like

```rust
fn wait_all(children: &[&mut Child]) -> nix::Result<()> {
    use nix::sys::wait::{wait, WaitStatus}
    let mut pending : HashMap<u32, &mut Child> =
        children.iter().map(|c| (c.id(), c)).collect();
   while pending.len() {
       let status = try!(wait());
       match status {
           Exited(pid, ..) | Signaled(pid, ..) => {
               let mut child = try!(pending.remove(pid).ok_or(UnexpectedChild(pid)));
               child.set_exit_status(status); 
           },
           _ => unreachable!();
        }
    }
    Ok(())
}
```

(In this hypothetical, `ExitStatus` impls `From<nix::WaitStatus>`, which I believe nix can make happen without assistance from std.)
Repository: kubernetes
Issue: Make OOM not be a SIGKILL
Labels: sig/node,kind/feature,triage/accepted

Atm apps that go over the memory limit are hard killed 'OOMKilled', which is bad (losing state / not running cleanup code etc)

Is there a way to get SIGTERM instead (with a grace period or 100m before reaching the limit) ?
Repository: flutter
Issue: FR: Create a way to increase the time between frames.
Labels: c: new feature,framework,P3,team-framework,triaged-framework

Unlike timeDilation which doesn't change the frame rate but slows down any ticking animations (or something like that), this feature would slow down how often frames are submitted (or something like that).

Use cases:

1. If a developer has a weird single frame jump they could use this to 'see' that frame better to aid in debugging.
1. If a developer relies on sizes from a previous frame in their app (which is bad in general) this would increase the jank caused by that to possible 'real world' levels.
Repository: go
Issue: all: add link to the issue tracker from all repos
Labels: Documentation,NeedsInvestigation

Most repositories under the golang organization is using the go repo's issue tracker and has their issues disabled. Each repo that uses this issue tracker needs to give a link to https://golang.org/issues/new from its README to help the users find the correct location to file bugs.

GitHub also allows to pre-fill the title section with a query parameter. For example, we use https://golang.org/issue/new?title=x/mobile:+ from the mobile repo README. Each repo can follow the same pattern to help contributors properly prefix the title.
Repository: youtube-dl
Issue: [LeEco] Support Le.com live channel
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 *2017.01.18*. 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.
- [ ] I've **verified** and **I assure** that I'm running youtube-dl **2017.01.18**

Version: 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**):

轮播
* Live channel: http://live.le.com/lunbo/play/index.shtml?channel=225
Repository: go
Issue: x/tools/refactor/rename: renaming struct should rename method receivers that follow naming advice
Labels: Tools,Refactoring

Please answer these questions before submitting your issue. Thanks!

### What version of Go are you using (`go version`)?

```
go version go1.7.4 linux/amd64
```

### What operating system and processor architecture are you using (`go env`)?

```
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/myitcv/mgo/src/modelogiq.com/g/_vendor:/home/myitcv/mgo"
GORACE=""
GOROOT="/home/myitcv/gos"
GOTOOLDIR="/home/myitcv/gos/pkg/tool/linux_amd64"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build108524765=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
```

Using commit [fcfba28e23c7bbd8474b355ca7d6a9d88afcca00](https://github.com/golang/tools/tree/fcfba28e23c7bbd8474b355ca7d6a9d88afcca00) of `golang.org/x/tools/refactor/rename`

### What did you do?

Starting with code:

```go
// main.go

package main

import (
        "fmt"
)

type banana struct{}

func (b *banana) doit() {}

func main() {
        fmt.Println("Hello, playground")
}
```

Invoke:

```
gorename -offset main.go:#51 -to apple
```

### What did you expect to see?

`rename` should also rename the receiver of the method `doit` from `b -> a`

The heuristic here should be that if the receiver does follow the generally accepted [naming advice](https://github.com/golang/go/wiki/CodeReviewComments#receiver-names) then `rename` can safely proceed and rename receivers.

### What did you see instead?

Renaming `banana -> apple` leaves the receiver of method `doit` as `b`
Repository: angular
Issue: Provide one time binding possibility for better performance
Labels: feature,area: core,core: binding & interpolation,core: change detection,feature: under consideration

For many use cases we need to render elements according to first initial value without the need to observe any changes. It would be great if we would have the ability to make one time bindings.
Repository: opencv
Issue: Cannot create non uniform histogram using cv2.calcHist()  in Python 2.7
Labels: bug,category: python bindings,category: imgproc

<!--
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)
- OpenCV => 3.1.0-dev
- Operating System / Platform => Ubuntu 16.04
- Compiler => Python 2.7

##### Detailed description

I have difficulty implementing cv2.calcHist in Python. Based on OpenCV docs, I am trying to create a non uniform 2d histogram of float32 values. However, I get error with message "SystemError: error return without exception set" , when trying to input custom bin edges.

##### Steps to reproduce

Gives error:
```
import cv2
import numpy as np
r_d  = np.random.random(100)
p_d = np.random.random(100)
r_bins_edges = np.linspace(np.min(r_d), np.max(r_d),100)
p_bins_edges = np.linspace(np.min(r_d), np.max(r_d),100)
H = cv2.calcHist([r_d.astype(np.float32),p_d.astype(np.float32)], [0,1], None,
                           (99,99), 
                           [r_bins_edges, p_bins_edges])
```
Runs alright with no custom bin edges:
```
import cv2
import numpy as np
r_d  = np.random.random(100)
p_d = np.random.random(100)
r_bins_edges = np.linspace(np.min(r_d), np.max(r_d),100)
p_bins_edges = np.linspace(np.min(r_d), np.max(r_d),100)
H = cv2.calcHist([r_d.astype(np.float32),p_d.astype(np.float32)], [0,1], None,
                           (99,99), 
                           [0, 1, 0, 1])
```
Apart from that, notice that in the 'runs alright' part I am writing [0, 1, 0, 1] and not [[0, 1], [0, 1]] (as docs propose), which again gives the same error "SystemError: error return without exception set" .  I believe this is an issue worth to be corrected, as cv2.calcHist() can not be interchanged with np.histogram2d in the present. (The example I gave has uniform bins, but in my application there are non uniform ones)
Repository: go
Issue: net/http: add GODEBUG=http1debug
Labels: help wanted,Proposal-Accepted,NeedsFix,FeatureRequest

The GODEBUG knob for http2 debugging (e.g. `GODEBUG=http2debug=2`) has proven to be very useful and popular.

Unfortunately it only works for HTTP/2.

There is code in the net/http package to do a similar thing for HTTP/1, but it's not accessible via an environment variable. Should we make it accessible with `GODEBUG=http1debug=...`?