sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: storybook
Issue: Is there a way to hide the panel on a story basis rather than in the global settings?
Labels: feature request,ui,configuration

**Is your feature request related to a problem? Please describe**
My use case includes @storybook/web-components. I presume it would not be different for other frameworks. I have a scenario where I want to display available icons, but there are no actions required. In versions prior to 6.2.1 I could write something like `options: { showPanel: false } }` and the bottom panel would not show up. I see this page for global settings: https://storybook.js.org/docs/react/configure/features-and-behavior but nothing that explains how to do this on a story basis. 

**Describe the solution you'd like**
I would like to understand where this can be set in version 6 and if it is not available to have it as a feature request. If it is available, to have it explained to me, and I can contribute to the documentation.

This is similar to this ticket: https://github.com/storybookjs/storybook/issues/6699 yet still different. I want to be able to hide various tabs or the entire lower panel in this case.

**Describe alternatives you've considered**
Here is an example of my code today:
```import { html } from 'lit-element/lit-element'
import { AmexIcons } from '../src/amex-icons'

export default {
  title: 'Components/amex-icons',
  component: AmexIcons,
}

const Template = () => {
  html'<really long template of icons to display' // these are backticks in my code 
}

export const AllIcons = Template.bind({})
```

I presume there is a method I can use with `AllIcons` but I don't see anything in documentation to describe something like:

```
AllIcons.parameters = {
  showPanel: false,
}
```

Can you guide me to be able to hide the lower panel for this story?

**Are you able to assist to bring the feature to reality?**
Yes, I can write documentation, but I haven't worked with Storybook before and wouldn't be able to write the code, if the feature doesn't exist.

**Additional context**
Add any other context or screenshots about the feature request here.
Repository: create-react-app
Issue: How come Jest 26.6.3 would not work with CRA requiring Jest 26.6.0? Too strict requirement?
Labels: stale,needs triage

```
$ react-scripts start

There might be a problem with the project dependency tree.
It is likely not a bug in Create React App, but something you need to fix locally.

The react-scripts package provided by Create React App requires a dependency:

  "jest": "26.6.0"

Don't try to install it manually: your package manager does it automatically.
However, a different version of jest was detected higher up in the tree:

  C:\dev\react-scss-jest-typescript\node_modules\jest (version: 26.6.3)
```
Repository: pytorch
Issue: Internal assert failed: `iter.device(arg).is_cuda()`
Labels: module: error checking,triaged

## 🐛 Bug

Running 
```
torch.min(torch.ones(()).cuda(), torch.ones(()))
```
gives
```
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
<ipython-input-23-f60bd551239d> in <module>
----> 1 torch.min(torch.ones(()).cuda(), torch.ones(()))

RuntimeError: iter.device(arg).is_cuda() INTERNAL ASSERT FAILED at "/opt/conda/conda-bld/pytorch_1607370141920/work/aten/src/ATen/native/cuda/Loops.cuh":94, please report a bug to PyTorch. 
```

## Environment

```
PyTorch version: 1.7.1
Is debug build: False
CUDA used to build PyTorch: 10.1
ROCM used to build PyTorch: N/A

OS: CentOS Linux 7 (Core) (x86_64)
GCC version: (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
Clang version: Could not collect
CMake version: version 2.8.12.2

Python version: 3.7 (64-bit runtime)
Is CUDA available: True
CUDA runtime version: 7.5.17
GPU models and configuration: 
GPU 0: TITAN X (Pascal)
GPU 1: TITAN X (Pascal)
GPU 2: TITAN X (Pascal)
GPU 3: TITAN X (Pascal)

Nvidia driver version: 418.40.04
cuDNN version: Probably one of the following:
/usr/local/cuda-10.0/targets/x86_64-linux/lib/libcudnn.so.7.5.0
/usr/local/cuda-10.1/targets/x86_64-linux/lib/libcudnn.so.7.5.0
/usr/local/cuda-7.5/targets/x86_64-linux/lib/libcudnn.so.6.0.21
/usr/local/cuda-8.0/targets/x86_64-linux/lib/libcudnn.so.7.1.3
/usr/local/cuda-9.0/targets/x86_64-linux/lib/libcudnn.so.7.3.1
/usr/local/cuda-9.1/targets/x86_64-linux/lib/libcudnn.so.7.1.3
/usr/local/cuda-9.2/targets/x86_64-linux/lib/libcudnn.so.7.3.1
HIP runtime version: N/A
MIOpen runtime version: N/A

Versions of relevant libraries:
[pip3] numpy==1.20.1
[pip3] pytorch-lightning==1.1.6
[pip3] torch==1.8.0
[pip3] torchvision==0.8.2
[conda] blas                      1.0                         mkl  
[conda] cudatoolkit               10.1.243             h6bb024c_0  
[conda] mkl                       2020.2                      256  
[conda] mkl-service               2.3.0            py37he8ac12f_0  
[conda] mkl_fft                   1.2.0            py37h23d657b_0  
[conda] mkl_random                1.1.1            py37h0573a6f_0  
[conda] numpy                     1.20.1                   pypi_0    pypi
[conda] pytorch                   1.7.1           py3.7_cuda10.1.243_cudnn7.6.3_0    pytorch
[conda] pytorch-lightning         1.1.6                    pypi_0    pypi
[conda] torch                     1.8.0                    pypi_0    pypi
[conda] torchvision               0.8.2                    pypi_0    pypi
```
Repository: flutter
Issue: Using FlutterView with hybrid composition directly might not work.
Labels: engine,a: existing-apps,a: platform-views,P2,team-engine,triaged-engine

## Use case

In add-to-app, the app might just embed a `FlutterView` into an existing activity's view hierarchy.

## Proposal

Add a test that verifies that this works, particularly after rotating the device.
Repository: vscode
Issue: Can not select text in markdown cell
Labels: bug,ux,notebook


Issue Type: <b>Bug</b>

Can't select text from a markdown preview, it always tries to drag the cell.

VS Code version: Code 1.55.0 (428daa3650c9b38c92d194172cba735b95a7c77f, 2021-03-26T22:22:39.145Z)
OS version: Darwin x64 20.3.0

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz (16 x 2400)|
|GPU Status|2d_canvas: enabled<br>gpu_compositing: enabled<br>metal: disabled_off<br>multiple_raster_threads: enabled_on<br>oop_rasterization: enabled<br>opengl: enabled_on<br>protected_video_decode: unavailable_off<br>rasterization: enabled<br>skia_renderer: disabled_off_ok<br>video_decode: enabled<br>webgl: enabled<br>webgl2: enabled|
|Load (avg)|4, 4, 4|
|Memory (System)|32.00GB (0.47GB free)|
|Process Argv|--enable-proposed-api donjayamanne.kusto --crash-reporter-id 299c833a-1961-40e9-a094-f10b65ea4e64|
|Screen Reader|no|
|VM|0%|
</details><details>
<summary>A/B Experiments</summary>

```
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstry244:30276681
pythonvsdeb440:30248342
pythonvsded773:30248341
pythonvspyt875:30259475
pythonvsnew554:30281908
pythontb:30283811
openwsldoc:30282072
vspre833:30267464
pythonptprofiler:30281270
vshan820:30276952
pythondataviewer:30283453

```

</details>

<!-- generated by issue reporter -->
Repository: flutter
Issue: Let DropdownMenuItem follow button disabled logic
Labels: framework,f: material design,c: proposal,team-design,triaged-design

## Use case
Hi, 

I am building a form, where a `DropdownButtonFormField`has a disabled `DropDownMenuItem`. 
In fact it's not possible to disable the item directly, some turnaround technique must be used: 
1) Set disabled item text color  grey 
2) Set onTap action => null  

Doing this, the item shows disabled, and tapping does nothing.

An example:

```dart
String selectedValue; 

...

          DropdownButtonFormField(
            decoration: InputDecoration(
                icon: const Icon(Icons.category),
                labelText: 'Disabled dropdown menu'),
            items: ['a', 'b', 'c'].map((value) {
              // normal options
              if (value != 'c') {
                return DropdownMenuItem<String>(
                  value: value,
                  child: new Text(value,
                      style: new TextStyle(color: Colors.black)),
                );
              // disabled item
              } else {
                return DropdownMenuItem<String>(
                  child: Text(value, style: TextStyle(color: Colors.grey)),
                  onTap: () => null,
                );
              }
            }).toList(),
            value: selectedValue,
            onChanged: (String newValue) {
              setState(() {
                selectedValue = newValue;
              });
            },
          ),
```

## Proposal

By writing this code, I saw that each DropDownMenuItem, has an onTap function.
Why not uniform this component with any other button, and make it disabled when onTap () => null  ??

What do you think about it?
Repository: pytorch
Issue: Isolate CPU tests from GPU tests
Labels: module: tests,triaged,actionable

## 🚀 Feature
Identify tests that are CPU only. One way to do this could be writing a test wrapper similar to the ones we have in [common_utils.py](https://github.com/pytorch/pytorch/blob/master/torch/testing/_internal/common_utils.py). The test wrapper can run every test and check afterwards whether or not CUDA was initialized to distinguish between CPU and GPU tests.

## Motivation

Because GPU runners are more (way more) expensive than CPU runners, we would rather not run any CPU tests on GPUs. If we had a clearer way of detecting whether tests were CPU only, we can tag them and avid running them on GPU runners. This would help reduce CI cost.

cc @mruberry @VitalyFedyunin @walterddr
Repository: excalidraw
Issue: Hide filename unless you have an active file handle
Labels: discussion

1. For browsers that do support the new FS API: hide the filename unless you have an active file handle, in which case I'd show it somewhere prominent on canvas, and also allow users to destroy the handle when they want to effectively work on a new file (without having to reload. This will also play a role if we later persist the file handle across sessions, and when we land the #2733).
2. For browsers that don't support the new FS API (and don't show a file save dialog when saving a file — from my testing it should be all the major browsers: Safari, Firefox, Brave): create a custom save dialog where you input the name when saving.
Repository: flutter
Issue: Flash when presenting add-to-app FlutterEngine
Labels: platform-ios,engine,a: existing-apps,has reproducible steps,P2,found in release: 2.2,team-ios,triaged-ios

**Description:**
FlutterViewController has a mechanism to pause the main thread until the view controller to make sure that its presentation waits for the first frame to be rendered.  In add-to-app that doesn't seem to always be respected.

**Here is the code that does the synchronization:**
https://github.com/flutter/engine/blob/3daef2814a272efdf4ae30dc6f84c04d4a475c57/shell/platform/darwin/ios/framework/Source/FlutterViewController.mm#L1005

**Here is what the glitch can look like:**
![pushflicker](https://user-images.githubusercontent.com/30870216/113358046-e9165900-92f9-11eb-919f-f6fccc769362.gif)

**steps to reproduce:**
It should be visible in this project when push in the Flutter views: https://github.com/flutter/samples/tree/master/add_to_app/multiple_flutters/multiple_flutters_ios
Repository: pytorch
Issue: `torch.tensor(..., device='meta')` doesn't work
Labels: module: bootcamp,triaged

It can be made to work cuz ellipses is an actual Python object, just need to extend the Python binding code a little.
Repository: pytorch
Issue: Consider adding meta:1, meta:2 devices
Labels: triaged,enhancement,module: structured kernels,module: meta tensors

Currently meta is like cpu in that there is only one device. But maybe it is useful for someone if we relax that and allow multiple meta devices. Then there'd be a current meta device like cuda and we'd be able to test indexy code. Not clear if there's a good use for it.
Repository: pytorch
Issue: Tracing `len(tensor)` gets static constant value in result graph
Labels: oncall: jit

## 🐛 Bug

Although `len(tenosr)` calls `tensor.shape[0]` underneath https://github.com/pytorch/pytorch/blob/057ec81b179059c5fa1285b5a07b6b8b4f5cdc2f/torch/_tensor.py#L583 Tracing `len(tensor)` gets a constant in the graph, while tracing `tensor.shape[0]` gets a correct one.

We looked into details and this is due to python builtin len actually ensures and casts final value to python integer, so that's how the tracer lost connection from output of `tensor.shape[0]`. 

We have a WIP PR #55151 demonstrating putting a warning inside `tensor.__len__` under tracing, but that will still ask user for model code change. The PR also demonstrates a monkey patching hack to circle around the builtin __len__, however that solution seems too risky. What would be a better way to trace `len(tensor)` correctly, without needing user model code change?

## To Reproduce

```python
import torch
import onnxruntime

class Model(torch.nn.Module):
    def forward(self, x):
        return x.shape[0] + x

x = torch.ones(2, 3)
tm = torch.jit.trace(Model(), x)
"""
graph(%self : __torch__.Model,
      %x : Float(2, 3, strides=[3, 1], requires_grad=0, device=cpu)):
  %4 : int = prim::Constant[value=0]()
  %5 : int = aten::size(%x, %4)
  %6 : Long(device=cpu) = prim::NumToTensor(%5)  # x.shape[0] traced as value
  %10 : int = prim::Constant[value=1]()
  %11 : Float(2, 3, strides=[3, 1], requires_grad=0, device=cpu) = aten::add(%6, %x, %10)
  return (%11)
"""
print(tm.forward.graph)

class Model(torch.nn.Module):
    def forward(self, x):
        return len(x) + x

x = torch.ones(2, 3)
tm = torch.jit.trace(Model(), x)

"""
graph(%self : __torch__.___torch_mangle_1.Model,
      %x : Float(2, 3, strides=[3, 1], requires_grad=0, device=cpu)):
  %10 : Long(requires_grad=0, device=cpu) = prim::Constant[value={2}]()  # len(x) becomes constant
  %11 : int = prim::Constant[value=1]()
  %12 : Float(2, 3, strides=[3, 1], requires_grad=0, device=cpu) = aten::add(%x, %10, %11)
  return (%12)
"""
print(tm.forward.graph)
```

## Expected behavior

Able to trace `len(tensor)` properly.

cc @gmagogsfm @SplitInfinity @jamesr66a @shubhambhokare1 @spandantiwari
Repository: pytorch
Issue: [FX] to_folder breaks with qualified type name
Labels: module: bootcamp,triaged,module: fx

```
import torch
import torch.fx
from typing import Tuple

class Foo(torch.nn.Module):
    def forward(self, x : Tuple[torch.Tensor, torch.Tensor]):
        return x[0] + x[1]

traced = torch.fx.symbolic_trace(Foo())
traced.to_folder('fold', 'Mod')
from fold import Mod
"""
Traceback (most recent call last):
  File "to_folder.py", line 11, in <module>
    from fold import Mod
  File "/home/jamesreed/fold/__init__.py", line 1, in <module>
    from .module import *
  File "/home/jamesreed/fold/module.py", line 4, in <module>
    class Mod(torch.nn.Module):
  File "/home/jamesreed/fold/module.py", line 9, in Mod
    def forward(self, x : typing_Tuple[torch.Tensor,torch.Tensor]):
"""
```

cc @ezyang @SherlockNoMad
Repository: godot
Issue: Some containers don't respect size flags
Labels: discussion,documentation,topic:gui

**Godot version:**
<!-- Specify commit hash if using non-official build. -->
3.2.3


**OS/device including version:**
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->
Kubuntu 20.10 64bit


**Issue description:**
<!-- What happened, and what was expected. -->
I have found that alot of containers do not respect controls size flags.

Most people just pass it off as design but I disagree.
When I think of expand I think a flag that makes the control take up as much space as it needs...
When I think of fill I think a flag that makes the control take up as much space as it can...
When I think of min size I think of the minimum size of that control without size flags.(size flags should override sizes greater)

![image](https://user-images.githubusercontent.com/2453707/113372837-65bb2e80-931e-11eb-9f2f-59f3887f9210.png)
As you can see my value label does not fill the space needed even though...
HBoxContainer has both expand and fill for both x and y,
Name has expand for x and fill for x and y,
Value has both expand and fill for both x and y.

messing with these doesn't affect the center container at all because it doesn't take in account it's children's calculated size.



**Steps to reproduce:**
- Download the project
- Load it in godot
- Open Menu.tscn
- Open scenes/controls/option.tcsn
- Try to get Value to take up as much room as possible while Name only takes up as much as it needs
- 
**Minimal reproduction project:**
[Asteroids.zip](https://github.com/godotengine/godot/files/6247312/Asteroids.zip)
Repository: flutter
Issue: Memory leaks with StatelessWidget due to closures sharing captured variables
Labels: framework,c: performance,perf: memory,has reproducible steps,P2,found in release: 3.10,found in release: 3.11,team-framework,triaged-framework

In this example, each time I press "Click", 50M of ram is allocated. It is never reclaimed, I can push 30 pages and take up 1.5gb, despite there only ever being 1 page on the nav stack. GC never kicks in. What's going on here?
```dart
import 'package:flutter/material.dart';

void main() {
  runApp(MaterialApp(
    home: MemoryTest(),
  ));
}

class MemoryTest extends StatelessWidget {
  final List<EdgeInsets> insets = List.generate(
    1000000,
    (index) => EdgeInsets.all(0),
  );
  @override
  Widget build(BuildContext context) {
    return OutlinedButton(
      child: Text("CLICK"),
      onPressed: () {
        Navigator.of(context).pushReplacement(MaterialPageRoute(
          builder: (_) => MemoryTest(),
        ));
      },
    );
  }
}
```

I'm using Windows Task manager to watch the total RAM consumed by the Flutter App process.
![image](https://user-images.githubusercontent.com/736973/113374970-a5d4de00-932b-11eb-8dee-af6b92ac0c28.png)

Flutter (Channel master, 2.1.0-11.0.pre.122, on Microsoft Windows [Version 10.0.18363.1440], locale en-US)
Repository: pytorch
Issue: [TorchScript] Can we support type refinement by Python type annotation?
Labels: oncall: jit

## 🚀 Feature
<!-- A clear and concise description of the feature proposal -->
Currently, we can do type refinement by `torch.jit.isinstance()`. Can we do it by type annotation?
e.g. 
before:
```
batch: Dict[str, Any] = {"texts": ["hello world"]}
texts = batch["texts"]
assert torch.jit.isinstance(texts, List[str])
for text in texts:
   ...
```
after:
```
batch: Dict[str, Any] = {"texts": ["hello world"]}
texts: List[str] = batch["texts"]
for text in texts:  
     ...
```
Full example: https://colab.research.google.com/drive/1PDWbfH-WOSbeq4vVXp4cDlDjXLXiY9LS?usp=sharing

## Motivation

<!-- Please outline the motivation for the proposal. Is your feature request related to a problem? e.g., I'm always frustrated when [...]. If this is related to another GitHub issue, please link here too -->

`torch.jit.isinstance()` is not very intuitive. It looks like checking type but actually refining type for torchscript. I think the type annotation approach:
1) looks more natural. It's the vanilla Python syntax
2) when we have many keys to extract from Dict[str, Any], it's much cleaner than repeating `torch.jit.isinstance` for each key

## Pitch

<!-- A clear and concise description of what you want to happen. -->
Automatically refine type according to Python type annotation when extracting key/value from Dict[str, Any]

## Alternatives

<!-- A clear and concise description of any alternative solutions or features you've considered, if any. -->
rename torch.jit.isinstance() to something like torch.jit.cast()

## Additional context

<!-- Add any other context or screenshots about the feature request here. -->


cc @gmagogsfm
Repository: flutter
Issue: Support large data transfer interop
Labels: c: new feature,platform-android,platform-ios,engine,c: performance,dependency: dart,a: existing-apps,customer: google,perf: speed,P3,team-engine,triaged-engine

Google customers (b/185959556) are reporting that it's not easy to set up efficient data transfers between the platform and Flutter. 

An existing exploration already exists at go/fandeng-jniffi-worklog. It may synergize with https://github.com/flutter/flutter/issues/33288.
Repository: TypeScript
Issue: The union type gives a warning when +=
Labels: Suggestion,Awaiting More Feedback

# Bug Report

The union type gives a warning when + =

### 🔎 Search Terms
`+=`  ` |`

### 🕗 Version & Regression Information

- This is a crash
- This changed between versions 4.1.3 and 4.2.3
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________
- I was unable to test this on prior versions because _______

### ⏯ Playground Link

<!--
  A link to a TypeScript Playground "Share" link which shows this behavior

  The TypeScript Workbench can be used for more complex setups, try
  https://www.typescriptlang.org/dev/bug-workbench/

  As a last resort, you can link to a repo, but these will be slower for us to investigate.
-->
[Playground link with relevant code](https://www.typescriptlang.org/play?#code/PTAEFkE9QYwewCYFNQHM5IM6gBZIE5JA)

### 💻 Code
```
let a: number | string = 0
// error
a += 'px'
// normal
a = a + 'px'
```

### 🙁 Actual behavior

![image](https://user-images.githubusercontent.com/32129111/113390865-2398f800-93c5-11eb-8c32-92df14e3d637.png)


### 🙂 Expected behavior

noError