sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: material-ui
Issue: [material-ui][Chip] Icon Not Centered When Only Icon is Provided
Labels: bug 🐛,waiting for 👍,component: chip,package: material-ui

### Steps to reproduce

Link to live example: https://codesandbox.io/s/youthful-fermi-qkt98d

Steps:
1. Create a Chip with only an icon (without label)
```
import FaceIcon from '@mui/icons-material/Face';

<Chip icon={<FaceIcon />} />
```

### Current behavior

The icon is then not centered
<img width="100" alt="image" src="https://github.com/user-attachments/assets/c3a95922-2bfa-4049-a79a-1562f03d026d">


### Expected behavior

The icon should be centered. 
A temporary workaround to achieve that is to pass the icon as a part of the label prop:

```
<Chip label={<FaceIcon />} />
```

### Context

_No response_

### Your environment

<details>
  <summary><code>npx @mui/envinfo</code></summary>

```
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.
```
</details>


**Search keywords**: Chip Icon centered
Repository: flutter
Issue: [Edge] Buttons can get stuck and not respond to gestures
Labels: f: gestures,platform-web,has reproducible steps,browser: edge,P2,team-web,triaged-web,found in release: 3.22,found in release: 3.24

### Steps to reproduce

1. flutter run -d edge
2. Navigate to screen 2 
3. Click just outside back button on very edge of the window. 
4. Try clicking back button again.

### Expected results

Navigates back to previous screen or
Does not navigate back as click is actually outside the button but still registered. 
Back button keeps working. 

### Actual results

Does not navigate back to previous screen and button doesn't work anymore. 

### Code sample

<details open><summary>Code sample</summary>

```dart
void main() {
  runApp(const MaterialApp(
    home: Home(),
  ));
}

class Home extends StatefulWidget {
  const Home({super.key});

  @override
  State<Home> createState() => _HomeState();
}

class _HomeState extends State<Home> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Home'),
      ),
      body: Center(
        child: ElevatedButton(
            onPressed: () => Navigator.of(context)
                .push(MaterialPageRoute(builder: (context) => Page2())),
            child: Text('Page 2')),
      ),
    );
  }
}

class Page2 extends StatefulWidget {
  const Page2({super.key});

  @override
  State<Page2> createState() => _Page2State();
}

class _Page2State extends State<Page2> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: const Text('Page 2'),
        ),
        body: Center(
          child: Text('Page 2'),
        ));
  }
}

```

</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>



https://github.com/user-attachments/assets/774b8383-4108-4288-8b5d-dbf0b90cdba5


</details>


### Logs

<details open><summary>Logs</summary>

```console
No related logs
```

</details>


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
[√] Flutter (Channel stable, 3.22.1, on Microsoft Windows [Version 10.0.19045.4651], locale lv-LV)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Build Tools 2022 17.5.5)
[√] Android Studio (version 2022.2)
[√] VS Code (version 1.91.1)
[√] Connected device (3 available)
[√] Network resources
```

Edge version
``` Version 126.0.2592.113 (Official build) (64-bit)```

</details>
Repository: ui
Issue: [bug]: CommandItem presents an error in the NextJS when used
Labels: bug

### Describe the bug

I'm creating a combobox for Brazilian states, and when using the CommandItem component, an error is presented in the system


### Affected component/components

Combobox, CommandItem

### How to reproduce

1- I create the combobox component with the popover and command, inside a FormField, and apply my options with an array.map()

```ts
                    <Popover>
                      <PopoverTrigger asChild>
                        <FormControl>
                          <Button
                            variant={'outline'}
                            className="items-start justify-start"
                          >
                            {'Selecione a UF'}
                          </Button>
                        </FormControl>
                      </PopoverTrigger>
                      <PopoverContent className="w-full max-h-80 overflow-scroll">
                        <Command>
                          <CommandInput placeholder="Selecione a UF" />
                          <CommandGroup>
                            {brazilianStates.map((uf) => (
                              <CommandItem
                                key={uf.abbreviation}
                                value={`${uf.abbreviation} - ${uf.name}`}
                                onSelect={() =>
                                  form.setValue('state', uf.abbreviation)
                                }
                              >
                                {uf.abbreviation} - {uf.name}
                                <CheckIcon
                                  className={cn(
                                    'ml-auto h-4 w-4',
                                    uf.abbreviation === field.value
                                      ? 'opacity-100'
                                      : 'opacity-0',
                                  )}
                                />
                              </CommandItem>
                            ))}
                          </CommandGroup>
                        </Command>
                      </PopoverContent>
                    </Popover>
```

2- when using this code, I try to use the combobox and the following error is presented

![image](https://github.com/user-attachments/assets/93fd6ae7-ed50-4795-b414-b132640b816c)

3- but when I replace the CommandItem with a div, the code works perfectly

![image](https://github.com/user-attachments/assets/baec4805-6ad9-4b58-b635-e278b68bd46a)


### Codesandbox/StackBlitz link

_No response_

### Logs

_No response_

### System Info

```bash
I'm use in Arc Browser, Google Chrome and Brave.
As the development framework, I am using NextJS 14.2.4.
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: kubernetes
Issue: DRA kubelet: enhance PodResources testing
Labels: sig/node,kind/feature,priority/important-longterm,triage/accepted

### What would you like to be added?

From https://github.com/kubernetes/kubernetes/pull/125488#discussion_r1680019676:
> We need more comprehensive tests here in general

"Here" being populating the PodResource API with values actually taken from real claims. `pkg/kubelet/apis/podresources/server_v1_test.go` only tests passing values from a mock plugin into the API.

/assign @ffromani 
/sig node


### Why is this needed?

More thorough testing.
Repository: yt-dlp
Issue: [youtube] Parse auto-generated "topic" music channels' playlists
Labels: site-enhancement,site-bug

### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

- [X] I understand that I will be **blocked** if I *intentionally* remove or skip any mandatory\* field

### Checklist

- [X] I'm asking a question and **not** reporting a bug or requesting a feature
- [X] I've looked through the [README](https://github.com/yt-dlp/yt-dlp#readme)
- [X] I've verified that I have **updated yt-dlp to nightly or master** ([update instructions](https://github.com/yt-dlp/yt-dlp#update-channels))
- [X] I've searched [known issues](https://github.com/yt-dlp/yt-dlp/issues/3766) and the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar questions **including closed ones**. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)

### Please make sure the question is worded well enough to be understood

Some YouTube channels don't have the regular tabs (Videos, Shorts, Playlists, ...) :

https://www.youtube.com/channel/UCErZQ3Gh8hxArWJdIjSoqkw

What are the right parameters to still download all videos in separate folders ?

I tried :

```
yt-dlp.exe -f "bestaudio[ext=m4a]" --config-location yt-dlp_playlist.cnf -o "%%(uploader)s/%%(playlist_title)s/%%(playlist_index)s - %%(title)s-%%(id)s.%%(ext)s" 1>yt-dlp_stdout.txt 2>yt-dlp_stderr.txt
```

With `yt-dlp_playlist.cnf` containing :

```
--ignore-errors --continue --hls-prefer-native --no-overwrites --no-progress --no-mark-watched --no-call-home --all-subs --sub-format "srt/best" --write-description --write-thumbnail --download-archive youtube-dl_done.txt --batch-file youtube-dl_playlist.txt --yes-playlist
```

And `youtube-dl_playlist.txt` containing the list of playlists, or here the aforementioned URL :

```
The Veterinary Street Jazz Band (89 videos)
https://www.youtube.com/channel/UCErZQ3Gh8hxArWJdIjSoqkw
```

It works on "regular" playlists, but not in the example I gave above.

Any hint ?

Regards.

PS : the outputs are attached here

1>[yt-dlp_stdout.txt](https://github.com/user-attachments/files/16326099/yt-dlp_stdout.txt)
2>[yt-dlp_stderr.txt](https://github.com/user-attachments/files/16333788/yt-dlp_stderr.txt)


### Provide verbose output that clearly demonstrates the problem

- [X] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`)
- [ ] If using API, add `'verbose': True` to `YoutubeDL` params instead
- [X] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

```shell
See attached files.
```
Repository: TypeScript
Issue: `import defer` Stage 2.7 proposal support
Labels: Suggestion,Committed

### 🔍 Search Terms

import defer

### ✅ Viability Checklist

- [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 isn't a request to add a new utility type: https://github.com/microsoft/TypeScript/wiki/No-New-Utility-Types
- [X] This feature would agree with the rest of our Design Goals: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals

### ⭐ Suggestion

We are working towards a PR implementing the https://github.com/tc39/proposal-defer-import-eval/ proposal, to have TypeScript support ready once the proposal reaches Stage 3. For this proposal I think it should behave as follows:

- This features does not affect type checking, as `import defer * as n` and `import * as n` have the same type.
- `import defer` should only be allowed when targeting ESNext modules, as it's not possible to compile it to older ES versions.
- Even though the proposal only supports `import defer * as n`, we should still parse `import defer { ... }` and `import defer foo` and give proper diagnostics, rather than relying on the existing parsing recovery for invalid syntax (that would parse `import defer { x } from "y"` as `import defer = <ident>; { x }; from; "y"`

When talking about this with @DanielRosenwasser, he mentioned tsserver support. What would tsserver support look like for a feature like this one? I was thinking maybe a "Convert to deferred namespace import" refactor similarly to how we have a "Convert named imports to namespace import" refactor, but:
- is this something that the TS team prefers to have in the initial implementation or separately?
- am I missing something else that is obvious when it comes to tsserver support? 

### 📃 Motivating Example

/

### 💻 Use Cases

Implementation of a TC39 proposal
Repository: deno
Issue: Bug: Fetch sending request to specific server
Labels: bug,ext/fetch

Reported via discord: https://discord.com/channels/684898665143206084/1264926772646907975/1264932423104467025

## Steps to reproduce

1. Run this script:
  ```ts
  fetch("https://www.christianrock.net/iphonecrdn.php")
    .then(console.log);
  ```

Version: Deno 1.45.2
Repository: tensorflow
Issue: tf.raw_ops.MapUnstage: Check failed: 1 == NumElements() (1 vs. 120)Must have a one element tensor Aborted (core dumped)
Labels: stat:awaiting tensorflower,type:bug,comp:ops,2.17

### Issue type

Bug

### Have you reproduced the bug with TensorFlow Nightly?

Yes

### Source

source

### TensorFlow version

2.18.0.dev20240717

### Custom code

Yes

### OS platform and distribution

Ubuntu 20.04.3 LTS (x86_64)

### Mobile device

_No response_

### Python version

Python version: 3.10.14 

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

I encountered a bug in TensorFlow when I used API `tf.raw_ops.MapUnstage`  with randomly generated tensors. The code is as follows:

```python
import tensorflow as tf

key = tf.random.uniform([15, 8], minval=-10, maxval=10, dtype=tf.int64)
indices = tf.random.uniform([1], minval=-10, maxval=10, dtype=tf.int32)
tf.raw_ops.MapUnstage(capacity=100,memory_limit=100,dtypes=[tf.float64],
                      container="",shared_name="",key=key,indices=indices)
```

The error message was as follows:

```shell
2024-07-22 22:05:52.420257: F tensorflow/core/framework/tensor.cc:852] Check failed: 1 == NumElements() (1 vs. 120)Must have a one element tensor
Aborted (core dumped)
```

I have confirmed that above code would crash on `tf-nightly 2.18.0.dev20240717` (nightly-build). Also, I provided that a [colab notebook](https://colab.research.google.com/drive/1PXsrbcckN5x_ooMjZr5Vds6KVKMve7ph?usp=sharing) to reproduce the error.



### Standalone code to reproduce the issue

```shell
import tensorflow as tf

key = tf.random.uniform([15, 8], minval=-10, maxval=10, dtype=tf.int64)
indices = tf.random.uniform([1], minval=-10, maxval=10, dtype=tf.int32)
tf.raw_ops.MapUnstage(capacity=100,memory_limit=100,dtypes=[tf.float64],
                      container="",shared_name="",key=key,indices=indices)
```


### Relevant log output

```shell
2024-07-22 22:05:52.420257: F tensorflow/core/framework/tensor.cc:852] Check failed: 1 == NumElements() (1 vs. 120)Must have a one element tensor
Aborted (core dumped)
```
Repository: godot
Issue: Improve usability of multiple file selection checkboxes in the Import dock
Labels: enhancement,discussion,topic:editor,usability,topic:import

### Tested versions

Godot 4.2 beta 3

### System information

windows 11

### Issue description


when setting import options for multiple files, Import options present tick boxes where they shouldn't exist. see an example in the image, many settings have a tick box as well as an additional one for 'on'. This only occurs when multiple files are selected

### Steps to reproduce

select multiple files from file system then press the import tab

### Minimal reproduction project (MRP)

![image](https://github.com/user-attachments/assets/7f268999-32c2-41b7-a87c-86c7daa60882)

![image](https://github.com/user-attachments/assets/6c0bb6b7-b945-4d89-ab1c-7d47d8554fba)
Repository: ui
Issue: Popup Closes on Next Month Click and Repositions Incorrectly in JSP
Labels: bug

### Describe the bug

I'm encountering an issue with a datepicker in my JSP application. When I click to navigate to the next month, the main datepicker popup closes unexpectedly. On the second click, the datepicker popup reappears, but it is misaligned and positioned incorrectly at the top-left corner of the screen. Additionally, the popup's position changes inconsistently upon subsequent interactions.
<img width="402" alt="Screenshot 2024-07-22 at 7 17 43 PM" src="https://github.com/user-attachments/assets/ede62812-8002-44b7-aacd-a8c7682a2c74">
<img width="304" alt="Screenshot 2024-07-22 at 7 19 28 PM" src="https://github.com/user-attachments/assets/efd67e5b-84f6-42a3-841b-e970ac23b906">


### Affected component/components

DateRange picker

### How to reproduce

`<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
      
      <script type="text/javascript" src="https://cdn.jsdelivr.net/momentjs/latest/moment.min.js"></script>
      
      <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.min.js"></script>
      
      
      
      
      
      $('#daterange-icon').daterangepicker({
            autoUpdateInput: false,
            locale: {
                format: 'DD/MM/YY',
                cancelLabel: 'Clear'
            },
            singleDatePicker: false,
            showDropdowns: false,
            alwaysShowCalendars: false,
            linkedCalendars: false,
            autoApply: true
        }, function(start, end, label) {
            $('#daterange').val(start.format('DD/MM/YY') + ' - ' + end.format('DD/MM/YY'));
        });
        $('head').append('<style>.daterangepicker .drp-calendar.left { display: none; } </style>');
        $('#daterange').on('cancel.daterangepicker', function(ev, picker) {
            $(this).val('');
        });`

### Codesandbox/StackBlitz link

_No response_

### Logs

```bash
I need the datepicker to remain open when navigating between months and to maintain a consistent position. Also, I want to enable a single-month view and allow users to select a date range within that view.
```


### System Info

```bash
I need the datepicker to remain open when navigating between months and to maintain a consistent position. Also, I want to enable a single-month view and allow users to select a date range within that view.
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: deno
Issue: WebGPU: commandEncoder doesn't check if its child renderPasses or computePasses have ended
Labels: bug,webgpu

Version: Deno v1.45.2

Hi! I expected the below WebGPU program to throw a validation error because the parent commandEncoder has finish() called on it before the child renderPass has had .end() called. This is also the case with computePass. 
```js
import * as fs from "node:fs"
if (!navigator.gpu) {
    throw new Error("WebGPU not supported on this browser");
}

async function main() {
    const adapter = await navigator.gpu.requestAdapter({
        powerPreference: "low-power"
    });
    const device = await adapter.requestDevice();
    const texture = device.createTexture({
        dimension: "2d",
        sampleCount: 1,
        format: "rgba8unorm-srgb",
        size: {
            width: 36,
            height: 145,
            depthOrArrayLayers: 34
        },
        mipLevelCount: 1,
        usage: GPUTextureUsage.RENDER_ATTACHMENT | GPUTextureUsage.TEXTURE_BINDING,
        viewFormats: ["rgba8unorm"]
    });
    const textureView = texture.createView({
        aspect: "all",
        dimension: "2d",
        arrayLayerCount: 1,
        baseArrayLayer: 0,
        mipLevelCount: 1,
        baseMipLevel: 0,
        format: "rgba8unorm",
    });
    const commandEncoder = device.createCommandEncoder();
    const renderPassEncoder = commandEncoder.beginRenderPass({
        colorAttachments: [{
            clearValue: {
                r: 1.0,
                g: 1.0,
                b: 1.0,
                a: 1.0
            },
            loadOp: "load",
            storeOp: "store",
            view: textureView
        }],
        maxDrawCount: 10
    });

    // This should throw an error because renderPass has not had .end() called on it 
    const computePass = commandEncoder.beginComputePass();

    // This should also throw an error
    commandEncoder.finish();

}
main().catch(console.error);
```

Based on the WebGPU docs, calling beginRender/ComputePass should lock the commandEncoder (https://www.w3.org/TR/webgpu/#dom-gpucommandencoder-beginrenderpass) so it shouldn't be able to have .finish() called on it (https://www.w3.org/TR/webgpu/#dom-gpucommandencoder-finish) before .end() is called on each of its child render/computePasses. 

But I was a little unsure if this was a bug or if maybe the child render/computePasses have .end() implicitly called on them automatically in the backend. Thanks!
Repository: pytorch
Issue: Custom autograd Function API for user to opt into clearing saved tensor upon first use
Labels: module: autograd,triaged,enhancement,actionable

              @bdhirsh the multiple use we're worried about here is if the user does:
```
def backward(ctx, ...)
   x, = ctx.saved_tensors
   ...
   y = ctx.saved_tensors
   ...
   return ...
```

If the user guarantees that within a single call to their custom backward there is a single call to saved_tensors. Then we can safely free things once they've been accessed (when not in retain_graph).

_Originally posted by @albanD in https://github.com/pytorch/pytorch/issues/131038#issuecomment-2242976886_
            

cc @ezyang @albanD @gqchen @pearu @nikitaved @Varal7
Repository: pytorch
Issue: torch.device context manager change doesn't show in torch.get_default_device
Labels: triaged,module: python frontend

### 🐛 Describe the bug

```python
import torch

def foo(x):
  return torch.ones(x.shape)

x = torch.randn(3)

with torch.device("cuda"):
  print(torch.get_default_device())  # cpu
  print(foo(x))

```

cc: @ezyang (original author of torch.device as ctx support - https://github.com/pytorch/pytorch/pull/91796) 

### Versions

main branch

cc @albanD
Repository: PowerToys
Issue: Enabling easy access to Windows volume setting
Labels: Idea-New PowerToy,Needs-Triage

### Description of the new feature / enhancement

Setting the volume in Windows is a frequent action, and it would be nice to be able to do it quickly with a mouse wheel or keyboard shortcut.  

### Scenario when this would be used?

**1. Setting volume with mouse wheel**
It would be nice to be able to set the volume with CTRL (custom) + mouse wheel up/down. I can use [Volumouse](https://www.nirsoft.net/utils/volumouse.html) but it would be nice if Powertoy supports this. 

**2. Setting volume with keyboard shortcuts**
Powertoy users can use the keyboard manager, but it would be nice to have quick shortcuts for volume up/down and mute.

When quickly setting the volume with the wheel/shortcut keys, it would be nice to be able to customise the volume increment value as well (e.g. 1-100).


### Supporting information

_No response_