sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: TypeScript
Issue: Improve decorator callstack information to reflect location of decorator
Labels: Bug

**TypeScript Version:**  2.03
**Scenario**:  Building JUnit style unit test adaptor based on decorators.
**Goal**:  Emitting test information sufficient to drive Visual Studio Test Explorer's ability to double-click on a test item to navigate to the source code for the test.
**Problem**: Call stack during execution of a method decorator shows a lines present only in generated code, far removed from the actual decorator's location.

**Code**

``` ts
@Suite
export class TestIntervalSet {
    @Test testSingleElement(): void {
        let s: IntervalSet =  IntervalSet.of(99);
        let expecting: string =  "99";
        assertEquals(s.toString(), expecting);
    }
       . . .
}
```

Compiled and run with source map support turned on.

**Expected behavior:**
When the `Test()` function is called, the call stack should reflect the souce line number where the `@Test` decorator appears.  

**Actual behavior:** 
When the `Test()` function is called, the call stack reflect the line number in generated code where `__decorate()` is called.   That line that doesn't appear in the typescript file.

I'm hoping that this might be addressed by simply adjusting the emitted source map.   I don't mind that there is a helper function on the call stack, as long as the source line containing the decorator is available..
Repository: youtube-dl
Issue: Add support for maxdome.de
Labels: site-support-request,account-needed

- [x] I've **verified** and **I assure** that I'm running youtube-dl **2016.10.07**
- [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
- [x] Site support request (request for adding support for a new site)

Please add support for https://www.maxdome.de/
Repository: youtube-dl
Issue: Add support for Apache directory listings
Labels: request

I have a project where youtube-dl's --download-archive would be really handy.

Can you add a processor for just web server (apache) directory lists?
I have a few large directories filled with mp4s and --download-archive would make my life a lot easier.
Repository: youtube-dl
Issue: Wintellect support
Labels: site-support-request,account-needed

https://wintellectnow.com
https://wintellectnow.com/Videos/Watch?videoId=building-azure-api-apps

```
<vimeo-video video-id="180309428" current-position="ctrl.currentPosition" start-position="ctrl.startPosition" intro-seconds="-1" on-play-event="ctrl.logVideoPositionEvent(seconds, forceUpdate)" on-pause-event="ctrl.logVideoPositionEvent(seconds, forceUpdate)" on-time-update-event="ctrl.logVideoPositionEvent(seconds, forceUpdate)" on-media-ready-event="ctrl.playerReadyEvent()" on-video-error-event="ctrl.videoErrorEvent(errorMessage)" on-intro-limit-event="ctrl.introLimitEvent()" class="ng-isolate-scope">
                        <iframe src="https://player.vimeo.com/video/180309428" width="100%" height="365px" frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen="" data-ready="true"></iframe></vimeo-video>
```

Can someone add support for this website?
I can provide you with a username and account to test.
Repository: rust
Issue: Rust docs: Please add groupings of producers and consumers by type
Labels: T-rustdoc,C-enhancement

I find myself often navigating to rustdocs and then clicking through to the `[src]` link instead of using the docs directly (or bypassing rustdoc and going to the git repo). The most common reason I find myself doing this is because I'm trying to learn the interface for some type that I want to use.

Coming from an algebraic datatype background, I often want to know the set of ways to introduce a type and the different functions that accept that type (roughly speaking, producers and consumers of a type).

The rustdocs as they are today do a good job of listing the `impl` functions for a type and enumerating traits for the type. So what more do I want? Let's say there is a module `foo` that defines the type `Foo`. Often times `foo`, and other modules within the same library, also define functions that operate on `Foo`. I would like a convenient way to see these functions together. Perhaps we could call it a type indexed index :)

I apologize if this feature already exists and I've overlooked it.

Thanks in advance!
Repository: youtube-dl
Issue: Some facility for debug logging with debug levels should be available and used
Labels: request

To aid in maintainability, it should be easy to leave debug printing code in extractors and have it only print when run with some debugging flag, or ideally with multiple debugging levels, ala classic dprintf(level, fmt, ...).

Some discussion of this in [here](https://github.com/rg3/youtube-dl/pull/10854/#discussion_r82521447), and @yan12125 suggests a pull request.

I'm pretty sure if I implemented it it wouldn't be very Pythonic, so perhaps it's best to just mention the idea as an issue and leave it for someone else to implement.
Repository: vscode
Issue: Multiple extensions registering the 'type' command
Labels: feature-request,api

- VSCode Version: 1.5.3
- OS Version: Windows 10

Steps to Reproduce:
1. Install and enable [VSCodeVim](https://marketplace.visualstudio.com/items?itemName=vscodevim.vim) and [vscode-jumpy](https://marketplace.visualstudio.com/items?itemName=wmaurer.vscode-jumpy)
2. Open a file with text
3. Run the command `Jumpy Word Mode`. Two letter decorations should appear at the start of each word
4. Type in the two letter code for that word. Jumpy functionality should enact a 'Jump' to the cursor position of that decorator.
5. It doesn't work :-( The keystrokes are being processed by VSCodeVim, not Jumpy.

I am the author of `vscode-jumpy` [(repo)](https://github.com/wmaurer/vscode-jumpy). A user has reported that Jumpy does not work in combination with VSCodeVim: wmaurer/vscode-jumpy#1.

It seems that both extensions are doing a `registerCommand('type')`, but `VSCodeVim` seems to take priority over `vscode-jumpy`. Is there are way to manage which extension has priority, so that it can receive and process the keystrokes? 
Ideally I want to Jumpy to receive and process the next two keystrokes after enabling `Jumpy Word Mode`, but then let the rest of the keystrokes forward to `VSCodeVim`.
Repository: TypeScript
Issue: Annotate immediately-invoked functions for inlining flow control analysis
Labels: Suggestion,Needs Proposal

Per #9998 and its many offshoots, we have problems analyzing code like this

``` ts
let x: string | number = "OK";
mystery(() => {
  x = 10;
});
if (x === 10) { // Error, we believe this to be impossible  
}
```

The problem is that we don't know if `mystery` invokes its argument "now" or "later" (or possibly even never!).

The converse problem appears during reads:
```ts
let x: string | number = ...;
if (typeof x === 'string') {
  // Error, toLowerCase doesn't exist on string | number
  let arr = [1, 2, 3].map(n => x.toLowerCase());
}
```

Proposal is to allow some form of indicating that the function is invoked immediately, e.g.

``` ts
declare function mystery(arg: immediate () => void): void;
```

This would "inline" the function body for the purposes of flow control analysis
Repository: TypeScript
Issue: Support formatting JSDoc comments
Labels: Suggestion,Help Wanted,VS Code Tracked,Domain: JSDoc

Formatting: 

``` ts
/**
      *    @param  { Object }    bar 
                */
function foo(bar) { }
```

Should result in:

``` ts
/**
 * @param {Object} bar 
 */
function foo(bar) { }
```

Reported originally in https://github.com/Microsoft/TypeScript/issues/11456
Repository: TypeScript
Issue: Go-to-Implementation & class names
Labels: Suggestion,Help Wanted,API

I have started to implement "Go-to-Implementation" by consumming tsserver "implementation" command inside Eclipse to do the same thing than Java:

![](https://cloud.githubusercontent.com/assets/1932211/14764578/3b90dc6c-09bd-11e6-83ba-722ffad94e11.png)

See https://github.com/Microsoft/TypeScript/issues/8268

The tsserver "implementation" command returns list of FileSpan (file, location)) but not the text of the implemented class ("MyServiceA", "MyServiceB"). If you see the below screenshost, it should be really cool to have too the name of the classes which implement the interface.

Many thanks
Repository: kubernetes
Issue: Field-level versioning
Labels: priority/important-soon,kind/cleanup,sig/api-machinery,kind/feature,sig/architecture,lifecycle/frozen

We have difficulties around moving fields through alpha, beta, GA. #30819 is one idea. I was talking with Brian earlier today and here is a sketch of something that we could do to solve the general problem.

We begin following semver for our api versions, adding a "patch" version. We define a new tag which can be added in a comment before a field, like this:

`// +version:alpha=v1.5.3`

When the field goes to beta (assuming it doesn't change):

`// +version:alpha=v1.5.3,beta=v1.5.89`

And at GA the field goes like this:

`// +version:alpha=v1.5.3,beta=v1.5.89,stable=v1.5.183`

If at any point in time the field is deleted (or moved and we don't want to autoconvert), and clients referencing the field might still exist, we can say:

`// +version:alpha=v1.5.3,deleted=v1.5.8`

The conversion machinery would enforce that any given version number is only used once (we can store the next version in a file somewhere for human convenience). This complete version should be tracked per-apiserver. (So federation-apiserver would likely have a different patch version.) 

We'd use the same idea behind @smarterclayton's #33900 to allow clients to specify which minor version of the api they're intending to use, via `Accept:` headers.

Conversion routines, validators, swagger generation etc all need to be made to accept a full api version from clients and they can use the hints on the fields to tell whether the client knows about the field or not. Swagger can report whether fields are alpha or beta.

Likewise we can use the alpha/beta distinction to give admins the ability to disallow alpha or only allow stable fields to be used. (We can construct versions like v1.5.35-stable for this purpose)
Repository: godot
Issue: Custom class instance extending Reference already freed when it receives NOTIFICATION_PREDELETE
Labels: bug,topic:core,confirmed

**Operating system or device - Godot version:**

macOS 10.11.6 - v2.1.stable.official

**Issue description** (what happened, and what was expected):

Created subclass, overrides `_notification`. When the instance should be sent `NOTIFICATION_PREDELETE` (the only notification Reference gets?)  and freed the game crashes.

Expected to receive notification.

**Steps to reproduce:**
- Create subclass of `Reference` and override `_notification`
- Create an instance. 
- Set it to null, or let go out of scope. 
- Then crash.

**Link to minimal example project** (optional but very welcome):

[godot-ref-test.zip](https://github.com/godotengine/godot/files/520762/godot-ref-test.zip)
Repository: angular
Issue: ViewEncapsulation.Emulated is not working for dynamically created components
Labels: type: bug/fix,freq1: low,area: core,state: confirmed,core: CSS encapsulation,core: dynamic view creation,P3

<!--
IF YOU DON'T FILL OUT THE FOLLOWING INFORMATION WE MIGHT CLOSE YOUR ISSUE WITHOUT INVESTIGATING
-->

**I'm submitting a ...**  (check one with "x")

```
[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
```

**Current behavior**

<!-- Describe how the bug manifests. -->

Angular 2 doesn't set `_ngcontent-*` attribute on the components created using `ViewContainerRef.createComponent()` when `ViewEncapsulation.Emulated` is used.

**Expected behavior**

<!-- Describe what the behavior would be without the bug. -->

Angular 2 sets `_ngcontent-*` attribute on the components created using `ViewContainerRef.createComponent()` when `ViewEncapsulation.Emulated` is used.

**Minimal reproduction of the problem with instructions**

<!--
If the current behavior is a bug or you can illustrate your feature request better with an example, 
please provide the *STEPS TO REPRODUCE* and if possible a *MINIMAL DEMO* of the problem via
https://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5).
-->

~See reproduction example: http://plnkr.co/edit/0HF3A2muRlAVOEonJvs7~
Updated reproduction for Angular 6: https://stackblitz.com/edit/angular-uzjtlp

If you change view encapsulation to native (in browser supporting it) `my-dynamic-comp` will become red (which is expected behaviour). But with emulated view encapsulation it stays green. It's because `_ngcontent-*` attribute is not set on the dynamically created component's host element.

**What is the motivation / use case for changing the behavior?**

<!-- Describe the motivation or the concrete use case -->

Emulated behaviour works different from native, so I assume it is a bug.

**Please tell us about your environment:**

<!-- Operating system, IDE, package manager, HTTP server, ... -->
- **Angular version:** 2.0.2
- **Browser:** all
- **Language:** TypeScript (but it may be relevant for others as well)
Repository: vscode
Issue: Horizontal scrollbar doesn’t shrink after the long line getting shortened
Labels: feature-request,editor-scrollbar

- VSCode Version: 1.6.0
- OS Version: Windows 10

Steps to Reproduce:
1. Create an empty file;
2. Type a long line until the horizontal scrollbar appears;
3. Delete that long line;
4. Observe that the horizontal scrollbar still exists.

If I resize the window, the horizontal scrollbar disappears, but If I only delete the long line, the horizontal scrollbar still exists.
Repository: angular
Issue: Add support for undefined number of items of form builder array 
Labels: feature,state: Needs Design,freq1: low,workaround2: non-obvious,area: forms,feature: under consideration

- [ ] 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 

When using form builders in a reactive form, it is impossible to create an array of objects with an undefined number of objects. Let's say I have this form:

```
this.form = this.formBuilder.group({
    persons: this.formBuilder.array([
          this.formBuilder.group({
                name: [''],
                job: ['']
          })
    ]),
})
```

If my array is:

`var personsArray= [{name:'John', job:'plumber'}, {name:'Jack', job:'engineer'}, {name:'Bob', job:'cook'}];`

I can't really patch the form like this:

`this.form.patchValue({persons: personsArray})`

because it will only batch the first item of the array. There should be a way to iterate over the form array to create these controls through the `patchValue` function...
Repository: flutter
Issue: Feature Request: List Item Animations
Labels: c: new feature,framework,f: material design,customer: crowd,c: proposal,P3,team-design,triaged-design

## Request

When adding, removing, or changing the order of items in a ScrollableList or LazyBlock, the items are simply redrawn in the correct order, but they don't animate in an elegant way.

For example, if a list item is removed, the rest of the items could "slide up" to fill in the gap left behind by the removed item.

If the order is shuffled, the list items could animate to their new position.
## Visual Examples

Video:
https://vimeo.com/183667253

A code example using the Android APIs:
https://github.com/wasabeef/recyclerview-animators
## Nice-to-haves
1. Simply hand a new list of children to a `ScrollableList` and it handles all the animation magic.
2. A set of standard list item animations (Material style animations, iOS style, etc)
3. It would be great to have an extension to define exactly how the animations should be executed. The `RecyclerViewAnimator` class from Android is an example of what I mean. I've used both stock Material transitions and had to hand-write them for the company I work for.
## Current ways to implement

More ideas welcome, but in order to make this affect happen, I was simply going to manually calculate the animations, run them, and THEN update the state of my application through `setState`. An example of this approach can be seen in the Mithril.js documentation:

http://lhorie.github.io/mithril-blog/velocity-animations-in-mithril.html

That said, it would be simpler if this could "just happen" when you pass a new set of data into the `ScrollableList` or `LazyBlock`
Repository: TypeScript
Issue: Control flow not formed when using consts
Labels: Suggestion,Committed

**TypeScript Version:**  2.0.3

**Code**

``` ts

interface Releasable {
    release(): void;
}

const typeOfNumber: string = 'number';

function release(releasable: number | Releasable): void {
    if(typeof releasable === typeOfNumber) {
         allocated.splice(allocated.indexOf(releasable), 1);
    } else {
         releasable.release();
    }
}

```

**Expected behavior:**

``` ts

interface Releasable {
    release(): void;
}

const typeOfNumber: string = 'number';

function release(releasable: number | Releasable): void {
    if(typeof releasable === typeOfNumber) {
         allocated.splice(allocated.indexOf(releasable), 1); // Ok, typeof releasable is number here
    } else {
         releasable.release(); // Ok, typeof releasable implements Releasable here
    }
}

```

**Actual behavior:** 

``` ts

interface Releasable {
    release(): void;
}

const typeOfNumber: string = 'number';

function release(releasable: number | Releasable): void {
    if(typeof releasable === typeOfNumber) {
         allocated.splice(allocated.indexOf(releasable), 1); // [ts] Argument of type 'number | Releasable' is not assignable to parameter of type 'number'. Type 'Releasable' is not assignable to type 'number'.
     } else {
         releasable.release(); // [ts] Property 'release' does not exist on type 'number | Releasable'.
     }
}

```

Currently type guards are only limited to literals. Type guards are consumed at compile time and from this taken in mind variables defined with `let` or `var` seems natural to not result in proper control flow but type guards using constants defined with `const` should result in a proper type guard. Since the compiler already knows that `const`s will not change their value ans so their value should be checked dose it evaluate to known `typeof` return value to form a proper control flow else to result in a  `[ts] error` ...
Repository: go
Issue: x/tools/cmd/fiximports: tests failing at tip
Labels: Testing,Tools

At tip, the tests for golang.org/x/tools/cmd/fiximports are failing.

It's not immediately obvious to me why. I'd never seen this tool before.

@alandonovan, can you take a look?
Repository: kubernetes
Issue: master leader election shouldn't consume O(nodes) watch bandwidth
Labels: sig/api-machinery,lifecycle/frozen,lifecycle/stale

Currently we store the leader lock for master components like the scheduler in the corresponding endpoints object. This has the undesirable side effect of sending a notification down the kube-proxy <-> master (and kube-dns <-> master) watch every second. We can probably avoid this by not overloading endnpoints as a lock api. 

Forked from https://github.com/kubernetes/kubernetes/issues/26637
@kubernetes/sig-scalability
Repository: angular
Issue: Provide more syntactic sugar for custom form components
Labels: feature,state: Needs Design,freq3: high,area: forms,feature: under consideration

This experience could use improvement.  At the least, we can probably simplify how we provide NG_VALIDATORS and NG_VALUE_ACCESSOR (perhaps through decorator support).  

Relevant issues (starting a list):
https://github.com/angular/angular/issues/9700
https://github.com/angular/angular/issues/12812
Repository: neovim
Issue: Trying to re-open a deleted terminal gives you a new terminal
Labels: ux,terminal

- `nvim --version`: NVIM v0.1.6-234-g8cc760a  
- Vim (version: ) behaves differently? n/a
- Operating system/version: n/a
- Terminal name/version: n/a
- `$TERM`: n/a
### Actual behaviour

Re-opening a deleted terminal gives you a new terminal, with a different name.
### Expected behaviour

Throw an error.
### Steps to reproduce using `nvim -u NORC`

```
nvim -u NORC
:term
<c-\><c-n>
:argadd
:bd!
:argu
:argu
:argu
```

Now we have 3 new terminal buffers, because the buffer name in the argument list contains the PID, and terminal buffers with a different PID, i.e. different name, are created.

This problem is not bounded to argument list use: `:e <deletedtermbuffername>` has the same issue.
Repository: opencv
Issue: Window freeze with cv2.destroyAllWindows() and waitKey(0)
Labels: priority: low,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)
- OpenCV => :  3.1.0
- Operating System / Platform => Ubuntu 16.04
- Compiler => n/a (Python, installation of OpenCV3 into Anaconda via menpo)
##### Detailed description

<!-- your description -->

I was trying to show some images with the code below inside Spyder using the OpenCV3 module for Python 3. I was able to close 2 of the three windows with the [x], but the third one would not close. I tried cv2.destroyAllWindows(), which lead to the message box with "window does not respond" (the image window). If I then force-shutdown the image window the Spyder-Kernel will restart and I loose all my variables.

``` .py
cv2.imshow("Image 1", im1)

cv2.imshow("Image 2", im2)

cv2.imshow("Aligned Image 2", im2_aligned)

cv2.waitKey(0)
```

Thanks!
Repository: opencv
Issue: Mouse callback gets wrong coordinates with small images
Labels: bug,category: highgui-gui,platform: ios/osx

##### System information (version)

<!-- Example
- OpenCV => 3.1.0 (installed with brew install opencv3)
- Operating System / Platform => Mac OSX El Capitan 10.11.6
- Compiler => Visual Studio 2015
-->
- OpenCV => 3.1.0 (installed with brew install opencv3)
- Operating System / Platform => Mac OSX El Capitan 10.11.6
- Compiler => Apple LLVM version 8.0.0 (clang-800.0.38)
##### Detailed description

I load an image with imread() and display it with imshow(). On the window I set a mouse callback that gives out the coordinates when the image is clicked with the left mouse button.
But when the image is too small (for example 100x100px) there is a gray "filling" area in the window where the image is displayed. The problem is, that this results in wrong coordinates when the image is clicked:
-The window seems to be 200x100px with 100x100px of the real image and 100x100px of gray filling area
-When I click on the right bottom of the image I get the coordinates (49,99) and when I click on the right bottom of the whole window I get the coordinates (99,99)

My teacher compiled the same program on Linux and the image is displayed correctly in a window of 100x100px and correct coordinates in the mouse callback.
##### Steps to reproduce

I attached a zip file which contains:
-source code
-input image with 100x100px which leads to the error (color_test.jpg)
-input image with 300x300px which works correctly
-screenshot of how the 100x100px image is displayed with the gray filling area (output.jpg)

[onmouse_bug.zip](https://github.com/opencv/opencv/files/527658/onmouse_bug.zip)