sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: [FR] [distributed] coalesced primitives
Labels: oncall: distributed,triaged

## 🚀 Feature
`broadcast_coalesced`, `all_reduce_coalesced` and others will in many cases improve communication among processes. It would be great if core can provide the coalesced versions of these primitives, considering some of which are already implemented and used by DDP, etc., and that the coalescing helpers `unflatten_*` and `flatten_*` functions are already efficiently implemented in cpp in `cuda/comm.cpp` in core. 

Parity with `torch.cuda.comm` could be another argument for having these.

Whether they should be separate methods or an additional flag on existing primitives is worth discussion. But either way, I really hope that PyTorch core can provide such generally useful functionalities.  


cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @xush6528 @osalpekar
Repository: pytorch
Issue: [FR] API consistency for cuda.comm and distributed
Labels: oncall: distributed,module: docs,module: cuda,triaged

`torch.cuda.comm` and `torch.distributed` have similar but subtly different API sets. It would be great to make them consistent, and document the former.

cc @ngimel @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @xush6528 @osalpekar
Repository: pytorch
Issue: [doc] document cuda.nccl
Labels: module: docs,module: cuda,triaged,module: nccl

`torch.cuda.nccl` seems meant to be a set of low-level API (compared to `torch.cuda.comm` and `torch.distributed`). It would be great to document it.

cc @ngimel
Repository: rust
Issue: Inconsistent handling of associated constants in patterns
Labels: A-trait-system,A-associated-items,T-compiler,C-bug,A-const-eval,A-patterns,T-types

The following code compiles:

```rust
trait Foo {
    const C: i32;
}

impl<T> Foo for T {
    const C: i32 = 0;
}

fn bar<T>() {
    match 0 {
        <T as Foo>::C => (),
        _ => (),
    }
}
```

but adding a trait bound of `Foo` to `bar`:

```rust
trait Foo {
    const C: i32;
}

impl<T> Foo for T {
    const C: i32 = 0;
}

fn bar<T: Foo>() {
    match 0 {
        <T as Foo>::C => (),
        _ => (),
    }
}
```

causes compilation to fail with:

```
error[E0158]: associated consts cannot be referenced in patterns
  --> src/main.rs:14:9
   |
14 |         <T as Foo>::C => (),
   |         ^^^^^^^^^^^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0158`.
error: could not compile `playground`.

To learn more, run the command again with --verbose.
```

I would expect these two cases to behave identically instead of one working and the other failing. (it seems like both cases should be disallowed, but I don't have a good grasp of the current state of relevant features)

This is reproducible in the rust playground on the stable, beta, and nightly channels
Repository: flutter
Issue: [OpenContainer] pass a navigator key as an argument to OpenContainer
Labels: package,c: proposal,p: animations,team-ecosystem,P3,triaged-ecosystem

When using OpenContainer widget from animations package, back button at the closedBuilder widget, pops the parent Navigator (I'm using nested navigator).

Is it possible to pass a navigator key as an argument to OpenContainer so we'll have a control with which navigator to navigate (including pop action)?

OpenContainer widget:
```
return OpenContainer(
    closedBuilder: (context, action) {
      return SummaryItem(
        summary: summary,
      );
    },
    openBuilder: (context, action) {
      return DetailsScreen(
        summary: summary,
      ),
    },
    closedElevation: 2.0,
    openElevation: 15.0,
    closedShape: const RoundedRectangleBorder(
      borderRadius: BorderRadius.all(Radius.circular(10.0)),
    ),
    transitionType: ContainerTransitionType.fadeThrough,
    transitionDuration: const Duration(milliseconds: 500),
  );
```

Flutter doctor:
```
[✓] Flutter (Channel stable, v1.17.1, on Mac OS X 10.15.4 19E287, locale en-IL)
    • Flutter version 1.17.1 at /Users/yuvwork/Developer/flutter
    • Framework revision f7a6a7906b (13 days ago), 2020-05-12 18:39:00 -0700
    • Engine revision 6bc433c6b6
    • Dart version 2.8.2

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/yuvwork/Library/Android/sdk
    • Platform android-29, build-tools 29.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_212-release-1586-b4-5784211)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.5, Build version 11E608c
    • CocoaPods version 1.9.1

[✓] Android Studio (version 3.6)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 45.1.1
    • Dart plugin version 192.8052
    • Java version OpenJDK Runtime Environment (build
      1.8.0_212-release-1586-b4-5784211)

[✓] Connected device (2 available)
    • Android SDK built for x86  • emulator-5554                        •
      android-x86 • Android 10 (API 29) (emulator)
    • iPhone SE (2nd generation) • 4B87D091-6516-4BA6-8C95-5DAF4DBB4637 • ios
      • com.apple.CoreSimulator.SimRuntime.iOS-13-5 (simulator)

• No issues found!

```
Repository: flutter
Issue: Integration flutter to app, file path issue when indexing on AppCode IDE
Labels: platform-ios,tool,a: existing-apps,P3,team-ios,triaged-ios

## Steps to Reproduce

<!-- Please tell us exactly how to reproduce the problem you are running into. -->

1. follow https://flutter.dev/docs/development/add-to-app/ios/project-setup#option-a---embed-with-cocoapods-and-the-flutter-sdk

## Logs

bug in Appcode https://youtrack.jetbrains.com/issue/OC-17593

## solution
https://www.kikt.top/posts/flutter/channel/flutter-ios-spec-edit/
just modify *podhelper.rb*
```
#  plugin_pods.map do |r|
#    symlink = File.join(symlinks_dir, r[:name])
#    FileUtils.rm_f(symlink)
#    File.symlink(r[:path], symlink)
#    pod r[:name], :path => File.join(symlink, 'ios'), :inhibit_warnings => true
#  end
```

to 

```
   plugin_pods.map { |p|
      name = p[:name]
      path = p[:path]
      specPath = "#{path}/ios/#{name}.podspec"
      pod p[:name],:path=>specPath
   }
```
Repository: godot
Issue: texture_set_shrink_all_x2_on_set_data and/or VRAM counting in editor doesn't work
Labels: bug,topic:rendering,topic:editor,confirmed

<!-- Please search existing issues for potential duplicates before filing yours:	
https://github.com/godotengine/godot/issues?q=is%3Aissue	
-->

**Godot version:** 3.2.1
<!-- Specify commit hash if using non-official build. -->


**OS/device including version:** Linux 64b, NVidia 2080ti (440.82), GLES3
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->


**Issue description:**
<!-- What happened, and what was expected. -->
I have a following setup: `App` loads `Main` which loads a specific level. In case of `low_res` the `texture_set_shrink_all_x2_on_set_data` is called in `App._ready` before loading starts (`App` uses `ResourceLoader.load_interactive`, `Main` uses `resource_queue` script from docs).

| Mode     | low_res | VRAM from nvtop** | VRAM from editor* | biggest asset in VRAM from editor |
| -------- | ----------------------------------------------------- | --------------- | ----------------- | --------------------------------- |
| exported | yes                                                   | 3502MB          | -                 | -                                 |
| editor   | yes                                                   | 4083MB          | 16.00 EiB         | 35.61 MiB                         |
| exported | no                                                    | 6514MB          | -                 | -                                 |
| editor   | no                                                    | 6514MB          | 450.2 MiB         | 35.61 MiB                         |

*: Debugger -> Video RAM -> Total
**: VRAM per game process

Total VRAM in editor seems to be completely broken (EiB? 450MiB vs 6514MB from nvtop?), so I will ignore it.

If hi res version occupies ~6.5GB, why isn't low res version occupying quarter of that value (half size in two dimensions)? 53% vs expected 25% is a big difference. Maybe it's related to a VRAM compression (which we use)? Why is biggest asset (it's from a level) in both cases of same VRAM size? It seems to me that either "VRAM usage by resource" is broken in editor as well or `texture_set_shrink_all_x2_on_set_data` isn't working for all assets. I don't know how to proceed further in troubleshooting this.

Unfortunately I cannot share the project.

<!-- **Steps to reproduce:** -->


<!-- **Minimal reproduction project:** -->
<!-- A small Godot project which reproduces the issue. Drag and drop a zip archive to upload it. -->
Repository: node
Issue: Explicit pipe events for streams
Labels: stream

Right now it's a bit ... hackish ... to detect piping from/to a stream.
You have to do some tricks with the `newListener` event to see if a data listener is attached.

Makes me wonder if we shouldn't add more explicit pipeing events such as

- `src.emit('pipe-to', dst)` when a readable is being piped somewhere
- `dst.emit('pipe-from', src)` when a writable is being piped to.

We do emit `pipe` atm on the dst i think, but having more explicit events makes it more clear I think.

/cc @mcollina @ronag 

We are discussing this in streamx as well which is where this came up: https://github.com/mafintosh/streamx/issues/16
Repository: electron
Issue: Feature Request: Taskbar location for Windows
Labels: enhancement :sparkles:,platform/windows

It would be good to have API to be able to determine the taskbar's location in Windows (including for multiple displays)
Repository: TypeScript
Issue: Add undefined to tuple index signature, or reject keys that are not "keyof tuple"
Labels: Suggestion,Awaiting More Feedback

## Search Terms

Tuple index signature

## Suggestion
I am opening up this issue as Seperate from https://github.com/microsoft/TypeScript/issues/13778 since I am ok with the current interpretation of the Array. 
```ts
declare var strArray: string[] // infinitely long list of type string
var a : strArray[10 as number]  // ok; a is string
```

but this fails in conjunction with tuples
```ts
declare var strTuple: [number, number] // length = 2
var a : strTuple[10 as number]  // absolutely not ok; a is string; 
```

<!-- A summary of what you'd like to see added or changed -->
### Better Options: 
`var a : strTuple[10 as number] ` should either be  `string | undefined` or it  should give a type error similar to: 
```ts
var a = { 0:  10, 1: 20} as const;
a[10 as number]; // type 'number' can't be used to index type
```

Tuples are already aware of boundaries and properly return undefined for more specific number types:
```ts
const t0: [string][0] = 'hello' // ok
const t1: [string][1] = 'hello' // Type '"hello"' is not assignable to type 'undefined'.

// therefore this is already true!
const t2: [string][0|1] // string | undefined 
```
why would type `number` act any differently?

## Use Cases

// Easy fix for for loops
```ts
for (let i = 0 as 0 | 1; i < 2; i++) { 
  var definitly_string = strTuple[i] // type string
  var j = i + someNumber;
  var not_definitly_string  = strTuple[j] //lets you know you need to be careful
}
```
You could use `keyof typeof strTuple` instead of `0 | 1` when you fix this https://github.com/microsoft/TypeScript/issues/27995
```ts
for (let i = 0 as keyof typeof strTuple; i < strTuple.length; i++) { 
  var definitly_string = strTuple[i] // type string
  var j = i + someNumber;
  var not_definitly_string = strTuple[j] //lets you know you need to be careful
} 
```

<!--
What do you want to use this for?
What shortcomings exist with current approaches?
-->
Given that `strictNullChecks` still allow typed arrays to do this:
```ts
var notString1 = strArray[Infinity]; // no error, not undefined
var notString2 = strArray[NaN]; // no error, not undefined
```
It would be nice to have a mechanism that could allow you to declare arrays with better type safety. 

## Examples

<!-- Show how this would be used and what the behavior would be -->

## Checklist

My suggestion meets these guidelines:

* [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [x] This wouldn't change the runtime behavior of existing JavaScript code
* [x] This could be implemented without emitting different JS based on the types of the expressions
* [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).
Repository: PowerToys
Issue: Taskbar widget to view currently selected virtual desktop
Labels: Idea-Enhancement,Product-Virtual Desktop

# Taskbar widget to view currently selected virtual desktop

(First off, THANK YOU for these tools! FancyZones, etc, are great for workflow)

It doesn't seem we have a native Windows feature to see which virtual desktop we're on **at a glance**.
A taskbar "toolbar" aka DeskBand lends itself well since it remains consistent while the desktops shuffle.

It's particularly compelling now that we can name virtual desktops in Win10 20-04, yay! =)

# Proposed technical implementation details

I've implemented a [rough working example here](https://github.com/Beej126/Win10VirtualDesktopDeskBand) and am already pleased with the workflow enhancement it provides.
Repository: create-react-app
Issue: Hot reloading security risk by default
Labels: issue: proposal,needs triage

### Is your proposal related to a problem?
By default, the hot reloading functionality enabled in create-react-app, allows random websites to access the local development server error logs via websockets. These error logs can contain code and sensitive data, which can then be leaked out to external websites.

The problem is described here: https://medium.com/@stestagg/stealing-secrets-from-developers-using-websockets-254f98d577a0

### Describe the solution you'd like
Access to the local websocket server should be restricted. For example with a random secret.
Repository: pytorch
Issue: [docs] Urls changed => forum links would become invalid
Labels: high priority,module: docs,triaged,module: doc infra

Originally in https://github.com/pytorch/pytorch/issues/18095#issuecomment-633149307:

@vadimkantorov:
Works: https://pytorch.org/docs/stable/torch.html#torch.flip
Breaks: https://pytorch.org/docs/master/torch.html#torch.flip

@t-vi:
They're now separate pages: https://pytorch.org/docs/master/generated/torch.flip.html#torch.flip
...but it would break many links, including on the forums.

@ezyang:
Yes, this will be a release blocker for next release.

cc @ezyang @gchanan @zou3519 @kadeng @msaroufim @svekars @brycebortree @mattip
Repository: pytorch
Issue: Missing OneCycleLR and MultiplicativeLR in lr_scheduler.pyi
Labels: module: typing,triaged

## 🐛 Bug

Not sure if it's a bug but it misses `OneCycleLR` and `MultiplicativeLR` in `lr_scheduler.pyi`

## To Reproduce

Steps to reproduce the behavior:

`from torch.optim.lr_scheduler import OneCycleLR, MultiplicativeLR` using PyCharm
or check `https://github.com/pytorch/pytorch/blob/master/torch/optim/lr_scheduler.pyi`

## Environment
PyTorch version: 1.5.0
Is debug build: No
CUDA used to build PyTorch: 10.2

OS: CentOS Linux release 7.7.1908 (Core)
GCC version: (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)
CMake version: version 2.8.12.2

Python version: 3.8
Is CUDA available: Yes
CUDA runtime version: Could not collect
GPU models and configuration: GPU 0: Quadro M1200
Nvidia driver version: 430.26
cuDNN version: Could not collect

Versions of relevant libraries:
[pip] numpy==1.18.1
[pip] pytorch-sphinx-theme==0.0.24
[pip] torch==1.5.0
[pip] torchfile==0.1.0
[pip] torchvision==0.6.0a0+82fd1c8
[conda] blas                      1.0                         mkl  
[conda] cudatoolkit               10.2.89              hfd86e86_1  
[conda] mkl                       2020.1                      217  
[conda] mkl-service               2.3.0            py38he904b0f_0  
[conda] mkl_fft                   1.0.15           py38ha843d7b_0  
[conda] mkl_random                1.1.0            py38h962f231_0  
[conda] numpy                     1.18.1           py38h4f9e942_0  
[conda] numpy-base                1.18.1           py38hde5b4d6_1  
[conda] pytorch                   1.5.0           py3.8_cuda10.2.89_cudnn7.6.5_0    pytorch
[conda] pytorch-sphinx-theme      0.0.24                    dev_0    <develop>
[conda] torchfile                 0.1.0                    pypi_0    pypi
[conda] torchvision               0.6.0                py38_cu102    pytorch

cc @ezyang
Repository: vscode
Issue: Seeing output running out of sources related to CoreText
Labels: bug,upstream,macos,upstream-issue-linked,chromium

```
2020-05-26 18:11:47.989 Code - OSS Helper (Renderer)[40222:1396462] CoreText note: Client requested name ".NewYork-Regular", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
2020-05-26 18:11:47.989 Code - OSS Helper (Renderer)[40222:1396462] CoreText note: Set a breakpoint on CTFontLogSystemFontNameRequest to debug.
2020-05-26 18:11:47.995 Code - OSS Helper (Renderer)[40222:1396462] CoreText note: Client requested name ".NewYork-Regular", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
2020-05-26 18:11:47.998 Code - OSS Helper (Renderer)[40222:1396462] CoreText note: Client requested name ".NewYork-Regular", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
2020-05-26 18:11:47.998 Code - OSS Helper (Renderer)[40222:1396462] CoreText note: Client requested name ".NewYork-Regular", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].

```
Repository: vscode
Issue: Custom editors cannot be opened when a single-folder workspace has Been Extended To A Multi-Folder Workspace
Labels: bug,help wanted,webview,custom-editors

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->
<!-- Also please test using the latest insiders build to make sure your issue has not already been fixed: https://code.visualstudio.com/insiders/ -->

<!-- Use Help > Report Issue to prefill these. -->
- VSCode Version: 1.45.1 / Insiders 2020-05-26T15:51:05.752Z
- OS Version: Windows 10 / Mac

Steps to Reproduce:

1. [Check out Cat Customs Sample](https://github.com/microsoft/vscode-extension-samples/tree/master/custom-editor-sample)
2. Install the extension
3. Copy the `exampleFiles` folder to `exampleFiles2`
4. Open a new VS Code Instance with `exampleFiles` as root folder
5. (Custom Editor works as intended)
6. Add `exampleFiles2` to the workspace.
7. Open `example.cscratch` in `exampleFile2` folder.
8. It crashes.


Does this issue occur when all extensions are disabled?: Yes

[You can see this happening with my draw.io extension too](https://imgur.com/53j7C1u):
https://github.com/hediet/vscode-drawio/issues/61
Repository: flutter
Issue: TextTheme TextStyle name changes should have come with a Refactoring Tool
Labels: framework,f: material design,c: proposal,team-design

This is more of a Post-Mortem + Feature Request for future updates than an actual bug report.

The change that deprecated most of the names of the TextTheme TextStyles was https://github.com/flutter/flutter/pull/48547.

I don't mind breaking changes in Flutter, I even encourage them. I believe we should make them as soon as possible while the Framework is young so we don't accumulate a huge list of not ideal APIs for "historical reasons".

That being said, I also believe that those breaking changes should try to be as transparent as possible, leveraging refactoring tools as much as they can.

RxDart for [example](https://github.com/ReactiveX/rxdart#upgrading-from-rxdart-022x-to-023x) made a [tool](https://github.com/brianegan/rxdart_codmod) for automating refactoring for users upgrading from version 0.22.x to 0.23.x.

I upgraded to Flutter 1.17.1 with the new `Typography` API and this is how my Dart Analysis looks like:

![image](https://user-images.githubusercontent.com/8120472/82939364-a4978f80-9f69-11ea-9936-bc5d03e5438f.png)

Sure I can leverage some smart `Find and Replace` but still, it would be nicer to have such a tool already shipped along with the breaking changes.
Repository: pytorch
Issue: Cap DDP total number of buckets
Labels: oncall: distributed,triaged

@ngoyal2707 pointed out an important limitation of DDP. As of today, DDP creates buckets that's enough to hold the entire model. So, if the model size is 100MB and the `bucket_cap_mb=20MB`, there will be 5 buckets. This works well for small models, and having multiple buckets and hence `allreduce` helps to increase link utilization. However, if the model size is super large, keeping a large number of buckets is an overkill. Instead, we could have another cap on the number of materialized buckets. This would help reduce DDP footprint. 

cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @xush6528 @osalpekar
Repository: PowerToys
Issue: [Image Resizer]Scaling Method Option
Labels: Idea-Enhancement,Product-Image Resizer

Can you add options for scaling method?

Bilinear, Bicubic, Nearest Neighbor, etc.