sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: youtube-dl
Issue: Access to info_dict before/after download/post-processing when embedding
Labels: request

- [X] I've **verified** and **I assure** that I'm running youtube-dl **2016.10.21.1**
### 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)
- [ ] Feature request (request for a new functionality)
- [X] Question
- [ ] Other

I'm trying to get the exact filename that'll be written(merged) by youtube-dl. It's the same filename sent to debug when setting **forcefilename** to true on the options.

I want to access this:
https://github.com/rg3/youtube-dl/blob/master/youtube_dl/YoutubeDL.py#L1531

With youtube_dl.prepare_filename(result) I can get the merged filename without extension.. how do I get the extension?
Repository: TypeScript
Issue: Unoptimized destructuring compilation
Labels: Suggestion,Help Wanted

**TypeScript Version:**  2.0

**Code**

``` ts
// source ts code
let i = 1000;
while (i--) {
  let [a, b, c] = [1, 2, 3];
}
```

**Expected behavior:**

``` js
// compiled by babel
var i = 1000;
while (i--) {
  var a = 1;
  var b = 2;
  var c = 3;
}
```

**Actual behavior:** 

``` js
// compiled by tsc
var i = 1000;
while (i--) {
    var _a = [1, 2, 3], a = _a[0], b = _a[1], c = _a[2];
}

```

On each iteration tsc creates new unnecessary array _a.
Repository: TypeScript
Issue: Service Worker typings
Labels: Suggestion,Help Wanted,Domain: lib.d.ts

<!-- BUGS: Please use this template. -->

<!-- QUESTIONS: This is not a general support forum! Ask Qs at http://stackoverflow.com/questions/tagged/typescript -->

<!-- SUGGESTIONS: See https://github.com/Microsoft/TypeScript-wiki/blob/master/Writing-Good-Design-Proposals.md -->

**TypeScript Version:**  2.0.3

Types for Service Workers should be built into the default definitions for TypeScript. [There are some good examples](https://www.npmjs.com/package/@types/service_worker_api) out there of Service Worker typings from the community.
Repository: TypeScript
Issue: Go to implementation misses some implementations
Labels: Bug

From tests/cases/fourslash/goToImplementationInterfaceMethod_01.ts

``` ts
interface BaseFoo {
  hello(): void;
}
interface Foo extends BaseFoo {
  foo(): void;
}
interface Bar {
  hello(): void;
  bar(): void;
}
class FooImpl implements Foo {
  hello() { }
  foo() { }
}
class FooBaseImpl implements FooBase {
  hello() { } // missing this one!
}
class BarImpl implements Bar {
  hello() { }
  bar() { }
}
class FooBarImpl implements Foo, Bar {
  hello() { }
  foo() { }
  bar() { }
}
let foorbar: Foo | Bar;
foorbar.hello/*1*/();
let foonbar: Foo & Bar;
foonbar.hello/*2*/();
```

Find all implementations on both 1 and 2 should find the hello method in all classes. But `FooBaseImpl.hello` doesn't show up. The test incorrectly says that it should not, but it should.
Repository: youtube-dl
Issue: Use /tmp directory for frag and .vtt files
Labels: request

I sometimes see leftover `--Frag17` and `-.ru.vtt` files in my home directory. I assume it's from me interrupting youtube-dl during a download.

Can you use the /tmp (`TMPDIR`) instead for those files?
Repository: You-Dont-Know-JS
Issue: Types & Grammer - Chapter 2 - Small Decimal Values
Labels: for second edition

Probably just me, but I feel like this line in the Small Decimal Values section is worded a little odd? 

`As of ES6, Number.EPSILON is predefined with this tolerance value, so you'd want to use it, but you can safely polyfill the definition for pre-ES6:`
Repository: kubernetes
Issue: Reasonable defaults with eviction and PodDisruptionBudget
Labels: area/stateful-apps,sig/apps,area/node-lifecycle,lifecycle/frozen

We are moving to have kubectl drain use the eviction subresource (https://github.com/kubernetes/kubernetes/issues/34277), and honor `PodDisruptionBudget`.
From [comment by @erictune](https://github.com/kubernetes/kubernetes/issues/35318#issuecomment-255501443) which better captures this requirement.

There should be a default behavior for disruption budgets.
The default should optimize for these things:

1. Users should not need to create, view, or even know about with the PodDisruptionBudget resource, and still get "reasonable" default behaviors.
2. The default behavior should be reasonable for a wide variety of app use cases.
3. The default behavior could be expressed succinctly to users.
4. Cluster admins should be able to upgrade nodes quickly in clusters that have typical apps with default budgets, without interacting with app owners.

Some options:

1. All pods in the cluster that match no user-created disruption budget have a budget of 1 at a time.
  - could be too conservative to allow for parallel node drains.
2. All pods in a namespace cluster that match no user-created disruption budget have a budget of 1 at a time.
  - less conservative than 1
  - probably not too conservative for systems with many namespaces relative to number of nodes.
3. Each set of pods with the same controller and that match no user-created disruption budget,  have a disruption budget of 1 at a time.
  - assuming spreading of collections by scheduler, parallel node drains likely to be possible
  - the disruption controller already computes this grouping of pods, sort of.
4. Each set of pods with the same service, that match no user-created disruption budget, have a disruption budget of 1 at a time.
  - matches a default spreading behavior by the scheduler, so unlikely to have two on the same machine from same service, so parallel node drains likely to be possible.

The actual implementation could be to have a controller that makes PDBs for things without them and then cleans them up when not needed anymore, or for the eviction logic to just compute these sets, but not expose them.


cc @erictune @davidopp @kow3ns @janetkuo @caesarxuchao @ymqytw @kubernetes/sig-apps
Repository: angular
Issue: ng-content component in router-outlet
Labels: type: bug/fix,freq1: low,area: router,area: core,state: confirmed,core: content projection,P3

<!--
IF YOU DON'T FILL OUT THE FOLLOWING INFORMATION WE MIGHT CLOSE YOUR ISSUE WITHOUT INVESTIGATING
-->

```
[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. -->

I have a router-outlet inside a component like this

```
<app-leftnavbar>
  <router-outlet></router-outlet>
</app-leftnavbar>
```

What I want to do is use `<ng-content select=".something">` inside app-leftnavbar in order to split the html of the loaded component into the router in two things, but no matter how I try, ng-content select doesnt work inside. But if I leave it without selectors it displays the content properly (the whole component (not-split of course)). Even if its a normal component and not a router-outlet its the same problem

**Expected behavior**

<!-- Describe what the behavior would be without the bug. -->

I should be able to use <ng-content select=""> since the loaded component into the router-outlet will be transformed to html.. and since normal <ng-content> (without select) works, I expect to be able to select as well.

**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).
-->

Create an angular component inside of another component and try to use `<ng-content select=".something">` in on the parent

```
<parent>
   <child></child>
</parent>
```

and inside parent use

```
<ng-content select=".something"></ng-content>
```

and

```
<ng-content select=".somethingelse"></ng-content>
```

and nothing will be shown. (Of course I have defined elements with the appropriate classes in `child`),

If used without selecting (just `<ng-content></ng-content>` the component will be shown normally

**Please tell us about your environment:**

<!-- Operating system, IDE, package manager, HTTP server, ... -->
- **Angular version:** 2.0.0
Repository: go
Issue: cmd/vet: move asm checks into cmd/asm
Labels: Analysis

Currently cmd/vet does not expand preprocessor macros in assembly code. As a result, it missed several issues in the runtime (a73d68e) and x/crypto (golang/crypto@5953a47, golang/crypto@e67f5ec, golang/crypto@3c0d69f). It would be nice if it could preprocess the assembly code before vetting it.
Repository: kubernetes
Issue: Add discriminators to all unions/oneof in the API
Labels: priority/important-soon,area/api,sig/api-machinery,sig/apps,priority/important-longterm,sig/architecture,lifecycle/frozen

Forked from #6979.

We have a number of cases in the API where only one of a set of fields is allowed to be specified -- an undiscriminated union / oneof. `VolumeSource` is the canonical example: `emptyDir` or `gcePersistentDisk` or `awsElasticBlockStore` or ...

Currently we require that exactly one be set, but don't explicitly represent which one we expect to be set.

Adding discriminators to all unions/oneof cases would have multiple advantages:
1. clients could effectively implement a switch instead of if-else trees to inspect the resource -- look at discriminator and lookup the corresponding field in a map (though differences in capitalization of the first letter in the API convention currently prevents the discriminator value from exactly matching the field name).
2. The apiserver could automatically clear non-selected fields, which would be convenient for kubectl apply #15894 and other cases.

For backward compatibility, any request that succeeds today needs to work even after we implemented (2). That would mean that newly added discriminators would have to be optional. 

If the discriminator were set, we'd require that the field corresponding to its value were set and the apiserver (registry) could automatically unset the other fields. 

If the discriminator were unset, behavior would be as before -- exactly one of the fields in the union/oneof would be required to be set and the operation would otherwise fail validation.

The main question: should the discriminator be set by default?

If it weren't set by default, then it couldn't be relied upon for purpose (1), and if-else trees would still be required forever (for the current apiversions). OTOH, if it were set by default, we'd need to change it accordingly when the corresponding union/oneof fields were set and unset. This would be different than all other defaulting in the API and contradicts the letter of an existing convention, though not the spirit. We don't change populated fields in the apiserver, because we don't want to change the user's expressed intent. However, in this case the intent would be inferred from the union/oneof fields instead of the discriminator field. 

The client would otherwise receive an error. We could potentially do stronger consistency validation in some cases. For instance, during creation, we could require the discriminator matched the union/oneof fields if specified. On updates, we potentially could check whether the discriminator changed from its prior value and require consistency if it did, since inconsistency would suggest a mistake or a conflict, though it would force the client's retry logic to reason about whether a validation error could be due to a conflict.

cc @pwittrock
Repository: youtube-dl
Issue: Slide.ly Feature Request
Labels: site-support-request

- [x] I've **verified** and **I assure** that I'm running youtube-dl **2016.10.21.1**
- [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] Feature request (request for a new functionality)
### Hi, yea, I wanted to request a feature that we can download from [Slide.ly](http://slide.ly) videos. Not in a hurry. But is it possible? We can publicly share videos thru anywhere but unable to download. Thanks you.
Repository: youtube-dl
Issue: Vimeo will download only 1st episode
Labels: account-needed

asd
Repository: java-design-patterns
Issue: Component Object pattern
Labels: epic: pattern,type: feature

**Description:**
The Component Object pattern aims to encapsulate individual parts of a system into reusable components that can be dynamically composed. This pattern enhances modularity, reduces coupling, and promotes reusability of code. Each component represents a distinct piece of functionality and can be combined with other components to form complex behaviors without tightly binding them together.

Main elements of the Component Object pattern include:
- **Component Interface**: Defines the behavior and properties that all components must implement.
- **Concrete Component**: Implements the component interface with specific functionality.
- **Component Container**: Manages the lifecycle and interactions of components, allowing dynamic composition.
- **Component Factory**: Responsible for creating component instances and assembling them as needed.

**References:**
- [Component Object Pattern Example](https://lkrnac.net/blog/2016/10/component-object-pattern-example/)
- [Project Contribution Guidelines](https://github.com/iluwatar/java-design-patterns/wiki)

**Acceptance Criteria:**
1. Implement a basic component interface that defines common behaviors.
2. Create at least two concrete components implementing the component interface with distinct functionalities.
3. Develop a component container that supports the dynamic composition and management of these components.
Repository: java-design-patterns
Issue: State-Action-Model pattern
Labels: epic: pattern,type: feature

**Description:**
The State-Action-Model (SAM) pattern is a modern approach to state management in JavaScript applications. Unlike traditional MVC frameworks, SAM separates the state, actions, and model, providing a clear and manageable structure for application logic. This pattern enhances testability and maintainability by isolating state transitions and business logic from the view.

**Main Elements of the SAM Pattern:**

1. **State:** Represents the application's state and is managed separately from the business logic and UI. The state is immutable, meaning any change results in a new state rather than modifying the existing state.
2. **Actions:** Encapsulate the business logic and are responsible for transitioning the state. Actions receive the current state and an event, process them, and return the new state.
3. **Model:** The model serves as an intermediary that controls the interaction between the state and actions. It ensures that actions are executed correctly and that state transitions are valid.

**References:**
1. [SAM.js Official Documentation](https://sam.js.org/)
2. [InfoQ Article on SAM Pattern](https://www.infoq.com/articles/no-more-mvc-frameworks/)
3. [Project Contribution Guidelines](https://github.com/iluwatar/java-design-patterns/wiki)

**Acceptance Criteria:**

1. Implement a basic example of the SAM pattern in the project, demonstrating the separation of state, actions, and model.
2. Ensure that the implementation is well-documented, with clear comments and explanations for each component of the pattern.
3. Provide unit tests for the state transitions and actions to validate the correctness of the implementation.
Repository: neovim
Issue: RPC/API: Use Cap'n Proto instead of MessagePack
Labels: enhancement,api,channels-rpc

For the last 2 years as I follow the development of NeoVim, every single time I open the main NeoVim GitHub page and see _MessagePack_, I ask myself why didn't I already proposed [Cap'n Proto](https://capnproto.org/) as a better alternative.

Long story short, [Cap'n Proto](https://capnproto.org/) is basically the fastest possible binary serialization format. It's also quite easy to implement in [any language](https://capnproto.org/otherlang.html).

I think it's worth switching to it as it will make NeoVim frontends faster and with lower latency (imagine interpreted languages like JavaScript working with MessagePack) and allow for higher efficiency in CPU utilization for larger buffer changes.
Repository: youtube-dl
Issue: please support camwhores.tv
Labels: site-support-request,nsfw

example vids http://www.camwhores.tv/tags/kelseysbedroom/

```
$ youtube-dl -v 'http://www.camwhores.tv/videos/28542/kelseysbedroom-webcam-show-2015-november-24-21-11/'
[debug] System config: [u'--prefer-ffmpeg', u'--hls-prefer-native', u'-n']
[debug] User config: []
[debug] Command-line args: [u'-v', u'http://www.camwhores.tv/videos/28542/kelseysbedroom-webcam-show-2015-november-24-21-11/']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.10.21.1
[debug] Python version 2.7.10 - Darwin-16.0.0-x86_64-i386-64bit
[debug] exe versions: avconv 11.4, avprobe 11.4, ffmpeg 3.1.4, ffprobe 3.1.4
[debug] Proxy map: {'http': 'http://localhost:8118', 'https': 'http://localhost:8118'}
[generic] kelseysbedroom-webcam-show-2015-november-24-21-11: Requesting header
WARNING: Falling back on generic information extractor.
[generic] kelseysbedroom-webcam-show-2015-november-24-21-11: Downloading webpage
[generic] kelseysbedroom-webcam-show-2015-november-24-21-11: Extracting information
ERROR: Unsupported URL: http://www.camwhores.tv/videos/28542/kelseysbedroom-webcam-show-2015-november-24-21-11/
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 1648, in _real_extract
    doc = compat_etree_fromstring(webpage.encode('utf-8'))
  File "/usr/local/bin/youtube-dl/youtube_dl/compat.py", line 2525, in compat_etree_fromstring
    doc = _XML(text, parser=etree.XMLParser(target=_TreeBuilder(element_factory=_element_factory)))
  File "/usr/local/bin/youtube-dl/youtube_dl/compat.py", line 2514, in _XML
    parser.feed(text)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1642, in feed
    self._raiseerror(v)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
    raise err
ParseError: mismatched tag: line 23, column 3
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 694, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 356, in extract
    return self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 2431, in _real_extract
    raise UnsupportedError(url)
UnsupportedError: Unsupported URL: http://www.camwhores.tv/videos/28542/kelseysbedroom-webcam-show-2015-november-24-21-11/
```

thanks for your awesome job
Repository: nvm
Issue: ls-remote and install many times to run
Labels: installing node,needs followup

I used the latest version of nvm. 

When `nvm ls-remote`, i must run 4 times this command then get 3 times result 'N/A' and a result valid.
Similar for `nvm install <version>` (4times-3f-1ok), but take too-long time to finish.

Pls check this and resolve. Thank you!
Repository: opencv
Issue: remap bug when original image is larger than 32767 in size
Labels: feature,category: imgproc,priority: low,RFC

##### System information (version)

<!-- Example
- OpenCV => 3.1
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2015
-->
- OpenCV => 3.1:
- Operating System / Platform => Windows 64 Bit:
- Compiler => Visual Studio 2013:
##### Detailed description

<!-- your description -->

When trying to do remap with a quite large image, whose size is larger than 32767 (max size of int16), remap function will not act normally. This is because that in implementation, remap uses int16 as the coordinate data, as `Mat _bufxy(brows0, bcols0, CV_16SC2), _bufa;`.  So when using it, the rows larger than 32767 will be clamped to 32767 and generate the following striped results.

PS: I have tried the ipp remap function and it will work well.

![image](https://cloud.githubusercontent.com/assets/3850191/19643270/13eda790-9a1c-11e6-98c9-39680c5c39b9.png)
##### Steps to reproduce

<!-- to add code example fence it with triple backticks and optional file extension
    ```.cpp
    // C++ code example
    ```
 or attach as .txt or .zip file
-->

The following code should produce some black part on the bottom, however because of this bug, the result is all white.

```
#include <opencv2/core.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui.hpp>

#include <stdint.h>
int main(int argc, char **argv) {
    // rows should be larger than max of int16
    int rows = 40000, cols = 1000;
    cv::Mat img = cv::Mat::zeros(rows, cols, CV_8U);

    uint8_t *idata = (uint8_t *)img.data;
    cv::Mat mapxy = cv::Mat::zeros(rows, cols, CV_32FC2);
    cv::Vec2f *mapdata = (cv::Vec2f *)mapxy.data;
    for (int r = 0; r < rows; ++r) {
        // ensure larger than 32767
        uint8_t value = r > 38000 ? 0 : 255;
        for (int c = 0; c < cols; ++c) {
            *idata++ = value;
            (*mapdata)(0) = c;
            (*mapdata)(1) = r;
             mapdata++;
        }
    }
    cv::Mat result;
    cv::remap(img, result, mapxy, cv::noArray(), cv::INTER_LINEAR,
              cv::BORDER_CONSTANT);

    cv::imwrite("result.tif", result);

    return 0;
}
```
Repository: flutter
Issue: Would be nice if `flutter run` only downloaded the necessary artifacts
Labels: c: new feature,tool,P2,team-tool,triaged-tool

I was on a train with bad wifi.  It was painful.

I was trying to run the gallery on an iOS Simulator.

```
%flutter run
Building flutter tool...
Downloading package sky_engine...                    8101ms
Running 'pub get' in sky_engine...                   450ms
Downloading package sky_services...                  596ms
Running 'pub get' in sky_services...                 3139ms
Downloading package flutter_services...              1929ms
Running 'pub get' in flutter_services...             2294ms
Building Dart SDK summary...                         1753ms
Downloading engine artifacts android-arm...          177027ms
Downloading engine artifacts android-arm-profile...  164117ms
Downloading engine artifacts android-arm-release...  115925ms
Downloading engine artifacts android-x64...          78964ms
Downloading engine artifacts android-x86...          78600ms
Downloading engine artifacts ios...                  178979ms
Downloading engine artifacts ios-profile...          189778ms
Downloading engine artifacts ios-release...          152586ms
Downloading darwin-x64 tools...                      232022ms
Downloading android-arm-profile/darwin-x64 tools...  34656ms
Downloading android-arm-release/darwin-x64 tools...  139862ms
Running 'pub get' in flutter_gallery...              870ms
```

FYI @danrubel