sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: vscode
Issue: Show Running Extensions in a grid
Labels: feature-request,extension-host

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->
# Summary of current experience

The current Show Running Extensions experience lays out a list of running extensions similar to how it is laid out for extensions shown in the side bar. There is left and right-aligned text as well as secondary information for certain extensions.  Actions in the top-right include Run code, Save extension host profile (disabled until profiling is finished), Debug extension host, and Start extension host profile. 

![image](https://user-images.githubusercontent.com/60596156/133374810-9de6aa87-c757-48cd-bd08-ce0d723dbcde.png)

After you start and then stop the extension host profile, the profile time populates in the list underneath the activation time and the save profile icon is enabled. The saving and viewing experience includes a few steps. The default extension the file is saved as is “.cpuprofile.txt”. If you want to open the file in VS Code to inspect after you save the file, you have to manually change the extension to “.cpuprofile” and open it in VS Code. 

Once the file is opened, you can click on the flame view which opens up an additional file that has the same name as the original file opened. 

# Idea

https://user-images.githubusercontent.com/60596156/133375380-e05a2a07-1df6-439c-aa44-f4077ded8b24.mov

A proposed change is that we could display the running extensions in a grid. The icons in the top-right corner have also been changed. Debug extension host is using the debug icon rather than the green triangle icon to better differentiate from the Run code icon. I also made a small tweak to the Start extension host profile icon for visual consistency and weight across the icons. There is also no save profile icon because once the profiling is finished, an untitled file could automatically show up in a new tab to view. I was also wondering if we can switch to flame view within the same file rather than opening up another tab for this view. From here, a user could save the file with the extension they prefer.
Repository: flutter
Issue: Autocomplete is overlapping my app bar
Labels: framework,f: material design,has reproducible steps,found in release: 2.5,found in release: 2.6,team-design,triaged-design

This is simple example for showcasing problem. I'm making mobile app with form and scrollable view. I have made similar autocomplete using OverlayEntry, CompositedTransformFollower and CompositedTransformTarget. The problem lies when suggestion list is shown and user scrolls application downward, the OverlayEntry covers AppBar which results in really ugly UI/UX experience.

Image is provided here: https://ibb.co/qsys2fd.

Does AppBar have option to prevent overlapping? Maybe there is some widget like OverlayWidget to insert OverlayEntries in this specific region (which is after AppBar) for more local approach not as global as MaterialApp or Navigator? I tried using OverlayState but it always uses Navigator or MaterialApp when I would like to set OverlayState between AppBar and Scaffold body.

Also by using Stack it becomes really dirty easily, because I want to separate Autocomplete widget from Form in different files.

```dart
/// Flutter code sample for Autocomplete

// This example shows how to create a very basic Autocomplete widget using the
// default UI.

import 'package:flutter/material.dart';

void main() => runApp(const AutocompleteExampleApp());

class AutocompleteExampleApp extends StatelessWidget {
  const AutocompleteExampleApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          toolbarHeight: 200,
          title: const Text('Autocomplete Basic'),
        ),
        body: SingleChildScrollView(
          child: Column(
            children: [
              const AutocompleteBasicExample(),
              Container(height: 2000, width: 200, color: Colors.red),
            ],
          ),
        ),
      ),
    );
  }
}

class AutocompleteBasicExample extends StatelessWidget {
  const AutocompleteBasicExample({Key? key}) : super(key: key);

  static const List<String> _kOptions = <String>[
    'aardvark',
    'bobcat',
    'chameleon',
  ];

  @override
  Widget build(BuildContext context) {
    return Autocomplete<String>(
      optionsBuilder: (TextEditingValue textEditingValue) {
        if (textEditingValue.text == '') {
          return const Iterable<String>.empty();
        }
        return _kOptions.where((String option) {
          return option.contains(textEditingValue.text.toLowerCase());
        });
      },
      onSelected: (String selection) {
        print('You just selected $selection');
      },
    );
  }
}
```
Repository: flutter
Issue: ScaffoldMessenger doesn’t behave as expected while using Navigator
Labels: framework,f: routes,has reproducible steps,P2,found in release: 2.5,found in release: 2.6,team-framework,triaged-framework

ScaffoldMessenger doesn’t animate between snack bars while navigating to another route when using the `Navigator` widget inside the `MaterialApp`.

Defining routes in

MaterialApp | Navigator
:-: | :-:
<video src='https://user-images.githubusercontent.com/72082844/133377886-cac7d7a5-5a0e-42c1-81d1-3847479a38e8.mov' width=180/> | <video src='https://user-images.githubusercontent.com/72082844/133377901-2422ea9f-eca2-4bc0-b298-13160386e4ee.mov' width=180/>

Sample:
https://dartpad.dev/?id=c87f83dbd605192035d6d4f82556de43&null_safety=true
Repository: flutter
Issue: [Web] [HTML][Safari] svg image not rendering per color
Labels: c: regression,engine,platform-web,a: images,e: web_html,has reproducible steps,browser: safari-macos,P2,found in release: 2.5,found in release: 2.6,team-web,triaged-web


## Steps to Reproduce

<!-- You must include full steps to reproduce so that we can reproduce the problem. -->


1. Run `flutter create bug`.
2. Update the files as follows: 

Pubspec:
```yaml
name: app
description: Flutter SVG tint problem

publish_to: 'none'

version: 1.0.0+1

environment:
  sdk: ">=2.12.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter
  flutter_svg: ^0.22.0

flutter:
  assets:
    - assets/
```
main.dart
```dart
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        title: "Flutter Tint SVG problem",
        home: Scaffold(
          appBar: AppBar(
            title: const Text("Flutter Tint SVG problem"),
          ),
          body: Center(
            child: Column(
              mainAxisAlignment: MainAxisAlignment.center,
              children: [
                const Text("Render using SvgPicture.asset:"),
                SvgPicture.asset("/test.svg", color: Colors.blue, width: 50, height: 50),
                const Text("Render using Image.network:"),
                Image.network("/assets/test.svg", color: Colors.blue, width: 50, height: 50),
              ],
            ),
          ),
        ));
  }
}
```
assets/test.svg
```svg
<svg width="22" height="22" xmlns="http://www.w3.org/2000/svg">
    <g fill="none" stroke="#000000" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2">
        <path d="m4 11h-1a2 2 0 0 1 -2-2v-6a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-4.56" />
        <path d="m4 11v3.43" />
        <path d="m4 14.43 4.44-3.43" />
    </g>
</svg>
```

3. Run app with `html` render and see that:

## Actual results
1. Main Tint problem:
- Image.network doesn't tint image for Safari browser

2. Second problem:
- Image.network doesn't change size to 50px.
- SvgPicture.asset is unusable - doesn't tint for any browser (Chrome, Firefox, Safari) and doesn't draw correct paths

![image](https://user-images.githubusercontent.com/1630300/133383110-394c475a-c422-456b-98ce-e5f4269bf081.png)

## Expected results:
Image.network should tint icon in blue color in Safari

<!-- Finally, paste the output of running `flutter doctor -v` here. -->

## Flutter doctor
```
[✓] Flutter (Channel unknown, 2.5.0, on macOS 11.5.2 20G95 darwin-x64, locale en-PL)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] VS Code (version 1.59.1)
```
Repository: flutter
Issue: [Proposal] Add parent_child_checkbox as part of Flutter Plugins or Widget
Labels: c: new feature,framework,f: material design,c: proposal,team-design,triaged-design

## Description
Parent-Child Checkbox is a type of checkbox where we can establish a hierarchy in Checkboxes.
You can create a Parent Checkbox which has multiple checkboxes for their children! The value of the parent checkbox depends on the value of children checkboxes and vice-versa.<br>
If we clicked on Parent Checkbox, all children checkboxes will be selected too. 

## Reason to add the plugin:
- Parent-Child-Checkbox is a common functionality needed by developers
- Android have it by default in their [SDK](https://developer.android.com/reference/kotlin/androidx/compose/material/package-summary#TriStateCheckbox(androidx.compose.ui.state.ToggleableState,kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Boolean,androidx.compose.foundation.interaction.MutableInteractionSource,androidx.compose.material.CheckboxColors))
- Integral part of [Material Design](https://material.io/develop/android/components/checkboxes)
- Part of most of the frameworks

## I have created a package for the same: [parent_child_checkbox](https://pub.dev/packages/parent_child_checkbox)
Repository: vscode
Issue: Prevent custom menu dismissal when being updated on startup
Labels: bug,menus

Issue Type: <b>Bug</b>

1. start the VSCode 
2. while it initializing all extensions, try to open File-menu at moment when it appear

Expected: Opened menu until full initialization complete

Actual: Closed menu while initialization proceed. Possible some extension. Possible changing menu itself.

Same problem with clean portable installation.
Very annoying when start VSCode and immediately try to open specific project.

Setting: Title Bar Style = custom
With native menu all works as expected.

VS Code version: Code 1.60.1 (83bd43bc519d15e50c4272c6cf5c1479df196a4d, 2021-09-10T17:07:10.714Z)
OS version: Windows_NT x64 10.0.19043
Restricted Mode: No

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|AMD Ryzen 3 2200U with Radeon Vega Mobile Gfx   (4 x 2495)|
|GPU Status|2d_canvas: enabled<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>oop_rasterization: enabled<br>opengl: enabled_on<br>rasterization: enabled<br>skia_renderer: enabled_on<br>video_decode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled|
|Load (avg)|undefined|
|Memory (System)|6.91GB (1.49GB free)|
|Process Argv|--crash-reporter-id 6b76fe32-24c1-4e87-ab59-3f8a75158efc|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (12)</summary>

Extension|Author (truncated)|Version
---|---|---
Bookmarks|ale|13.2.1
gitlens|eam|11.6.0
code-runner|for|0.11.5
vscode-test-explorer|hbe|2.21.1
beautify|Hoo|1.5.0
python|ms-|2021.9.1230869389
vscode-pylance|ms-|2021.9.1
remote-wsl|ms-|0.58.2
test-adapter-converter|ms-|0.1.2
debugger-for-edge|msj|1.0.15
vscode-commons|red|0.0.6
vscode-yaml|red|0.22.0


</details><details>
<summary>A/B Experiments</summary>

```
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt639:30300192
pythontb:30283811
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
pythonvsuse255:30340121
vscod805cf:30301675
pythonvspyt200:30340761
vscextlangct:30333562
binariesv615:30325510
vsccppwt:30364497
pythonvssor306:30344512
bridge0708:30335490
pygetstartedc2:30360494
bridge0723:30353136
pythonrunftest32:30365366
pythonf5test824cf:30361778
javagetstartedc:30364665
pythonvspyt187cf:30365362
pydsgst2:30361792
vssid140:30363603
vssur157:30365996

```

</details>

<!-- generated by issue reporter -->
Repository: pytorch
Issue: Setting a random seed or passing a generator to Modules for deterministic sampling.
Labels: module: nn,triaged,enhancement,module: random,module: determinism

## 🚀 Feature

I would like to obtain deterministic/reproducible weight initialization when working with say Con1d, while limiting the deterministic state to the weight [default] initialization part only and retaining the random state for the rest of the torch modules.

## Motivation

With this functionality the models can be in initialized in a reproducible fashion while still allowing randomness in shuffling and thereby the optimization path taken by the optimizer. This is particularly interesting when studying the properties of different optimizer and architectures.  

## Pitch

Following, non-functional, code expresses the idea I am trying to achieve

```
gen1 = torch.Generator()
gen1.manual_seed(123)
conv1 = nn.Conv1d(16, 33, 3, stride=2)
nn.init.kaiming_uniform_(conv.weight, a=0, mode='fan_in', nonlinearity='leaky_relu', generator=gen1)


gen2 = torch.Generator()
gen2.manual_seed(123)
conv2 = nn.Conv1d(16, 33, 3, stride=2)
nn.init.kaiming_uniform_(conv2.weight, a=0, mode='fan_in', nonlinearity='leaky_relu', generator=gen2)

assert conv2.weight == conv1.weight
```
Expected outcome: True

## Alternatives
Until now I have to use following work around which at times is tedious since I have to recreate the different initializers

```
gen1 = torch.Generator()
gen1.manual_seed(123)
conv1 = nn.Conv1d(16, 33, 3, stride=2)
bound = # some calculation to compute the bound for He Initialization
x = (-bound - bound) * torch.rand((33, 16, 3), generator=gen1) + bound
conv1.weight.data = x

gen2 = torch.Generator()
gen2.manual_seed(123)
conv2 = nn.Conv1d(16, 33, 3, stride=2)
bound = # some calculation to compute the bound for He Initialization
x = (-bound - bound) * torch.rand((33, 16, 3), generator=gen2) + bound
conv2.weight.data = x

assert torch.eq(conv2.weight.data, conv1.weight.data) 
```



cc @albanD @mruberry @jbschlosser @walterddr @pbelevich @heitorschueroff @kurtamohler
Repository: pytorch
Issue: torch.cross precision problem
Labels: module: numerical-stability,triaged

## 🐛 Bug

`torch.cross` can encounter precision problem when two input vectors are the same.

## To Reproduce

The following code can reproduce the problem.

```python
a = torch.Tensor([0.7533, 0.6123, -0.2404])
b = torch.Tensor([0.7533, 0.6123, -0.2404])
c = torch.cross(a, b)
print(c)
```

The output is:

```python
tensor([ 2.9772e-09, -3.4915e-09, 1.4205e-08])
```

## Expected behavior

The output should be:

```python
tensor([ 0., 0., 0.])
```

## Environment

 - PyTorch Version (e.g., 1.0): 1.9
 - OS (e.g., Linux): Linux
 - How you installed PyTorch (`conda`, `pip`, source): pip
 - Build command you used (if compiling from source):
 - Python version: 3.8
 - CUDA/cuDNN version: 11.1
 - GPU models and configuration: 
 - Any other relevant information:
Repository: PowerToys
Issue: [Lux Control] Draw a colored and transparent layer over some specific windows
Labels: Idea-New PowerToy

### Description of the new feature / enhancement

This feature allows us to attach a colored and transparent layer to some specific windows.
The idea is to reduce the brightness/whiteness of some windows that don't support dark mode.
The opacity and color of each layer can be configured individually, or inherit the default/common settings.
The transparent layer will move along the window it is attached to, and will resize according to the size of that window.

### Scenario when this would be used?

For many of us, almost everything on our desktop is dark now, but not every softwares support dark mode. For some we can't expect the author to update the UI anytime soon. And for some, dark mode is just impossible. It's a pain our eyes when we need to stare at a white window for some time but we also don't want to switch the entire Windows to light mode.

### Supporting information

This feature was inspired by the extension "Night Shift Redux" on Chrome web store.
https://chrome.google.com/webstore/detail/night-shift-redux/ocginjipilabheemhfbedijlhajbcabh?hl=en
Repository: storybook
Issue: Option to expand categories by default
Labels: feature request,ui,needs triage

**Is your feature request related to a problem? Please describe**
It is often that one wants to improve the UX of storybook users by reducing the need for interaction. This is especially the case when the stories are nested in many groups but a user has to click around to expand and explore. Especially on smaller storybooks it is desirable to be able to configure that categories are expanded by default.

**Describe the solution you'd like**
A configuration option to declare the categories that should be expanded by default (or all categories). Similar to `collapsedRoots` except "expanded" and for categories.


**Describe alternatives you've considered**
A custom script that finds and clicks each button that expands each category. This is not the simplest script because it needs to poll for those buttons being on the screen.

**Are you able to assist to bring the feature to reality?**
no (UPDATE: maybe)
Repository: pytorch
Issue: deepcopy of Lazy modules returns an exception
Labels: module: nn,triaged,actionable,module: __torch_function__,module: lazy

## 🐛 Bug

Calling `copy.deepcopy` on a lazy module returns an exception (before the module is initialized).

## To Reproduce

```python
import copy
import torch
l = torch.nn.LazyLinear(4)
copy.deepcopy(l) # returns an error
l(torch.randn(1,3))
copy.deepcopy(l) # works fine
```
Error message:
```
/path/to/my/conda_env/lib/python3.8/site-packages/torch/nn/modules/lazy.py:178: UserWarning: Lazy modules are a new feature under heavy development so changes to the API or functionality can happen at any moment.
  warnings.warn('Lazy modules are a new feature under heavy development '
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/path/to/my/conda_env/lib/python3.8/copy.py", line 172, in deepcopy
    y = _reconstruct(x, memo, *rv)
  File "/path/to/my/conda_env/lib/python3.8/copy.py", line 270, in _reconstruct
    state = deepcopy(state, memo)
  File "/path/to/my/conda_env/lib/python3.8/copy.py", line 146, in deepcopy
    y = copier(x, memo)
  File "/path/to/my/conda_env/lib/python3.8/copy.py", line 230, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "/path/to/my/conda_env/lib/python3.8/copy.py", line 172, in deepcopy
    y = _reconstruct(x, memo, *rv)
  File "/path/to/my/conda_env/lib/python3.8/copy.py", line 296, in _reconstruct
    value = deepcopy(value, memo)
  File "/path/to/my/conda_env/lib/python3.8/copy.py", line 153, in deepcopy
    y = copier(memo)
  File "/path/to/my/conda_env/lib/python3.8/site-packages/torch/nn/parameter.py", line 32, in __deepcopy__
    result = type(self)(self.data.clone(memory_format=torch.preserve_format), self.requires_grad)
  File "/path/to/my/conda_env/lib/python3.8/site-packages/torch/nn/parameter.py", line 153, in __new__
    data = torch.tensor([], **factory_kwargs)
TypeError: tensor(): argument 'device' must be torch.device, not bool
```

## Expected behavior

should return a non-initialized lazy module

## Environment

 - PyTorch Version (e.g., 1.9.0):
 - OS (e.g., Linux): MacOs / Ubuntu
 - How you installed PyTorch (`conda`, `pip`, source): Conda
 - Python version: 3.8
 - CUDA/cuDNN version: 10.2
 - GPU models and configuration: V100


cc @albanD @mruberry @jbschlosser @walterddr @kshitij12345 @saketh-are @hameerabbasi @rgommers @peterbell10 @ezyang
Repository: pytorch
Issue: Use hyphens to separate long CLI parameters instead of underscores
Labels: oncall: distributed,better-engineering

`torchrun` accepts CLI parameters like `--nproc_per_node`,  `--rdzv_id`, etc.

The use of the underscore `_` to separate words in CLI parameters is unconventional, most of the [utils we use everyday](https://www.gnu.org/software/libc/manual/html_node/Argument-Syntax.html) use hyphens instead:

>  Option names are typically one to three words long, with hyphens to separate words.

for example `ls --group-directories-first`, etc.


**Could we alias all current `torchrun` parameters to equivalents with hyphens instead of underscores?** E.g. alias `--nproc-per-node` to `--nproc_per_node`, and keep the `_` notation for BC.


Having to switch conventions can be a bit confusing, especially when running scripts that follow the usual convention, for example the [torchvision training scripts](https://github.com/pytorch/vision/tree/main/references/classification#mobilenetv2) where both conventions are mixed.

Note: from a quick `git grep add_argument`, both hyphens and underscores are used within pytorch in different modules.

cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @SciPioneer @H-Huang @cbalioglu @gcramer23
Repository: godot
Issue: LightOccluder2D polygons cause editor slowdowns
Labels: bug,topic:editor,good first issue,topic:2d,performance

### Godot version

3.3.3.stable
3.4.beta4

### System information

Windows 10
GLES3,
Ryzen 7 3700X,
32GB RAM

### Issue description

LightOccluder2D polygons slow the editor down even with small polygons. (And my computer is not a potato)

https://user-images.githubusercontent.com/14185889/133438422-9841b2b7-f798-4b0b-87f7-8f97b6a3f2c5.mp4



### Steps to reproduce

1. Open `gear2.tscn`
2. Select `LightOccluder2D` (<- slowdown starts here)
3. Pan the canvas

### Minimal reproduction project

[Slow LightOccluder.zip](https://github.com/godotengine/godot/files/7170268/Slow.LightOccluder.zip)
Repository: rust
Issue: Stabilizing Iterator::intersperse breaks a large number of crates
Labels: T-libs-api,S-blocked

The 1.56 crater run shows that there are at least 59 root crates (or repositories) broken by this change, and 260 crates.io crates along with 278 github repositories which depend on those.

See https://crater-reports.s3.amazonaws.com/beta-1.56-2/index.html > "regressed: root results" > E0034 for the root crates.

cc some threads with partial discussion:

* https://rust-lang.zulipchat.com/#narrow/stream/241545-t-release/topic/possible.20semi-breaking.20change.20in.20next.20release
* https://github.com/rust-lang/rust/issues/88878

Nominating for T-libs-api discussion as the FCP on https://github.com/rust-lang/rust/issues/79524 seems to have been made without commentary about the expected level of breakage, so I suspect it was not discussed.
Repository: flutter
Issue: Image assets locale, text direction, size, and platform variants support
Labels: c: new feature,framework,P3,team-framework,triaged-framework

https://github.com/flutter/flutter/blob/5d9afaa0f7e9492416d541cfe81d07482e18fac9/packages/flutter/lib/src/painting/image_resolution.dart#L359-L361

When is this TODO going to be addressed? Is this issue open to Pull Requests? If so, what are the requirements for the proposed solution?