sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: make torch.utils._download_url_from_file public and add a docstring
Labels: module: docs,triaged,module: hub,module: ux

We have this function https://github.com/pytorch/pytorch/blob/7203612f852e57b3f1667a614444bbb24beec7fb/torch/hub.py#L370-L406 as part of hub.

Expose it public, i.e. remove the `_` prefix, and add a docstring.

Additionally, add special-case handling of Google Drive downloads, as seen here: https://github.com/pytorch/text/blob/master/torchtext/utils.py#L53-L68


This is useful for downstream repos (eg. domain APIs) to standardize on a single function for dataset download.

For example for multiple downstream datasets, we already have so many decentralized / written functions that do the same:

- https://github.com/pytorch/vision/blob/d9830d8688bc2f2fc8070a4688d590c7c0686b27/torchvision/datasets/utils.py#L57-L95
- https://github.com/pytorch/text/blob/master/torchtext/utils.py#L29
- https://github.com/pytorch/audio/blob/master/torchaudio/datasets/vctk.py#L161
- https://github.com/pytorch/audio/blob/master/torchaudio/datasets/yesno.py#L76

cc @jlin27 @mruberry @ailzhang
Repository: electron
Issue: Override Alt+Space shortcut on Windows
Labels: enhancement :sparkles:

<!--  As an open source project with a dedicated but small maintainer team, it can sometimes take a long time for issues to be addressed so please be patient and we will get back to you as soon as we can.
-->

### Preflight Checklist
<!-- Please ensure you've completed the following steps by replacing [ ] with [x]-->

* [x] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/master/CONTRIBUTING.md) for this project.
* [x] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md) that this project adheres to.
* [x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

### Problem Description

Currently the `Alt+Space` shortcut opens up native titlebar context menu even if the `accelerator` is registered.

![image](https://user-images.githubusercontent.com/11065386/61809614-fb11da00-ae3d-11e9-8023-eafa5437caf8.png)

### Proposed Solution
Registering `Alt+Space` shortcut should override Windows shortcut for opening the context menu like in Opera.
Repository: flutter
Issue: Feature request: Setting paragraph distance in Text and TextField
Labels: a: text input,c: new feature,framework,f: material design,a: typography,P3,team-framework,triaged-framework

Currently, we have no control over paragraph spacing in both Text and TextField. This feature is important in text stying.
Repository: go
Issue: net/http: GET request hangs if "Content-Length" reqest-header field ist set (possible DoS vulnerability)
Labels: NeedsInvestigation

<!-- Please answer these questions before submitting your issue. Thanks! -->

### What version of Go are you using (`go version`)?

<pre>
PS C:\WINDOWS\System32> go version
go version go1.12.7 windows/amd64
</pre>

### Does this issue reproduce with the latest release?
yes


### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
PS C:\WINDOWS\System32> go env
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\juergen.enge\AppData\Local\go-build
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\daten\go
set GOPROXY=
set GORACE=
set GOROOT=c:\go
set GOTMPDIR=
set GOTOOLDIR=c:\go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\JUERGE~1.ENG\AppData\Local\Temp\go-build111174446=/tmp/go-build -gno-record-gcc-switches
</pre></details>

### What did you do?

sending a GET request to the native go http server with "Content-length" request parameter

```
package main

import (
	"log"
	"net/http"
)

func main() {
	server := &http.Server{Addr: "localhost:80"}

	log.Fatal(server.ListenAndServe())

}
```


### What did you expect to see?

immediate response with error code 404 page not found (<2ms)

### What did you see instead?

request hangs for very long time (>1min, client kills connection).

### Initial debugging

it seems, that the function call w.finishRequest() in `func (c *conn) serve(ctx context.Context)` from [server.go](https://github.com/golang/go/blob/master/src/net/http/server.go) does not return. There is a problem in flushing the write buffer...
Repository: youtube-dl
Issue: Need to download from hulu.jp
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 2019.07.16. 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 **2019.07.16**
- [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://www.happyon.jp/watch/100000345
- Single video: https://www.happyon.jp/watch/100000345
- Playlist: https://www.happyon.jp/watch/100000345


## 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: flutter
Issue: Update flutter_runner to not use Shell::GetEngine
Labels: engine,platform-fuchsia,e: embedder,P2,team-engine,triaged-engine

As reported in https://github.com/flutter/flutter/issues/35889, we want to get rid of the shell being able to vend weak pointers to the engine.  Fuchsia uses this functionality in a few places that are less trivial to work around.  We should update this, probably after flutter_runner is migrated to  the engine repo.

see also https://github.com/flutter/engine/pull/9747
Repository: rust
Issue: Copy trait defeats generator optimization
Labels: C-enhancement,T-compiler,A-coroutines,I-heavy,C-optimization

The following example ([playground](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=8ce85f410c979987157e2a0518f065d2)):

```rust
#![feature(generators, generator_trait)]

use std::ops::Generator;

#[derive(Clone)]
struct Foo([u8; 1024]);

fn overlap_foo() -> impl Generator<Yield = (), Return = ()>{
    static || {
        let x = Foo([0u8; 1024]);
        yield;
        drop(x);
        let y = Foo([0u8; 1024]);
        yield;
        drop(y);
    }
}

#[derive(Clone, Copy)]
struct Bar([u8; 1024]);

fn overlap_bar() -> impl Generator<Yield = (), Return = ()>{
    static || {
        let x = Bar([0u8; 1024]);
        yield;
        drop(x);
        let y = Bar([0u8; 1024]);
        yield;
        drop(y);
    }
}

fn main() {
    dbg!(std::mem::size_of_val(&overlap_foo()));
    dbg!(std::mem::size_of_val(&overlap_bar()));
}
```

Outputs:

```
[gen-explicit-drop.rs:34] std::mem::size_of_val(&overlap_foo()) = 1028                                                                                                                                                                                                                                                       
[gen-explicit-drop.rs:35] std::mem::size_of_val(&overlap_bar()) = 2052  
```

The only difference between Foo and Bar is that Foo is Copy. This defeats the generator optimization implemented in #61922 which considers any local that has been _moved_ from as a candidate for overlap.

Technically, this is semantically consistent with the existing overlap behavior for generators. But making a type `Copy` and getting worse performance is a footgun that we should fix.

This can be fixed with a pass that turns unnecessary copies into moves in MIR.
Repository: angular
Issue: [forms] Submitted state on FormGroup in subcomponent is inconsistent
Labels: type: bug/fix,freq1: low,area: forms,state: confirmed,forms: Controls API,P4

# 🐞 bug report

### Affected Package
The issue concerns @angular/forms

### Is this a regression?
Not that I'm aware of

### Description
Using different approaches to place form controls in subcomponents leads to inconsistent results. See [the stackblitz](https://stackblitz.com/edit/components-issue-form-group-submitted?file=app%2Fapp.component.html) for the different approaches.

Issue originates from https://github.com/angular/components/issues/16360.

## 🔬 Minimal Reproduction
https://stackblitz.com/edit/components-issue-form-group-submitted?file=app%2Fapp.component.html

## 🌍  Your Environment

**Angular Version:**
Angular: ^8.0.0

(can't run `ng version` in a stackblitz)
Repository: pytorch
Issue: QNNpack tests should be skipped on ppc64le (not enabled there)
Labels: module: tests,triaged,better-engineering

## 🐛 Bug

The pytorch tests for QNNpack attempt to run when run on the ppc64le platform, where
QNNpack is not enabled.  The tests have no awareness of whether the build was done with USE_QNNPACK=OFF specified.  As a consequence, the tests immediately fail. 

## To Reproduce

Steps to reproduce the behavior:
1. Build and execute on ppc64le platform, with USE_QNNPACK=OFF.
2. Observe failure of QNNpack tests.

OK, that's not much detail for a reproduce, but basically you can just look at the `test/test_quantized.py` file in the pytorch tree; notice that it skips the QNNpack
tests if IS_WINDOWS is specified, but does not do so for IS_PPC.  The fix is simply
to skip these tests for the IS_PPC case also.  (Note, IS_PPC is defined in `test/common_utils.py`).

In fact ... I'll submit a PR with this fix.

## Expected behavior

Expected behavior is simply that the QNNpack tests should be skipped when running
on ppc64le.

## Environment

ppc64le platform -- I believe all other environment information is irrelevant beyond this
one platform condition.

## Additional context

I'll submit a PR that handles this for IS_PPC in the same way it is handled for IS_WINDOWS.
I have independently verified that it corrects the issue.

NOTE:  The fact is not lost on me that "IS_WINDOWS" is an OS check, while "IS_PPC" is a
platform check, although each is a condition warranting a skip of these tests.  Honestly, a
better solution would probably be a feature check instead of cherry-picking specific
systems that should exclude this test set.  But for the code as it exists today, the proposed
PR will resolve the issue consistent with its current form.
Repository: rust
Issue: Async fn doubles argument size
Labels: C-enhancement,T-compiler,A-coroutines,I-heavy,A-async-await,AsyncAwait-Triaged,C-optimization

Generator optimization in #60187 by @tmandry reused generator locals, but arguments are still duplicated whenever used across yield points.

For example ([playground](https://play.rust-lang.org/?version=nightly&mode=release&edition=2018&gist=af3e5e9233c45d6397c7b4b3e671f092)):

```rust
#![feature(async_await)]

async fn wait() {}

async fn test(arg: [u8; 8192]) {
    wait().await;
    drop(arg);
}

fn main() {
    println!("{}", std::mem::size_of_val(&test([0; 8192])));
}
```

Expected: 8200
Actual: __16392__

When passing in futures, the future size can grow exponentially ([playground](https://play.rust-lang.org/?version=nightly&mode=release&edition=2018&gist=02a3e685de2b2bf868733e40e56e192b)):

```rust
#![feature(async_await)]

async fn test(_arg: [u8; 8192]) {}

async fn use_future(fut: impl std::future::Future<Output = ()>) {
    fut.await
}

fn main() {
    println!(
        "{}",
        std::mem::size_of_val(&use_future(use_future(use_future(use_future(use_future(
            use_future(use_future(use_future(use_future(use_future(test(
                [0; 8192]
            ))))))
        ))))))
    );
}
```

Expected: 8236
Actual: __8396796__

I didn't find any note on this. But given how common arguments are used, I think it might be useful if they are included in the optimization.
Repository: create-react-app
Issue: Need help? Visit our Spectrum community.
Labels: issue: announcement

If you have a general question about Create React App or about building an app with Create React App we encourage you to post on our [Spectrum community](https://spectrum.chat/create-react-app) instead of this issue tracker. The maintainers and other community members can provide help and answer your questions there: 

If you're looking for general information on using React, the React docs have a list of resources: https://reactjs.org/community/support.html

If you've discovered a bug or would like to propose a change please open a new issue.

Thanks!
Repository: pytorch
Issue: [jit] add named tuple as output type to the tracer
Labels: oncall: jit,triaged

There're several requests that want the tracer to support dict as the output. While supporting general dict in tracer is hard, we could instead support named tuple (which values are tensors) as the output of the tracer. 

cc @suo
Repository: create-react-app
Issue: Create a workflow for sharing scripts for service workers required in public
Labels: issue: proposal

### Is your proposal related to a problem?

At present I can't seem to see a clean way to use imports inside the src folder and then have those scripts available to importScripts inside a serviceWorker

The use case I'm up against is sharing an idb store where in src it's easy enough to import the idb library and create an object to initialise and look up store items.

When it then comes to using that with a service worker via importScripts I can't seem to think of a neat way to copy across the idb library code etc short of a post build event but that would then require pulling the src file out of the node_modules folder.

**EG**
`importScripts('/scripts/idb.js');
importScripts('/scripts/idb-store.js');`


**idb-store.js - Located in src**
`import { openDB } from 'idb';

const idbStore = {
    db: null,

    init: function () {
        if (idbStore.db) { return Promise.resolve(idbStore.db); }
        return openDB('messages', 1, {
            upgrade(db) {
                db.createObjectStore('pizzaOrders', { autoIncrement: true, keyPath: 'id' });
            }
        }).then(function (db) {
            return idbStore.db = db;
        });
    },

    pizzaOrders: function (mode) {
        return idbStore.init().then(function (db) {
            return db.transaction('pizzaOrders', 'readwrite');
        })
    }
}

export default idbStore;`


I then have to clone that and alter it slightly for use in _public/scripts_ so my service worker can access it:
`var idbStore = {
    db: null,

    init: function () {
        if (idbStore.db) { return Promise.resolve(idbStore.db); }
        return openDB('messages', 1, {
            upgrade(db) {
                db.createObjectStore('pizzaOrders', { autoIncrement: true, keyPath: 'id' });
            }
        }).then(function (db) {
            return idbStore.db = db;
        });
    },

    pizzaOrders: function (mode) {
        return idbStore.init().then(function (db) {
            return db.transaction('pizzaOrders', 'readwrite');
        })
    }
}`


The main problem is more so the node module idb I'm then using as I have to make a copy of it to put in the _public/scripts/_ folder so the service worker can use it.


Is there presently a better way?
Repository: pytorch
Issue: dyndep function not working 
Labels: caffe2

## 🐛 Bug

On using the command dyndep.InitOpsLibrary('/usr/local/lib/libcaffe2_detectron_ops_gpu.so') to load libcaffe2_detectron_ops_gpu.so ,the program stucks/hang and even ctrl + c is not working to stop the program.
Repository: flutter
Issue: iOS accessibility focus not returned to textfields after keyboard closed when other widgets are present
Labels: a: text input,platform-ios,framework,f: material design,a: accessibility,has reproducible steps,P2,found in release: 3.3,found in release: 3.6,team-accessibility,triaged-accessibility

## Steps to Reproduce

1. Enable VoiceOver on iOS
2. Open flutter gallery app and navigate to material > text fields
3. Tap on any textfield, double tap to start editing
4. Dismiss the keyboard with done
5. The accessibility focus does not return to the edited textfield, but move to other widget and start to read (if there's something to read).

e.g 
Completes editing name textfield -> starts read Email textfield
Completes editing password textfield -> accessibility focus goes to submit button

This really causes a mess and makes it very difficult to complete multiple text inputs for VoiceOver users. But everything works fine on Android. 

## Logs

```
[✓] Flutter (Channel stable, v1.7.8+hotfix.3, on Mac OS X 10.14.5 18F132, locale en-TW)
    • Flutter version 1.7.8+hotfix.3 
    • Framework revision b712a172f9 (2 weeks ago), 2019-07-09 13:14:38 -0700
    • Engine revision 54ad777fd2
    • Dart version 2.4.0

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/fiona/Dev/android_sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 10.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.2.1, Build version 10E1001
    • CocoaPods version 1.7.1

[✓] iOS tools - develop for iOS devices
    • ios-deploy 1.9.4

[✓] Android Studio (version 3.4)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 36.1.1
    • Dart plugin version 183.6270
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[✓] VS Code (version 1.36.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.2.0

[✓] Connected device (1 available)
    • iphone X  • ios           • iOS 12.2
```
Repository: flutter
Issue: [webview_flutter] Add an option to bypass SSL checks
Labels: c: new feature,p: webview,package,c: proposal,team-ecosystem,P3,triaged-ecosystem

Hi there..

I'm using the Flutter plugins 'webview_flutter' to load certain url and it works perfectly.. with http or without https .... but there is certains url comes with https was detected having not a valid ssl caused my flutter apps to be blank...

So my questions is...is that possible I can ignored those SSL errors and just proceed with the url using this 'webview_flutter' plugins..anyone got luck with it...or maybe point me in the right direction....

Thanks in advanced
Repository: create-react-app
Issue: Allow JSON with comments in jsconfig.json
Labels: issue: proposal,difficulty: medium,contributions: claimed,good first issue

### Is your proposal related to a problem?

This is a follow-on from #7248. Right now, we don't support JSONC (JSON with comments) in `jsconfig.json` files.

### Describe the solution you'd like

After a discussion with @iansu, we see two paths: 
1. Implement the same solution as we did for TypeScript. This is easy, but would require us making TypeScript a dependency of `react-scripts`.
2. The above, but instead of installing `typescript` as a dependency of `react-scripts`, we would install it to the user's project if they are using a `jsconfig.json` file and don't have `typescript` installed.

Discussion is welcome.

If you're interested in picking this up, please let us know.
Repository: vscode
Issue: [html] auto close tags being inserted before its html content
Labels: bug,html

Issue Type: <b>Bug</b>

Usually, after opening a HTML tag(`<div>`, for example), an auto close tag is immediately inserted (`</div>` in this case) and cursor is positioned between them, so I can continue typing...

but when using "Remote - SSH",  since it takes a few mili seconds to auto complete (internet latency, )I open a html tag and continue typing.. and the closing tag is inserted immediately after opening tag, pushing what I have typed till now, outside of the closing tag

but this does not happen if I wait for a while, until the closing tag is inserted..

the former case looks kinda like this:

`<div></div>lorem ipsum`
` <!--        ^ closing tag is inserted here -->`

Extension version: 0.44.2
VS Code version: Code 1.36.1 (2213894ea0415ee8c85c5eea0d0ff81ecc191529, 2019-07-08T22:59:35.033Z)
OS version: Windows_NT x64 10.0.17134
Remote OS version: Linux x64 4.9.0-9-amd64


<!-- generated by issue reporter -->
Repository: flutter
Issue: Why TableRow doesn't support  center,width and height params?
Labels: c: new feature,framework,P2,team-framework,triaged-framework

When I'm using the TableRow widget, I have two problems: how to set the height and center of its children?

Why TableRow doesn't support height and center params?

Now If I want to let the children of TableRow gravity center,I use Align(Center) warpped around the children of TableRow. 
If I want to setting the height of the children of TableRow,I use Container(or other widgets supports height params) warpped around the children of TableRow.

But it's very hard to do this. This is my codes now:

```
new TableRow(
    decoration: new BoxDecoration(color: Colors.green),
    children: [
        buildContents("data1"),
        buildContents("data2"),
        buildContents("data3"),
        buildContents("data4"),
    ],
);

Widget buildContents(String text) {
    return new Container(
      height: 80,
      child: new Align(
        alignment: Alignment.center,
        child: new Text(text),
      ),
    );
  }
```

----

**Changes:**

I want TableRow can add `height` and `alignment` params and `width` params, just like below:

```
new TableRow(
    decoration: new BoxDecoration(color: Colors.green),
    height:80,
    width: 100,
    alignment: Alignment.center,
    children: [
        new Text("data1"),
        new Text("data2"),
        new Text("data3"),
        new Text("data4"),
    ],
);
```