sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: Implement kaiming_uniform_ for sparse tensors.
Labels: module: sparse,module: nn,triaged,module: initialization

### 🚀 The feature, motivation and pitch

If you're trying to modify a linear layer to use sparse weights, initialization using `kaiming_uniform_` currently cannot be done without manually writing all the code yourself. 

For this reason, having a sparse backend for `torch.nn.init.kaiming_uniform_` would be useful.

Example code:

``` python
in_features = 10
out_features = 10
nnz = in_features * out_features
crow_indices = torch.Tensor(size=(in_features,))
col_indices = torch.Tensor(size=(nnz,))
values = torch.Tensor(size=(nnz,))
weight = torch.sparse_csr_tensor(crow_indices, col_indices, values, 
                          size=(out_features, in_features), 
                          dtype=torch.float32)

init.kaiming_uniform_(weight)
```

### Alternatives

_No response_

### Additional context

_No response_

cc @alexsamardzic @nikitaved @pearu @cpuhrsch @amjames @bhosmer @jcaip @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki
Repository: rust
Issue: error[E0275]: overflow evaluating the requirement `<RefTFamily<T> as LifetimizedOutputFamily>::Output<'a> == _`
Labels: T-compiler,C-bug,T-types,A-GATs

I was trying to implement a generic `SelfBorrowingClosure` based on <https://users.rust-lang.org/t/why-closure-cannot-return-a-reference-to-data-moved-into-closure/72655/6> but got a problem compiling the following piece of code:

```rust
pub trait LifetimizedOutputFamily {
    type Output<'a>
    where 
        Self::Output<'a>: 'a;
}

pub struct RefTFamily<T>(core::marker::PhantomData<*const T>);

impl<T> LifetimizedOutputFamily for RefTFamily<T>
{
    type Output<'a> = &'a T
    where
        T: 'a;
}

pub struct SelfBorrowingClosure<State, F, OutputFam>
where
    OutputFam: LifetimizedOutputFamily,
    F: Fn(&'_ State) -> <OutputFam as LifetimizedOutputFamily>::Output<'_>,
{
    pub state: State,
    pub call: F,
    pub output_family: core::marker::PhantomData<*const OutputFam>,
}

impl<State, F, OutputFam> SelfBorrowingClosure<State, F, OutputFam>
where
    OutputFam: LifetimizedOutputFamily,
    F: Fn(&'_ State) -> <OutputFam as LifetimizedOutputFamily>::Output<'_>,
{
    pub fn new(state: State, call: F) -> Self {
        Self {
            state,
            call,
            output_family: core::marker::PhantomData,
        }
    }

    pub fn call(&self) -> <OutputFam as LifetimizedOutputFamily>::Output<'_> {
        (self.call)(&self.state)
    }
}
```

Minimal Reproducible Example (MRE):

```rust
pub trait LifetimizedOutputFamily {
    type Output<'a>
    where 
        Self::Output<'a>: 'a;
}

pub struct RefTFamily<T>(core::marker::PhantomData<*const T>);

impl<T> LifetimizedOutputFamily for RefTFamily<T>
{
    type Output<'a> = &'a T
    where
        T: 'a;
}
```

Error:

```
error[E0275]: overflow evaluating the requirement `<RefTFamily<T> as LifetimizedOutputFamily>::Output<'a> == _`
  --> src\lib.rs:11:5
   |
11 |     type Output<'a> = &'a T
   |     ^^^^^^^^^^^^^^^

```
Repository: ui
Issue: [bug]: Components alias other than `@/` breaks non-default `utils` alias
Labels: bug

### Describe the bug

I have created a reproduction repository here https://github.com/andrewbrey/repro-shadcn-alias to demonstrate.

Basically, if you're `components.json` **components** alias starts with anything other than `@`, then your other aliases aren't correctly applied, which breaks non-default alias values. The observed behavior is that the starting character is used, but otherwise the applied alias for the other keys is the default value.

For example (and note that this is what is shown in the reproduction repository linked above), if I set my **components** alias to `~/components`, and my **utils** alias to `~/lib/custom_utils` then when I `shadcn add button`, the `Button` component that is added will use `~/lib/utils` as the import path of my utils functions, and _not the correct value_  of `~/lib/custom_utils`.

I believe this is the cause of https://github.com/shadcn-ui/ui/issues/4803.

### Affected component/components

All components

### How to reproduce

See reproduction repository https://github.com/andrewbrey/repro-shadcn-alias for example/demo.

### Codesandbox/StackBlitz link

_No response_

### Logs

_No response_

### System Info

```bash
N/A
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: deno
Issue: test --doc: support for notebook-style documents
Labels: suggestion,testing

Version: deno 1.46.3, but this applies both for the limited checking in Deno 1 and executing them in Deno 2.

Here's an example of a Markdown document that it would be nice to check:

````
Here are some imports:

```ts
import { assertEquals } from "@std/assert";
```

Here is a function that will be used later:

```ts
function square(x: number) {
  return x * x;
}
```

Here is an example of how to call it:

```ts
assertEquals(square(2), 4);
```
````

What happens now:

```
% deno test --doc docs/example.md 
Check file:///Users/skybrian/Projects/deno/repeat-test/docs/example.md$3-6.ts
Check file:///Users/skybrian/Projects/deno/repeat-test/docs/example.md$9-14.ts
Check file:///Users/skybrian/Projects/deno/repeat-test/docs/example.md$17-20.ts
error: TS2304 [ERROR]: Cannot find name 'assertEquals'.
assertEquals(square(2), 4);
~~~~~~~~~~~~
    at file:///Users/skybrian/Projects/deno/repeat-test/docs/example.md$17-20.ts:1:1

TS2304 [ERROR]: Cannot find name 'square'.
assertEquals(square(2), 4);
             ~~~~~~
    at file:///Users/skybrian/Projects/deno/repeat-test/docs/example.md$17-20.ts:1:14

Found 2 errors.
```

I think this could be made to work by removing everything except the code in the code blocks (replacing them with the same number of newlines so that the line numbers match) and then checking and/or executing the entire file.

This would allow us to write Markdown docs in a similar format as a Jupyter notebook, with text interspersed with code.

I made a similar suggestion in #25745 that's more limited (it only handles imports). With this one, it would be possible to avoid repeating both imports and local definitions when reusing them in a new code block. However, the writer would need to be careful not to use the same variable name twice.
Repository: rust
Issue: Large types cause linker failure
Labels: A-linkage,A-debuginfo,I-ICE,T-compiler,C-bug,E-needs-investigation

So I'm one of the maintainers of Leptos, and we're experimenting with a new static type system for our next release. The issue we're having is that for people porting existing websites/apps to the beta, experience a linker issue with link.exe, lld, mold, and ld. Our theory is that once the types reach a certain size, it will crash the linker.

In this version we're encoding the HTML tree into the type system by constructing `View<>` types that contain a tuple of it's descendants.
You can see what that looks like in the below code, which does not crash.
```toml
#Cargo.toml
[package]
name = "linker_issue"
version = "0.1.0"
edition = "2021"

[dependencies]
leptos = { git = "https://github.com/leptos-rs/leptos", features = ["ssr"] }
```
```rust
// main.rs
use leptos::html::{div, p, HtmlElement};
use leptos::prelude::*;

fn main() {
    let view: HtmlElement<_, _, _, Dom> = div().child((
        div().child((div(),)),
        p().child((div(), div())),
        div().child((div(), div(), div())),
        p().child((div(), div(), div(), div())),
        div().child((div(), div(), div(), div())),
        p().child((div(), p(), div(), div())),
        div().child((div(), div(), p(), div())),
        p().child((div(), p(), div(), p())),
    ));
    println!("type: {:?}", std::any::type_name_of_val(&view));
    println!("\n\nsize: {:?}", std::mem::size_of_val(&view));
    let html = view.to_html();
    println!("\n\noutput: {html}");
}
```

So far we haven't nailed down a reasonable reproduction I can post, but I can reproduce the issue while trying to build one of our user's private projects. Running `cargo leptos build`, which runs `cargo build --no-default-features --features=ssr`, generates this error. I've put it in a gist because it is huge: https://gist.github.com/benwis/fe3a8010243c0f6b338f6aef0b0e7ad2

I'm not quite sure how to debug this, we'd love to use this system as it offers a number of benefits, but if it's going to break compilation at larger app sizes we'll have to defer. Any thoughts?
Repository: ant-design
Issue: Table组件设置virtual模式后在2k分辨率屏幕下会显示滚动条
Labels: Inactive,unconfirmed

### Reproduction link

[![Edit on StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/edit/antd-reproduce-5x-w2h2zc?file=demo.tsx)

### Steps to reproduce

在2k屏幕下系统设置125%的缩放（该缩放系数系统默认推荐），Table配置virtual和bordered即可复现，当在1080屏幕或更改浏览器缩放比例为80%时即可恢复正常

### What is expected?

表格在内容未溢出的情况下不显示滚动条与边框。

### What is actually happening?

表格在内容未溢出的情况下出现了滚动条和不显示右侧边框
![image](https://github.com/user-attachments/assets/fea4c360-c002-4169-b68c-a345a547b0c2)

| Environment | Info |
| --- | --- |
| antd | 5.21.0 |
| React | 18 |
| System | Windows 11 |
| Browser | chrome |

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: deno
Issue: Offer the possibility to order properties in the CSS formatter
Labels: suggestion,deno fmt

[g-plane/malva](https://github.com/g-plane/malva) support a [`declarationOrder`](https://malva.netlify.app/config/declaration-order.html) option which would be nice if let available to end users.

I know `deno fmt` tries to limit the number of options by design, but I feel like this one would bring a lot of value for users using deno in web projects.

The current config of the CSS fmt is unironically a bit too lax for stylesheet collaboration, where everyone can add their new rules wherever they had their cursor last which can lead to chaotic stylesheet after many patches. 

Allowing a way to enforce a stricter formatting would make the life of reviewers easier (no need to reject a PR due to formatting), contributors (with instant fmt feedback) and maintainers (cleaner and healthier codebase)
Repository: neovim
Issue: UpdateRemotePlugins does not work
Labels: bug,remote-plugin

### Problem

previously everything worked fine. I uninstalled Python 3.9, etc. and manually removed most stuffs.
Then I extracted nvim and installed Python 3.8.5.
Now :UpdateRemotePlugins does not change rplugin.vim for either Shougo/deoplete.nvim or gelguy/wilder.nvim. (I'm using Plug.)
the command results in "python3 host registered plugins []" and rplugin.vim is always,
```
" perl plugins

" node plugins

" python3 plugins

" ruby plugins

```

Thank you in advance.

### Steps to reproduce

1. use Plug to install deoplete and wilder. I don't know how to use them without any package managers.
2. restart nvim.
3. manually run :UpdateRemotePlugins. rplugin.vim is empty
4. repeat steps 2 and 3. rplugin.vim is still empty
thus the plugins cannot load.

### Expected behavior

for deoplete on Linux, rplugin.vim consists,
```
call remote#host#RegisterPlugin('python3', '/home/users/.../.local/share/nvim/plugged/deoplete.nvim/rplugin/python3/deoplete', [
      \ {'sync': v:false, 'name': '_deoplete_init', 'type': 'function', 'opts': {}},
     \ ])
```

### Nvim version (nvim -v)

0.10.1

### Vim (not Nvim) behaves the same?

N/A

### Operating system/version

Windows 10

### Terminal name/version

N/A

### $TERM environment variable

N/A

### Installation

portable
Repository: godot
Issue: SpringArm3D shape is not visible
Labels: bug,confirmed,topic:3d

### Tested versions

4.3 - 4.4.dev2

### System information

Android 11 - 4.4.dev2 - Compatibility Renderer

### Issue description

SpringArm3D shape is not visible. 

https://github.com/user-attachments/assets/7307946b-79cb-40d0-923a-30cf9bb65eec



### Steps to reproduce

- added note3d
- added SpringArm3D 
- added SpringArm3D shape

### Minimal reproduction project (MRP)

[test.zip](https://github.com/user-attachments/files/17092616/test.zip)
Repository: ui
Issue: [bug]: CKEditor 5 options cause the dialog to close unexpectedly, and the link and media features don't work due to overlay issues.
Labels: bug

### Describe the bug

CYSheet.js File
```
import {
  Sheet,
  SheetClose,
  SheetContent,
  SheetDescription,
  SheetFooter,
  SheetHeader,
  SheetTitle,
  SheetTrigger,
} from '@/components/ui/sheet';

function CYSheet({
  open,
  setOpen,
  title = 'Add Title',
  description,
  showHeader = true,
  render,
  className,
  headerClassName = '',
  side = 'right',
}) {
  return (
    <Sheet open={open} onOpenChange={setOpen}>
      <SheetContent
        side={side}
        className={`w-full max-w-md p-0 flex flex-col gap-0 ${className ? className : 'sm:max-w-md'}`}
      >
        <SheetHeader
          className={`${!showHeader && 'hidden'} space-y-0 text-left ${headerClassName ? headerClassName : 'p-4'}`}
        >
          <SheetTitle>{title}</SheetTitle>
          <SheetDescription className={`${!description && 'hidden'}`}>{description}</SheetDescription>
        </SheetHeader>
        {render}
      </SheetContent>
    </Sheet>
  );
}

export default CYSheet;
```

I am using here
```
 <CYSheet
        title="Update Round"
        description="Please select the round type from below:"
        open={updateRoundModal}
        setOpen={setUpdateRoundModal}
        render={
          <UpdateRound mutateOpportunity={mutateOpportunity} setUpdateRoundModal={setUpdateRoundModal} round={round} />
        }
        className="sm:max-w-6xl"
        headerClassName="bg-zinc-50 p-4 border-b"
      />
```
on Update Round, I have used Ckedtor 5


### Affected component/components

Dialog, Sheet

### How to reproduce

To reproduce the issue:

Open a dialog that contains CKEditor 5.
Interact with CKEditor options, such as link or media.
Observe that the dialog closes unexpectedly without clicking the close button.
The link and media overlays don’t function properly, preventing their use.

### Codesandbox/StackBlitz link

_No response_

### Logs

_No response_

### System Info

```bash
Linux, Chrome
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: deno
Issue: Error when running a module that uses the `global` global
Labels: question

Version: Deno 2.0.0-rc.3

**Describe the bug**
Error when run module @gradio/client with deno 2

**Reproduce**
```javascript
import {
    Client,
} from "https://cdn.jsdelivr.net/npm/@gradio/client/dist/index.min.js";

const client = await Client.connect(
    "http://localhost:7860/",
);
``` 
when create client gradio, i get this error: 
```
global is not defined
```
**Discuss**
i look in to gradio client source [here](https://github.com/gradio-app/gradio/blob/98cbcaef827de7267462ccba180c7b2ffb1e825d/client/js/src/client.ts#L149)
and found they init client like this:
```javascript
private async init(): Promise<void> {
		if (
			(typeof window === "undefined" || !("WebSocket" in window)) &&
			!global.WebSocket
		) {
			const ws = await import("ws");
			global.WebSocket = ws.WebSocket as unknown as typeof WebSocket;
		}
        // more ....
``` 
So i guess that problem is Deno 2 drop support of global variable as describe [here](https://docs.deno.com/runtime/reference/migrate_deprecations/#window)

So the question is: if I use Deno 2, how can I use a package that relies on global variables, like gradio/client?

**Expected behavior**
@gradio/client work normally without errorn when init
Repository: storybook
Issue: [Bug]: Primary block shares state (from @storybook/preview-api useState hook) with the first story on the Docs page
Labels: bug,needs triage

### Describe the bug

I have a modal component I'm documenting via Storybook that is shown via a click of a button. I used the `useState` hook of `@storybook/preview-api` to set the `open` state of the modal when the button is clicked. It's working in that the modal is shown, however, the state appears to be shared between the primary block and the first story so two modals are actually rendered when any of the two canvases' button is clicked. The first modal is from the primary block, and the second is from the first story, where the second modal overlaps the first. But when the args are updated via the primary block's control panel, it doesn't apply to the first story, so what happens is the modal with the updated content is hidden behind the modal with the original content. I know it's confusing so here's a video of the issue:

https://github.com/user-attachments/assets/c2f3aaea-dcb0-4a93-958c-52e73ba2eaab



### Reproduction link

https://stackblitz.com/edit/github-y4gwez?file=src%2Fstories%2FModal.stories.tsx

### Reproduction steps

1. Go to the link above.
2. On the primary doc block's control panel, update the description arg to have more content.
3. Click the `OPEN MODAL` button of the primary doc block. Notice that there are two modals rendered stacked together where the top modal doesn't have the updated content. 

### System

```bash
Storybook Environment Info:

  System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.20.3 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm <----- active
    pnpm: 8.15.6 - /usr/local/bin/pnpm
  npmPackages:
    @storybook/addon-essentials: 8.3.0 => 8.3.0 
    @storybook/addon-interactions: 8.3.0 => 8.3.0 
    @storybook/addon-links: 8.3.0 => 8.3.0 
    @storybook/addon-onboarding: 8.3.0 => 8.3.0 
    @storybook/blocks: 8.3.0 => 8.3.0 
    @storybook/nextjs: 8.3.0 => 8.3.0 
    @storybook/preview-api: ^8.3.0 => 8.3.0 
    @storybook/react: 8.3.0 => 8.3.0 
    @storybook/test: 8.3.0 => 8.3.0 
    storybook: 8.3.0 => 8.3.0
```


### Additional context

_No response_
Repository: kubernetes
Issue: watchlist request will be closed abnormally when cacheInterval contains a large amount of watchEvents
Labels: kind/bug,sig/api-machinery,triage/accepted

### What happened?

I'm conducting an investigation into watchList benchmark in 1.30 Kubernetes cluster. I found that using `watchList` request to make the reflector become synced takes longer than using `list` request. 

Then, I found that the apiserver always prints `Forcing %s watcher close due to unresponsiveness: key.... ` log.  I realized that if `cacheInterval ` containes lots of watchEvents, then cacheWatcher.Process will not be invoked until all watchEvents in `cacheInterval` have been sent. As a result, the `input` channel in `cacheWatcher` may become full, leading to the abnormal closure of the watchlist request.

Therefore, are there any solutions to address this issue? Perhaps we need a new watchList request handler to process watchList requests instead of reusing the original watch request handler's logic. 

If there isn't a similar issue in this problem, we can use the current issue to track it. :)

### What did you expect to happen?

Using watchList request to make the reflector become synced takes approximately the same amount of time as using list request.

### How can we reproduce it (as minimally and precisely as possible)?

1. create 5K Pods
2. use watchlist request to make reflector become synced. At the same time, start many client to update pods
3. watchlist request will be close and apiserver prints `Forcing %s watcher close due to unresponsiveness: key.... ` log

### Anything else we need to know?

_No response_

### Kubernetes version

<details>

```console
$ kubectl version
# paste output here
```

</details>


### Cloud provider

<details>

</details>


### OS version

<details>

```console
# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here
```

</details>


### Install tools

<details>

</details>


### Container runtime (CRI) and version (if applicable)

<details>

</details>


### Related plugins (CNI, CSI, ...) and versions (if applicable)

<details>

</details>
Repository: ant-design
Issue: ProTable  column property ellipsis clean all style in return of render 
Labels: Inactive,unconfirmed

### Reproduction link

[![Edit on StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/edit/antd-reproduce-5x-ubk46u)

### Steps to reproduce

add `ellipsis: true` in one of  `let columns = [`, the link type of field is cleared.

### What is expected?

do not clear the style of <a>.

### What is actually happening?

 style of <a> is cleared.

| Environment | Info |
| --- | --- |
| antd | 5.21.0 |
| React | 18 |
| System | macos  |
| Browser | firefox |

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: flutter
Issue: Add Advanced Marker support to `google_maps_flutter`
Labels: p: maps,package,c: proposal,team-ecosystem,P2,design doc,triaged-ecosystem,:scroll:

### Document Link

https://flutter.dev/go/google-maps-advanced-markers

### What problem are you solving?

Add support for Google Maps' advanced markers to `google_maps_flutter` package.

Related issue: https://github.com/flutter/flutter/issues/130472
Repository: material-ui
Issue: [docs-infra] Codeblock issues
Labels: bug 🐛,scope: docs-infra

### Steps to reproduce

1. Copy button obscures code on smaller screen sizes. ([page](https://mui.com/material-ui/getting-started/installation/)) (Fixed by #44861)
    <img width="379" alt="Screenshot 2024-09-23 at 09 08 32" src="https://github.com/user-attachments/assets/c2051c58-df9d-434e-9255-c72d582e4445">

2. Code highlight block doesn't take the full width of the code ([page](https://mui.com/material-ui/))

    <img width="1030" alt="Screenshot 2024-09-23 at 09 13 03" src="https://github.com/user-attachments/assets/f3a1eaa8-519d-49ee-b11f-7cad4a9427f8">

3. Missing right padding in code block ([page](https://mui.com/material-ui/))

    <img width="388" alt="Screenshot 2024-09-23 at 09 14 15" src="https://github.com/user-attachments/assets/6c4028c2-9663-4eb0-bc00-10650a193349">


### Current behavior

_No response_

### Expected behavior

_No response_

### Context

_No response_

### Your environment

<details>
  <summary><code>npx @mui/envinfo</code></summary>

```
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.
```
</details>


**Search keywords**: codeblock