sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: go
Issue: runtime: use frame pointer unwind to get backtrace in goroutine profile
Labels: Performance,NeedsFix,FeatureRequest,compiler/runtime

### Proposal Details

now, the goroutine profile use gopcinfotab to get backtrace.

if we use frame pointer, it would reduce lots of cost.
Repository: ant-design
Issue: Avatar不要把全名都放上去
Labels: 💡 Feature Request,Inactive,improvement

### What problem does this feature solve?

当使用avatar组件时，`<Avatar>xxxxxxxxxxx</Avatar>`如果用户全名很长就很不友好。
![Screenshot 2024-04-19 111406](https://github.com/ant-design/ant-design/assets/50653281/68622860-64d0-4635-9f16-b74fd1626e0c)


### What does the proposed API look like?

正常情况应该是取用户名字的given name和family name的首字母大写组成。希望做出修改，这应该是内置功能，而不是让使用者自己去拼接，我看Chakra和fluent都是如此。

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: rust
Issue: Lints stop firing if macro reports with `Span::call_site`?
Labels: A-lints,A-diagnostics,A-macros,T-compiler

I was trying to apply this diff:

### Code

```diff
         let variants = self.variants.iter().map(|variant| variant.ident.clone());
-        let sql_graph_entity_fn_name =
-            syn::Ident::new(&format!("__pgrx_internals_enum_{}", name), Span::call_site());
+        let sql_graph_entity_fn_name = quote::format_ident!("__pgrx_internals_enum_{}", name);
```

### Current output

```Shell
warning: function `__pgrx_internals_enum_SomeValue` should have a snake case name
  --> pgrx-examples/custom_types/src/generic_enum.rs:15:10
   |
15 | pub enum SomeValue {
   |          ^^^^^^^^^ help: convert the identifier to snake case: `__pgrx_internals_enum_some_value`
   |
   = note: `#[warn(non_snake_case)]` on by default

   Compiling schemas v0.0.0 (/home/jubilee/tcdi/pgrx/pgrx-examples/schemas)
```


### Desired output

None?

### Rationale and extra context

This takes in an enum's name, so of course it formats out to using `__pgrx_internals_enum_SomeEnum` or whatever. But `format_ident` is basically just constructing an Ident but with the `Span` of the original ident it is based on. Apparently the expanded code triggers lints only if it has that span, but `Span::call_site` does not! It seems odd/annoying for the lint to ignore irrational spans like this but punish me for trying to forward the correct span so that errors get reported more clearly from the macro.

This is slightly different from https://github.com/rust-lang/rust/issues/24580 because it's about the lint firing being inconsistent but I don't mind if it's closed for technically duplication I guess.

### Other cases

_No response_

### Rust Version

```Shell
rustc 1.79.0-nightly (ccfcd950b 2024-04-15)
binary: rustc
commit-hash: ccfcd950b333fed046275dd8d54fe736ca498aa7
commit-date: 2024-04-15
host: x86_64-unknown-linux-gnu
release: 1.79.0-nightly
LLVM version: 18.1.3
```


### Anything else?

_No response_
Repository: transformers
Issue: If a training job job failed MLFlow will not be reported and MLFlow shows job still running
Labels: trainer,Good Second Issue,Integrations

### System Info

- `transformers` version: 4.40.0
- Platform: Linux-6.8.6-arch1-1-x86_64-with-glibc2.39
- Python version: 3.11.7
- Huggingface_hub version: 0.20.3
- Safetensors version: 0.4.2
- Accelerate version: 0.27.0

- PyTorch version (GP?): 2.2.2+rocm5.7 (True)
- Jax version: not installed
- JaxLib version: not installed
- Using GPU in script?: True
- Using distributed or parallel set-up in script?: <False

### Who can help?

_No response_

### Information

- [ ] The official example scripts
- [X] My own modified scripts

### Tasks

- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [ ] My own task or dataset (give details below)

### Reproduction

1. Setup MLFlow integration correctly,
2. Run a job.
3. The job failed due to OOM error.
4. Go to MLFlow UI and the job experiment shows status "Running"

### Expected behavior

MLFlow callback should report the job as failure and call end_run() instead of keeping "Running "status.
Repository: pytorch
Issue: CudaHostAlloc takes a lot of time during training 
Labels: module: dataloader,module: cuda,triaged,module: CUDACachingAllocator

### 🐛 Describe the bug

set: pin_memory =True in Dataloader

### Versions

<img width="501" alt="image" src="https://github.com/pytorch/pytorch/assets/51102941/55fe467f-6c81-4894-b22c-486ab75ca3ec">

pytorch 1.13
numpy 1.21
python3.8

cc @SsnL @VitalyFedyunin @ejguan @dzhulgakov @ptrblck
Repository: ollama
Issue: Support `XLMRobertaModel` architecture
Labels: feature request,model request

Hi all from Ollama!

First off: Great work with Ollama, keep up the good work!

What i am missing though is models in different languages (dutch for me personally). Is it possible to add multilingual embeddings like "intfloat/multilingual-e5-large-instruct"?

If there is a way to do this myself i would love the directions! 

Thanks in advance!
Repository: tauri
Issue: [bug] setMinSize will change window position in windows
Labels: type: bug,platform: Windows,status: needs triage

### Describe the bug

setMinSize will change window position in windows

### Reproduction

in js api, 
```ts
import { LogicalSize, getCurrent } from '@tauri-apps/api/window';
const currentWindow = getCurrent();
currentWindow.setMinSize(new LogicalSize(1280, 860));
```

### Expected behavior

Window size and position won't change. 

### Full `tauri info` output

```text
[✔] Environment
    - OS: Windows 10.0.17763 X64
    ✔ WebView2: 123.0.2420.97
    ✔ MSVC:
        - Visual Studio Community 2022
        - Visual Studio ���ɹ��� 2022
    ✔ rustc: 1.76.0 (07dca489a 2024-02-04)
    ✔ cargo: 1.76.0 (c84b36747 2024-01-18)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (environment override by RUSTUP_TOOLCHAIN)
    - node: 18.17.0
    - pnpm: 8.15.4
    - npm: 9.6.7

[-] Packages
    - tauri [RUST]: 1.6.1
    - tauri-build [RUST]: 1.5.1
    - wry [RUST]: 0.24.7
    - tao [RUST]: 0.16.8
    - tauri-cli [RUST]: 1.5.10
    - @tauri-apps/api : not installed!
    - @tauri-apps/cli [NPM]: 1.5.10 (outdated, latest: 1.5.11)

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: build/dist
    - devPath: http://localhost:3000/
```


### Stack trace

_No response_

### Additional context

_No response_
Repository: pytorch
Issue: Understand the oneDNN graph fusion with torch script
Labels: oncall: jit

Hi,
I am trying to understand how the torch jit helps to call onednn graph apis.
I have run example code :

```python3
import torch
import torchvision
torch.jit.enable_onednn_fusion(True)
model = torchvision.models.resnet18(pretrained=True)
model.eval()
images = torch.rand(1, 3, 224, 224)
traced_script_module = torch.jit.trace(model, images)
model = torch.jit.freeze(traced_script_module)
with torch.no_grad():
    output = model(images)
```

@sanchitintel  @pinzhenx 
I have enabled onednn verbose. But I am not able to see the graph in onednn verbose. It only shows primitives. How we can confirm this torch jit fusion calls onednn graph api ?

cc @EikanWang @jgong5 @wenzhe-nrv @sanchitintel
Repository: angular
Issue: Recording already in progress issue in Profiler
Labels: area: devtools

### Is this a bug report or a feature request?

- [X] Bug Report
- [ ] Feature Request

### Please provide the steps to reproduce the issue [Bug Report only]

1. Start the profiler and do some action in app
2. Reload the page without stopping the profiler
3. Again click the record button in profiler then it throws the error.

### Please provide the expected behavior vs the actual behavior you encountered [Bug Report only]

One page reload the profiler state also should be reseted.

### Please provide a screenshot if possible [Bug Report only]

![image](https://github.com/angular/angular/assets/22526247/230711b3-f468-4610-bd65-d6fc68bf5f86)


### Please provide the exception or error you saw [Bug Report only]

_No response_

### Is this a browser-specific issue? If so, please specify the device, browser, and version. [Bug Report only]

_No response_

### Description [Feature Request only]

_No response_

### Proposed solution [Feature Request only]

_No response_

### Alternatives considered [Feature Request only]

_No response_
Repository: pytorch
Issue: Support constant value in torch.jit.script
Labels: oncall: jit

### 🚀 The feature, motivation and pitch

I am trying to accelerate my code using `torch.jit.script`. I'm attempting to build closures for a series of functions, but I'm encountering:
```
RuntimeError:
python value of type 'int' cannot be used as a value. Perhaps it is a closed over global variable? If so, please consider passing it in as an argument or use a local varible instead.:
```
A very simple example is 
```python
def f(x):
    def g(y):
        return x + y
    return g

d= {x: torch.jit.script(f(x)) for x in range(5)}
```
Of course in this simple example we can script `lambda x, y: x + y` directly. However, in my specific case, the operations on tensors could be very different corresponding to different constants.  Use `torch.jit.script` to the whole function will get bad performance.

```python
def f(x):
    def g(x, y):
        return x + y
    return g

d= {x: torch.jit.script(f(x)) for x in range(5)}
```
will temporarily solve my problem, but in fact, I need to perform some complex computations to obtain some other constants to use in `g`. I'm concerned that doing so might degrade performance and writing it this way seems a bit redundant.


So when encountering global variables, can you treat them as constants during `torch.jit.script`?


Related issue: #52312 

### Alternatives

_No response_

### Additional context

_No response_

cc @EikanWang @jgong5 @wenzhe-nrv @sanchitintel
Repository: vscode
Issue: Config when-clauses: Support keys into settings objects
Labels: feature-request,context-keys

I would like to refer to the following setting in a when clause:
```json
  "some.extension.advanced": {
    "myfeature.enabled": true
  }
```

With `config.some.extension.advanced.myfeature.enabled` this currently doesn't work. The only way to make it work is to have a flat key in the settings, like:
```jsonc
  "some.extension.advanced": {
    // other settings
  },
  "some.extension.advanced.myfeature.enabled": true
```

Additionally if the flat key goes before `"some.extension.advanced"` in the JSON, it again doesn't work. Though that might be a separate issue. /cc @sandy081
Repository: flutter
Issue: Support for Content:// Uri to access files on shared storage
Labels: c: new feature,platform-android,c: proposal,P2,team-android,triaged-android

### Use case

Content:// Uri is now the standard method for referencing files on android. But there is no direct way of processing Content:// Uri in Flutter/Dart. Currently, we can process File:// Uri and direct paths to a file but post Android R, it is practically useless. 

This feature is a most urgent and must have requirement in Flutter.

### Proposal

The current method of processing content based Uri is to go via a chain of Kotlin or java methods to **create a copy of the original file in app cache, which can be referenced with File:// Uri **. Or use a third party plugin(uri_to_file) on pub.dev which uses the same long winded kotlin route to do the same, creates a copy of the file in cache and lacks in some features. Not feasible for an app scanning and processing large files on local shared storage.

Third party plugins may or may not be maintained properly and may be lacking/buggy. 

Flutter being a Google initiative, it is a given that a core Android functionality must be a part of Flutter too especially when the said functionality is being enforced in Android by Google itself. Otherwise, what's the point of using Flutter if we have to route through kotlin or java code for even basic features? 

This feature is a most urgent and must have requirement in Flutter.
Repository: pytorch
Issue: Matmul with broadcast makes copy because of reshape to bmm, and it is slow
Labels: module: performance,triaged,matrix multiplication

https://github.com/pytorch/pytorch/blob/6b4b857a60150205fb53e08f7b09e791b0723ace/aten/src/ATen/native/LinearAlgebra.cpp#L2139C1-L2140C1

There are data copy when reshape broadcast Matmul, how about implement a Matmul without bmm.
Repository: flutter
Issue: [video_player_android] revisit the use of unstable APIs
Labels: platform-android,p: video_player,package,P2,team-android,triaged-android

### Use case

This issue is to track migration from media3's UnstableApi

It was discussed in https://github.com/flutter/packages/pull/6535#discussion_r1571236885
There are currently two issues:

1. General for any plugin - Gradle optimistically resolves to the highest version during dependency resolution, event if it bumps major version. There is separate issue for this - https://github.com/flutter/flutter/issues/147004

2. Specific with video_player_android - it explitily uses UnstableApi since https://github.com/flutter/packages/pull/6535

### Proposal

Find alternative implementation of logic marked with `@OptIn(markerClass = UnstableApi.class)` in video_player_android
Repository: ant-design
Issue: Time centering error
Labels: 🐛 Bug,Inactive,IE | Firefox | Safari

### Reproduction link

[https://ant.design/components/time-picker](https://ant.design/components/time-picker)

### Steps to reproduce

Open the antd page with the TimePicker examples
Open any TimePicker
Select a value other than the first and last in one of the columns

### What is expected?

All the selected values are on the same level

### What is actually happening?

The first value in the column is higher than the rest

| Environment | Info |
| --- | --- |
| antd | 5.16.2 |
| React | 18.2.0 |
| System | Sonoma 14.4.1 |
| Browser | Safari (latest), FireFox (latest) |

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: tauri
Issue: [bug] When using tauri http to upload large files with formData, it's prone to crashing.
Labels: type: bug,status: needs triage

### Describe the bug

I need to upload a large file via tauri http by placing the file into `formData`, but it tends to crash easily when I upload it. I suspect it's because Tauri uses `Body.form()` to handle `formData`, and when handling files, `Body.form()` converts them to `Unit8Array`, which probably consumes a lot of memory when the file is large.

sourceCode: https://github.com/tauri-apps/tauri/blob/1.x/tooling/api/src/http.ts#L104-L109

```js
async function formBody(data: FormInput): Promise<FormBody> {
  const form: FormBody = {}

  const append = async (
    key: string,
    v: string | Uint8Array | FilePart<Uint8Array> | File
  ): Promise<void> => {
    if (v !== null) {
      let r
      if (typeof v === 'string') {
        r = v
      } else if (v instanceof Uint8Array || Array.isArray(v)) {
        r = Array.from(v)
      } else if (v instanceof File) {
        r = {
          file: Array.from(new Uint8Array(await v.arrayBuffer())),
          mime: v.type,
          fileName: v.name
        }
      } else if (typeof v.file === 'string') {
        r = { file: v.file, mime: v.mime, fileName: v.fileName }
      } else {
        r = { file: Array.from(v.file), mime: v.mime, fileName: v.fileName }
      }
      form[String(key)] = r
    }
  }

  if (data instanceof FormData) {
    for (const [key, value] of data) {
      await append(key, value)
    }
  } else {
    for (const [key, value] of Object.entries(data)) {
      await append(key, value)
    }
  }

  return form
}
```


### Reproduction

_No response_

### Expected behavior

_No response_

### Full `tauri info` output

```text
[✔] Environment
    - OS: Mac OS 14.3.0 X64
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.76.0 (07dca489a 2024-02-04)
    ✔ cargo: 1.76.0 (c84b36747 2024-01-18)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (default)
    - node: 16.13.0
    - pnpm: 7.33.7
    - yarn: 1.22.21
    - npm: 8.1.0

[-] Packages
    - tauri [RUST]: 1.6.1
    - tauri-build [RUST]: 1.5.0
    - wry [RUST]: 0.24.7
    - tao [RUST]: 0.16.5
    - @tauri-apps/api [NPM]: 1.5.3
    - @tauri-apps/cli [NPM]: 1.5.10

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: ../dist
    - devPath: http://localhost:1420/
    - framework: React
    - bundler: Rollup
```


### Stack trace

_No response_

### Additional context

_No response_
Repository: pytorch
Issue: Race in ProcessGroupNCCL shutdown
Labels: oncall: distributed

### 🐛 Describe the bug

It seems there is a race in the ProcessGroupNCCL shutdown logic. The code is quite simple: 

```
for i in range(100):
    dist.all_to_all_single(tensor_out, tensor_in)
dist.destroy_process_group()
```
What can happen is this: 
1. dist.destroy_process_group() calls into shutdown() and then calls into abort: https://github.com/pytorch/pytorch/blob/b2f6cfd9c061a212cde8c8768fda41cc75a3110c/torch/csrc/distributed/c10d/ProcessGroupNCCL.cpp#L1095
2. It'll call ncclCommAbort (not graceful afaict), and also set the ncclAsyncErr_ = ncclSystemError; https://github.com/pytorch/pytorch/blob/b2f6cfd9c061a212cde8c8768fda41cc75a3110c/torch/csrc/distributed/c10d/NCCLUtils.hpp#L388
3. ncclWatchdog thread may not have woken up while all this shutdown process happens. And in shutdown we're not waiting for watchdog thread
4. ProcessGroupNCCL dtor is called. It'll wait for the watchdog thread to join
5. watchdog will check the work's isCompleted() -> then calls checkAndSetException(). Because ncclAsyncError_ was set to ncclSystemError, it'll error out and makes you think it's a nccl error. 

This feels bad, so maybe two proposals: 
1. in checking work.isCompleted/isStarted, check if the comm was aborted: https://github.com/pytorch/pytorch/pull/124466
2. In shutdown, let's wait for the watchdog thread to join (so that it's a graceful shutdown - i'd argue one should call abort if they don't want graceful shutdown): https://github.com/pytorch/pytorch/pull/124467

### Versions

top of trunk

cc @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @H-Huang @kwen2501 @awgu @penguinwu @fegin @XilunWu @wanchaol @fduwjj @wz337 @tianyu-l @wconstab @yf225 @chauhang @d4l3k
Repository: PowerToys
Issue: Mouse without borders - Special keys acting in main device, not in the pointed one
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.80.1

### Installation method

PowerToys auto-update, Microsoft Store

### Running as admin

Yes

### Area(s) with issue?

Mouse Without Borders

### Steps to reproduce

When pressing some of the special keys when the mouse pointer is in the secondary device (the one that doesn't have the mouse and keyboard connected), some of them goes to the primary device.
For example, if I want to trigger calculator in the secondary device, i have my mouse in the secondary device, but when hitting the calculator key, the calculator app appears in the primary device.
This also happens with Lock Screen key.
On the other hand, play/pause, volume keys, show desktop keys, etc. works as expected, triggering actions in the mouse pointed device.

### ✔️ Expected Behavior

When pression calculator key, or lock desktop key, I hope it to be triggered in the mouse pointed device, not in the other

### ❌ Actual Behavior

The action is being triggered in the computer with the mouse and keyboard physically connected, not in the computer where the mouse is pointing.

### Other Software

_No response_
Repository: ui
Issue: [bug]: Cannot add components using the CLI because of failed certificate verification
Labels: bug

### Describe the bug

I am trying to add the Tooltip component by running `npx shadcn-ui@latest add tooltip`, but the command fails with the following error message: 

```
FetchError: request to https://ui.shadcn.com/registry/index.json failed, reason: unable to verify the first certificate
    at ClientRequest.<anonymous> (file:///C:/Users/js/AppData/Local/npm-cache/_npx/125ee17d583c4e03/node_modules/node-fetch/src/index.js:108:11)
    at ClientRequest.emit (node:events:513:28)
    at TLSSocket.socketErrorListener (node:_http_client:496:9)
    at TLSSocket.emit (node:events:513:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  type: 'system',
  errno: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE',
  code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE',
  erroredSysCall: undefined
}
Failed to fetch components from registry.
```

It worked fine yesterday and nothing changed on my side, is it possible that some certificate has expired?

### Affected component/components

Tooltip

### How to reproduce

Run `npx shadcn-ui@latest add tooltip`

### Codesandbox/StackBlitz link

_No response_

### Logs

```bash
FetchError: request to https://ui.shadcn.com/registry/index.json failed, reason: unable to verify the first certificate
    at ClientRequest.<anonymous> (file:///C:/Users/js/AppData/Local/npm-cache/_npx/125ee17d583c4e03/node_modules/node-fetch/src/index.js:108:11)
    at ClientRequest.emit (node:events:513:28)
    at TLSSocket.socketErrorListener (node:_http_client:496:9)
    at TLSSocket.emit (node:events:513:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  type: 'system',
  errno: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE',
  code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE',
  erroredSysCall: undefined
}
Failed to fetch components from registry.
```
```


### System Info

```bash
Windows 10.0.19042 Build 19042
npm 8.19.3
node 18.13.0
```


### Before submitting

- [x] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: next.js
Issue: Route handler does not receive searchParams set by middleware without runtime edge
Labels: bug

### Link to the code that reproduces this issue

https://github.com/LuukSantegoeds/nextjs-searchparams-issue

### To Reproduce

Within the linked repository:

1. Navigate to http://localhost:3000/route-default?foo=bar (default runtime) and validate that the searchParam is received by the route by checking the json response
2. Navigate to http://localhost:3000/route-edge?foo=bar (edge runtime) and validate that the searchParam is received by the route by checking the json response
3. Navigate to http://localhost:3000/middleware/route-edge?bar=foo (edge runtime) and validate that a searchParam is added by the middleware to the searchParam already provided
4. Navigate to http://localhost:3000/middleware/route-default?bar=foo where no will see that no additional searchParam is added by the middleware

### Current vs. Expected behavior

I would expect that the searchParam added by the middleware (in case of the default runtime) would also be received by the route handler, just like with the edge runtime.

This only occurs in combination with a rewrite in the middleware. I you were to disable the middleware and do direct requests to the route handler, searchParams are received in both runtime situations as demonstrated within the first 2 steps.

### Provide environment information

```bash
Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 11 Enterprise
  Available memory (MB): 32488
  Available CPU cores: 16
Binaries:
  Node: 20.9.0
  npm: 10.1.0
  Yarn: N/A
  pnpm: 8.15.7
Relevant Packages:
  next: 14.2.2 // Latest available version is detected (14.2.2).
  eslint-config-next: 14.2.2
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.4.5
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

Middleware & route handlers

### Which stage(s) are affected? (Select all that apply)

next dev (local), next start (local)

### Additional context

This was tested locally