sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: godot
Issue: Float values NAN or INF are shown as 0 in the debugger and inspector
Labels: bug,topic:editor,regression,topic:gui

*Bugsquad edit:* Regression from https://github.com/godotengine/godot/pull/81076

### Tested versions

- Reproducible in v4.2.1.stable.official [b09f793f5], v4.2.stable.official [46dc27791]
- NOT reproducible in v4.1.3.stable.official [f06b6836a] 


### System information

Godot v4.2.1.stable - Debian GNU/Linux trixie/sid trixie - Wayland - Vulkan (Forward+) - integrated Intel(R) Xe Graphics (TGL GT2) () - 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz (8 Threads)

### Issue description

Variables in the debugger window (stack variables) or properties in the inspector of type float will never show NAN or INF values correctly, they show up as 0
The tooltip in the script editor DOES show if a variable contains NAN or INF.

Rather nasty bug if you happen to be debugging a broken formula or something outputting an unwanted nan you are not aware of. The nan will profilerate but you will not see it at all. Nan has some special comparison properties also, which 0 does not, and this could really mess with your mind until you realize the debugger itself is bugged.

### Steps to reproduce

Run the mrp until the breakpoint hits.
Open the local variables in the debugger -> all values show as 0
Open the 'self' object in the inspector -> all property values show as 0

### Minimal reproduction project (MRP)

[mrp_no_nan_visible_in_debugger_and_inspector.zip](https://github.com/godotengine/godot/files/14175751/mrp_no_nan_visible_in_debugger_and_inspector.zip)
Repository: material-ui
Issue: [material-ui][Filled Input] Undocumented non-themeable values
Labels: docs,component: text field,package: material-ui,customization: theme

### Steps to reproduce

Link to live example: https://github.com/mui/material-ui/blob/0b38955227cf4fc879fea5c8d23e167a5b9c4936/packages/mui-material/src/FilledInput/FilledInput.js#L45-L49
and e.g.
https://github.com/mui/material-ui/blob/0b38955227cf4fc879fea5c8d23e167a5b9c4936/packages/mui-material/src/FilledInput/FilledInput.js#L52

Nothing to reproduce.

### Current behavior

After searching for hours where the background colors for the FilledInput come from, I finally started to read the code of the `FilledInput` and found that it has a wierd an completely undocumented way on how to theme it (or at least I was not able to find any documentation about it).

So maybe the issue is `Make the FilledInput use variables from theme` or
`Missing documentation about `

### Expected behavior

Documentation on how to customize `FilledInput` or a `FilledInput` that uses default theme values


Further question:
Isn't the `palette.action` exactly for this case but not used?


**Search keywords**: FilledInput, background
Repository: ant-design
Issue: modal内的虚拟滚动tree的滚动条位置错误
Labels: 🐛 Bug,Inactive

### Reproduction link

[https://stackblitz.com/edit/react-jkluku?file=demo.tsx](https://stackblitz.com/edit/react-jkluku?file=demo.tsx)

![image](https://github.com/ant-design/ant-design/assets/19570481/ae24785e-62ef-44a3-ad3e-edd5b4afe896)

### Steps to reproduce

1. 点击open打开modal
2. 滚动modal内的tree

### What is expected?

滚动条表现正常

### What is actually happening?

内容区到底了，滚动条并没有到底

| Environment | Info |
| --- | --- |
| antd | 5.14.0 |
| React | 18.2.0 |
| System | win10 22H2 19045.3930 |
| Browser | microsoft edge 121.0.2277.98 |

---
modal virtual list tree场景中，在rc-virtual-list中的List组件内使用rc-resize-observer计算容器的高度时，若modal还没有”完全打开“，计算会有问题，最终导致滚动条位置不对；在上述复现demo中，若把setData的时机调长，计算就正常了

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: pytorch
Issue: Performance Concern about CrossEntropyLoss
Labels: high priority,module: performance,module: nn,module: cuda,triaged

### 🐛 Describe the bug

I've seem a [claim](https://unsloth.ai/blog/mistral-benchmark) floating around that PyTorch's CrossEntropyLoss operation is poorly optimized during the backward pass, and that it can be rewritten to reduce VRAM usage by a massive amount (seemingly by 3x or more!), with no impact on computation speed.

This sounds like a tall claim given CrossEntropyLoss is very simple operation, but the authors of the claim has created a [repo](https://github.com/unslothai/unsloth/tree/main) which contains, among other optimizations, an alternate CUDA kernel for [CrossEntropyLoss](https://github.com/unslothai/unsloth/blob/main/unsloth/kernels/cross_entropy_loss.py) using Triton, and some people have indeed observed significant VRAM improvement using the author's repo. My understanding is that PyTorch compiles its own CUDA kernel for CrossEntropyLoss, so there doesn't seem to be any reason why PyTorch could not implement it in the most optimal way.

I'm not so sure if I should've marked the issue as a bug since I'm not certain of the veracity of this performance optimization claim, but if it's true this seems like a very big performance bug in PyTorch's CrossEntropyLoss implementation. Perhaps someone could take a look to see if it's plausible to optimize PyTorch's CrossEntropyLoss in a similar way? Given that LLM's have a very large logits tensor due to their vocabulary size, an optimization of this operation can potentially reduce training VRAM requirements of a huge number of projects.

### Versions

PyTorch 2.1.1

cc @ezyang @gchanan @zou3519 @kadeng @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki @ptrblck
Repository: opencv
Issue: invalid JS export generated
Labels: category: javascript (js),community help requested

hi,

during build the js code is surrounded with the umd handler :
https://github.com/opencv/opencv/blob/8850a8219e076185ef383f241ffe3160a83e8367/modules/js/src/make_umd.py#L104

which leads to this code:
![grafik](https://github.com/opencv/opencv/assets/78061/e82fb003-d248-4c88-ad22-cda1e2ba9c39)

the problem is that the `export default cv;` should be in the outer scope and not inside, , even more it should be rather
`export default await cv;`
Repository: excalidraw
Issue: Unable to use excalidraw in browser extension [CSP lvl. 3]
Labels: bug

I am trying to use excalidraw inside chrome extension that injects excalidraw into a webpage but I am not able to due to strict CSPs. Excalidraw depends on some remote resources from https://unpkg.com/ but it is mentioned in the documentation that it is possible to host those files by myself. And that is what I am doing in my extension. However in order to make excalidraw actually use the local version of those files instead of the remote one I need to set window.EXCALIDRAW_ASSET_PATH to chrome.runtime.getURL("") (that's where these files reside) but it is not possible as fetching of those resources happens from the top level window (the webpage) and not content script. I cannot set global variables of the webpage as extensions content sripts live in an isolated world, where only DOM is shared between content script and the webpage. I tried to set this variable by injecting inline script (since DOM is the only shared thing) but this is not allowed due to strict CSPs of chrome extensions. I really do need a way to force excalidraw to use my local resources but I don't want to modify code of the library.
Repository: opencv
Issue: findCirclesGrid can't detect some asymmetric grids
Labels: bug,category: calib3d

### System Information

OpenCV version: 4.9.0 (last version)

### Detailed description

1. findCirclesGrid can find the circles in (3, 6) pattern, but sometimes incorrectly recognizes the pattern:
![test1](https://github.com/opencv/opencv/assets/22337800/5fe28d33-3661-473c-9e33-726dd548603c)
![CircleGridDetect](https://github.com/opencv/opencv/assets/22337800/badbf966-260e-4f12-b002-80ae4cad4a9e)
2. findCirclesGrid cannot detect patterns distorted by perspective:
![test2](https://github.com/opencv/opencv/assets/22337800/3b65a42e-34ad-43bf-b18f-d426da1c0c46)
![CircleGridDetect2](https://github.com/opencv/opencv/assets/22337800/08593c7d-28a8-4c40-92c9-c216fbfbc33d)


### Steps to reproduce

```
import cv2 as cv

frame = cv.imread("test1.png")
circle_board_size = (3, 6) 
ret, circle_centers = cv.findCirclesGrid(frame, circle_board_size, flags=cv.CALIB_CB_ASYMMETRIC_GRID)
cv.drawChessboardCorners(frame, circle_board_size, circle_centers, ret)
print(ret)
cv.imshow("CircleGridDetect", frame)
cv.imwrite("CircleGridDetect1.png", frame)
cv.waitKey(0)

```

### Issue submission checklist

- [X] I report the issue, it's not a question
- [X] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [X] I updated to the latest OpenCV version and the issue is still there
- [X] There is reproducer code and related data files (videos, images, onnx, etc)
Repository: storybook
Issue: [Bug]: CSF does not infer args table block with certain exclude regex on parameter controls
Labels: documentation

### Describe the problem

```ts
import type { Preview } from "@storybook/react";

const preview: Preview = {
  parameters: {
    controls: {
      exclude: /_*$/,
    },
  },
};
export default preview;
```
The arg table will only generate if a spread argument is used for the render function, see below
```ts
export const Base: StoryObj<typeof meta> = {
  render: (props) => <Header {...props} />,  // <- NO ARGS TABLE
};
```
There was also a discussion on discord it might've something to do with using `<typeof meta>` vs `<typeof MyComponent>`, but it does not seem to be related to the issue.  @jonniebigodes 

### Additional context

Inference of the args table breaks in the conditions of the documentation: 
- when looking at the Storybook 8.0 docs https://storybook.js.org/docs/8.0/api/csf

```ts
import { Header } from "@/lib/index.js";
import type { Meta, StoryObj } from "@storybook/react";

const meta: Meta<typeof Header> = {
  title: "UI/Header",
  component: Header,
};
/**
 * Normal Header without anything special
 */
export const Base: StoryObj<typeof meta> = {
  // render: (args) => <Header {...args} />,  // <- no args table
  render: (...args) => <Header {...args[0]} />,   // <- generates a working args table
};


export default meta;
```

Without the render function, export Base = {} , there's also no auto generated args table. 
Aside: when there's no auto-generated args table it generates an (annoying?) block that, if you google the contents of the block, it is included in a lot of production storybook instances in the wild.
Aside2: the "show code" snippet shows the code of the named export,  so when used according to documentation it would simply display {} when sticking to the defaults
Repository: node
Issue: Provide a way to get worker initialization error synchronously
Labels: feature request

### What is the problem this feature will solve?

I'm using a worker to run asynchronous tasks and block the main thread with `Atomics.wait()`.
If the worker has something like syntax errors, it seems that we can only get it by add a listener to `error` event, the program just hangs since worker can not wake the main thread.

```js
new (require('worker_threads').Worker)(new URL('data:text/javascript,throw new Error'));
```

### What is the feature you are proposing to solve the problem?

Provide a way to get the worker initialization error synchronously.

### What alternatives have you considered?

I tried to pass a timeout to `Atomics.wait()`, but It's just a random magic number because I don't know how long the worker script takes to init.
Repository: pytorch
Issue: Dead link in `torch.compile` docs
Labels: module: docs,good first issue,triaged

### 📚 The doc issue

[`torch.compile`](https://pytorch.org/docs/stable/generated/torch.compile.html) refers to another non-existent [page](https://pytorch.org/docs/main/compile/custom-backends.html). 

### Suggest a potential alternative/fix

The link should probably be replaced with https://pytorch.org/docs/stable/torch.compiler_custom_backends.html#registering-custom-backends

cc @svekars @brycebortree
Repository: ant-design
Issue: 'prefix' is missing in the 'Select' and 'DatePicker'
Labels: 💡 Feature Request,Inactive


### What problem does this feature solve?

ant-design has`prefix`attribute for `<Input>` and it make the form fields along with the the icons. However, the `prefix` attribute is not supported in the `<Select>` and `DatePicker`. Please let me know how to add `prefix` so that the form will look consistent.

```
<Form.Item
                name="last_name"
                label="Last Name"
                rules={[{ message: "Please input your lastname!" }]}>
                <Input
                  prefix={
                    <i className="site-form-item-icon fa-solid fa-user"></i>
                  }
                />
              </Form.Item>
```

Please refer to our current form below.
![Screenshot 2024-02-06 at 4 34 34 PM](https://github.com/ant-design/ant-design/assets/5057822/2e6de928-0ba0-4ef5-9132-84a729322852)
Refer to the Gender and Birthday fields. It looks smaller than the rest because of the missing prefix attribute.


### What does the proposed API look like?

```
<Form.Item
                name="gender"
                label="Gender"
                rules={[{ message: "Please select gender!" }]}>
                <Select placeholder="Select your gender" prefix={
                    <i className="site-form-item-icon fa-solid fa-user"></i>
                  }>
                  <Option key="male">Male</Option>
                  <Option key="female">Female</Option>
                  <Option key="other">Other</Option>
                </Select>
              </Form.Item>
```

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: transformers
Issue: Returning history prompt from BarkModel.generate() 
Labels: Feature request

### Feature request

Hi, 
I have noticed that the original implementation of Bark (https://github.com/suno-ai/bark) has added a feature where one can get the history_prompt for the audio being currently generated using the parameter  output_full. 
history_prompt, out_arr = generate_audio(text_prompt, output_full=True)
where history_prompt is a dict object with semantic_prompt, coarse_prompt, and fine_prompt as its keys. 

But the generate method of the  huggingface version of Bark (BarkModel) doesn't support this parameter. I tried to modify the code by creating a dict of these under the generate method but the prompts in the output prompt don't meet the criteria of a valid history_prompt to be used next time because of the mismatch in ndarray.

Even the ndarray shape is also different for semantic, coarse, and fine prompts are different in the original implementation and the HuggingFace implementation. 

Can you please help me in fixing it?

### Motivation

 I want to generate a continous long-form audio for an audiobook for a better experience. I believe this will help in helping the Suno/Bark decide the tone based on the last sentence which can not be achieved using it at a sentence level  based on a single fixed history_prompt. 


### Your contribution

I need to go through and understand why there is a difference in the shape of different prompts. If that's achieved, I can contribute with a PR.
Repository: angular
Issue: Associate an attribute input to a specific directive
Labels: area: core,core: inputs / outputs

### Which @angular/* package(s) are relevant/related to the feature request?

core

### Description

Currently when 2 directives are applied to the same component with the same input name, when binding to this input all the relevant directives are binded, for example :
```
@Directive({
  selector: '[appHighlight]'
})
export class HighlightDirective {
  @Input('color') backgroundColor: string;
}
// ----
@Directive({
  selector: '[appBorder]'
})
export class BorderDirective {
  @Input('color') borderColor: string;
}

```

```
<div appHighlight appBorder [color]="'red'">Text highlight and border</div>
```
In this example both directives are binded to the color red.

### Proposed solution


Can we have specific bind of input to a specific direcitve as so :

```<div appHighlight appBorder [appHighlight.color]="'red'" [appBorder.color]="blue">Text highlight and border</div>```

### Alternatives considered

There is currently a solution for this situation by doing a WrapperDirective and overriding this property, But this is redundant, since this requires maintaining an additional directive and this is obviously slower to write, also this solution is not obvious to newcomers and the proposed solution reminds the [class.some-class] class binding that angular already has.

```
@Directive({
  selector: '[appBorderWrapper]'
})
export class WrapperBorderDirective extends BorderDirective {
  @Input('wrapper-color') borderColor: string;
}
```
Repository: next.js
Issue: transpilePackages does not work for @mui/material
Labels: examples

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 10 Pro
Binaries:
  Node: 18.17.1
  npm: N/A
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 14.1.0 (same with 14.1.1-canary.36)
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.3.3
Next.js Config:
  output: N/A
```


### Which example does this report relate to?

with-jest

### What browser are you using? (if relevant)

_No response_

### How are you deploying your application? (if relevant)

_No response_

### Describe the Bug

I used  `npx create-next-app@latest --example with-jest with-jest-app` to create the project
Than i added `@mui/material` and all required dependencies.
Than i created the hook and the test.

I tried adding the `@mui` to `transpilePackages` in `next.config.js` but it didn't help.

**without** entry in `transpilePackages`:

    C:\Users\...\IdeaProjects\with-jest-app\node_modules\@mui\material\index.js:9
    import * as colors from './colors';
    ^^^^^^

    SyntaxError: Cannot use import statement outside a module

       7 | // Mock the theme with breakpoints
       8 | const theme = createTheme({
    >  9 |   breakpoints: {
         |                ^
      10 |     values: {
      11 |       xs: 0,
      12 |       sm: 600,

      at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14)
      at Object.<anonymous> (hooks/__tests__/useIsMobile.test.tsx:9:16)

**with** entry in `transpilePackages`:

    C:\Users\...\IdeaProjects\with-jest-app\node_modules\@babel\runtime\helpers\esm\extends.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){export default function _extends() {
                                                                                      ^^^^^^

    SyntaxError: Unexpected token 'export'

       7 | // Mock the theme with breakpoints
       8 | const theme = createTheme({
    >  9 |   breakpoints: {
         |                ^
      10 |     values: {
      11 |       xs: 0,
      12 |       sm: 600,

      at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14)
      at Object.<anonymous> (hooks/__tests__/useIsMobile.test.tsx:9:16)




### Expected Behavior

jest test should run.

### To Reproduce

1. checkout the demo repo: https://github.com/mricharz/with-jest-app-mui-demo
2. install deps
3. start "test" script from package.json
Repository: vscode
Issue: API to find the active comment thread
Labels: feature-request,api,api-proposal,comments

This would enable extensions to provide keybindings for the active comment thread. 

Example: https://github.com/microsoft/vscode-pull-request-github/issues/5261
Repository: PowerToys
Issue: Image Resizer: move more settings to preset and window
Labels: Idea-Enhancement,Product-Image Resizer

Now, the data that's included in a preset are [width, height, fit, unit]. In the Settings window we can find a lot more [4 coding, 2 file name].
From a usability's perspective, it would be great if all of these settings are saved under a preset _and_ are accessible (read: editable) in the I.R. window at run-time.

### Reason

This makes the presets much more useful and powerful. It makes sense that (for example) a preset for a certain size saves new files to a specific folder, that includes the details of that preset. Like preset "Large" will save in a folder "resized-Large\\" and preset "Small" saves to "resized-Small\\".

Steps:
- move input controls to window
- adjust code-behind to use window input
- adjust model/viewmodel (per preset)
- adjust code-behind to save settings to model
Repository: vscode
Issue: Zen mode no longer loads  nicely.
Labels: under-discussion,workbench-zen

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->
When switching to zen mode, I no longer get the smooth transition effect we used to have, it just switches in a flick.
Repository: next.js
Issue: Redirect ignores basePath with loading page present
Labels: bug,Navigation

### Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/distracted-wind-3q8mt9

### To Reproduce

1. Start the application in dev mode (next dev)
2. Navigate to `/s/plan` through URL

### Current vs. Expected behavior

Expected to see: Correct redirect from `/s/plan` page to `/s/login` route, i.e. display of Loading => Sign in
Actual behavior: redirect to `/s/login` which is then replaced with `/login`, i.e. Loading => Sign in => Loading => 404 Not found.


### Provide environment information

```bash
Whatever is in codesandbox, doesn't seem to matter
```


### Which area(s) are affected? (Select all that apply)

App Router, Routing (next/router, next/navigation, next/link)

### Which stage(s) are affected? (Select all that apply)

next dev (local)

### Additional context

Tested on next@14.1.0 and 14.1.1-canary.36
Whether you do `push` or `replace`, redirect will navigate to the correct route and then will replace it with the one without basePath. Removing `loading.tsx` removes the second `replace` and then everything works as expected.
Repository: PowerToys
Issue: Update NuGet packages
Labels: Area-Build

### System.Net.Http ⚠️

![Image](https://github.com/microsoft/PowerToys/assets/65828559/b5404355-f7c2-4213-9f1a-4b701b866ed1)

### Update 📈

- **WPF-UI** 3.0 (latest) Check [changes](https://github.com/lepoco/wpfui/releases/tag/3.0.0) to see what we can improve in PowerToys.
- **WinUI-EX** v2.2.0 --> 2.3.3 Check [changes](https://github.com/dotMorten/WinUIEx/compare/v2.2...v2.3.2) to see what we can improve in PowerToys.
- **System.IO.Abstractions** 17.2.3 --> 20.0.15 [changes](https://github.com/TestableIO/System.IO.Abstractions/compare/v17.2.3...v20.0.15)
- **UnitsNet** 4.415 --> 5.43 [changes](https://github.com/angularsen/UnitsNet/compare/UnitsNet/4.145.0...UnitsNet/5.43.0)

### Check for unused 🗑️

- FZ Editor
  - **ModernWpfUI**: update 0.9.4 to 0.9.6 (from 6/2022) or change to WPF-UI or to WinUI3?
- Settings project??
  ![Image](https://github.com/microsoft/PowerToys/assets/65828559/fb611438-281a-42fa-9ff0-68b5438ba687)