sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: TypeScript
Issue: Document how (lazy) type checking works
Labels: Docs

Before the whole compiler and its API is documented, could you add a few details about the type checker:
* What normally forces the type checking and inference of a name?
* How TSC forces all types to be checked?
* What are the options for an application using the compiler API to control/force type checking?

Potentially relevant wiki pages for this information:
* https://github.com/microsoft/TypeScript/wiki/Architectural-Overview
* https://github.com/microsoft/TypeScript/wiki/Using-the-Compiler-API
* https://github.com/microsoft/TypeScript/wiki/Compiler-Internals

## Search Terms

documentation, type check, laziness, architecture, compiler API
Repository: rust
Issue: rustdoc should add repository links automatically
Labels: T-rustdoc,C-feature-request

It's handy to jump from docs to a repo, e.g. to explore/open issues, find examples, etc.

As an example of what this might look like, see [anyhow](https://docs.rs/anyhow/1.0.31/anyhow/).
![image](https://user-images.githubusercontent.com/2148248/82697336-94a44680-9c1d-11ea-9e9e-585c8ac37043.png)

Can the repository field be extracted from `Cargo.toml` easily enough so this wouldn't require any user changes to enable?
Repository: pytorch
Issue: [FR] DataParallel arg rename device_ids->devices
Labels: triaged,enhancement,module: data parallel

## 🚀 Feature
It already accepts a list of devices. So this would make the argument consistent with the rest of the codebase. We can keep both / do a deprecation cycle / just put a warning for device_ids permanently for BC reasons.
Repository: rust
Issue: Lifetime issues: assigning to a mutable reference with part of its current value
Labels: A-lifetimes,T-compiler,C-bug

**Edit: simplified reproducer as well as workaround available at https://github.com/rust-lang/rust/issues/72477#issuecomment-632890675**

Hello,

While trying to implement an AsyncRead wrapper, I have hit something that I think is the borrow-checker being too restrictive with `&mut` inside `Pin`.

I originally thought it was an issue in `pin-project`, but @taiki-e pointed out that the issue also happens with raw `Pin`, in https://github.com/taiki-e/pin-project/issues/226#issuecomment-632832485 (thank you!)

Copying the example here (with an explicit lifetime):
```rust
pub struct Foo<'a> {
    buf: &'a mut [u8],
}

impl<'a> Foo<'a> {
    fn foo<'b>(self: std::pin::Pin<&'b mut Self>) {
        self.buf = &mut self.buf[1..];
    }
}
```
[(playground)](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=5c53998d9b9bbc8795127f8b197af74b)

This is potentially related to https://github.com/rust-lang/rust/issues/54934 ; but seeing as it manifests in a completely different way (ie. it doesn't manifest with just `&` references in the original example with pin-project linked above, though the example code here is incorrect indeed), I thought it'd be better to open another issue, as at worst it'd be fixed at the same time as https://github.com/rust-lang/rust/issues/54934 and would just add another test.

As usual, thank you for all you do on this great language!
Repository: youtube-dl
Issue: Is there a way to download only Youtube videos that have english subtitles?
Labels: question

<!--

######################################################################
  WARNING!
  IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################

-->


## Checklist

<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl:
- Look through the README (http://yt-dl.org/readme) and FAQ (http://yt-dl.org/faq) for similar questions
- Search the bugtracker for similar questions: http://yt-dl.org/search-issues
- Finally, put x into all relevant boxes (like this [x])
-->

- [x] I'm asking a question
- [x] I've looked through the README and FAQ for similar questions
- [x] I've searched the bugtracker for similar questions including closed ones


## Question

<!--
Ask your question in an arbitrary form. Please make sure it's worded well enough to be understood, see https://github.com/ytdl-org/youtube-dl#is-the-description-of-the-issue-itself-sufficient.
-->

I am watching a Korean Youtuber who is native Korean. His videos are all in his native tongue, but he occasionally updates some videos with some English subtitles. Is there a way to **ONLY** download videos where they have ENG subtitles? And if I rerun the script at a later date, is there also a way for youtube-dl to update my folder to include any new videos that has English subtitles uploaded?

Here is an example channel:
https://www.youtube.com/channel/UC0VR2v4TZeGcOrZHnmwbU_Q/videos

Here is an example video that has ENG subtitles:
https://www.youtube.com/watch?v=EQCE6KfZgtg
Repository: godot
Issue: Label with bottom alignment draws outside of its boundaries with the editor theme
Labels: bug,topic:gui

Godot 3.2.1

I am making an editor plugin in which I designed a custom list of items. Each item has a label inside, and to handle the case of varying font sizes easily, I decided to simply make the label cover the item and use `bottom` alignment. This works great when designed in the scene editor:

![image](https://user-images.githubusercontent.com/1311555/82705635-ee356100-9c6f-11ea-8dbf-7d448ddb7d28.png)

So I expected that since the editor's font can be different (also due to DPI changes), it would reposition naturally without having to fiddle with margins or containers... nope, it even overlaps outside its boundaries :(

![image](https://user-images.githubusercontent.com/1311555/82705691-0e652000-9c70-11ea-9311-a64a0f0c9490.png)

The result in my plugin:
![image](https://user-images.githubusercontent.com/1311555/82706078-cbf01300-9c70-11ea-94e6-a4e5ea39f548.png)

This is very inconvenient because otherwise, I have to fiddle with margins, which means I have to manually adjust things if the font is different, because larger fonts push the label downwards, never upwards, and the scene editor uses a different font so the feedback doesn't line up (normally it should not matter precisely because of these UI rules we can apply, sadly they fail here). DPI scaling also has to be dealt with.
I also tried with a `VBoxContainer`, got the same result. The label clearly got outside of its container.
I wish this simplest setup just worked correctly by taking line height and ascent properly into account?

Test project with plugin inside:
[LabelAlignmentEditor.zip](https://github.com/godotengine/godot/files/4670175/LabelAlignmentEditor.zip)
Repository: pytorch
Issue: [FR] Support SyncBatchNorm in DataParallel
Labels: triaged,enhancement,module: nccl,module: data parallel

## 🚀 Feature
Since all kernels are there, we only need to replace the distributed primitives with NCCL / `copy_` based ones, and a couple `threading.Barrier.wait` calls to synchronize. I implemented the NCCL version in this gist and it seems to work well for me https://gist.github.com/SsnL/386ac93eab9ebbaf12eeef2060da3c4e.
Repository: PowerToys
Issue: [Image Resizer] Allow to select multiple presets when resizing
Labels: Idea-Enhancement,Product-Image Resizer

Having some default presets of image sizes already, it would be great to have checkboxes instead of radio buttons, so user can resize each image to several specific files at once.

Side note:
- it should probably only create copies of an image.
Repository: youtube-dl
Issue: Request for support for learnenglish.britishcouncil.org
Labels: site-support-request

<!--

######################################################################
  WARNING!
  IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################

-->


## Checklist

<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl:
- First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2020.05.08. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Make sure that all provided video/audio/playlist URLs (if any) are alive and playable in a browser.
- Make sure that site you are requesting is not dedicated to copyright infringement, see https://yt-dl.org/copyright-infringement. youtube-dl does not support such sites. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
- Search the bugtracker for similar site support requests: http://yt-dl.org/search-issues. DO NOT post duplicates.
- Finally, put x into all relevant boxes (like this [x])
-->

- [X] I'm reporting a new site support request
- [X] I've verified that I'm running youtube-dl version **2020.05.08**
- [X] I've checked that all provided URLs are alive and playable in a browser
- [X] I've checked that none of provided URLs violate any copyrights
- [X] I've searched the bugtracker for similar site support requests including closed ones


## Example URLs

<!--
Provide all kinds of example URLs support for which should be included. Replace following example URLs by yours.
-->

- Single video: https://learnenglish.britishcouncil.org/episode-01-they-meet
- Single video: https://learnenglish.britishcouncil.org/episode-02-toms-party
## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

WRITE DESCRIPTION HERE
Repository: go
Issue: go/printer: CommentedNode behavior is partially undocumented
Labels: Documentation,NeedsInvestigation

### What did you do?

I read the documentation of package `go/printer` in order to understand how to use `printer.CommentedNode`.

`CommentedNode` is currently defined as:

```Go
// A CommentedNode bundles an AST node and corresponding comments.
// It may be provided as argument to any of the Fprint functions.
//
type CommentedNode struct {
	Node     interface{} // *ast.File, or ast.Expr, ast.Decl, ast.Spec, or ast.Stmt
	Comments []*ast.CommentGroup
}
```

It is also mentioned in the documentation of the `Config.Fprint` method:

```Go
// Fprint "pretty-prints" an AST node to output for a given configuration cfg.
// Position information is interpreted relative to the file set fset.
// The node type must be *ast.File, *CommentedNode, []ast.Decl, []ast.Stmt,
// or assignment-compatible to ast.Expr, ast.Decl, ast.Spec, or ast.Stmt.
//
func (cfg *Config) Fprint(output io.Writer, fset *token.FileSet, node interface{}) error
```

As well as the `format.Node` function, but there isn't additional information there.

### What did you expect to see?

Documentation that would allow me to learn an answer to the question of "what happens to comments that are already a part of the `Node` being wrapped in a `printer.CommentedNode`?" without having to also read the source code.

### What did you see instead?

Insufficient documentation to know what the intended behavior is.

/cc @griesemer @josharian
Repository: terminal
Issue: Prevent flickering due to scrolling when terminal is resized and cursor is off-screen
Labels: Issue-Question,Product-Meta,Needs-Tag-Fix

I've opened an issue about this before, but I still don't understand how to solve this problem (if it's solvable at all). It seems to me that, if a resize happens and the cursor gets pushed off-screen, then that will always trigger a scroll, which the application can detect and scroll the viewport back up and redraw the screen. The problem is this will introduce flickering as the application states before and after the resize will be separated by a third intermediary state in which the viewport was scrolled down. So far I see no way to have smooth, non-layout-breaking resizing if resizing can cause the viewport to scroll. So I have a couple questions:

1. Is there a way to prevent this flickering from happening?
2. If it is impossible to prevent auto scrolling when cursor is pushed off-screen, would always having the cursor at the next to last line and maybe polling frequently enough mitigate this issue?
3. Couldn't an application just opt-out of this behavior. Maybe there could be a console mode that you could set to always have the cursor within the screen if the window is resized that would work only when an application switches to the alternate screen buffer.
Repository: go
Issue: x/tools/go/analysis/passes/asmdecl: false error report for 16 byte move
Labels: NeedsInvestigation,Tools,Analysis

The following assembly

```s
#include "textflag.h"

// func Shuffle(mask []byte, data []byte) [4]uint32
// Requires: SSE2, SSSE3
TEXT ·Shuffle(SB), NOSPLIT, $0-64
	MOVQ   mask_base+0(FP), AX
	MOVQ   data_base+24(FP), CX
	MOVOU  (CX), X0
	PSHUFB (AX), X0
	MOVOU  X0, ret+48(FP)
	RET
```

produces the following error report from `asmdecl`:

```
[amd64] Shuffle: invalid MOVOU of ret+48(FP); [4]uint32 is 16-byte value
```

Since [`MOVOU` is a 128-bit move](https://x86.puri.sm/html/file_module_x86_id_184.html), this is a false positive.

The error is produced here: https://github.com/golang/tools/blob/73554e0f78058c37e5421bc48273a72400172221/go/analysis/passes/asmdecl/asmdecl.go#L781

Inspecting this code, it's clear that the move size detection does not handle sizes of 16 bytes and up.
Repository: PowerToys
Issue: New Folder with Selection
Labels: Help Wanted,Idea-New PowerToy,Status-In progress

# Summary of the new feature/enhancement
Provide a means to select files then put them into a new folder created at the time the operation is executed.

# Proposed technical implementation details (optional)
Essentially this is a Windows Explorer implementation of the similarly named function in (Apple's) macOS Finder.  Effectively this is a reverse sequence of events from what is required in Windows Explorer currently. 

Select files in Explorer.  Right click and select from a context menu, or click a button on the toolbar to launch the operation.  A new folder is created within the current folder one is in/viewing in Windows Explorer.  Once the folder is named, the selected files are moved into that folder.


**@crutkas edit**
FROM #6405 by @zeealeid
## "Hopper" — Easier way to create new folders from files located two or more locations.

Here's an idea for (potentially) a new PowerToy:
**Introducing Hopper:**

Imagine if you want to create a new folder containing files from two different locations. The process would take some time right? 

But with Hopper, just hit a keystroke, select the files and drop them in the Hopper. Select the files from the second directory and drop them in the Hopper too. 

![User Dragging and Dropping a File from a directory to Hopper](https://user-images.githubusercontent.com/54409865/92309568-2151f500-efc0-11ea-9bfb-9165163bc0b1.jpg)

![User Dragging and Dropping a File from another directory](https://user-images.githubusercontent.com/54409865/92309602-64ac6380-efc0-11ea-8e68-a66bd27c622e.jpg)

Then hopper would ask you a few questions about the name of the folder and it would ask, would the files be copied from the locations or be moved from the locations.

![Hopper Asking Questions](https://user-images.githubusercontent.com/54409865/92309608-6d9d3500-efc0-11ea-8cb8-92ef4954d41e.jpg)

![Oh hello, new folder!](https://user-images.githubusercontent.com/54409865/92309609-742bac80-efc0-11ea-91a7-8975ccc4d0bf.jpg)

 And voila! Here's your new folder!
Repository: godot
Issue: Image.FORMAT_R8 uses Alpha in GLES2 instead of Red channel, this is not reflected in docs
Labels: bug,discussion,topic:core,good first issue,documentation

**Godot version:** v3.2.1.stable.official, though relevant code appears to be the same in master

**OS/device including version:** 

**Issue description:** Using `Image.FORMAT_R8` in GLES3 correctly produces `ImageTexture`s that have your given data in the *Red* channel. In GLES2, the data is not in the *Red* channel but the *Alpha* channel, breaking compatibility between the two backends and also breaking expectations.
The documentation does not specify this behavior which can cause confusion.
Relevant GLES3 code: https://github.com/godotengine/godot/blob/00949f0c5fcc6a4f8382a4a97d5591fd9ec380f8/servers/rendering/rasterizer_rd/rasterizer_storage_rd.cpp#L56-L61
Relevant GLES2 code: https://github.com/godotengine/godot/blob/00949f0c5fcc6a4f8382a4a97d5591fd9ec380f8/drivers/gles2/rasterizer_storage_gles2.cpp#L156-L158
Relevant documentation: https://github.com/godotengine/godot/blob/master/doc/classes/Image.xml#L506-L507

**Steps to reproduce:** Create an `Image` with format `Image.FORMAT_R8`, add data to it either by drawing pixels or supplying it with an existing `PoolByteArray`, create an `ImageTexture` from that `Image` and draw it.

**Minimal reproduction project:**
Make a scene based off a Control, add a TextureRect as a child with the following script:
```
extends TextureRect

func _ready() -> void:
	rect_scale = Vector2(100, 100)
	var image = Image.new()
	image.create_from_data(3, 3, false, Image.FORMAT_R8, PoolByteArray([0, 20, 40, 60, 80, 100, 128, 180, 255]))
	var image_texture = ImageTexture.new()
	image_texture.create_from_image(image, 0)
	texture = image_texture
```

**Proposed fixes:**

1. Least disruptive to existing projects - add a note to the documentation specifying that `Image.FORMAT_R8` will store data in the Alpha channel in GLES2.
2. Make the GLES2 backend use `GL_LUMINANCE` instead of `GL_APLHA` for the format and internal format. The OpenGL ES2.0 reference card states that the red channel is used to access the data in this format, which will ensure compatibility with godot shaders written for the GLES3 backend, and not break expectations for users who aren't already working around the current behavior. It won't draw the same pure-red gradient that the GLES3 backend might, but it will give more expected behavior for shader code.
https://www.khronos.org/opengles/sdk/docs/reference_cards/OpenGL-ES-2_0-Reference-card.pdf
![](https://i.imgur.com/a2hIQpa.png)
Repository: youtube-dl
Issue: Parentheses for meta fields in format selection syntax
Labels: request

<!--

######################################################################
  WARNING!
  IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################

-->


## Checklist

<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl:
- First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2020.05.08. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Search the bugtracker for similar feature requests: http://yt-dl.org/search-issues. DO NOT post duplicates.
- Finally, put x into all relevant boxes (like this [x])
-->

- [x] I'm reporting a feature request
- [x] I've verified that I'm running youtube-dl version **2020.05.08**
- [x] I've searched the bugtracker for similar feature requests including closed ones


## Description

<!--
Provide an explanation of your issue in an arbitrary form. Please make sure the description is worded well enough to be understood, see https://github.com/ytdl-org/youtube-dl#is-the-description-of-the-issue-itself-sufficient. Provide any additional information, suggested solution and as much context and examples as possible.
-->

Currently, format selection allows doing things like `(bestvideo+bestaudio/best)[protocol^=http]` which is a handy shortcut for `bestvideo+bestaudio[protocol^=http]/best[protocol^=http]`

Unfortunately, this is currently only allowed for formats and not meta field filters.

Below is an example of how this would work:
`bestvideo[height>=1080][height<1440][fps>30]([vcodec^=av01]/[vcodec=vp9.2]/[vcodec^=vp9])+bestaudio/best`
would be equivalent to
`(bestvideo[vcodec^=av01][height>=1080][height<1440][fps>30]/bestvideo[vcodec=vp9.2][height>=1080][height<1440][fps>30]/bestvideo[vcodec^=vp9][height>=1080][height<1440][fps>30])+bestaudio/best`
Repository: create-react-app
Issue: public ,src, script directory is not creating while installing create-react-app
Labels: issue: needs investigation

on run command  npx create-react-app my-app not creating public, src and script folder, only node-modules, package.json and yarn.lock file is coming

OS:  windows10
node: V12.14.0
npm/npx : 6.13.4

C:\Users\vivek_Vishu\Desktop\project>npx create-react-app my-app

Creating a new React app in C:\Users\vivek_Vishu\Desktop\project\my-app.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...

yarn add v1.22.0
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.12: The platform "win32" is incompatible with this module.
info "fsevents@1.2.12" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@2.1.2: The platform "win32" is incompatible with this module.
info "fsevents@2.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "react-scripts > @typescript-eslint/eslint-plugin > tsutils@3.17.1" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 13 new dependencies.
info Direct dependencies
├─ cra-template@1.0.3
├─ react-dom@16.13.1
├─ react-scripts@3.4.1
└─ react@16.13.1
info All dependencies
├─ @babel/plugin-transform-flow-strip-types@7.9.0
├─ @babel/plugin-transform-runtime@7.9.0
├─ @babel/plugin-transform-typescript@7.9.6
├─ @babel/preset-typescript@7.9.0
├─ babel-preset-react-app@9.1.2
├─ cra-template@1.0.3
├─ eslint-config-react-app@5.2.1
├─ react-dev-utils@10.2.1
├─ react-dom@16.13.1
├─ react-error-overlay@6.0.7
├─ react-scripts@3.4.1
├─ react@16.13.1
└─ scheduler@0.19.1
Done in 223.41s.