sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: [Web] In Flutter Web, when the text content exceeds the area, there is a probability to display a large white block, how can I solve it?
Labels: engine,a: typography,platform-web,c: rendering,e: web_html,has reproducible steps,P2,found in release: 3.0,found in release: 3.1,team-web,triaged-web

It seems to only appear in Tab?

```dart
return TabBar(
      labelColor: AppColors.color_FFFFFF,
      unselectedLabelColor: AppColors.color_FFFFFF,
      indicatorColor: AppColors.color_FFFFFF,
      labelStyle: const TextStyle(
        fontSize: 14,
      ),
      unselectedLabelStyle: const TextStyle(
        fontSize: 14,
      ),
      indicatorWeight: 4.0,
      isScrollable: false,
      indicatorSize: TabBarIndicatorSize.label,
      indicatorPadding: const EdgeInsets.only(left: 10.0, right: 10.0),
      controller: controller.tabController,
      tabs: [
            Tab(text: 'This is a Long Text'),
            Tab(text: 'This is a Long Text'),
      ],
      onTap: (index) {
        controller.handleTabClick(index);
      },
    )
```

<img width="654" alt="image" src="https://user-images.githubusercontent.com/3838050/182752642-1727f607-d11f-4c90-9f9d-07a773714419.png">
Repository: pytorch
Issue: Profiling results on CPU is not reliable
Labels: module: performance,triaged

### 🐛 Describe the bug

Same as https://github.com/pytorch/kineto/issues/325, I used torch profiler to profile the inference of DL models, but the result of profiling is far from the measurement of directly running the model.
For example:
effiennet_b5 on A100:
Batch size: 1 (real time scenario), multi-instance (7 instances on 7 mig, each instance on one mig)
results of single instance:
```
benchmark time: 17.839 ms.
profiler time: Self CPU time total 30.498ms, Self CUDA time total: 17.447ms,  ProfilerStep* self cpu 6.493ms 
```
![Screenshot (346)](https://user-images.githubusercontent.com/23565213/182764329-abeec8eb-272b-487d-a04f-f3f701217c61.png)


self CPU time total 30.498ms - ProfilerStep* self cpu 6.493ms is still much larger than  benchmark time 17.839 ms. 
I found the exact overhead number before: 4 us per op on CUDA, and the profiler overhead on CPU seems to be very large.
This makes performance analysis difficult.

### Versions

pytorch 1.12
python 3.8.5

cc @VitalyFedyunin @ngimel
Repository: vscode
Issue: Input box does not render correctly after word wrap
Labels: bug,interactive-window

Issue Type: <b>Bug</b>

double click iteractive tab, there is a chance that the input box is missing or half-missing

Extension version: 2022.6.1201981810
VS Code version: Code 1.69.2 (3b889b090b5ad5793f524b5d1d39fda662b96a2a, 2022-07-18T16:14:10.636Z)
OS version: Linux x64 5.15.0-43-generic
Restricted Mode: No
Remote OS version: Linux x64 4.4.0-230-generic

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz (8 x 1459)|
|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>opengl: enabled_on<br>rasterization: enabled<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)|2, 2, 2|
|Memory (System)|15.49GB (0.61GB free)|
|Process Argv|--unity-launch --crash-reporter-id 890f7787-50ba-4207-9b29-fe529d42b4b5|
|Screen Reader|no|
|VM|0%|
|DESKTOP_SESSION|ubuntu-xorg|
|XDG_CURRENT_DESKTOP|Unity|
|XDG_SESSION_DESKTOP|ubuntu-xorg|
|XDG_SESSION_TYPE|x11|

|Item|Value|
|---|---|
|Remote|SSH: pensees|
|OS|Linux x64 4.4.0-230-generic|
|CPUs|Intel(R) Xeon(R) CPU E5-2690 v4 @ 2.60GHz (56 x 2900)|
|Memory (System)|251.81GB (125.04GB free)|
|VM|0%|
</details><details>
<summary>A/B Experiments</summary>

```
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30525688
vsaa593:30376534
vsc1dst:30438360
pythonvs932:30410667
wslgetstarted:30449410
vscscmwlcmt:30465135
cppdebug:30492333
pylanb8912cf:30529770
vsclangdf:30486550
c4g48928:30535728

```

</details>

<!-- generated by issue reporter -->
![Screen Shot 2022-08-04 at 13 03 24](https://user-images.githubusercontent.com/1948812/182754095-78f4bafa-6b5b-4e50-84f0-57d67bcef940.png)
Repository: material-ui
Issue: disablePortal Popper within Popper has bad initial placement. 
Labels: support: question,component: Popper

### Duplicates

- [X] I have searched the existing issues

These two issues are potentially related: 

https://github.com/mui/material-ui/issues/25204 (the repro for this one is broken) 
https://github.com/mui/material-ui/issues/11337


### Latest version

- [X] I have tested the latest version

### Current behavior 😯

Inner popper placement appears to depend on whether the outer popper already exists or not. 

https://user-images.githubusercontent.com/2467377/182755336-c1b308a9-3fe1-450f-8682-01521a352f34.mov



 

### Expected behavior 🤔
If I have a disablePortal popper within a popper I expect it to position itself consistently.


### Steps to reproduce 🕹

Repro here: 

https://codesandbox.io/s/pensive-allen-6x4wwr?file=/demo.tsx

1. Click the open button and observe that the inner popper is offset to the right
2. Click the autocomplete text field and it returns to the left. 

### Context 🔦

I have a button that triggers a popover which will contain an autocomplete. The autocomplete has its own popper, but I don't want it to behave as a modal/dialog (overlapping components) given that it is already in a Popover. 



### Your environment 🌎

See repro.
Repository: pytorch
Issue: [ROCm] build instruction is haphazard missing information unclear, build does not work
Labels: module: docs,module: rocm,triaged

### 🐛 Describe the bug

STARTED FROM https://pytorch.org/get-started/locally/ --> this has building from source link but ironically it link brings to "windows-from-source" i am not sure what it means, whoever has brought this URL must be some issue with English, nevertheless i decided to go there:
https://pytorch.org/get-started/locally/#windows-from-source
This page does not have a lot and then points to another one:
https://github.com/pytorch/pytorch#from-source

at this point, I am unclear why i have to go through 3 different pages to get the instruction for building:

This main page appears to be main instructions for building pytoch but RIDDLED with errors, haphazardly put information containing several different ways of building but ALL OF THEM DOES NOT work.

https://github.com/pytorch/pytorch#from-source

after satisfying all requirements including anaconda, upgraded python and bunch of libraries, some of them were specified in the page and some not (latter I had to find throuhg gruelling hours of struggle), build still fails

Anaconda3-2021.11-Linux-x86_64.sh  (installed this anaconda)
Python 3.9.10

Following steps ocurrs OK for radeon MI100:
git clone --recursive https://github.com/pytorch/pytorch
cd pytorch
# if you are updating an existing checkout
git submodule sync
git submodule update --init --recursive --jobs 0
python tools/amd_build/build_amd.py


but this following never works:

export CMAKE_PREFIX_PATH=${CONDA_PREFIX:-"$(dirname $(which conda))/../"}
python setup.py install

There is error about makefile missing.
POOR DOCUMENTATION!!

Decided to go manual by "cd pytorch ; mkdir build ; cd build ; cmake .. ; make -j16" it goes for about 88% and fails.

Try these steps on freshly installed Centos 8 Stream and i guaranteed you will never be able to build it with what is in there!

I just dont know how even basic build steps fail fail fail. 













### Versions

release/1.10

cc @svekars @holly1238 @jeffdaily @sunway513 @jithunnair-amd @ROCmSupport @KyleCZH
Repository: react
Issue: Bug: hydration mismatch in top component does not cause client-render fallback
Labels: Type: Bug,Status: Unconfirmed

We render some markup on the server, but on the client (due to the bug in our app's code) we have a different state and we render nothing (instead of our markup).

In this case React should fallback to client render, so it is expected that the server-rendered markup is removed, but it's not. 

Notice, how the server-rendered placeholders are still visible though the `console.log` inside the component states that the visible state is false:
<img width="1440" alt="Screenshot 2022-08-03 at 15 19 51" src="https://user-images.githubusercontent.com/1089670/182778644-d5ded261-86cc-4f55-8b6a-43d712e82335.png">

The problem exists only if this branch happens to be at the very top of the components tree. React doesn't even see the mismatch.

React version: 18.2.0

## Steps To Reproduce

1. render some markup on the server
2. on client side render it as null

Link to code example:

https://stackblitz.com/edit/react-kpphvo?file=src/App.js

## The current behavior

Mismatch is ignored, client's render result is not applied

## The expected behavior

Fallback to client's render result, mismatch warning is reported, server rendered markup is removed
Repository: rust
Issue: GATs plus mutable reference causes rustc to improperly believe data escapes function
Labels: A-lifetimes,C-bug,A-GATs

<!--
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
#![feature(generic_associated_types)]

trait LendingIterator: Sized {
    type Item<'a>
    where
        Self: 'a;
    fn next(&mut self) -> Self::Item<'_>;
}
fn works<I: LendingIterator, F>(iter: I, f: F) -> bool
where
    F: FnMut(I::Item<'_>),
{
    let mut iter2 = Eat(iter, f);
    let _next = iter2.any(|_| false);
    true
}
fn fails<I: LendingIterator, F>(iter: &mut I, f: F) -> bool
where
    F: FnMut(I::Item<'_>),
{
    let mut iter2 = Eat(iter, f);
    let _next = iter2.next();
    true
}
impl<I: LendingIterator> LendingIterator for &mut I {
    type Item<'a> = I::Item<'a> where Self:'a;
    fn next(&mut self) -> Self::Item<'_> {
        (**self).next()
    }
}

struct Eat<I, F>(I, F);
impl<I: LendingIterator, F> Iterator for Eat<I, F>
where
    F: FnMut(I::Item<'_>),
{
    type Item = ();
    fn next(&mut self) -> Option<Self::Item> {
        None
    }
}

```
[Playground](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=05ae5d1cfb5f8f2263aeb25e49864c43)

I expected to see this happen: code successfully compiles.

Instead, this happened: 
```
error[[E0521]](https://doc.rust-lang.org/nightly/error-index.html#E0521): borrowed data escapes outside of function
  --> src/lib.rs:22:17
   |
17 | fn fails<I: LendingIterator, F>(iter: &mut I, f: F) -> bool
   |                                 ----  - let's call the lifetime of this reference `'1`
   |                                 |
   |                                 `iter` is a reference that is only valid in the function body
...
22 |     let _next = iter2.next();
   |                 ^^^^^^^^^^^^
   |                 |
   |                 `iter` escapes the function body here
   |                 argument requires that `'1` must outlive `'static`
   |
   = note: requirement occurs because of a mutable reference to `Eat<&mut I, F>`
   = note: mutable references are invariant over their type parameter
   = help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance

For more information about this error, try `rustc --explain E0521`.
error: could not compile `playground` due to previous error
```
Note that removing the bound on `F` causes a successful compilation. Also,  removing the call to `next` lets things compile. The example probably can be minimized more.
### 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.
-->

Playground version:
```
1.64.0-nightly

(2022-08-03 1b57946a405d5b2a87e6
```
Repository: flutter
Issue: [Impeller] Tune the shaderc limit values to meet OpenGLES2 baselines
Labels: engine,P2,e: impeller,team-engine,triaged-engine

See https://github.com/flutter/engine/pull/35120#pullrequestreview-1060839664
Repository: frp
Issue: [Feature Request] Any plan of supporting HTTP digest authentication?
Labels: proposal

### Describe the feature request

It seems that the static_file plugin only supports HTTP basic authentication. Any plan of supporting HTTP digest authentication? 

### Describe alternatives you've considered

_No response_

### Affected area

- [ ] Docs
- [ ] Installation
- [ ] Performance and Scalability
- [X] Security
- [ ] User Experience
- [ ] Test and Release
- [ ] Developer Infrastructure
- [X] Client Plugin
- [ ] Server Plugin
- [ ] Extensions
- [ ] Others
Repository: PowerToys
Issue: FancyZones update request
Labels: Idea-Enhancement,Product-FancyZones,Needs-Triage

### Description of the new feature / enhancement

I would love an option that I could toggle on/off that would allow me to switch window placements between zones. For example, Let's say I have my screen with 2 zones, split down the middle. Spotify on the left, Browser on the right. I would like it if I dragged Spotify into the zone on the right, it would switch my Browser window to the left zone, effectively switching them places. Similarly, if I opened a new program and placed it in a zone already containing a program but there was an empty zone available, I'd like it to move that replaced window into the empty zone, rather than have it 'underneath' the new program in the same zone.

I hope this makes sense. Your suite of tools are all absolutely incredible

### Scenario when this would be used?

I think it would be useful in lots of scenarios but let's say you have Discord/Teams open in a smaller zone while whatever you're working on is in a large zone taking up most of your screen. Someone calls a conference and you want to switch Teams into the big space on your screen without overlapping your work/leaving an empty zone. You want to just quickly drag Teams into the large zone, which would automatically switch whatever you were working on into the space Teams left behind. I think it would be useful in scenarios where work has changing priorities but you still  want to be able to see it all at a glance.

### Supporting information

_No response_
Repository: flutter
Issue: [tool_crash] _CastError: new AppResourceBundle 
Labels: c: crash,tool,a: internationalization,P2,team-tool,triaged-tool

i tried to get dependencies but i end up getting this error i tried several times but to no avail
Repository: pytorch
Issue: functionalize and make_fx are not composable resulting in segfault and cuda error
Labels: module: crash,triaged,module: fx,fx,module: functorch

### 🐛 Describe the bug

This snippet segfaults with `device="cpu"` and gives a CUDA error with cuda device input.
```py
import torch
from functorch import make_fx
from functorch.experimental import functionalize

a = torch.randn(3, 3, device="cuda")

def fn(a):
    result = torch.empty_like(a)
    result.copy_(a)
    return result

try:
    functionalize(make_fx(fn))(a)
except Exception as e:
    print(e)
    print("functionalize failed")
```
```py
CUDA error: invalid argument
functionalize failed
```

### Versions

Latest master.

cc @ezyang @SherlockNoMad @zou3519 @Chillee @samdow @jjsjann123
Repository: PowerToys
Issue: Introduce ecoqos api control
Labels: Idea-New PowerToy,Product-Power management,Needs-Triage

### Description of the new feature / enhancement

Introduce this to reduce the power usage of computer, just like this project https://github.com/imbushuo/EnergyStar.

### Scenario when this would be used?

Permanently in background

### Supporting information

https://github.com/imbushuo/EnergyStar
Repository: react
Issue: [DevTools]: More compact rendering of deeply nested component trees when there is a single child
Labels: Type: Feature Request,Component: Developer Tools

On Reddit.com:

![Screen Shot 2022-08-04 at 2 43 29 pm](https://user-images.githubusercontent.com/281413/182850866-ce57cfdc-1f6c-4c72-b149-802d57fc05cb.png)

It's a very common pattern in React to have deep chains of components with only one single child.

# Options

## a. VSCode style

This problem is also enountered in Java project trees. 

VSCode does it like this:

![image](https://user-images.githubusercontent.com/281413/182853632-ba1a9e91-6b78-46fb-beba-edea860b3a44.png)

https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_41.md#compact-folders-in-explorer

IntelliJ similar.

Maybe we could do the same as VSCode?

## b. No indent for single child

Another approach would be to just not indent when there is only one child.

```
  h
  Context.Provider - {props: {foo: 1}}
  I
  Context.Provider
  E
  Context.Provider
  Context.Provider
  Context.Provider
  l
- Context.Provider (2 children - collapse all)

    mg
    d
    Context.Provider
  + Component (1 child - expand all)

    vg
    hg
    Context.Provider
  + hg (1 child - expand all)

```

We could also indicate when there are multiple children and provide some controls to collapse all the children's children. This would help with https://github.com/facebook/react/issues/16463.

Advantage: As another feature I'd also be interested in adding some inline annotations to the right of each component to show some props to better identify components. Moving these nested trees horizontal would block this ability, so this approach works better.

Design decision: Where to place the arrow to toggle folding? At the first element with multiple children (indicated above)? Or at the top. Or maybe we can create a really tall button on hover to show.

Design decision: How to clearly and visually deliniate that the components are nested vs siblings. Maybe we need to add an extra space (as shown in example above). Maybe color coding as well. Or alternate grey shading.

# Related

- https://github.com/facebook/react/issues/16463
- https://github.com/facebook/react/issues/16735
Repository: rust
Issue: Subtracting Duration from Instant on Mac is panic-prone
Labels: C-bug,T-libs,A-time

The following program: 

```rust
fn main() {
    let t = std::time::Instant::now();
    let d = std::time::Duration::from_secs(60);
    eprintln!("{:?}", (t - d).elapsed());
}
```

works on Linux, but could panic on Mac. The reason for that is that, as implemented, `Instant` on mac starts at zero at reboot, so it can't represent times before the machine started. 

This is pretty unfortunate -- it means that `impl Sub<Duration> for Instant` isn't really usable on mac, as subtracting even a small duration can panic. And subtracing duration is pretty useful and natural too implement tasks like "periodically, cleanup data crated earlier than `Instant::now() - Duration::from_secs(60)`".

While technically we don't give any guarantees on `Instant` range and document this as system-dependent, it is *really* unfortunate that subtracting API exists, works fine on Linux, and fails occasionally on macs. I think we should just go and patch the time on our side, to get some sort of a reasonable range bothways. 

I *think* just 

```diff
diff --git a/library/std/src/sys/unix/time.rs b/library/std/src/sys/unix/time.rs
index f99c453a3a8..994320564c4 100644
--- a/library/std/src/sys/unix/time.rs
+++ b/library/std/src/sys/unix/time.rs
@@ -168,7 +168,7 @@ pub fn now() -> Instant {
             extern "C" {
                 fn mach_absolute_time() -> u64;
             }
-            Instant { t: unsafe { mach_absolute_time() } }
+            Instant { t: unsafe { mach_absolute_time() } + u64::MAX / 2 }
         }
 
         pub fn checked_sub_instant(&self, other: &Instant) -> Option<Duration> {
```

would do the trick, but I am wondering if there's a better way to do this. 

Manual for `mach_absolute_time` (https://developer.apple.com/documentation/kernel/1462446-mach_absolute_time) also suggests using `clock_gettime_nsec_np(CLOCK_UPTIME_RAW)`instead, so we can perhaps switch to that while we are at it.
Repository: neovim
Issue: CTRL-. to record macros and assign to arbitrary shortcut
Labels: enhancement

### Feature already in Vim?

No.

### Feature description

1. `CTRL-.` to start recording
2. `CTRL-.` to stop
3. dialog appears to enter key and optionally edit the macros string
4. dialog informs if key is already bound
5. key saved (and optionally persisted)

The benefits compared to `q`.
1. Can be invoked from insert mode
2. Records macro without overwriting the key (even if recording is cancelled)
3. Warns about overwriting existing keys
4. Any shortcut can be used, including combinations with control keys, so no need in separate play shortcut (which for `q` is `@` by the way).
5. Allows to edit macros before saving
6. Allows to persist macros between sessions
7. "dot" for recording is easier to memorize that "q" for ??? (not quitting apparently), which gives a potential possibility to rebind `q` to quit in 2048
Repository: flutter
Issue: Support custom ExpansionPanel icon
Labels: c: new feature,framework,f: material design,c: proposal,P2,team-design,triaged-design

## Use case

`ExpansionPanel` should allow the user to customize or even remove the trailing expansion icon/button. This is even more needed as the `canTapOnHeader` key allows expanding elements by clicking on the header instead of the icon.

`ExpansionPanelList` in combination with `ExpansionPanel`s are currently the only canonical option to build a list of expandable tiles. Out of the two, only `ExpansionPanel` can be expanded and collapsed programmatically, and therefore only `ExpansionPanel` is able to enforce that only one element is expanded at any given time, collapsing any other element when a new one is expanded. However, while `ExpansionTile` does not force the expansion icon, `ExpansionPanel` does.

It seems like quite a common use case to want a List of expandable elements but not show a fixed style expand button, either because the button should be customizable or be replaced with a clickable heading.

## Proposal
Add the following keys to `ExpansionPanel`:
```dart
enum ExpandIconPosition {left, right};
enum CollapseIconPosition {left, right};

ExpansionPanel({
  Icon? expandIcon = DefaultExpandIcon(),
  Icon? collapseIcon = DefaultCollapseIcon(),
  ExpandIconPosition expandIconPosition = ExpandIconPosition.right,
  CollapseIconPosition collapseIconPosition = CollapseIconPosition.right,
...
})
```
The expand/collapse icons should replace the currently hardcoded arrow icons or in case they are null, not display any expand/collapse buttons.

The `ExpandIconPosition` and `CollapseIconPosition` should control where the expand/collapse button is located.