sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: material-ui
Issue: [FormControlLabel][material-ui] Child control (e.g. Checkbox) should be top-aligned with multi-line labels
Labels: component: checkbox,component: switch,component: radio,package: material-ui,design

One more thing that’s worth mentioning, is about the checkbox and label placement. When the content is longer than one line, we should have the [checkbox and label top-aligned](https://pathumpmgux.medium.com/design-checkbox-web-component-all-you-need-to-know-ep-3-d176c51c786a#:~:text=of%20the%20checkbox.-,Overflow%20content,-It%20is%20always) by default, like the example: cc @DiegoAndai @mj12albert (adding you to the loop since you're the owners of Material UI and Checkbox)

![image](https://github.com/mui/material-ui/assets/37222944/800089e6-6676-47e7-a940-b26c43ca5cb6)

_Originally posted by @zanivan in https://github.com/mui/material-ui/issues/39626#issuecomment-1785628269_
Repository: material-ui
Issue: [joy-ui][RadioGroup] Add `disabled` prop to RadioGroup
Labels: new feature,component: radio,package: joy-ui

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Summary 💡

Will be great if `RadioGroup` component could accept `disabled` prop. As for today, the only way to disable is at the `Radio` component level.

### Examples 🌈

_No response_

### Motivation 🔦

_No response_
Repository: go
Issue: proposal: sync/atomic: add Max/Min operators
Labels: Performance,Proposal

Recently I came across this TODO comment in runtime:

https://github.com/golang/go/blob/7241fee9b06da568251617ce3a715fae3e9f2881/src/runtime/mgcsweep.go#L67-L79

This sounds like a useful primitive to have when you need an atomic counter. This is similar to the accepted [proposal for And/Or operators](https://github.com/golang/go/issues/61395)

Initially, as the comment suggests, we can use a similar stub implementation using a for loop and atomic Cas, but we should be able to write optimized assembly code per GOARCH.

We can check the machine code for such a routine in [C](https://c.godbolt.org/z/Prb3x7TGj) and [Go stub](https://c.godbolt.org/z/PPnjvE8ab). For Risc-V we have AMOMAX and AMOMIN we can use, not sure about other arches.

There is a proposal to add atomic maximum/minimum to [libstdc++](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p0493r1.pdf). Quoting some of the motivations used there:

- optimal implementation of lock-free shared data structures - as in the motivating example later in this paper
- reductions in data-parallel applications
- recording the maximum so far reached in an optimization process, to allow unproductive threads to terminate
- collecting statistics, such as the largest item of input encountered by any worker thread.

For runtime/internal/atomic, we would need 

```
Max
Max64
Maxuintptr
Min
Min64
Minuintptr
```

The proposed apis for sync/atomic would look something like this:

```go
func MaxInt32(addr *int32, val int32) (old int32)
func MaxInt64(addr *int64, val int64) (old int64)
func MaxUint32(addr *uint32, val uint32) (old uint32)
func MaxUint64(addr *uint64, val uint64) (old uint64)
func MaxUintptr(addr *uintptr, val uintptr) (old uintptr)

func (*Int32) Max(val int32) (old int32)
func (*Int64) Max(val int64) (old int64)
func (*Uint32) Max(val uint32) (old uint32)
func (*Uint64) Max(val uint64) (old uint64)
func (*Uintptr) Max(val uintptr) (old uintptr)

func MinInt32(addr *int32, val int32) (old int32)
func MinInt64(addr *int64, val int64) (old int64)
func MinUint32(addr *uint32, val uint32) (old uint32)
func MinUint64(addr *uint64, val uint64) (old uint64)
func MinUintptr(addr *uintptr, val uintptr) (old uintptr)

func (*Int32) Min(val int32) (old int32)
func (*Int64) Min(val int64) (old int64)
func (*Uint32) Min(val uint32) (old uint32)
func (*Uint64) Min(val uint64) (old uint64)
func (*Uintptr) Min(val uintptr) (old uintptr)
```

Regarding the race detector, there are no fetch_max/fetch_min functions in tsan so that needs to be implemented as well, there shouldn't be a problem with this and I'm open to submit such changes to llvm upstream if that helps to move forward with this proposal.

Please feel free to share opinions and possible use cases for such a feature.
Repository: PowerToys
Issue: Mouse Highlighter not visible in Windows Game Bar screen recorder 
Labels: Issue-Bug,Needs-Triage,Product-Mouse Utilities

### Microsoft PowerToys version

0.70.0

### Installation method

PowerToys auto-update

### Running as admin

None

### Area(s) with issue?

Mouse Utilities

### Steps to reproduce

1) enable Mouse Highlighter under Mouse Utilities
2) open any app with UI (tested with recording Mozilla Firefox)
3) press WindowsKey+G and click on "Start Recording" button
4) as you perform any actions you can see highlighter working flawlessly.. but once checking the recording, no highlight is visible. 

### ✔️ Expected Behavior

Highlights are recorded.

### ❌ Actual Behavior

Highlights are **not** recorded. 

### Other Software

_No response_
Repository: node
Issue:   Buffer.slice should not be  marked as deprecated ,as   Buffer.slice  has a good performace (which can references the same memory)
Labels: buffer,doc

### Version

all

### Platform

all

### Subsystem

_No response_

### What steps will reproduce the bug?

_No response_

### How often does it reproduce? Is there a required condition?

_No response_

### What is the expected behavior? Why is that the expected behavior?

_No response_

### What do you see instead?

no 

### Additional information

_No response_
Repository: angular
Issue: make NonNullableFormBuilder as FormBuilder because of FormBuilder is not an abstract class but NonNullableFormBuilder is.
Labels: help wanted,area: forms,P3,area: docs

### Which @angular/* package(s) are relevant/related to the feature request?

_@angular/forms_

### Description
 
    
    import { Component } from '@angular/core';
    import { CommonModule } from '@angular/common';
    import { FormBuilder, NonNullableFormBuilder } from '@angular/forms';

    @Component({
      selector: 'app-contact',
      standalone: true,
      imports: [CommonModule],
      templateUrl: './contact.component.html',
      styleUrls: ['./contact.component.scss']
    }) 
    export class ContactComponent {
        title = "ContactUs";
        constructor(){
          const fb = new FormBuilder();
          const nfb = new NonNullableFormBuilder();        //__facing error in this line__

          const loginFormbuilder = fb.group({
              email: '',
              password: '',
          });

          const loginNonNullableFormBuilder = nfb.group({
            email: '',
            password: '',
          });
        
          //__loginFormbuilder is worling fine but why we can't add functionality with loginNonNullableFormBuilder__

        }
    }
    

### Proposed solution

the way we create FormBuilder approch the same thing that we can create with NonNullableFormBuilder
Repository: rust
Issue: Trait definitions with missing generic parameters suggest missing enum variant
Labels: A-diagnostics,T-compiler,D-invalid-suggestion

### Code

```Rust
pub struct Point<A> {
    x: A,
}
pub trait MyTrait1 {
    fn fun(&self, p: Point<A>);
}
pub struct MyStruct;
impl<A> MyTrait1 for Point<A> {
    fn fun(&self, p: Point<A>) {
        todo!();
    }
}

fn main() {
    todo!();
}
```


### Current output

```Shell
error[E0412]: cannot find type `A` in this scope
 --> src/main.rs:5:28
  |
5 |     fn fun(&self, p: Point<A>);
  |                            ^ not found in this scope
  |
help: there is an enum variant `futures_0_1_31::future::Either::A`; try using the variant's enum
  |
5 |     fn fun(&self, p: Point<futures_0_1_31::future::Either>);
  |                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

For more information about this error, try `rustc --explain E0412`.
error: could not compile `playground` (bin "playground") due to previous error
```


### Desired output

```Shell
error[E0412]: cannot find type `A` in this scope
 --> src/main.rs:5:28
  |
5 |     fn fun(&self, p: Point<A>);
  |                            ^ not found in this scope
  |
help: you might be missing a type parameter
  |
4 | pub trait MyTrait1<A> {
  |                   +++

For more information about this error, try `rustc --explain E0412`.
error: could not compile `playground` (bin "playground") due to previous error
```


### Rationale and extra context

I'm using generic parameters and then noticed that in this code, when I use `A` as a generic parameter, the compiler suggested to add a enum variant. I'm not sure what this means and it still doesn't compile after following the suggestion. I've tried some earlier versions of rustc and that suggestion doesn't come up either.

If I use the generic parameter `T`, the compiler does not show this suggestion. It only output an error without any suggestion, like this:
```
error[E0412]: cannot find type `T` in this scope
 --> src/main.rs:5:28
  |
5 |     fn fun(&self, p: Point<T>);
  |                            ^ not found in this scope

For more information about this error, try `rustc --explain E0412`.
```

If I use a longer name for the generic parameter, the compiler gives me the correct hint, like this:

```
error[E0412]: cannot find type `Tt` in this scope
 --> src/main.rs:5:28
  |
5 |     fn fun(&self, p: Point<Tt>);
  |                            ^^ not found in this scope
  |
help: you might be missing a type parameter
  |
4 | pub trait MyTrait1<Tt> {
  |                   ++++

For more information about this error, try `rustc --explain E0412`.
```


### Other cases

_No response_

### Anything else?

I am using the 1.73.0 Stable channel and it can be reproduced on the nightly (2023-11-07) version as well.
Repository: rust
Issue: Compiler could give better suggestions on generics type.
Labels: A-diagnostics,T-compiler,A-suggestion-diagnostics

### Code

```Rust
pub struct Point<T> {
    x: T,
}
pub trait MyTrait1 {
    fn fun(&self, p: Point<T>);
}
pub struct MyStruct;
impl MyTrait1 for MyStruct {
    fn fun(&self, p: Point<T>) {
        todo!();
    }
}
fn main() {
    todo!();
}
```


### Current output

```Shell
error[E0412]: cannot find type `T` in this scope
 --> src/main.rs:5:28
  |
5 |     fn fun(&self, p: Point<T>);
  |                            ^ not found in this scope

error[E0412]: cannot find type `T` in this scope
 --> src/main.rs:9:28
  |
9 |     fn fun(&self, p: Point<T>) {
  |                            ^ not found in this scope
  |
help: you might be missing a type parameter
  |
8 | impl<T> MyTrait1 for MyStruct {
  |     +++

For more information about this error, try `rustc --explain E0412`.
error: could not compile `playground` (bin "playground") due to 2 previous errors
```


### Desired output

```Shell
error[E0412]: cannot find type `T` in this scope
 --> src/main.rs:5:28
  |
5 |     fn fun(&self, p: Point<T>);
  |                            ^ not found in this scope

error[E0412]: cannot find type `T` in this scope
 --> src/main.rs:9:28
  |
9 |     fn fun(&self, p: Point<T>) {
  |                            ^ not found in this scope
  |
help: you might be missing a type parameter
  |
9 | fn fun<T>(&self, p: Point<T>) {
  |       +++

For more information about this error, try `rustc --explain E0412`.
error: could not compile `playground` (bin "playground") due to 2 previous errors
```


### Rationale and extra context

The suggestions for adding type parameters should be specific to the function itself rather than the entire implementation.

### Other cases

_No response_

### Anything else?

_No response_
Repository: next.js
Issue: nextjs keep occupying / listening to port even after being stopped
Labels: bug

### Link to the code that reproduces this issue

https://github.com/vikyw89/nextjs-bug-report

### To Reproduce

1. do npm run dev
2. ctrl + z
3. do npm run dev

### Current vs. Expected behavior

current:
- nextjs will listen to port 3001 
- 
![image](https://github.com/vercel/next.js/assets/112059651/e9cb99ee-272c-4a1f-8f8e-bbeea16d5a72)

expected:
- nextjs will listen to port 3000

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP PREEMPT_DYNAMIC Fri Oct  6 19:57:21 UTC 2023
Binaries:
  Node: 20.9.0
  npm: 10.1.0
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 14.0.2-canary.21
  eslint-config-next: 13.5.1
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.2.2
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

Not sure

### Additional context

I tested this on a fresh installed fedora38 and 39
Repository: transformers
Issue: dev-ai
Labels: New model

### Model description

It a generative artifical intelligence model. I have the architecture ready but I am facing the problem to interagte it with transformer architure. It would be great if you provide me assistance with this.

### Open source status

- [X] The model implementation is available
- [ ] The model weights are available

### Provide useful links for the implementation

_No response_
Repository: ant-design
Issue: The select component is in uncontrolled mode. After selecting the value, modify the options, and the label of the value does not follow the modification
Labels: 🐛 Bug,Inactive

### Reproduction link

[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/antd-reproduction-template-forked-2h8vv4?file=/index.js)

### Steps to reproduce

  <p>step1: choose any option</p>
      <p>step2: click change language button</p>
      <p>step3: click select to see options</p>



### What is expected?

      <p>
        I hope the selected value should automatically change the language, but
        currently only the option has changed the language
      </p>

### What is actually happening?

      <p>
        I hope the selected value should automatically change the language, but
        currently only the option has changed the language
      </p>

| Environment | Info |
| --- | --- |
| antd | 5.11.0 |
| React | 18.2 |
| System | macos  |
| Browser | chrome |

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: angular
Issue: docs: show generated source code in Playground
Labels: help wanted,good first issue,P3,area: docs-infra

It would help understand what Angular does under the hood and what compiler generates.


POC from @JeanMeche https://stackblitz.com/edit/angular-6njxvd?file=src%2Fmain.ts

![CleanShot 2023-10-23 at 10 45 53@2x](https://github.com/angular/blossom/assets/25394362/531974ef-2366-4b8b-9608-57624ece0507)
Repository: angular
Issue: docs: counter of running webcontainer is not decreased when browser crashed due to OOM
Labels: help wanted,good first issue,P2,area: docs-infra

There is an edge case, which is easier to reproduce on Safari when user will open a few tabs with running webcontainer (tutorial pages, homepage if it's scrolled to embedded editor or playground).

When an OOM error occurs in Safari, the tab is reloaded automatically in that case event `beforeunload` was not catched and count of running webcontainers wasn't decreased.

In the result the alert message:
`You currently have more than 3 tabs open running the Angular Tutorials or Playground,
        this may result in an <code>Out of memory</code> error.`
        could be displayed even when user has less opened tabs with Embedded Editor than recommended.
        
The idea of solution:
I'm thinking about reset counter when will close the `warning` message.
Repository: angular
Issue: docs: widescreen mode needs <3
Labels: help wanted,P3,area: docs-infra

Lots of space on widescreens feels odd

![Screenshot 2023-10-06 at 3 00 08 PM](https://github.com/angular/blossom/assets/15061394/b979309f-4109-4c10-905e-52cabbcd1822)
Repository: angular
Issue: docs-infra: only run TypeScript diagnostics after dependencies are installed
Labels: help wanted,good first issue,P3,area: docs-infra

The TypeScript errors about Angular packages errors out because the packages are not yet installed, so we should only run the diagnostics after the packages are installed.

https://github.com/angular/blossom/assets/83593673/6e6bee5f-d8ee-4575-a460-43603d87a536
Repository: angular
Issue: docs: Inject `typescript-vfs.worker` instead of create an instance in `code-mirror-editor.service.ts`
Labels: help wanted,P3,area: docs-infra

To improve unit testing, we can inject an instance of `typescript-vfs.worker` into `CodeMirrorEditor`.

The current implementation creates an instance in the `CodeMirrorEditor`

```ts
    this.tsVfsWorker = new Worker(new URL('./workers/typescript-vfs.worker', import.meta.url), {
      type: 'module',
    });
```
Repository: angular
Issue: docs: Syntax highlighting in editor could be improved
Labels: help wanted,good first issue,P1,area: docs-infra,area: docs

Syntax highlighting in the editor could/should be improved for Angular templates

Places where highlighting could be applied better:
- [ ] interpolations / expressions
- [ ] attribute and event bindings
- [ ] the new control flow/block syntaxes
- [ ] Improve contrast 


Here is an image of the current editor in the playground where you can see that none of the above get any special treatment:

<img width="765" alt="image" src="https://github.com/angular/blossom/assets/479713/e2dd0c28-97f9-4ab7-98bf-632184170438">
Repository: angular
Issue: docs: Allow users to compare answers to work in progress code in Tutorials
Labels: help wanted,good first issue,P3,area: docs-infra

## Problem

In the current state of the tutorial, clicking on "Reveal Answer" immediately replaces the entire code that the student is using and there's no way to compare or revert back to the previous version.

## Suggested Solution

Allowing students to see the answer and their code side by side would be valuable so they can replicate it correctly in their own code. 

cc @MarkTechson
Repository: angular
Issue: docs: Add a file tree explorer to the Playground and Tutorials
Labels: help wanted,good first issue,P2,area: docs-infra
Repository: angular
Issue: docs: make Playground code sharable
Labels: P1,area: docs-infra

Add a share button and make code shareable from the editor

We can do some compression (a-la gzip) of the content as well.

*Do not self-assign in open source, this is under security review internally*
Repository: angular
Issue: docs: command + click in the Tutorials should jump to definitions/reference
Labels: help wanted,good first issue,P3,area: docs-infra
Repository: storybook
Issue: [Bug]: Unable to style the IconItem component
Labels: bug,good first issue

### Describe the bug

I am unable to style the IconItem component which is causing issues with long icon names that my team insist on using such as StarfighterTwinIonEngineAdvanced 

which results in 
![Screenshot 2023-11-08 at 14 36 45](https://github.com/storybookjs/storybook/assets/11647950/95355390-f1ad-48e8-92b6-19f32249d6d0)


### To Reproduce

https://stackblitz.com/edit/github-mtjcjc?file=src%2Fstories%2FIconography.mdx

### System

```bash
Environment Info:

  System:
    OS: macOS 14.1
    CPU: (12) arm64 Apple M2 Pro
  Binaries:
    Node: 20.9.0 - ~/.nvm/versions/node/v20.9.0/bin/node
    npm: 10.1.0 - ~/.nvm/versions/node/v20.9.0/bin/npm
  Browsers:
    Edge: 119.0.2151.46
    Safari: 17.1
  npmPackages:
    @storybook/addon-a11y: ^7.0.10 => 7.3.1 
    @storybook/addon-console: ^1.2.3 => 1.2.3 
    @storybook/addon-essentials: ^7.0.8 => 7.3.1 
    @storybook/addon-interactions: ^7.0.8 => 7.3.1 
    @storybook/addon-jest: ^7.0.10 => 7.3.1 
    @storybook/addon-links: ^7.0.8 => 7.3.1 
    @storybook/addon-storysource: ^7.0.11 => 7.3.1 
    @storybook/addons: ^7.0.8 => 7.3.1 
    @storybook/blocks: ^7.0.8 => 7.3.1 
    @storybook/react: ^7.0.8 => 7.3.1 
    @storybook/react-webpack5: ^7.0.8 => 7.3.1 
    @storybook/theming: ^7.0.8 => 7.3.1
```


### Additional context

_No response_
Repository: flutter
Issue: Make InlineSpan more testable
Labels: a: tests,c: new feature,c: proposal,P3,team-framework,triaged-framework

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Use case

I've been developing a text widget package and found it really hard to test InlineSpans.

- Finders are only for widgets, so we need to get a TextSpan from the Text widget and call `visitChildren()` on it to find children.
- There is no way to get the position of an InlineSpan. A workaround is to get the center position of text or a position where a target span is supposed to be located.

Here is an example of the second bullet point:

https://github.com/flutter/flutter/blob/ca384b84e57d2b80869ddf5a184bfc534126597c/packages/flutter/test/painting/text_span_test.dart#L335-L351

 https://github.com/flutter/flutter/blob/ca384b84e57d2b80869ddf5a184bfc534126597c/packages/flutter/test/painting/text_span_test.dart#L355-L365

In this test, the TextSpan with "yyyyy" is definitely in the center because it has been placed between the other two spans, both with the same text "xxxxx". It is necessary to add or subtract some magic number (which is the number of pixels you guess from the width of strings) to move the mouse pointer to a span before or after the one in the center. It is possible but becomes much more difficult when you want to test more complex InlineSpans.


### Proposal

It would be great if Flutter could provide some ways to test InlineSpans, similar to how we do when we test widgets. If it is not feasible, it'd still be better to at least have a way to get the position of an InlineSpan.
Repository: next.js
Issue: Parallel Routes often lead to unexpected routing behavior
Labels: bug

### Link to the code that reproduces this issue

https://github.com/magnusriga/app-playground

### To Reproduce

1. Start app: next dev
2. Click on the Impressions link under the @views slot
3. Click on the Home link under the @views slot
4. Click on the Demographics link under the @audience slot
5. Click on the Home link under the @audience slot
6. Watch that last click take the children slot back to the /impressions route
7. Click on the Home link under the @audience slot one more time
8. Watch that last click take the children slot back to the / (home) route

### Current vs. Expected behavior

Sometimes it changes slots other than the one navigated in, to seemingly incorrect places. See steps above to reproduce one such case.

Beyond the example given in the "To Reproduce" section, it often exhibits odd behavior. Run the dev server and click around for a while and you will soon enough see the oddities. I.e. if you continue to click around for a while, it will start changing routes in more than one slot, when clicking links inside another slot.

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
Running next's own playground with the latest package versions, in a dev container.
```


### Which area(s) are affected? (Select all that apply)

App Router

### Additional context

_No response_