sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: next.js
Issue: OpenGraph ImageResponse doesn't render UTF-8 characters properly
Labels: bug,Metadata

### Link to the code that reproduces this issue

https://github.com/MartinXPN/next-image-response-reproduction

### To Reproduce

1. Run the project with `npm run dev`
2. Open the browser and go to `http://localhost:3000`
3. Open the generated `opengraph` path
4. See that the image is not generated properly

### Current vs. Expected behavior

The image should contain the text `Բարև ձեզ`. Instead, it only contains empty rectangles. See below.

![opengraph-image](https://github.com/vercel/next.js/assets/16335716/df51cf4b-e889-45cd-83d1-71f4f760e51a)


### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.5.0: Wed May  1 20:14:38 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6020
  Available memory (MB): 65536
  Available CPU cores: 12
Binaries:
  Node: 20.10.0
  npm: 10.2.3
  Yarn: 1.22.22
  pnpm: N/A
Relevant Packages:
  next: 14.2.3 // Latest available version is detected (14.2.3).
  eslint-config-next: 14.2.3
  react: 18.3.1
  react-dom: 18.3.1
  typescript: 5.4.5
Next.js Config:
  output: N/A
```


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

Not sure, Metadata

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

next dev (local), next start (local), Vercel (Deployed)

### Additional context

As an additional request, it would be great to be able to load the fonts like in a regular NextJS app (where all the google fonts are available):
```tsx
import {Roboto} from "next/font/google";

const font = Roboto({weight: ['300', '400', '500', '700'], subsets: ['latin']});
````

Instead of having to store the fonts locally and load the font manually like this:
```tsx
const interSemiBold = fetch(
        new URL('./Inter-SemiBold.ttf', import.meta.url)
    ).then((res) => res.arrayBuffer())
```
Repository: storybook
Issue: [Bug]: Backgrounds no longer working with Angular and MDX
Labels: bug,has workaround,addon: backgrounds,mdx,sev:S2

### Describe the bug

Custom backgrounds set via the parameters object of a story does not apply to stories that are written in the MDX format. This was previously working in Storybook 7, but in Storybook 8 backgrounds only applies to canvas and auto docs pages.

Example code:

```typescript
export const Primary: Story = {
  args: {
    primary: true,
    label: 'Button',
  },
  parameters: {
    backgrounds: {
      default: 'black',
      values: [{ name: 'black', value: '#000' }],
    },
  },
};
```

### Reproduction link

https://stackblitz.com/edit/github-5tcfvt?file=src%2Fstories%2Fbutton.mdx

### Reproduction steps

1. Go to the above link
2. Go to the Button -> Docs page
3. Inspect the background of the story with the heading "Canvas with custom background" (it is white, but is expected to be black)
4. Go the Button -> Primary page (the background of this page is rendered correctly)

### System

```bash
Storybook Environment Info:

  System:
    OS: Linux 5.15 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
    CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 20.11.1 - ~/.nvm/versions/node/v20.11.1/bin/node
    npm: 10.2.4 - ~/.nvm/versions/node/v20.11.1/bin/npm <----- active
  npmPackages:
    @storybook/addon-a11y: ^8.0.2 => 8.1.5 
    @storybook/addon-essentials: ^8.0.2 => 8.1.5 
    @storybook/addon-links: ^8.0.2 => 8.1.5 
    @storybook/addon-mdx-gfm: ^8.0.2 => 8.1.5 
    @storybook/angular: ^8.0.2 => 8.1.5 
    @storybook/blocks: ^8.0.2 => 8.1.5 
    @storybook/core-server: ^8.0.2 => 8.1.5 
    @storybook/manager-api: ^8.0.2 => 8.1.5 
    @storybook/theming: ^8.0.2 => 8.1.5 
    eslint-plugin-storybook: ^0.8.0 => 0.8.0
```


### Additional context

_No response_
Repository: storybook
Issue: [Bug]: Cleanup logs during storybook init
Labels: bug,good first issue,help wanted,cli,sev:S4

### Describe the bug

When initializing Storybook, the terminal logs a lot of unnecessary noise, and we have several formatting issues.

We should clean it up so that only relevant and properly formatted information is displayed.

![Screenshot 2024-06-05 095754](https://github.com/storybookjs/storybook/assets/5889929/e9c8b65a-042e-4fd0-9996-2b3701bb3056)
![Screenshot 2024-06-05 095905](https://github.com/storybookjs/storybook/assets/5889929/99d0078e-7801-463d-a090-c679b58bd378)


### Reproduction link

-

### Reproduction steps

_No response_

### System

```bash
-
```


### Additional context

_No response_
Repository: go
Issue: runtime: enable leak sanitizer in Go
Labels: NeedsInvestigation,FeatureRequest,compiler/runtime

### Proposal Details

This is follow-up to #44853 which proposed to enable ASAN for Go.

One type of error in Go / C interop are memory leaks. These can be detected by ASAN using `ASAN_OPTIONS=detect_leaks=1`. Unfortunately, this doesn't fully work with Go's ASAN integration. For example, allocating a C object and storing it in a global variable in Go is detected as a leak.

I believe to make LSAN work, all we need to do is to tell it about memory regions that Go manages to consider as roots using `__lsan_register_root_region`.
Repository: tensorflow
Issue: Aborted (core dumped) in `tf.transpose`
Labels: stat:awaiting tensorflower,type:bug,comp:ops,TF 2.16

### Issue type

Bug

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

Yes

### Source

source

### TensorFlow version

tf 2.16

### Custom code

Yes

### OS platform and distribution

Linux Ubuntu 22.04.3 LTS (x86_64)

### Mobile device

_No response_

### Python version

3.9.13

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

A crash is triggered when some boundary values are passed to the perm parameter of these transpose functions. the affected APIs are as follows:

1. tf.transpose
2. tf.experimental.numpy.transpose
3. tf.compat.v1.transpose
4. tf.keras.ops.transpose
5. tf.raw_ops.transpose
6. tf.raw_ops.ConjugateTranspose

tf.raw_ops.ConjugateTranspose is a Segmentation fault crash, all other API crashes are Aborted. 

### Standalone code to reproduce the issue

```shell
import tensorflow as tf
import numpy as np

x = tf.random.normal(shape=(3, 3))
# crash
x = tf.transpose(x, perm=((- 1), (- 2))) 
 
# crash 
# tf.experimental.numpy.transpose(     
#     x, axes=((- 1), (- 2))
# )

# crash 
# tf.compat.v1.transpose(  
#     x, perm=((- 1), (- 2)), name='transpose', conjugate=False
# )

# crash
# tf.keras.ops.transpose(
#     x, axes=((- 1), (- 2))
# )

# crash
# tf.raw_ops.ConjugateTranspose(
#     x=x, perm=((- 1), (- 2))
# )

# crash
# tf.raw_ops.Transpose(
#     x=x, perm=((- 1), (- 2))
# )
```


### Relevant log output

```shell
2024-06-05 09:16:55.482645: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2024-06-05 09:16:56.526139: F tensorflow/core/framework/tensor_shape.cc:356] Check failed: d >= 0 (0 vs. -1)
Aborted (core dumped)

2024-06-05 09:17:47.967585: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
Segmentation fault (core dumped)
```
Repository: ui
Issue: Bug : Incorrect Hover Color for ContextMenuContent
Labels: bug

### Describe the bug

When using the ContextMenuContent component from the shadcn/ui library, the hover color does not display correctly. This issue is resolved temporarily when the console is opened with F12 and we select the item in elements tab . However, closing the console causes the ContextMenuContent to revert to the incorrect hover color.


![image](https://github.com/shadcn-ui/ui/assets/72023373/9c56ec64-d52f-48c2-a02b-921c5ecee80f)

![image](https://github.com/shadcn-ui/ui/assets/72023373/1f44b9b1-749a-47bb-8aee-a463d1b2f68b)


### Affected component/components

ContextMenu

### How to reproduce

Implement the following code in your project:
```jsx
<ContextMenu>
  <ContextMenuTrigger
    className="my-4 flex hover:cursor-pointer"
    onClick={handleClickContextMenu}
  >
    <Library className="stroke-grey-500" size={ICON_SIZE} />
    {showText && <p className="font-bold text-grey-500">Your library</p>}
  </ContextMenuTrigger>
  <ContextMenuContent className="bg-grey-100 w-48">
    <ContextMenuItem inset className="hover:bg-grey-200 space-x-3">
      <Music />
      <p>Create playlist</p>
    </ContextMenuItem>
    <ContextMenuItem inset className="hover:bg-grey-200 space-x-3">
      <Plus />
      <p>Create folder</p>
    </ContextMenuItem>
  </ContextMenuContent>
</ContextMenu>
```
Run the application and interact with the ContextMenuContent.
Notice that the hover color is incorrect.
Open the developer console with F12.
Select the ContextMenuItem in Elements tab.
Observe that the hover color now displays correctly.
Close the developer console.
The hover color reverts to the incorrect color.

### Codesandbox/StackBlitz link

_No response_

### Logs

_No response_

### System Info

```bash
Browser : Brave
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: PowerToys
Issue: HostsFile-Editor uses outdated notepad-version
Labels: Issue-Bug,Needs-Repro,Needs-Team-Response,Area-App Compat,Product-Hosts File Editor

### Microsoft PowerToys version

0.81.1

### Installation method

PowerToys auto-update

### Running as admin

Yes

### Area(s) with issue?

Hosts File Editor

### Steps to reproduce

1.  Running PowerToys in AdminMode
2. Open HostsFile-Editor
3. Select Open Hosts File to open it in notepad
4. An old outdated notepad-version appears

![image](https://github.com/microsoft/PowerToys/assets/164368410/fe0b1775-4290-4d08-b971-8bd4f5630d6c)


### ✔️ Expected Behavior

Should use the actual notepad verson

### ❌ Actual Behavior

An old outdated notepad-version appears


### Other Software

Edition	Windows 11 Enterprise
Version	23H2
Betriebssystembuild	22631.3593
Repository: vscode
Issue: Copying links does not seem to work
Labels: bug,help wanted,webview

![Code_-_Insiders_xhtr7y5wiv](https://github.com/microsoft/vscode-pull-request-github/assets/2931520/e2f7dbbe-4280-486c-8525-821b6dd4705e)

...after clicking on "Copy", the clipboard remains unchanged.
Repository: next.js
Issue: [Bug][v13.5]build with terser error(Unexpected token: punc ({))
Labels: bug,Webpack

### Link to the code that reproduces this issue

https://github.com/henrycjchen/next-13-terser-issue

### To Reproduce

1. npm run build

### Current vs. Expected behavior

current:
- show error(`Unexpected token: punc ({)`) when build

expected:
- can build successfully

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.3.0: Wed Dec 20 21:31:00 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6020
Binaries:
  Node: 16.20.2
  npm: 8.19.4
  Yarn: 1.22.21
  pnpm: 7.33.1
Relevant Packages:
  next: 13.5.6
  eslint-config-next: 13.5.6
  react: 18.3.1
  react-dom: 18.3.1
  typescript: 5.4.5
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

Webpack

### Which stage(s) are affected? (Select all that apply)

next build (local)

### Additional context

It happens when there is a class with static props.
Repository: tensorflow
Issue: Aborted (core dumped) in `tf.raw_ops.QuantizeAndDequantizeV3`
Labels: stat:awaiting tensorflower,type:bug,comp:ops,TF 2.16

### Issue type

Bug

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

Yes

### Source

source

### TensorFlow version

tf 2.16

### Custom code

Yes

### OS platform and distribution

Linux Ubuntu 22.04.3 LTS (x86_64)

### Mobile device

_No response_

### Python version

3.9.13

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

A crash is triggered when an unintended value is passed to the input parameter of the tf.raw_ops.QuantizeAndDequantizeV3 function.

### Standalone code to reproduce the issue

```shell
import tensorflow as tf

input_data = tf.random.uniform(shape=[2, 1], maxval=9.0)
input_min = tf.constant([0, 1.0], dtype=tf.dtypes.float32)
input_max = tf.constant([1.0], dtype=tf.dtypes.float32)
# crash
tf.raw_ops.QuantizeAndDequantizeV3(input=input_data, input_min=input_min, input_max=input_max, num_bits=8, signed_input=True, range_given=True, narrow_range=False, axis=(- 1))
```


### Relevant log output

```shell
2024-06-05 10:39:35.285635: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2024-06-05 10:39:36.361982: F tensorflow/core/framework/tensor.cc:852] Check failed: 1 == NumElements() (1 vs. 2)Must have a one element tensor
Aborted (core dumped)
```
Repository: next.js
Issue: Polyfills for findLast and findLastIndex are missing
Labels: bug,SWC,Runtime

### Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/optimistic-brook-jhgh2h

### To Reproduce

1. Use findLast and findLastIndex in a client component
2. Adapt browserslist to: 
  "browserslist": ["defaults", "iOS >= 15"]
3. Build app
4. findLast and findLastIndex were not polyfilled

### Current vs. Expected behavior

I expected findLast and findLastIndex to be polyfilled due to "iOS > 15" in the browerslist. It is not supported by Safaria on iOS < 15.4.

### Provide environment information

```bash
Operating System:
  Platform: linux
  Arch: arm64
  Version: #1 SMP PREEMPT_DYNAMIC Sat Apr 27 18:11:03 UTC 2024
  Available memory (MB): 21377
  Available CPU cores: 16
Binaries:
  Node: 20.14.0
  npm: 10.7.0
  Yarn: N/A
  pnpm: 9.1.4
Relevant Packages:
  next: 14.2.3 // Latest available version is detected (14.2.3).
  eslint-config-next: N/A
  react: 18.3.1
  react-dom: 18.3.1
  typescript: 5.4.5
Next.js Config:
  output: N/A
```


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

Runtime, SWC

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

next dev (local), next build (local), next start (local)

### Additional context

I checked next-polyfill and it already includes a good number of polyfills from core-js.
core-js already has polyfills for findLast and findLastIndex, so this might be two lines of code.

https://github.com/zloirock/core-js/tree/master/packages/core-js/stable/array

There was also a discussion about this here: https://github.com/vercel/next.js/discussions/46724

Reproduction image on latest Chrome and iOS 15.2 Simulator:

<img width="2099" alt="image" src="https://github.com/vercel/next.js/assets/3847700/894ddcc1-1cb9-4583-a43b-a5ba9ada3bcf">
Repository: pytorch
Issue: Best approach for dynamically changing batch sizes on iterable datasets
Labels: feature,module: dataloader,triaged,module: data

### 🚀 The feature, motivation and pitch

The DeepSeek V2 paper proposed a training methodology where both the LR and the batch size were on a scheduler.

Exact description is below, however essentially:

* Increased total batch size from 2304 to 9216 over the first ~3% of training, or translated as a per-device bs of 288 -> 1152, starting pct of 25% -> 100%, over ~2.7% of the total steps before staying constantly at 9216
* They also used warmup-and-step-decay for the scheduler

![image](https://github.com/pytorch/pytorch/assets/7831895/76d41f50-cdcf-43c8-b9b9-23133ae52db4)

I'd like to have an approach that lets us dynamically modify the batch size on the fly (on a per-batch basis) for IterableDatasets. We can potentially do this via a wrapper `batch_sampler` (which accelerate can then wrap around to do per-device dispatching), however we'd need an approach that works for both iterable and non-iterable datasets to implement this fully. 

The FR is here in 🤗 Transformers: https://github.com/huggingface/transformers/issues/31222 

I know back in the day `fastai` let you just modify the `DataLoader` batch size on the fly, because of how they drew from their custom datasets. Would be really nice if we could have this in PyTorch in some capacity, to let open science flourish with all of the new ideas introduced in the DSv2 paper!

### Alternatives

_No response_

### Additional context

_No response_

cc @andrewkho @gokulavasan @SsnL @VitalyFedyunin @dzhulgakov
Repository: PowerToys
Issue: FancyZones: Add ability to set 'No layout' template as default
Labels: Needs-Triage

### Description of the new feature / enhancement

There is an ability to set specific template (all but 'No layout' one) as default:
![1](https://github.com/microsoft/PowerToys/assets/26544034/a2152061-3b36-4f6d-a960-5d475707c9d5)

I can do it by pressing 'Pencil' icon to edit template settings. There is no such thing for 'No layout' template:
![2](https://github.com/microsoft/PowerToys/assets/26544034/fd468593-eddb-4d56-a22b-23b70c99f9da)


Would be great to also be able to set 'No layout' template as default for horizontal or vertical monitor orientation.

### Scenario when this would be used?

**Preconditions:**
- I have 2 monitors, one in vertical and one in horizontal orientation, connected to my laptop via Thuderbolt. 
- For vertical I prefer a specific template, which I set as default.
- For horizontal I prefer 'No layout' template, which I can't set as default.

**Problem:**
- When I disconnect my laptop from my monitors to use it outside of my desk, FancyZone resets to 'Columns' template, even though it is not set as default for horizontal orientation on my end.
- So every time I plug/unplug Thuderbolt cable, I have to go to the Layout Editor and switch my horizontal monitor back to 'No layout'.

**Feature request:**
- I want to have the ability to set the 'No layout' template as default, so that it doesn't reset automatically every time I change my connected monitor's count.
Repository: rust
Issue: Clean up Solaris CI
Labels: C-cleanup,T-bootstrap,T-infra,O-solaris

We should clean up our Solaris CI. The poorly-maintained build script recently caused [a significant downtime](https://github.com/rust-lang/rust/pull/126007#issuecomment-2148757090), and [even my fix was just a rude hack](https://github.com/rust-lang/rust/pull/126011).

Alternately, we can decommission our Solaris CI!

If someone objects it would be great to have them formally write down their contact info in a platform support page for the targets.
Repository: godot
Issue: It's strange to focus on Godot.
Labels: bug,platform:macos,topic:editor,topic:porting

### Tested versions

I test Godot 3.5.3 stable to 4.2.x stable version.

### System information

macOS 12.6

### Issue description

I am a macbook user.Usually,I need to use three desktops, like this

<img width="1440" alt="Screen Shot 2024-06-05 at 19 23 48" src="https://github.com/godotengine/godot/assets/111971103/afef59f5-bbb1-4b1b-91dc-a02e897280b0">

And when I back Godot from Google Chrome, It can't get focus,just like this

<img width="1440" alt="Screen Shot 2024-06-05 at 19 25 46" src="https://github.com/godotengine/godot/assets/111971103/6e660700-a9a7-4f9d-bd23-8ea080634ffa">

I need to click it,it really makes me annoyed.

### Steps to reproduce

I want to figure out whose problems.I alse tried come back from other applications:

1. Chrome -> Godot: Godot can't get focus
2. Obsidian(Other app) -> Godot can get focus
3. Chrome -> Obsidian(Other app): Obsidian can get focus

Do anyone else have the same problem with me?

### Minimal reproduction project (MRP)

None.
Repository: kubernetes
Issue: Scheduling: Retry on conflict while updating pvc or pv in VolumeBinding plugin
Labels: sig/scheduling,kind/feature,lifecycle/stale,needs-triage

### What would you like to be added?

For `VolumeBinding` plugin, I hope to retry on conflict while updating pvc or pv in `perBind` stage. 

Due to there is no API rollback if the actual updating fails, so if one pods with multi pvcs, it could happen that only parts of pvcs updated with pod re-scheduled, which would leads pods stuck in pending forever (see Example for details) .

This issue wants to help pod to be bound successfully, while greatly reducing the situation that the pods have been scheduled in cache, but  the final binding fails due to update pvc/pv conflicts.

@Huang-Wei @cofyc @kerthcet PTAL, thanks.

/sig scheduling

### Why is this needed?

currently, once the pvc / pv is out of date, the updating operation will failed, then pod will be scheduled failed in perBind stage fro this round, and backoff to re-schedule.

for most situation, current impl looks fine. But When one pod with multi pvcs, it could let pod stuck in pending state forever for some cases.

### Example
There are only :
- two nodes: nodeA & nodeB, 
- two pods: podA & podB, podA with pvcA1 & pvcA2, podB with pvcB1 & pvcB2. 
We want those two pods to be deployed on different nodes with TopologySpreadConstraints.
![image](https://github.com/kubernetes/kubernetes/assets/18323315/1fa91b97-c8c6-4f41-9e89-85c8b5e70e23)

Then:
- scheduling podA, it assumed to `nodeA` in cache, but failed in  in VolumeBinding plugin perBind stage, and `the annotations on pvcA1 updated successfully`, updating pvcA2 failed with conflict.
- scheduling podB, it successfully bind to `nodeA`. Meanwhile, pvcA1 is bound.
- re-scheduling podA, TopologySpreadConstraints wants podA to nodeB, But the node affinity of pv for pvcA1  wants podA to nodeA. 
Finally, podB stuck in pending forever, unless we delete pvcA1.

![image](https://github.com/kubernetes/kubernetes/assets/18323315/c9e228e6-441f-4890-b0cf-18df9224a668)
Repository: rust
Issue: cannot forbid `dead_code` since lint triggers for third party macros
Labels: A-lints,C-bug,A-clippy,L-dead_code

if i, for example, forbid `dead_code`, clippy produces

```
error[E0453]: allow(dead_code) incompatible with previous forbid
  |
  | #[derive(Parser, Debug, Clone)]
  |          ^^^^^^ overruled by previous forbid
  |
  = note: `forbid` lint level was set on command line
  = note: this error originates in the derive macro `Parser` (in Nightly builds, run with -Z macro-backtrace for more info)
```

this is coming from `clap`'s `Parser` derive macro, which i have no control over, so prevents me from forbidding `dead_code` in my own crate.
Repository: PowerToys
Issue: Text Extractor not working
Labels: Issue-Bug,Needs-Triage,Needs-Team-Response,Product-Text Extractor

### Microsoft PowerToys version

0.81.1

### Installation method

GitHub, Microsoft Store

### Running as admin

Yes

### Area(s) with issue?

TextExtractor

### Steps to reproduce

Hi. I reset Windows, I didn't install any tweaks or other modifications. Now it's the turn of installing PowerToys. All functions work fine, except Text Extractor. I will attach a video below where you can see the whole problem. Previously there was no such problem and everything was working. [video link](https://imgur.com/a/WT0qEyR)

### ✔️ Expected Behavior

-

### ❌ Actual Behavior

-

### Other Software

_No response_