sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: storybook
Issue: Viewport addon: add controls allowing user to view component at fluid range of sizes
Labels: feature request,needs triage

**Is your feature request related to a problem? Please describe**

Sometimes things break at sizes in between configured/fixed screen sizes.

**Describe the solution you'd like**

Brad Frost built a tool called [`ish.`](https://github.com/bradfrost/ish.) that was used in his [Pattern Lab](https://patternlab.io) tool; I think it offers some ideas for ways to address this. There are three features:

1. The 'Hay!' feature resizes the viewport to the smallest size, then pixel by pixel increases until you reach a broken state. 

https://user-images.githubusercontent.com/1072292/172032947-48ec3949-2e25-4211-8f47-46237f02920d.mp4

2. There's a 'random' mode that picks a random viewport size

<img width="1424" alt="image" src="https://user-images.githubusercontent.com/1072292/172032813-dd59e460-4f3f-42b4-9f33-56595355d761.png">

3. There's a 'disco' mode that picks one random size after another and switches between them until you stop it.

**Describe alternatives you've considered**

This has similar features

https://lab.maltewassermann.com/viewport-resizer/

**Are you able to assist to bring the feature to reality?**

Later in the year perhaps, when time allows; though I'm unfamiliar with the codebase here

**Additional context**

Note that 'ish.' seems to be unmaintained and it's not clear what the license is, but mainly I'm referencing it to point out the feature set.
Repository: rust
Issue: Heap allocation of Arc not optimized out compared to Rc
Labels: I-slow,C-bug

<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.
-->

I tried this code:

```rust
use std::rc::Rc;
use std::sync::Arc;

struct Data {
    a: u64,
    b: u64,
}

fn add_numbers(p: &Data) -> u64 {
    p.a + p.b
}

pub fn add_two_numbers_arc(a: u64, b: u64) -> u64 {
    let x = Arc::new(Data { a, b });
    add_numbers(&x)
}

pub fn add_two_numbers_rc(a: u64, b: u64) -> u64 {
    let x = Rc::new(Data { a, b });
    add_numbers(&x)
}
```

[godbolt link](https://godbolt.org/z/vTqToedE1)

I expected to see this happen: The heap allocation of both the `Rc` and the `Arc` should be optimized out.

Instead, this happened: Only `Rc` got the optimization.
Repository: rust
Issue: Mathematical Sans-Serif Italic Capital Z improper .to_lowercase functionality.
Labels: A-Unicode,T-compiler,C-bug

<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.
-->

I tried this code:

```rust
fn main()
{
    let string_lowercase = String::from("𝘡𝘳𝘦").to_lowercase();
    println!("{}",string_lowercase);
}
```

I expected to see this happen: The Mathematical Sans-Serif Italic Capital Z should have become Mathematical Sans-Serif Italic Small Z.

Instead, this happened: It is still Mathematical Sans-Serif Italic Capital Z.

### Meta
<!--
If you're using the stable version of the compiler, you should also check if the
bug also exists in the beta or nightly versions.
-->
Bug exists in Stable, Beta, and Nightly.

`rustc --version --verbose`:
```
rustc 1.61.0 (fe5b13d68 2022-05-18)
binary: rustc
commit-hash: fe5b13d681f25ee6474be29d748c65adcd91f69e
commit-date: 2022-05-18
host: x86_64-unknown-linux-gnu
release: 1.61.0
LLVM version: 14.0.0
```
Repository: flutter
Issue: [Documentation]: Missing Widget that can be added under  `incorrect use of ParentData Widget` section
Labels: framework,d: api docs,P2,team-framework,triaged-framework

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Use case
Spacer Widget cannot use inside Wrap Widget
that is missing in docs Incorrect Use of ParentData Widget at https://docs.flutter.dev/testing/common-errors#incorrect-use-of-parentdata-widget
<!--
     Please tell us the problem you are running into that led to you wanting
     a new feature.

     Is your feature request related to a problem? Please give a clear and
     concise description of what the problem is.

     Describe the alternative solutions you've considered. Is there a package
     on pub.dev/flutter that already solves this?
-->

## Proposal

<!--
     Briefly but precisely describe what you would like Flutter to be able to do.

     Consider attaching something showing what you are imagining:
      * images
      * videos
      * code samples

     Does this have to be provided by Flutter directly, or can it be provided
     by a package on pub.dev/flutter? If so, maybe consider implementing and
     publishing such a package rather than filing a bug.
-->
Repository: pytorch
Issue: [distributed_test.py] Improve `test_barrier`
Labels: oncall: distributed,module: tests,better-engineering

### 🚀 The feature, motivation and pitch

Right now, `test_barrier` tests in `distributed_test.py` work by having rank 0 sleep for a certain amount of time, then run barrier on all ranks, and verify all ranks waited for at least this amount of time. Asserts based on timing / sleep of a certain process have historically been very flaky and hard to get right, so we should refactor this test. 

One suggestion, based on the goal of the test to ensure no ranks pass barrier until all ranks have called into it:
- Maintain a count starting with 0 on all ranks
- All ranks increment the count on each rank by 1
- Barrier()
- Validate each rank count == world_size
- If some rank passed barrier before others called into it, then the validation at the end could be incorrect.

### Alternatives

_No response_

### Additional context

_No response_

cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @SciPioneer @H-Huang @kwen2501 @mruberry
Repository: vscode
Issue: Dragging terminals tabs should group and ungroup them
Labels: feature-request,under-discussion,terminal-tabs

I've instinctively tried on more than one occasion:

1. Dragging a terminal tab atop another one to group it (like dragging a file onto a folder in the explorer)
2. Dragging a terminal tab in a group out to ungroup it (like dragging a nested file in the explorer to the root of the workspace)

It would be nice if these affordances worked for terminal tabs 🙂
Repository: vscode
Issue: Wrong sort order for Go to File
Labels: bug,quick-open


Issue Type: <b>Bug</b>

1. Create files as follow tree:
```
├── pp
│   └── src
│       └── app.h
├── ps
│   └── src
│       └── app.h
```

2. `Ctrl + P` and type `ps/app.h`
3. Expected `ps/src/app.h` sort at first but not actually

VS Code version: Code 1.67.2 (c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5, 2022-05-17T18:15:52.058Z)
OS version: Windows_NT x64 10.0.22000
Restricted Mode: No

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|AMD Ryzen 7 5800H with Radeon Graphics          (16 x 3194)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>oop_rasterization: enabled<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_renderer: enabled_on<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled|
|Load (avg)|undefined|
|Memory (System)|27.87GB (15.45GB free)|
|Process Argv|--crash-reporter-id b9977eb4-e704-4623-b964-f4ec24c2d8e9|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (29)</summary>

Extension|Author (truncated)|Version
---|---|---
typesharp|bon|0.6.0
doxdocgen|csc|1.4.0
gitlens|eam|12.0.7
better-cpp-syntax|jef|1.15.14
vscode-clangd|llv|0.1.17
python|ms-|2022.6.3
vscode-pylance|ms-|2022.6.0
jupyter|ms-|2022.4.1021342353
jupyter-keymap|ms-|1.0.0
jupyter-renderers|ms-|1.0.8
remote-containers|ms-|0.234.0
remote-ssh|ms-|0.80.0
remote-ssh-edit|ms-|0.80.0
remote-wsl|ms-|0.66.3
cmake-tools|ms-|1.10.5
cpptools|ms-|1.9.8
cpptools-extension-pack|ms-|1.2.0
powershell|ms-|2022.5.1
java|red|1.7.0
vscode-xml|red|0.20.0
vscode-yaml|red|1.7.0
omg-idl|RTI|1.0.1
cmake|twx|0.0.17
vscodeintellicode|Vis|1.2.21
vscode-java-debug|vsc|0.41.0
vscode-java-dependency|vsc|0.19.1
vscode-java-pack|vsc|0.23.0
vscode-java-test|vsc|0.35.0
vscode-maven|vsc|0.35.2

(1 theme extensions excluded)

</details><details>
<summary>A/B Experiments</summary>

```
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256859
pythonvspyl392:30443607
pythontb:30283811
pythonvspyt551:30345470
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscoreces:30445986
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
vsc1dst:30438360
pythonvs932:30410667
wslgetstarted:30449410
vscscmwlcmt:30465135
cppdebug:30492333
vsclangdf:30486550

```

</details>

<!-- generated by issue reporter -->
Repository: pytorch
Issue: torch.fx deepcopy does not copy attributes added to GraphModule or Nodes
Labels: triaged,module: fx

### 🐛 Describe the bug

Hi !

Calling deepcopy on GraphModules does not copy added attributes.
Here is a MWE :
```Python
#imports
import torch
import torch.nn
import torch.fx
import copy

#MWE
net=torch.nn.Linear(0,0)
gm=torch.fx.symbolic_trace(net)
gm.myattr="registered"
gm2=copy.deepcopy(gm)
print(gm2.myattr)
```
which returns `AttributeError: 'GraphModule' object has no attribute 'myattr'`, showing that attribute `myattr` has not been copied.

However, what lead me to this is that I wanted to mark nodes for transformations, and copy the GraphModule before applying the different transformations in order to be able to train transformed copies separately.
Here is an example with the nodes :
```Python
#imports
import torch
import torch.nn
import torch.fx
import copy

#MWE on nodes
net=torch.nn.Linear(0,0)
gm=torch.fx.symbolic_trace(net)
for node in gm.graph.nodes:
    node.is_marked=True
gm2=copy.deepcopy(gm)
for node in gm2.graph.nodes:
    print(node.is_marked)
```
which returns `AttributeError: 'Node' object has no attribute 'is_marked'`.

I think the same holds with attributes added to `gm.graph` etc.



### Versions

PyTorch version: 1.11.0+cu113
Is debug build: False
CUDA used to build PyTorch: 11.3
ROCM used to build PyTorch: N/A

OS: Microsoft Windows 10 Famille
GCC version: Could not collect
Clang version: Could not collect
CMake version: Could not collect
Libc version: N/A

Python version: 3.9.10 (tags/v3.9.10:f2f3f53, Jan 17 2022, 15:14:21) [MSC v.1929 64 bit (AMD64)] (64-bit runtime)
Python platform: Windows-10-10.0.18363-SP0
Is CUDA available: True
CUDA runtime version: 11.6.124

GPU models and configuration: GPU 0: NVIDIA GeForce RTX 2070
Nvidia driver version: 511.65
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

Versions of relevant libraries:
[pip3] mypy-extensions==0.4.3
[pip3] numpy==1.22.3
[pip3] torch==1.11.0+cu113
[pip3] torchaudio==0.11.0+cu113
[pip3] torchvision==0.12.0+cu113
[conda] Could not collect

cc @ezyang @SherlockNoMad
Repository: PowerToys
Issue: Ability to auto-set "Show this window on all desktops" depending on monitor
Labels: Idea-Enhancement,Product-Virtual Desktop,Needs-Triage

### Description of the new feature / enhancement

Having 2 monitors where A is primary and virtual desktops works as usual.
Monitor B is an auxiliary "sticky", where regardless of what virtual desktop A is, windows can be dragged into B, when switching virtual desktops, B does not change.
Today I can achieve this behavior by manually setting the windows on monitor B as "Show this window on all desktops"

### Scenario when this would be used?

I have been unsinging the same setup for a couple of years, where main monitor utilizes virtual desktops and secondary is for chatting apps, time tracking, music, folders.


### Supporting information

I did some research to find out if this was possible before opening this issue, I found that there is some interest, example:
https://superuser.com/questions/1469223/windows-10-run-virtual-desktop-on-one-monitor-only
Repository: vscode
Issue: Workbench navigation commands stop working inside WebView when switching to another editor and back
Labels: bug,help wanted,webview


Issue Type: <b>Bug</b>

CC @mjbvz
Followup to #137167 which is still reproducible for me

## Steps to reproduce

- Open a vanilla VSCode with no settings and extensions:
```sh
code --user-data-dir /tmp/vscode-repro-nav --disable-extensions
```
- Set the following keybindings:
```json
[
  {
    "key": "f1",
    "command": "workbench.action.navigateLeft"
  },
  {
    "key": "f2",
    "command": "workbench.action.navigateRight"
  }
]
```
- Open some file, say `test.py`
- Use `workbench.action.splitEditorRight` to split the editor to the right
- Use `update.showCurrentReleaseNotes`  to open the Release Notes WebView
- Click with the mouse inside the Release Notes WebView
- Type <kbd>F1</kbd> from the WebView to navigate to the left editor: it works following 6e5b172
- Navigate in the **right** editor group (where the Release Notes WebView are open) to the file `test.py` with the keyboard (for example using <kbd>Ctrl+Tab</kbd>)
- Navigate back to the Release Notes WebView with the keyboard (for example using <kbd>Ctrl+Tab</kbd>)
- Type <kbd>F1</kbd> from the WebView to navigate to the left editor: it no longer works

VS Code version: Code 1.67.2 (c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5, 2022-05-17T18:23:40.286Z)
OS version: Linux x64 5.17.11
Restricted Mode: No

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-7820X CPU @ 3.60GHz (16 x 3600)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>oop_rasterization: enabled<br>opengl: enabled_on<br>rasterization: enabled_force<br>raw_draw: disabled_off_ok<br>skia_renderer: enabled_on<br>video_decode: disabled_software<br>video_encode: disabled_software<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled|
|Load (avg)|3, 2, 2|
|Memory (System)|94.00GB (15.81GB free)|
|Process Argv|--enable-gpu-rasterization --user-data-dir /tmp/vscode-repro-nav --disable-extensions --crash-reporter-id 1a24c498-5487-42be-8c72-40410e66ca6b|
|Screen Reader|no|
|VM|0%|
|DESKTOP_SESSION|custom|
|XDG_CURRENT_DESKTOP|Xsession|
|XDG_SESSION_DESKTOP|custom|
|XDG_SESSION_TYPE|x11|
</details>Extensions disabled<details>
<summary>A/B Experiments</summary>

```
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyl392:30443607
pythontb:30283811
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscoreces:30445986
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
vsc1dst:30438360
pythonvs932:30410667
wslgetstarted:30449410
vscscmwlcmt:30465135
cppdebug:30492333
vsclangdc:30486549

```

</details>

<!-- generated by issue reporter -->
Repository: TypeScript
Issue: Different `typeof` behavior between ES targets
Labels: Bug,Help Wanted

# Bug Report

<!--
  Please fill in each section completely. Thank you!
-->

### 🔎 Search Terms

<!--
  What search terms did you use when trying to find an existing bug report?
  List them here so people in the future can find this one more easily.
-->

Sorry, hard to formulate.

### 🕗 Version & Regression Information

<!-- When did you start seeing this bug occur?

"Bugs" that have existed in TS for a long time are very likely to be FAQs; refer to
  https://github.com/Microsoft/TypeScript/wiki/FAQ#common-bugs-that-arent-bugs

If possible, please try testing the nightly version of TS to see if it's already been fixed.
For npm: `typescript@next`
This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly

Note: The TypeScript Playground can be used to try older versions of TypeScript.

Please keep and fill in the line that best applies:
-->
- This bug happens at least since version 3.3.3 (current lowest in playground)
- This bug happens only when `target` is greater than `es5`

### ⏯ 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?target=2&ts=4.7.2#code/CYUwxgNghgTiAEAzArgOzAFwJYHtXzDigxAB4AVAGgD4AKRVALnloHMQNnaBKeAXmrxyvAUO7NyAKElg8AZwzwAHgEZ+BIiTYd+ggN6T4R+HAzIY+A8evwswZioBMAZkPGAvpPfdps1AuVHdUIQYhBabU4WEUEMAE8ABxAcRHgAfTkQCEQY+CtjPwCMrNS+PLcbW3t4J1drTwqTDnN8YuyvHxl5RSVnYM1wyK5c+KSU9Mzs3PyjADdYCZL1GZs7BxdGhutTFsX27yA)

### 💻 Code

<!-- Please post the relevant code sample here as well-->
```ts
declare function create<T>(fn: (get: () => T) => T): T

// Error: Cannot find name '_self'.
const store = create((get: () => typeof _self) => {
    const _self = {
        id: 123
    }

    return _self
})
```

### 🙁 Actual behavior

If tsconfig property `target` is greater than `es5` TS gives an error: `Cannot find name '_self'`, yet type of `store` is inferred correctly.
For `es3` and `es5` it works fine.

### 🙂 Expected behavior

No error 😄 

***

I think it could be related to hoisting rules. Because es5 doesn't have `let` and `const` keywords and `var` is considered to be visible anywhere inside function. But maybe I'm wrong.

Anyway, it would be nice if it worked, as it allows to help the compiler to infer circularly dependent types. Here is the actual example:
[https://github.com/pmndrs/zustand/discussions/991](https://github.com/pmndrs/zustand/discussions/991).
Repository: TypeScript
Issue: A way to specify type guard preconditions for callbacks to implement custom control-flow functions
Labels: Suggestion,Awaiting More Feedback

# Suggestion

It's sometimes useful to define custom control flow functions that take a callback and call them immediately when some conditions are met. A very simple example is:

```ts
const when = <T>(condition: boolean, trueFn: () => T) => condition ? trueFn() : undefined;
```

When using this function, we'd like types of variables closed over in the callback to be narrowed by the condition:

```ts
const example = (v: V | undefined) => {
  // we'd like v.foo to not be an error since v will be defined
  return when(v !== undefined, () => v.foo);
}
```

Another example might be some form of user-land pattern matching:

```ts
matchInstanceOf(o, [
  [Foo, () => o.fooProperty],
  [Baz, () => o.barProperty],
]);
```

This might be even less feasible, but it'd be useful to annotate that the functions are called when `x` is an instance of the first element in the tuples.

## 🔍 Search Terms

callback type guard

Possibly related issues:
- https://github.com/microsoft/TypeScript/issues/9998
- https://github.com/microsoft/TypeScript/issues/27531

## ✅ Viability Checklist

<!--
   Suggestions that don't meet all these criteria are very, very unlikely to be accepted.
   We always recommend reviewing the TypeScript design goals before investing time writing
   a proposal for ideas outside the scope of the project.
-->
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, new syntax sugar for JS, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).


## ⭐ Suggestion

I'm not sure where syntactically we could annotate a precondition, but the goal would be to use the custom type guard syntax of `condition is true` to annotate the callback. Maybe a keyword like `assert` could introduce the type guard:

```ts
const when = <T>(condition: boolean, trueFn: assert condition is true () => T) => condition ? trueFn() : undefined;
```

## 📃 Motivating Example

<!--
  If you were announcing this feature in a blog post, what's a short explanation that shows
  a developer why this feature improves the language?
-->

## 💻 Use Cases

<!--
  What do you want to use this for?
  What shortcomings exist with current approaches?
  What workarounds are you using in the meantime?
-->
Repository: youtube-dl
Issue: Unsupported URL (CAMBRO.tv)
Labels: site-support-request,nsfw

## Checklist

- [x] I'm reporting a new site support request
- [x] I've verified that I'm running youtube-dl version **2021.12.17**

## Example URLs

- Single video: https://www.cambro.tv/436185/jaeandbailey-chaturbate-webcam-porn-videos/
- Single video: https://www.cambro.tv/embed/436185

## Description

I'm sorry, I speak a little English. I would like download videos from CAMBRO.tv site. How to? I am interested in any solution in Debian/Ubuntu VPS (console mode). In Firefox browser, the Video DownloadHelper extension it works, but need a console solution in my VPS. Thanks.
Repository: flutter
Issue: UIKitView isn't rendered after reload/state change
Labels: platform-ios,engine,a: platform-views,has reproducible steps,P2,found in release: 3.0,found in release: 3.1,team-ios,triaged-ios

I have been struggling for days to solve this bug but I can't get my hands around it. I have a native view that implements camera deep ar which works fine when the flutter app is launched, after performing a hot reload or hot restart or changing screen or route, the native view does not get rendered on the screen, it just shows a white screen
Repository: deno
Issue: lsp: support detecting test built on top of `Deno.test()` like std/testing/bdd
Labels: suggestion,lsp

**Is your feature request related to a problem? Please describe.**

Testing UI integration does not show tests defined written in BDD style (https://deno.land/std@0.136.0/testing/bdd.ts).

**Describe the solution you'd like**

Would be nice to have them displayed. For now the only workaround is to just use default Deno.test