sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: Higher-ranked lifetime causes inconsistent behavior with trait bounds.
Labels: A-type-system,A-lifetimes,T-compiler,C-bug,T-types,A-higher-ranked

Existing code uses trait bounds to force side-conditions on associated types. For instance, `IntoIterator` is defined (in part) as follows:

<details><summary>Original snippet from 2016 (no longer syntactically legal)</summary>

```rs
trait IntoIterator where Self::IntoIter::Item == Self::Item {
    type Item;
    type IntoIter: Iterator;
}
```

</details>

```rs
trait IntoIterator {
    type Item;
    type IntoIter: Iterator<Item = Self::Item>;
}
```

Similarly, we can define a side-condition using higher-ranked lifetimes:

``` rust
trait BorrowIterator where for<'a> &'a Self: IntoIterator {}
```

This is necessary when we want to implement a trait for a (non-reference) type `T`, but want to require trait implementations on `&'a T` where those trait implementations can refer to the borrow lifetime `'a`.

However, the former concrete trait bounds are usable as trait bounds in functions. For instance, the following will compile:

``` rust
fn needs_iter<T: IntoIterator>(){}
```

Whereas this will fail:

``` rust
fn needs_borrow_iter<T: BorrowIterator>(){}
```

With the error:

```
error: the trait bound `for<'a> &'a T: std::iter::Iterator` is not satisfied [--explain E0277]
  --> <anon>:19:1
19 |> fn needs_borrow_iter<T: BorrowIterator>()
   |> ^
note: `&'a T` is not an iterator; maybe try calling `.iter()` or a similar method
note: required because of the requirements on the impl of `for<'a> std::iter::IntoIterator` for `&'a T`
note: required by `BorrowIterator`
```

This is doubly puzzling since `T: IntoIterator` doesn't require `T: Iterator`.

See #34142 which shows similar issues with bounds on function definitions.
See #27113 which shows issues with 'outlives' relations in where-clauses.
Repository: rust
Issue: Associated type equality not followed through multiple traits
Labels: A-type-system,T-compiler,C-bug,T-types

Simplest case to reproduce would be to add a trait which decorates `IntoIterator` and try to write a blanket impl for that trait:

``` rust
trait DecoratesIntoIterator: IntoIterator {
    type Output: Iterator<Item=Self::Item>;
}

impl<T> DecoratesIntoIterator for T where
    T: IntoIterator,
    T::IntoIter: DecoratesIntoIterator,
{
    type Output = <T::IntoIter as DecoratesIntoIterator>::Output;
}
```

Will fail to compile with 

```
type mismatch resolving `<<<T as std::iter::IntoIterator>::IntoIter as DecoratesIntoIterator>::Output as std::iter::Iterator>::Item == <T as std::iter::IntoIterator>::Item`:
```

even though every trait mentioned has the constraint that the output has `Iterator<Item=Self::Item>`.

Ran into this with a more concrete use case inside of Diesel:

``` rust
trait Query {
    type SqlType;
}

trait AsQuery {
    type SqlType;
    type Query: Query<SqlType=Self::SqlType>;

    fn as_query(self) -> Self::Query;
}

trait LimitDsl: AsQuery {
    type Output: Query<SqlType=Self::SqlType>;

    fn limit(self, limit: i64) -> Self::Output;
}

impl<T> LimitDsl for T where
    T: AsQuery,
    T::Query: LimitDsl,
{
    type Output = <T::Query as LimitDsl>::Output;

    fn limit(self, limit: i64) -> Self::Output {
        self.as_query().limit(limit)
    }
}
```

This can be worked around by manually restating the constraint, like so:

```
impl<T, ST> LimitDsl for T where
    T: AsQuery<SqlType=ST>,
    T::Query: LimitDsl<SqlType=ST>,
```

but this shouldn't be required.
Repository: rust
Issue: Rust is overflowing on recursive trait evaluation where it didn't before
Labels: A-type-system,P-medium,T-compiler,regression-from-stable-to-stable,C-bug,T-types

This can be simplified down to the following:

``` rust
trait MyTrait {
    type Output;
}

impl<T: MyTrait> MyTrait for T {
    type Output = <T as MyTrait>::Output;
}

trait SomeOtherTrait {}

impl<T> SomeOtherTrait for T where T: MyTrait, T::Output: Send {}

fn main() {}
```

When compiling that program, rust will overflow when it did not on older versions.. Of course that example is contrived, and attempting to use any concrete type there will always overflow. It is simplified from the slightly more realistic example in https://is.gd/XSHLG2, which is simplified from the real world case where I encountered this, which was trying to pull https://github.com/diesel-rs/diesel/blob/f0a75bb/diesel/src/query_dsl/load_dsl.rs#L23-L29 into a separate trait.

The important distinction is that we're now overflowing in a generic context, in cases where there are some concrete types which are valid. Specifically this causes confusing differing behavior between where clauses on methods and where clauses on trait impls. The above code is fine if the where clause is instead on some trait method, as it's no longer evaluated until there's a concrete type that the method is being called on.

I'd actually think that rustc could always avoid overflow here, and instead detect that it's evaluating the same trait impl def for the same type and answer no. The code implies that was the intention. But that's aside the point, this is about a concrete change in behavior.

The issue was first introduced in nightly-2015-08-15. On nightlies prior to that, https://is.gd/vrEvFN would compile successfully. It manifested as an actual stack overflow until nightly-2015-10-29, where it became a proper error (hilariously giving a warning that this warning would become a hard error due to RFC 1214, when it was already hard erroring). I believe this was an unintentional side effect of implementing RFC 1214, as that was merged in on the nightly that introduced the issue.
Repository: three.js
Issue: Feature request: Real-time rounded corners on otherwise hard edges
Labels: Enhancement

##### Description of the problem

NVIDIA's iRay/Mental Ray has the capability to automatically round corners that are sharp.  This is very useful for making hard corners more realistic as very few corners in real-life are ultra sharp.

Basically it can convert the left to the right:

![mental-ray-rounded-corners-example](https://cloud.githubusercontent.com/assets/588541/16027924/5ac0d62e-31a8-11e6-9a7e-d16e875d5680.jpg)

I know that it is possible to do this with bevels, but I wonder if there is a real-time way to do this?

More details: http://www.geonak.com/wp-content/uploads/2007/06/mia_roundcorners_Maya.pdf?2d12ba
##### Three.js version
- [x] Dev
- [x] r77
- [ ] ...
##### Browser
- [x] All of them
- [ ] Chrome
- [ ] Firefox
- [ ] Internet Explorer
##### OS
- [x] All of them
- [ ] Windows
- [ ] Linux
- [ ] Android
- [ ] IOS
##### Hardware Requirements (graphics card, VR Device, ...)
Repository: opencv
Issue: Error while building with CUDA
Labels: bug,category: build/install,category: gpu/cuda (contrib)

I'm having the error after executing the following command:
cmake -G "Unix Makefiles" -D CMAKE_CXX_COMPILER=/usr/bin/g++-4.9 -D CMAKE_C_COMPILER=/usr/bin/gcc-4.9 -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D OPENCV_EXTRA_MODULES_PATH=~/Downloads/opencv/opencv_contrib/modules -D BUILD_EXAMPLES=ON -D WITH_TBB=ON -D WITH_V4L=ON -D WITH_QT=ON -D WITH_OPENGL=ON -D CUDA_NVCC_FLAGS="-ccbin gcc-4.9" -D CUDA_ARCH_BIN="2.0" -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D ENABLE_FAST_MATH=1 -D CUDA_FAST_MATH=1 -D WITH_CUBLAS=1 -D BUILD_TIFF=ON -D BUILD_EXAMPLES=ON -D CUDA_GENERATION=Auto ..

CMake Error at cuda_compile_generated_gpu_mat.cu.o.cmake:266 (message):
  Error generating file
  /home/bernardo/Downloads/opencv/opencv/build/modules/core/CMakeFiles/cuda_compile.dir/src/cuda/./cuda_compile_generated_gpu_mat.cu.o

modules/core/CMakeFiles/opencv_core.dir/build.make:398: recipe for target 'modules/core/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_gpu_mat.cu.o' failed
make[2]: **\* [modules/core/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_gpu_mat.cu.o] Error 1

I have installed and linked GCC 4.9 and gcc 4.8.
### Please state the information for your system
- OpenCV version: 3.1
- Ubuntu 16.04
- Compiler: GCC 4.8, 4.9
### In which part of the OpenCV library you got the issue?

make
Repository: youtube-dl
Issue: YUNG CLOUD 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.06.14_. 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.06.14**

Please support yung.cloud ( a soundcloud like website)
http://yung.cloud/

anthony@VMServer:~$ youtube-dl http://yung.cloud/index.php?a=track&id=17913
[1] 1932
anthony@VMServer:~$ [generic] index: Requesting header
[redirect] Following redirect to http://yung.cloud/
[generic] yung: Requesting header
WARNING: Falling back on generic information extractor.
[generic] yung: Downloading webpage
[generic] yung: Extracting information
ERROR: Unsupported URL: http://yung.cloud/

**If you inspect the source, for every song there is a src thing that gives you the location of where the music is stored, for instance this song is stored in " http://yung.cloud/uploads/tracks/524978921_1618317889_768903362.mp3 "
Repository: rust
Issue: [rustbuild] do not delete sysroot directory
Labels: C-enhancement,T-bootstrap,E-needs-design

I tend to put various test files into `$DESTINATION/stage1/bin` so I can have a different terminal open and quickly test stage1 rustc against various test cases I have at hand for a particular thing I’m working on at the time without cluttering root of my checkout.

rustbuild deleting the destination directory every build is inherently incompatible with this workflow. Consider not doing it.
Repository: kubernetes
Issue: Node status should include allocated resources info through the API
Labels: priority/awaiting-more-evidence,sig/node,lifecycle/frozen,needs-triage

See #25355.  Users want to be able to query the allocated resources for nodes and currently do this through `kubectl describe` which is both very inefficient as well as hard to parse the data out of.
Repository: rust
Issue: Match expressions use O(n) stack space with n branches in debug mode
Labels: A-LLVM,C-enhancement,A-codegen,T-compiler,I-heavy,A-mir-opt,A-patterns,C-optimization

I ran into this problem while working on a parser (https://github.com/evanw/esbuild/tree/rust). Here's a reduced test case: https://gist.github.com/evanw/06e074a1d6d5c21e8d32e2c26de07714. It contains two recursive functions, `small` and `large`, that each contain a match expression. Every call prints out the amount of stack space used.

In debug:

```
small:
stack space: 0.3kb
stack space: 0.7kb
stack space: 1.0kb
stack space: 1.4kb
stack space: 1.7kb
stack space: 2.1kb
stack space: 2.4kb
stack space: 2.8kb
stack space: 3.1kb
stack space: 3.4kb
stack space: 3.8kb
large:
stack space: 0.6kb
stack space: 1.3kb
stack space: 1.9kb
stack space: 2.6kb
stack space: 3.2kb
stack space: 3.8kb
stack space: 4.5kb
stack space: 5.1kb
stack space: 5.8kb
stack space: 6.4kb
stack space: 7.0kb
```

In release:

```
small:
stack space: 0.0kb
stack space: 0.1kb
stack space: 0.2kb
stack space: 0.4kb
stack space: 0.5kb
stack space: 0.6kb
stack space: 0.7kb
stack space: 0.8kb
stack space: 0.9kb
stack space: 1.0kb
stack space: 1.1kb
large:
stack space: 0.0kb
stack space: 0.1kb
stack space: 0.2kb
stack space: 0.4kb
stack space: 0.5kb
stack space: 0.6kb
stack space: 0.7kb
stack space: 0.8kb
stack space: 0.9kb
stack space: 1.0kb
stack space: 1.1kb
```

I would expect the amount of stack space used by a match expression to be proportional to the stack space of the largest branch, not to the total stack space of all branches. The problem isn't too bad here but it causes my actual parser to use huge amounts of stack space and to crash with a stack overflow when parsing virtually all normal-sized inputs.
Repository: youtube-dl
Issue: Site support request: instagram videos I liked
Labels: request,account-needed

Is it possible to add list extractor for instagram videos I liked? Instagram API is able to return 300 last items I liked (need authentication).
(I found this related blog http://symmetricinfinity.com/2013/04/06/download-your-likes-from-instagram.html)
Repository: youtube-dl
Issue: Unable to download https://mobile.twitter.com's video.
Labels: request

Example:

$ youtube-dl -v https://twitter.com/i/moments/741297043239542784
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'https://twitter.com/i/moments/741297043239542784']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.06.14
[debug] Python version 3.4.2 - Linux-3.16.0-4-amd64-x86_64-with-debian-8.5
[debug] exe versions: ffmpeg 3.0.2-2, ffprobe 3.0.2-2, rtmpdump 2.4
[debug] Proxy map: {}
[generic] 741297043239542784: Requesting header
WARNING: Falling back on generic information extractor.
[generic] 741297043239542784: Downloading webpage
[generic] 741297043239542784: Extracting information
[redirect] Following redirect to https://mobile.twitter.com/i/nojs_router?path=/i/moments/741297043239542784
[generic] 741297043239542784: Requesting header
[redirect] Following redirect to https://mobile.twitter.com/i/moments/741297043239542784?m=1
[generic] 741297043239542784?m=1: Requesting header
WARNING: Falling back on generic information extractor.
[generic] 741297043239542784?m=1: Downloading webpage
[generic] 741297043239542784?m=1: Extracting information
ERROR: Unsupported URL: https://mobile.twitter.com/i/moments/741297043239542784?m=1
Traceback (most recent call last):
  File "/home/ant/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 676, in extract_info
    ie_result = ie.extract(url)
  File "/home/ant/bin/youtube-dl/youtube_dl/extractor/common.py", line 342, in extract
    return self._real_extract(url)
  File "/home/ant/bin/youtube-dl/youtube_dl/extractor/generic.py", line 2140, in _real_extract
    raise UnsupportedError(url)
youtube_dl.utils.UnsupportedError: Unsupported URL: https://mobile.twitter.com/i/moments/741297043239542784?m=1

Thank you in advance. :)
Repository: go
Issue: cmd/gofmt: comments in expr-stmt are not arranged
Labels: NeedsFix

Please answer these questions before submitting your issue. Thanks!
1. What version of Go are you using (`go version`)?
   go version go1.6 darwin/amd
2. What operating system and processor architecture are you using (`go env`)?
   GOARCH="amd64"
   GOBIN=""
   GOEXE=""
   GOHOSTARCH="amd64"
   GOHOSTOS="darwin"
   GOOS="darwin"
   GOPATH="/Users/hiro/.go"
   GORACE=""
   GOROOT="/Users/hiro/go1.6"
   GOTOOLDIR="/Users/hiro/go1.6/pkg/tool/darwin_amd64"
   GO15VENDOREXPERIMENT="1"
   CC="clang"
   GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fno-common"
   CXX="clang++"
   CGO_ENABLED="1"
3. What did you do?
   I was trying to preallocate buffer for encoding.
   After I ran `gofmt`, I expected comments in expr-stmt are arranged, but not.
   
   ``` go
   package main
   
   func main() {
       var val []byte
       var name string
   
       buf := make([]byte, 24+ // min buffer size
           4+len(val)+ // tagLen + value
           2+len(name)+1+ // nameLen + name + '\0'
           16) // checksum
   
       _ = buf
   }
   ```
   
   https://play.golang.org/p/wAVUh_sGmw
4. What did you expect to see?
   
   ``` go
   package main
   
   func main() {
       var val []byte
       var name string
   
       buf := make([]byte, 24+ // min buffer size
           4+len(val)+         // tagLen + value
           2+len(name)+1+      // nameLen + name + '\0'
           16)                 // checksum
   
       _ = buf
   }
   ```
5. What did you see instead?
   same as input.
Repository: vscode
Issue: [css] Support <angle> units icon in CSS
Labels: help wanted,feature-request,css-less-scss

In Firefox 49, there is an icon in the front of the angle unit, but the angle of the icon is constant. 

I hope:
- **The VSCode can be a dynamic response to the actual point of view.**
- **<kbd>Shift</kbd> + `click` to change the unit format.**

![Firefox DevTools](https://img.alicdn.com/tps/TB1zhUgKpXXXXX0XFXXXXXXXXXX-400-171.gif)

**Spec**: https://drafts.csswg.org/css-values/#angles
Repository: opencv
Issue: Corrupted frames when reading RTSP stream
Labels: category: videoio,incomplete

**System Information:**
- OpenCV version: 3.1 with python
- Host OS: Linux (Ubuntu 14.04) (virtual machine on Mac)
- Compiler & CMake: GCC 4.8 & CMake 2.8.12.2
- Python version 3.4

ffmpeg:

```
ffmpeg version N-80279-g5d12cfa Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
configuration: --prefix=/home/vagrant/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/vagrant/ffmpeg_build/include --extra-ldflags=-L/home/vagrant/ffmpeg_build/lib --bindir=/home/vagrant/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-openssl --enable-libx265 --enable-nonfree
libavutil      55. 24.100 / 55. 24.100
libavcodec     57. 46.100 / 57. 46.100
libavformat    57. 37.101 / 57. 37.101
libavdevice    57.  0.101 / 57.  0.101
libavfilter     6. 46.101 /  6. 46.101
libswscale      4.  1.100 /  4.  1.100
libswresample   2.  0.101 /  2.  0.101
libpostproc    54.  0.100 / 54.  0.100
```
### Expected behaviour

I am passing rtsp link to VideoCapture and reading the frames. It should read the frames fine.
### Actual behaviour

After some time, I start getting corrupted frames. For Example: If we consider image rows and cols, after certain row x, all the rows below have the same rgb values as x.
After a few minutes it does not read the frame any more i.e. it returns 'False' on read function.
Repository: vscode
Issue: Long Text longer than 10000 letters wrapped with [...]
Labels: feature-request,editor-rendering

- VSCode Version: 1.3.0-insiders
- OS Version: Win 10

Steps to Reproduce:
1. Open a file with a very long line - over the limit of 10000
2. Position the cursor at the start of the line in question
3. Press 'End' keyboard key

Result - the 'End' key does nothing, while it rather has to go to the end of the trimmed/loaded part of the line.

All-in-all, I must say the approach to treating long lines is one of the worst shortcomming of VS Code (along with not being able to load big files at all). This approach makes the editor totally unusable for touching minified scripts and css for example, so I'd rather say you have to think of improving the performance and removing this serious limitation.
Repository: angular
Issue: state of the checkbox not getting updated even after its ng-model value is updated
Labels: type: bug/fix,workaround1: obvious,freq2: medium,area: forms,state: confirmed,forms: ngModel,P4

- **I'm submitting a bug for state of the checkbox not getting updated even after its ng-model value is updated**
- [ ] bug report

**Current behavior**
If you try and update the ngModel of a checkbox in say ngModelChange method, the ngModel value is updated but the checkbox still remains in previous state.

**Expected/desired behavior**
The state of checkbox should change as ngModel value changes.
- **What is the motivation / use case for changing the behavior?**
  I am trying to implement "select all" checkbox through angular 2. 

I have a list of checkboxes and one select all checkbox. And in my use case it's so that if user checks all checkboxes from the list manually , I have to uncheck all the checkboxes from the list and check the "All" checkbox. So I have binded a ngModel and ngModelChange to all the checkboxes .Now what happens is if I try to update the ngModel in the ngModelChange method ,the state of checkbox is not changed even though the ngModel value is updated (since angular2 listens to events only and not to change in value of ngModel). I have tried to achieve this through the attribute directive as well but nothing seems to work.
- **Angular version:** 2.0.0-beta.X 
- **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 ] 
- **Language:** [all | TypeScript X.X | ES6/7 | ES5 | Dart]
Repository: TypeScript
Issue: Add rule typescript.format.insertSpaceAfterOpeningAndBeforeClosingNamedImport
Labels: Suggestion,Help Wanted,Domain: Formatter

_From @unional on June 16, 2016 22:12_
- VSCode Version: 1.2.1
- OS Version: Windows 2012 R2

Currently object literal will have space added, but not named import:

``` ts
// before format code
import {Container} from './Container';

let x = {Container};

// after format code
import {Container} from './Container';

let x = { Container };
```

_Copied from original issue: Microsoft/vscode#7795_
Repository: TypeScript
Issue: Is it possible to link typescript interfaces to JSON files?
Labels: Suggestion,Needs Proposal

_From @Sequoia on June 16, 2016 20:3_

I know it's possible to do this [with json schemas](https://code.visualstudio.com/Docs/languages/json#_json-schemas-settings) but is it possible to do this with a typescript interface?

_Copied from original issue: Microsoft/vscode#7792_
Repository: opencv
Issue: Different results of CascadeClasifier on CPU and GPU
Labels: bug,priority: low,category: objdetect,category: gpu/cuda (contrib)

### My system
- OpenCV version: 3.1
- Host OS: Linux (Ubuntu 14.04)
- CPU: intel i7 3770
- Video card: GTX-950
- Video driver: v.352.93
### In which part of the OpenCV library you got the issue?
- objdetect, cudaobjdetect
- cv::CascadeClassifier, cv::cuda::CascadeClassifier
### Expected behaviour

I built the latest OpenCV version with cuda support from master branch. After that I tried to use CPU cv::CascadeClassifier and GPU cv::cuda::CascadeClassifier, but faced with a strange result. I use same xml from opencv/data/haarcascades_cuda/haarcascade_fullbody.xml for both CPU and GPU version of CascadeClassifier. CPU Classifier with this xml shows much more objects than GPU classifier.

Another strange thing, that when I set ScaleFactor to 2, speed of CPU version boosted up to 4 times, but GPU version becomes just slightly faster.
### Additional description

[OpencvQA](http://answers.opencv.org/question/96452/different-results-of-cascadeclasifier-on-cpu-and-gpu/)
[Video demo: example.ogv.zip](https://github.com/Itseez/opencv/files/320887/example.ogv.zip)
[Video demo with same parameters values: example_v2.ogv.zip](https://github.com/Itseez/opencv/files/322422/example_v2.ogv.zip)
### Code example to reproduce the issue

[Bitbucket: main.cpp](https://bitbucket.org/barbatum/cascadeqa/raw/571cdafc1b230cb5ec5d2c7b6b766895549d2d1e/CascadeQA/main.cpp)
[Bitbucket: qmake project + deps build bash script](https://bitbucket.org/barbatum/cascadeqa)
Repository: flutter
Issue: Vertical text alignment based off last baseline
Labels: c: new feature,framework,a: typography,P3,team-framework,triaged-framework