sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: angular
Issue: Combination of `HostBinding` and signals is not supported (input signals too)
Labels: area: core,core: host and host bindings,needs: discussion,cross-cutting: signals

### Which @angular/* package(s) are relevant/related to the feature request?

core

### Description

I am currentely trying to use new `input signal api` but I am unable to replace this code with DRY.

```typescript
  @HostBinding('attr.title')
  @Input({ required: true, alias: 'appModalClose' })
  public closeBtnText!: string;
```


### Proposed solution

Maybe it should be replaced by something like

```typescript
public closeBtnText = input.required<string>({ alias: 'appModalClose', hostBinding: ['attr.title'] });
```

### Alternatives considered

I was trying to find some solutions, but this is not working

1. 

```typescript
@HostBinding('attr.title')
public closeBtnText = input.required<string>({ alias: 'appModalClose' });
```

2. Host is stacked in memory leak

```typescript
@Component({
  // eslint-disable-next-line @angular-eslint/no-host-metadata-property
  host: {
    '[title]': 'closeBtnText()',
  },
})
export class ModalCloseComponent {
  public closeBtnText = input.required<string>({ alias: 'appModalClose' });
}
```
Repository: PowerToys
Issue: Fancy Zones to remember which apps occupy which fancy zone
Labels: Product-FancyZones,Needs-Triage

### Description of the new feature / enhancement

Not all apps "remember" which fancy zone they're supposed to be occupying when I boot my PC. Usually Whatsapp does not remember it's position. It would be great if I can force assign an application to a fancy zone from its UI.

### Scenario when this would be used?

Whenever I boot my PC, I move the same applications to the fancy zone I want them to be in. It would be great if they remember their dimensions and the fancy zone they were assigned to before I restarted my PC. This saves me the inconvenience and the time to move them every time I turn on my PC.

### Supporting information

_No response_
Repository: flutter
Issue: Java code relies on deprecated finalize method
Labels: engine,P3,team-engine,triaged-engine

The `Object.finalize()` method has been deprecated since Java 9 and alternatives have been provided to address its problems. There is now a [JEP](https://openjdk.org/jeps/421) (JDK Enhancement Proposal) to prepare to remove the method in an upcoming release.

The JEP provides alternatives that we should switch to instead.

As a side note, performance critical code was one of the first use cases to move away from finalize methods due to the lack of performance guarantees and the alternatives listed in the JEP represent some more performant mechanisms to do the same thing.
Repository: flutter
Issue: Build dashboard shows dart-internal task stuck as "In Progress"
Labels: team-infra,P2,triaged-infra

### Type of Request

bug

### Infrastructure Environment

Cocoon

### What is happening?

https://ci.chromium.org/ui/p/dart-internal/builders/flutter/Linux%20engine_release_builder/796/overview is marked as success by LUCI, but the build dashboard shows it stuck as "In Progress" for the past hour.

![image](https://github.com/flutter/flutter/assets/2148558/fe38daa5-157f-4619-aae5-a130ea08f7c2)


### Steps to reproduce

N/A

### Expected results

I expect the LUCI result to have been propagated to the build dashboard within a few minutes
Repository: PowerToys
Issue: Add a carousel to a fancy zone to cycle between applications
Labels: Idea-Enhancement,Product-FancyZones,Needs-Triage

### Description of the new feature / enhancement

A carousel can be added to any fancy zone with multiple applications assigned to the same fancy zone to cycle between these applications.

### Scenario when this would be used?

I can assign Discord and Whatsapp to the same fancy zone. The usual 2 circles at the bottom would appear in which I can cycle between both applications by clicking on the circle or by pressing a combination of keys.

### Supporting information

_No response_
Repository: storybook
Issue: [Bug]: Storybook not applying next/font from Material UI
Labels: bug,nextjs,mui

### Describe the bug

My company is currently using Material UI and overwriting the default theme with our own as follows:

```
const SansFont = Sans3({
  weight: ['400', '600', '700'],
  subsets: ['latin'],
});

const theme = createTheme({
  typography: {
    fontFamily: `${SansFont.style.fontFamily}`,
    h1: {
      color: colors.grays[90],
      fontSize: '40px',
      fontWeight: 600,
    },
```
    
    
  We found that the only way we could get storybook to apply our font family was using a decorator and using inline styles as follows:
  
```
  const SansFont = Sans3({
  weight: ['400', '600', '700'],
  subsets: ['latin'],
});

export const withMuiTheme = (Story) => (
  <ThemeProvider theme={theme}>
    <main style={{ fontFamily: `'${SansFont.style.fontFamily}'` }}>
      <CssBaseline />
      <Story />
    </main>
  </ThemeProvider>
);
```

If we didn't use inline styles, we would get an invalid property error in css because it wasn't putting quotations around the font name from `next/font/google`
    

### To Reproduce

Use Material UI and overwrite theme using font from Next/Font

_No response_

### System

_No response_

### Additional context

_No response_
Repository: transformers
Issue: Move layer_idx from a layer property to function argument.
Labels: Feature request

### Feature request

Currently the layer_idx is recorded in the attention module of each `LlamaDecoderLayer`. This has the unfortunate side effect that the layers cannot easily be moved around or reused within the layer list. It seems simple enough to pass in the layer index as part of loop over layers in the forward pass. That way the layers once again will be decouple from their position information.

Backward compatibility could be preserved by still accepting the argument in the constructor but defaulting it to None and then just ignoring it in favor of the passed forward argument.

### Motivation

The motivation is to allow for simple layer stacking (like we have been seeing with pass through merged models) at inference time without actually expanding the memory usage of the model.

### Your contribution

I am happy to send a PR. Seems simple enough.
Repository: PowerToys
Issue: Keyboard Remap to send variables, {date}, {time}, {username},.........
Labels: Idea-Enhancement,Product-Keyboard Shortcut Manager

### Description of the new feature / enhancement

I would like to be able to add variables into the text snippets that can be sent with the keyboard remapping tool. Examples could include: Ctrl+F12 = {currentDate}, Ctrl+F11 = {currentTime}, or Ctrl +F10="Approved on {currentDate} by {username}"

### Scenario when this would be used?

I frequently have to enter the current date onto forms, emails, etc. I would like to be able to press a shortcut, such as Ctrl+F12, to send the current date in MM/DD/YYYY format into any text field or within a document.  Or be able to have a pretyped text snippet that can be quickly inserted, such as "Approved on {date} by {username}" where {date} and {username} would auto populate.  Other useful variables could include: Date (various formats), Time (various formats), User Name, Computer Name, IP address, or a user defined variable.  I can see many uses, taking notes, filling out forms, creating meeting minutes etc, approving documents...... I have done most of this in AutoHotkey previously. My current Employer has not approved AHK, but Powertoys is approved. 

### Supporting information

_No response_
Repository: material-ui
Issue: [material-ui][Speed Dial] onClose is called immediately after onOpen on first interaction
Labels: bug 🐛,docs,component: speed dial,package: material-ui

### Steps to reproduce

Link to live example: (required)
https://mui.com/material-ui/react-speed-dial/

Steps:
1. Unfocus browser window
2. Click on the button
3. It starts to open an closes immediately
![Screen Recording 2024-01-11 at 20 55 08](https://github.com/mui/material-ui/assets/8686751/10be3395-de14-4696-99de-fd84208bcad0)


### Current behavior

On first interaction with the speed dial button, the `onClose` is triggered immediately after `onOpen` both called with 'toggle' . The speed dial menu remains closed after the click. Also, reproduced on iPhone 12 Pro Max, but couldn't reproduce on iPhone 15 Pro Max.

### Expected behavior

Consistent behaviour, click to open the speed dial menu when it was closed, and close if it was open.

### Context

This happens only with controlled state without mouse over action, mobile browser or responsive view in the browser.
The workaround is to pass `onClick` handler to `FabProps` and open the menu from there.

### Your environment

<details>
  <summary><code>npx @mui/envinfo</code></summary>

```
Chrome 120.0.6099.216 (Official Build) (arm64)
Arc 120.0.6099.216 (Official Build) (arm64)
Latest Safari on IOS 17.1.2

System:
    OS: macOS 14.1.1
  Binaries:
    Node: 20.10.0 - /usr/local/bin/node
    npm: 9.6.6 - /opt/homebrew/bin/npm
    pnpm: 7.22.0 - ~/.npm-packages/bin/pnpm
  Browsers:
    Chrome: 120.0.6099.216
    Edge: Not Found
    Safari: 17.1
  npmPackages:
    @emotion/react: 11.11.3 => 11.11.3
    @emotion/styled: 11.11.0 => 11.11.0
    @mui/base:  5.0.0-beta.31
    @mui/core-downloads-tracker:  5.15.4
    @mui/icons-material: 5.15.4 => 5.15.4
    @mui/lab: ^5.0.0-alpha.160 => 5.0.0-alpha.160
    @mui/material: 5.15.4 => 5.15.4
    @mui/private-theming:  5.15.4
    @mui/styled-engine:  5.15.4
    @mui/system: ^5.15.4 => 5.15.4
    @mui/types:  7.2.13
    @mui/utils:  5.15.4
    @mui/x-date-pickers: ^6.19.0 => 6.19.0
    @types/react: 18.2.47 => 18.2.47
    react: 18.2.0 => 18.2.0
    react-dom: 18.2.0 => 18.2.0
    typescript: 5.3.3 => 5.3.3
```
</details>


**Search keywords**: Speed Dial
Repository: go
Issue: cmd/compile: move basic blocks, which return non-nil errors, to the end of assembly output
Labels: Performance,NeedsInvestigation,compiler/runtime

Basic blocks, which return non-nil errors, are usually executed rarely. So it would great from performance perspective to move them to the end of assembly output. This should provide the following benefits:

- This will remove unnecessary jumps over rarely executed basic blocks.
- This will make frequently executed code more compact.
- This should reduce pressure on CPU instruction cache and may improve performance for the executed code.

The following heuristics can be used for determining whether the basic block returns non-nil error:
- The block is located in the function, which returns `error`. The function may return multiple results. If at least a single returned result is `error`, then it is good idea to look closer to basic blocks of this function.
- The last statement in the basic block is `return`, which returns non-nil `error`. If some globally defined `error` is returned, then assume it is non-nil. If some function is called at the place of `error` return result, then assume it returns non-nil error in the following cases:
  - If this is a well-known function from standard library, which returns errors, such as `fmt.Errorf()` or `errors.New()`.
  - If the function accepts at least a single non-nil `error` argument. This should cover common idiom: `if err != nil { return someErrorWrapper(args, err) }`.

I verified these heuristics are missing in Go1.21.
Repository: neovim
Issue: docs: overview section in api.txt and builtin.txt
Labels: enhancement,documentation

### Problem

`api.txt` has details on many functions, but there is no place (as far as I know) to see a simplified overview list with function signatures and brief descriptions.

This feature request is for adding an overview similar to the former `:help builtin-function-list` in `api.txt` and adding back the overview to `builtin.txt`.

### Expected behavior

The new section in `api.txt` would be similar to the former `Overview` section in `builtin.txt`:

```
1. Overview					*builtin-function-list*

Use CTRL-] on the function name to jump to the full explanation.

USAGE				RESULT	DESCRIPTION	~

abs({expr})			Float or Number  absolute value of {expr}
acos({expr})			Float	arc cosine of {expr}
add({object}, {item})		List/Blob   append {item} to {object}
and({expr}, {expr})		Number	bitwise AND
...
```

But the list of items would correspond to the functions documented in `api.txt`.

The former overview list would be restored in `builtin.txt`.

### Update

When initially creating this ticket, I only proposed an overview list for `api.txt`. I hadn't realized that the list had been [removed](https://github.com/neovim/neovim/issues/26991#issuecomment-1888109894) from `builtin.txt`. I've updated the text above to reflect that the overview list has been removed from `builtin.txt`, modifying the request to also include adding back the former overview.
Repository: vscode
Issue: document highlight doesn't get called in Jupiter notebook consistently.
Labels: bug,editor-highlight

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 1.86.0-insider
- OS Version:  windows 11

Steps to Reproduce:

1. install python extension 
2. open this file - https://github.com/microsoft/pylance-release/blob/main/testing/single/src/notebook.ipynb
3. click symbols such as variables, method names and etc 
4. check `DocumentHighlightProvider.provideDocumentHighlights` is called

Expected: `provideDocumentHighlights` are called every time cursor is placed on new symbols
Actual: it is called inconsistently with a random position.

...

this is not python extension specific issue, you can just add this

```ts
vscode.languages.registerDocumentHighlightProvider(
        { language: 'python' },
        {
            provideDocumentHighlights: (document, position, token) => {
                return null;
            },
        }
    );
```

and set breakpoint to confirm that `provideDocumentHighlight` not working as expected in `notebook cells`
Repository: TypeScript
Issue: Expose `TypeChecker.getTypeOnlyAliasDeclaration` or similar API to detect if a symbol is a "value" or a "type"
Labels: Suggestion,In Discussion

### 🔍 Search Terms

"type checker", "getTypeOnlyAliasDeclaration", "detecting value vs type on a symbol"

### ✅ 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

It would be nice if the compiler would expose `TypeChecker.getTypeOnlyAliasDeclaration` or similar function that would help to detect if a given symbol is a type or a value (e.g. a class is a type if it was imported/exported via import-type/export-type syntax.

### 📃 Motivating Example

I'm maintaining https://github.com/timocov/dts-bundle-generator and have the following issue https://github.com/timocov/dts-bundle-generator/issues/290. My problem is that I need to somehow detect if a module export symbol is a type or a value so I can detect whether the type of a symbol changes since its original declaration and its actual export so I can generate type export instead of exporting a value. [I asked in the community discord](https://discord.com/channels/508357248330760243/640177429775777792/1195146482261704856) and @jakebailey pointed that the type checker has function `getTypeOnlyAliasDeclaration` that might help. I've checked with my test cases and it seems it works like a charm. I understand that this function itself might not be what you actually want to expose from the API so I'm happy with either solution.

Also I'm happy to contribute for this feature.

### 💻 Use Cases

1. What do you want to use this for? Use it in the tool dts-bundle-generator to address mentioned issue
2. What shortcomings exist with current approaches? Nothing seems exist
3. What workarounds are you using in the meantime? I can use the internal (not exposed) API for a while and hope it won't change in the future
Repository: TypeScript
Issue: Cannot describe recursive type aliases like JSON in terms of generic mapped types
Labels: Suggestion,In Discussion

In the following examples, I've defined 4 different versions of a `Json` type, where they differ on their description of object types.

[Playground link here](https://www.typescriptlang.org/play?#code/PTAEDkHtQUwJzpOBnUhQcgLACgB2BDAWxmQAc8BjGUAeQCMArGcgFwElkBZPEkmAEwAqAT17UcAZWZwAljgDmoAN7ZQq2AA8SSZqGYiqAKWSQcoALwq1VgD6hkU2XMtXVtnAFcCteM5e3akJAANjB4OL42oB5BQRFqtkYmANoAunGuSqBJANKgsnYO8ikAXKCJpgC+6aAA3NhVWNggENDwiCjo2PhEpBRUdIws7Kw4fDDq4tJy+MzucFTKWFbjWnA6erxlxqYWSy4Z9jLy1W6e3nAnoAHBoeF7+6cxl+Wpl4pZANYwQqWHjiVbEygBr7VR1LANJpgACiCCQqEAMuRdQjEMiUGgMJhsZAAJSYSD4Sl8K20un0gJ2lz+x3ufiiZx8tMi1xCYUu0ViTPiFNeXIyePIBIAPNS5AAaCkAPmq4MhWGasPaoCRuBRvXRAyx7AA4jAcPBpOQuDx+MJNosrBtDNsAAqIXhraTEIW5cbMPV8VB2yAOvTZb6S8xEvlZG15UzZAHlXwVcHLTSkq0U8xUwpOEOnLyM0GgfyBVl3HOPTlFnlpDMU72+p3IIXlaUh2VAA).

In the first two, I've defined them in terms of mapped types with a concrete key of string, and an object type with a `string` index signature. TypeScript has no issues with either of those.

On the other hand, the last two are described with `Record`, or with a helper mapped type fed in a `string` key type.

```ts
// No errors ✅
namespace ObjectIsMappedTypeOnString {
    export type Json =
        | string
        | number
        | boolean
        | null
        | Json[]
        | { [K in string]: Json }
        ;
}

// No errors ✅
namespace ObjectIsIndexSignature {
    export type Json =
        | string
        | number
        | boolean
        | null
        | Json[]
        | { [key: string]: Json }
        ;
}

// Errors ❌
namespace ObjectIsRecord {
    export type Json =
        | string
        | number
        | boolean
        | null
        | Json[]
        | Record<string, Json>
        ;
}

// Error ❌
namespace ObjectIsGenericMappedType {
    type JsonProperties<K extends PropertyKey> = {
        [P in K]: Json
    };
    export type Json =
        | string
        | number
        | boolean
        | null
        | Json[]
        | JsonProperties<Json>
        ;
}
```

I would expect all of these to work.
Repository: pytorch
Issue: [C++-polyfill] Pt2 - Discussion around user defined type->behavior dispatching
Labels: feature,triaged,oncall: pt2,module: dynamo,dynamo-polyfill

@voznesenskym: If users have library code where they have custom types, where they want dynamo to provide some kind of custom behavior, what should that extension point look like?

Motivating example: @drisspg wrote some SDPA structure in C++ that is ostensibly either third-party like, or higher level than most torch primitives. 

1) Don't offer it, too brittle and clumsy
2) Add an extension point to where we do type-dispatch and a registration API that lets folks provide their own VariableTracker impl (This makes VT interface publish-ish, which I dislike a lot)
3) Add an extension point to where structures/types can be decomped into python structures/types a la ops

A few various library authors have asked for this, and while some like numpy are ubiquitous enough to become first class citizens, it certainly isnt the right path for all..

@suo: this sounds like torchbind/c++ custom classes?
@suo: it is indeed brittle and clumsy, but is extremely useful lol

@voznesenskym: Arguably less brittle and clumsy than having a smattering of layering violating/third party structures across all of dynamo for providing custom mapping whatever is the lib-du-jour. 😉 more brittle and clumsy than doing nothing I guess

@mlazos: I like 2, but I don't see a good way to do it, as you allude to, I do consider Driss' stuff less third party since it does live in torch.* if that matters, https://github.com/pytorch/pytorch/pull/117207 

@anijain2305: I guess here user would want control even in deeper layers of torch.compile like AOTAutograd and possibly Inductor, and not just Dynamo?

@voznesenskym: Imo as long as you provide a recipe to graph capture it soundly, lowering should Just Work (tm) but maybe there are cases where thats not true? 

For custom data types, it seems to be true, at least.

@ezyang:

I think it's different than torchbind in that user defined C++ structs may not ever show in the graph. A smaller extension point surface that we should explore first is "pure" data structures without any embedded tensors which cannot be mutated, so we can just constant fold them. Maybe figure out the minimal api needed to deal with mutation too. I don't want us to commit to a stable api for variable tracker, not this year anyway, I would say that we should liberally accept patches for VT support for external libraries, but this is actually kind of useless unless we're willing to test them too.

Another extension point surface which I think is possible is one where you write a reference implementation in Python and we use that to work out how the C++ one would have behaved. We have this for functions (polyfill) and I think this is a very reasonable and stable extension point - oh, that's voz's (3).



cc @ezyang @anijain2305 @chauhang @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @amjames @msaroufim @wconstab @bdhirsh @zou3519 @aakhundov
Repository: ant-design
Issue: 可以出一个属性直接禁用Table组件的hover效果吗
Labels: 💡 Feature Request,Inactive

### What problem does this feature solve?

我目前的项目表格可能会一次merge几百上千行，鼠标划过这样的单元格时会造成页面的卡顿，当前只能去掉滑动后的样式，但是事件仍然存在，我希望出一个属性可以直接禁用这个事件

### What does the proposed API look like?

hover：boolean

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: godot
Issue: Enabling some window settings can cause double _draw call
Labels: topic:rendering,needs testing,topic:2d

### Tested versions

checked on:
- v3.5.3.stable.official [6c814135b]
- v3.6.beta.custom_build [412632619]

### System information

Pop!_OS 22.04 LTS, GTX1060 545.29.06

### Issue description

Enabling **bordeless** or **fullscreen** window setting may cause `CanvasItem` to call `_draw` method twice.

### Steps to reproduce

You could try:

```gdscript
func _draw() -> void:
	printt(self, "drawing")

```

and toggle **borderless** or **fullscreen** window project settings or use MRP

### Minimal reproduction project (MRP)

[New Game Project.zip](https://github.com/godotengine/godot/files/13911137/New.Game.Project.zip)