sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: `dsplit()` with `indices_or_sections=` doesn't work while `dsplit()` without `indices_or_sections=` works
Labels: triaged,module: python frontend,topic: fuzzer

### 🐛 Describe the bug

[dsplit()](https://pytorch.org/docs/stable/generated/torch.dsplit.html) with `indices_or_sections=` doesn't work while `dsplit()` without `indices_or_sections=` works as shown below:

```python
import torch

my_tensor = torch.tensor([[[0, 1, 2, 3],
                           [4, 5, 6, 7],
                           [8, 9, 10, 11]]])

torch.dsplit(input=my_tensor, indices_or_sections=2) # Error
torch.dsplit(my_tensor, indices_or_sections=2) # Error

torch.dsplit(my_tensor, 2)
# (tensor([[[0, 1], [4, 5], [8, 9]]]),
#  tensor([[[2,  3], [6,  7], [10, 11]]]))
```

```
TypeError: dsplit() received an invalid combination of arguments - got (indices_or_sections=int, input=Tensor, ), but expected one of:
 * (Tensor input, int sections)
      didn't match because some of the keywords were incorrect: indices_or_sections
 * (Tensor input, tuple of ints indices)
      didn't match because some of the keywords were incorrect: indices_or_sections
```

### Versions

```python
import torch

torch.__version__ # 2.3.0+cu121
```

cc @albanD
Repository: pytorch
Issue: `tensor_split()` with `indices_or_sections=` doesn't work while `tensor_split()` without `indices_or_sections=` works
Labels: triaged,module: python frontend,topic: fuzzer

### 🐛 Describe the bug

[tensor_split()](https://pytorch.org/docs/stable/generated/torch.tensor_split.html) with `indices_or_sections=` doesn't work while `tensor_split()` without `indices_or_sections=` works as shown below:

```python
import torch

my_tensor = torch.tensor([[0, 1, 2, 3],
                          [4, 5, 6, 7],
                          [8, 9, 10, 11]])

torch.tensor_split(input=my_tensor, indices_or_sections=2) # Error
torch.tensor_split(my_tensor, indices_or_sections=2) # Error

torch.tensor_split(my_tensor, 2)
# (tensor([[0, 1, 2, 3], [4, 5, 6, 7]]),
#  tensor([[ 8,  9, 10, 11]]))
```

```
TypeError: tensor_split() received an invalid combination of arguments - got (indices_or_sections=int, input=Tensor, ), but expected one of:
 * (Tensor input, tuple of ints indices, int dim)
 * (Tensor input, Tensor tensor_indices_or_sections, int dim)
 * (Tensor input, int sections, int dim)
```

### Versions

```python
import torch

torch.__version__ # 2.3.0+cu121
```

cc @albanD
Repository: pytorch
Issue: Add integrity check in torch.save
Labels: module: serialization,triaged

### 🚀 The feature, motivation and pitch

During the current training of large models, we will frequently save checkpoints.
Sometimes it is found that there is a problem with the saved checkpoint file when loading again.
Currently, we only want to know when the problem occurred in our checkpoint file.
We are wondering if we can add relevant integrity checks(maybe CRC) when saving.

### Alternatives

_No response_

### Additional context

_No response_

cc @mruberry @mikaylagawarecki @msaroufim
Repository: flutter
Issue: [camera] permission denied error when using camera ^0.11.0 with permission_handler latest plugin for storage permission in android 10.
Labels: c: regression,platform-android,p: camera,package,has reproducible steps,P2,team-android,triaged-android,found in release: 3.22,found in release: 3.23

### Steps to reproduce

add camera ^0.11.0 and permission_handler ^11.3.1 plugin then use storage permission for android 10 device and try to create directory outside of app storage.
even though i grant permission it denies directory creation.

### Expected results

after granting permission it should not throw error 

### Actual results

error: Fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError: PathAccessException: Creation failed, path = '/storage/emulated/0/Images' (OS Error: Permission denied, errno = 13)
       at _Directory.create.<fn>.<fn>(dart:io)

### Code sample

<details open><summary>Code sample</summary>

```dart
[Paste your code here]
```

</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>

[Upload media here]

</details>


### Logs

error: Fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError: PathAccessException: Creation failed, path = '/storage/emulated/0/Images' (OS Error: Permission denied, errno = 13)
       at _Directory.create.<fn>.<fn>(dart:io)


### Flutter Doctor output

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.19.6, on macOS 13.6 22G120 darwin-x64, locale en-IN)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.2)
[✓] VS Code (version 1.74.3)
[✓] Connected device (3 available)
[✓] Network resources
Repository: node
Issue: Strange behavior with `fs.watch` on file with JSON stringified -> first update isn't emitted if too fast after `fs.watch`
Labels: confirmed-bug,fs,macos

### Node.js Version

v18.17.1

### NPM Version

9.6.7

### Operating System

23.2.0 Darwin

### Subsystem

fs

### Description

I would like to watch changes on a file storing JSON stringified data but the watcher created with `fs.watch` is not emitted if the change happen to quickly after the call of `fs.watch`. The strange thing is that if the content is only a text (without JSON format) the watcher emit the event correctly...

### Minimal Reproduction

```Javascript
const fs = require('fs');
const path = require('path');

const filePath = path.join(__dirname, 'test.json');
// Create the file if it doesn't exist
if (!fs.existsSync(filePath)) {
    fs.writeFileSync(filePath, "{ }");
}

fs.watch(filePath, (eventType, filename) => {
    console.log(`Event type is: ${eventType}`);
    if (filename) {
        console.log(`Filename provided: ${filename}`);
    } else {
        console.log('Filename not provided');
    }
});

fs.writeFileSync(filePath, "{ \"test\": \"test\", \"test2\": \"test2\" }"); // same with JSON.stringify(...)
// Listener above is called if we replace line above with:
// fs.writeFileSync(filePath, "very ok or not but I need a longer text to test something...");
```

### Output

### Expected
```
Event type is: change
Filename provided: test.json
```

### Received
*Nothing*

### Before You Submit

- [X] I have looked for issues that already exist before submitting this
- [X] My issue follows the guidelines in the README file, and follows the 'How to ask a good question' guide at https://stackoverflow.com/help/how-to-ask
Repository: rust
Issue: `&T -> *const T` or `&mut T -> *mut T` should be considered a use of inner fields
Labels: A-lints,T-compiler,L-dead_code

### Code

```Rust
const SCALING_FACTOR: usize = 4096;
#[repr(align(4096))]
#[derive(Copy, Clone)]
struct HighAlignment([u8; SCALING_FACTOR]);
 
fn main() {
    let size = 1;
    let src = vec![HighAlignment([127u8; SCALING_FACTOR]); size];
    let mut dst = vec![HighAlignment([254u8; SCALING_FACTOR]); size];
    unsafe { core::ptr::copy_nonoverlapping(src.as_ptr(), dst.as_mut_ptr(), size) };
}
```


### Current output

```Shell
Compiling playground v0.0.1 (/playground)
warning: field `0` is never read
 --> src/main.rs:4:22
  |
4 | struct HighAlignment([u8; SCALING_FACTOR]);
  |        ------------- ^^^^^^^^^^^^^^^^^^^^
  |        |
  |        field in this struct
  |
  = note: `HighAlignment` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
  = note: `#[warn(dead_code)]` on by default
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
  |
4 | struct HighAlignment(());
  |                      ~~

warning: `playground` (bin "playground") generated 1 warning
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.39s
     Running `target/debug/playground`
```


### Desired output

```Shell
Compiling playground v0.0.1 (/playground)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.38s
     Running `target/debug/playground`
```


### Rationale and extra context

In effect, the pointer is used to copy the inner field. The entire use of the type is for the alignment of the inner data. I believe it is inappropriate for rustc to reason about whether data written to a pointer is a "use", and the following code goes without remark:

### Other cases

```Rust
const SCALING_FACTOR: usize = 4096;
#[repr(align(4096))]
#[derive(Copy, Clone)]
struct HighAlignment([u8; SCALING_FACTOR]);
 
fn main() {
    let size = 1;
    let src = vec![HighAlignment([127u8; SCALING_FACTOR]); size];
    let mut dst = vec![HighAlignment([254u8; SCALING_FACTOR]); size];
    dst[0].0 = src[0].0; // completely silences the lint
}
```


### Rust Version

```Shell
rustc 1.80.0-nightly (9cdfe285c 2024-05-22)
binary: rustc
commit-hash: 9cdfe285ca724c801dc9f78d22b24ea69b787f26
commit-date: 2024-05-22
host: x86_64-unknown-linux-gnu
release: 1.80.0-nightly
LLVM version: 18.1.6
```


### Anything else?

_No response_
Repository: PowerToys
Issue: Keyboard navigation in Advanced Paste window isn't good
Labels: Idea-Enhancement,Area-User Interface,Area-Accessibility,Product-Advanced Paste

### Microsoft PowerToys version

0.81.0

### Installation method

Microsoft Store

### Running as admin

No

### Area(s) with issue?

Advanced Paste

### Steps to reproduce

1. Enable Advanced Paste.
2. Try navigating with the keyboard.

### ✔️ Expected Behavior

Natural keyboard navigation - I will describe my expectations in a very granular way here. It might seem pedantic, but the WinUI flyouts already behave the way I'd expect them to, so trying to make sense of the window was a little cumbersome. So I think this is all very important to consider:

- When the AI thing is off, "Paste as plain text" should be focused first, and I should be able to navigate through the list with the arrow keys alone
- If "Paste as JSON" is focused, pressing the down arrow key should focus "Clipboard history"
- If "Clipboard history" is focused, pressing the right arrow key should bring up the clipboard history (not sure if RTL would use left here, pretty sure it should but I haven't tested it yet)
  - When hovering with the mouse, it should bring up that flyout as well
  - There is another [relatively minor] thing with that flyout - clicking the right arrow key should set focus to the 3 dot menu on the right of the item. This is how the Windows taskbar's jump lists behave
  - Pressing the enter key does bring up that flyout as expected
- When the AI thing is on, the text box should be focused first
- This is personal preference and I'm not sure what best guidance here would be, but tab navigation should go like this:
  1. AI text box (if enabled, it is the "intended" main use case after all)
  2. "Paste as plain text" (another part of the functionality)
  3. The terms and conditions stuff (I doubt more than 1% of users actually care about these, specially those not using the AI thing - so this is also related to #32967)

### ❌ Actual Behavior

The window was styled to look like a Menu/CommandBar Flyout, but it doesn't behave as such. For a flow that revolves so much around a keyboard, it is very jarring - the UI does none of what I added in "Expected Behavior". A final, kinda weird bug - if you click on the tab key when "OpenAI Privacy" is focused, the focus will go nowhere, like it gets lost.

For future reference, this is what the UI looks like at the time of posting:
![A window that wants to look like a flyout but doesn't actually behave like one](https://github.com/microsoft/PowerToys/assets/49221554/e729d66b-003b-4ae0-aa59-f052ef759ce2)

### Other Software

_No response_
Repository: ollama
Issue: FileNotFoundError when running convert.py script
Labels: bug

### What is the issue?

I am trying to convert a model using the convert.py script provided in the llama.cpp repository. However, I am encountering a FileNotFoundError. The script is unable to find the tokenizer file, even though tokenizer.json is present in the model directory. The error message is as follows:

 python /mnt/part1/ollama/llm/llama.cpp/convert.py /mnt/part1/models/Qwen1.5-7B-Chat --outtype f16 --outfile converted.bin

INFO:convert:Loading model file /mnt/part1/models/Qwen1.5-7B-Chat/model-00001-of-00004.safetensors
INFO:convert:Loading model file /mnt/part1/models/Qwen1.5-7B-Chat/model-00001-of-00004.safetensors
INFO:convert:Loading model file /mnt/part1/models/Qwen1.5-7B-Chat/model-00002-of-00004.safetensors
INFO:convert:Loading model file /mnt/part1/models/Qwen1.5-7B-Chat/model-00003-of-00004.safetensors
INFO:convert:Loading model file /mnt/part1/models/Qwen1.5-7B-Chat/model-00004-of-00004.safetensors
INFO:convert:model parameters count : 7721324544 (8B)
INFO:convert:params = Params(n_vocab=151936, n_embd=4096, n_layer=32, n_ctx=32768, n_ff=11008, n_head=32, n_head_kv=32, n_experts=None, n_experts_used=None, f_norm_eps=1e-06, rope_scaling_type=None, f_rope_freq_base=1000000.0, f_rope_scale=None, n_orig_ctx=None, rope_finetuned=None, ftype=<GGMLFileType.MostlyF16: 1>, path_model=PosixPath('/mnt/part1/models/Qwen1.5-7B-Chat'))
Traceback (most recent call last):
  File "/mnt/part1/ollama/llm/llama.cpp/convert.py", line 1714, in <module>
    main()
  File "/mnt/part1/ollama/llm/llama.cpp/convert.py", line 1671, in main
    vocab, special_vocab = vocab_factory.load_vocab(vocab_types, model_parent_path)
  File "/mnt/part1/ollama/llm/llama.cpp/convert.py", line 1522, in load_vocab
    vocab = self._create_vocab_by_path(vocab_types)
  File "/mnt/part1/ollama/llm/llama.cpp/convert.py", line 1512, in _create_vocab_by_path
    raise FileNotFoundError(f"Could not find a tokenizer matching any of {vocab_types}")
FileNotFoundError: Could not find a tokenizer matching any of ['spm', 'hfft']

/mnt/part1/models/Qwen1.5-7B-Chat/
  ├── config.json
  ├── LICENSE
  ├── merges.txt
  ├── model-00001-of-00004.safetensors
  ├── model-00002-of-00004.safetensors
  ├── model-00003-of-00004.safetensors
  ├── model-00004-of-00004.safetensors
  ├── model.safetensors.index.json
  ├── README.md
  ├── tokenizer_config.json
  ├── tokenizer.json
  ├── vocab.json



### OS

Linux

### GPU

Nvidia

### CPU

Intel

### Ollama version

ollama version is 0.1.33
Repository: material-ui
Issue: [system] `sx` field border{Block,Inline}{,Start,End}Color doesn't take the theme into account
Labels: new feature,package: system,customization: theme

### Summary

Using `divider` for the `sx` field `borderBlockStartColor` does not update to the correct color in the theme. It simply is rendered as `"divider"

The following `sx` properties should be listed in `/packages/mui-system/src/styleFunctionSx/defaultSxConfig.js`

- `borderBlockColor`
- `borderBlockStartColor`
- `borderBlockEndColor`
- `borderInlineColor`
- `borderInlineStartColor`
- `borderInlineEndColor`

Related issues/PRs:
- #39491
- #33335
- #39962

### Examples

_No response_

### Motivation

Using block/inline properties is now considered more accessible than top/bottom/left/right properties.

**Search keywords**: border,color,borderBlockStartColor
Repository: neovim
Issue: Allow floating windows to be anchored relative to extmarks
Labels: enhancement,marks,floatwin

### Problem

It's currently possible to anchor floating windows relative to the editor, to a window, to the cursor or to the mouse. It'd be useful to also allow anchoring relative to a buffer's extmark.

For example, this could be used when displaying:

- on-hover infos w/ `vim.lsp.buf.hover`;
- the signature of the function the user's typing (e.g. [lsp_signature.nvim](https://github.com/ray-x/lsp_signature.nvim));
- in-depth git blame infos on a particular line.

At the moment this is done by using floats that appear to be anchored at the correct position when they're created, but that immediately go out-of-sync if the buffer is scrolled or if the terminal window is resized.


https://github.com/neovim/neovim/assets/59321248/f1b7ff3e-0e18-44d2-9893-7b143bf82d20



### Expected behavior

`nvim_open_win`'s opts accept a new `extmark: extmark_id` pair, and the `relative` opt can be set to `"extmark"`. The resulting floating window moves when the extmark moves, and is cutoff/hidden if the extmark is in a region of the buffer that's outside the viewport.

Q: should there be an option to specify whether the same float is displayed on every window split that's housing the buffer the extmark is on?
Repository: PowerToys
Issue: The list of Other system tray icons in Taskbar Settings is filled with PowerToys.Runner.
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.81.0

### Installation method

PowerToys auto-update

### Running as admin

Yes

### Area(s) with issue?

General

### Steps to reproduce

![Screenshot 2024-05-23 142343](https://github.com/microsoft/PowerToys/assets/2064997/fa671635-810b-4a29-b446-d3e02f76e422)
[PowerToysReport_2024-05-23-14-29-50.zip](https://github.com/microsoft/PowerToys/files/15411985/PowerToysReport_2024-05-23-14-29-50.zip)


### ✔️ Expected Behavior

Only one PowerToys item is displayed

### ❌ Actual Behavior

Multiple PowerToys items are displayed

### Other Software

Cause unknown
Repository: electron
Issue: [Bug]: BrowserWindow.setSize() does not size down when resizable=false
Labels: bug :beetle:,platform/all,status/confirmed,has-repro-gist,30-x-y,31-x-y

### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a bug report that matches the one I want to file, without success.

### Electron Version

30.0.6

### What operating system are you using?

Ubuntu

### Operating System Version

22.04

### What arch are you using?

arm64 (including Apple Silicon)

### Last Known Working Electron version

_No response_

### Expected Behavior

Consider the following code, and note that the window is configured as `resizable=false`:

```javascript
const { app, BrowserWindow } = require("electron");

app.whenReady().then(() => {
  const win = new BrowserWindow({ width: 100, height: 100, resizable: false });
  setTimeout(() => win.setSize(200, 200), 2000);
  setTimeout(() => win.setSize(100, 100), 4000);
});
```

The expected behavior is:
1. The application launches, and the window's size is 100x100.
2. Two seconds later, the window's size is 200x200.
3. Two seconds later, the window's size is 100x100.

### Actual Behavior

The window resizes to 200x200, but two seconds later, it does not "size down" to 100x100.

I have tested this on MacOS, Linux and Windows 11, and this bug is present in Linux and Windows 11.

The following are ways to get around this bug:
1. Instead of `BrowserWindow.setSize`, use `BrowserWindow.setBounds`, as this bug is not seen with `BrowserWindow.setBounds`.
2. Call `BrowserWindow.setResizable(true)`, then `BrowserWindow.setSize`, then `BrowserWindow.setResizable(false)`.

### Testcase Gist URL

_No response_

### Additional Information

_No response_
Repository: react
Issue: [Compiler Bug]: Usage of `in` operator is reported as a syntax error
Labels: Type: Bug,Component: Optimizing Compiler

### What kind of issue is this?

- [X] React Compiler core (the JS output is incorrect, or your app works incorrectly after optimization)
- [ ] babel-plugin-react-compiler (build issue installing or using the Babel plugin)
- [ ] eslint-plugin-react-compiler (build issue installing or using the eslint plugin)
- [ ] react-compiler-healthcheck (build issue installing or using the healthcheck script)

### Link to repro

https://playground.react.dev/#N4Igzg9grgTgxgUxALhHCA7MAXABAQ1wF5dgBfAHQwDMoM5sBLTXAZQgFsFsALRjAOYAKAJSkquXI2q4hAcnxypGAmOATJuGN1gqFcjZRVadMPQCMDGMiDJA

### Repro steps

Any code with an `in` is reported as a syntax error

```js
const a = {}
function Something() {
  if ('a' in a) {
    return 'a'
  }
  return 'b'
}
```

### How often does this bug happen?

Every time

### What version of React are you using?

0.0.0-experimental-592953e-20240517
Repository: rust
Issue: Remark `TMP`, `TEMP` and `USERPROFILE` env vars can influence `env::temp_dir` on Windows
Labels: O-windows,C-enhancement,T-libs-api,A-docs

### Location

- [`std::env::temp_dir`](https://doc.rust-lang.org/std/env/fn.temp_dir.html)
- [`std::process::Command::env_clear`](https://doc.rust-lang.org/std/process/struct.Command.html#method.env_clear)

### Summary

Encountered in https://github.com/rust-lang/rust/pull/122580#issuecomment-2125755689.

In codegen we (transitively) use `env::temp_dir()` for some temporary files. If you unset (or provide a value that is not a writable directory) all three `TMP`, `TEMP`, `USERPROFILE` env vars (such as by calling `Command::env_clear` on some cargo invocation) on Windows, then `env::temp_dir()` can return the Windows directory which is often not writable.

This is documented in [`GetTempPath2W`](https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-gettemppath2w#remarks), but it might be worth a remark on the docs for `env::temp_dir` and `Command::env_clear` that modifying or unsetting `TMP`, `TEMP` and `USERPROFILE` can influence the result of `env::temp_dir` on Windows.

It is already pointed out that `env::temp_dir` returns value of `TMPDIR` on Linux.
Repository: PowerToys
Issue: support Display Scaling On High DPI Settings
Labels: Area-Setup/Install,Area-User Interface,Needs-Triage

### Description of the new feature / enhancement

support Display Scaling On High DPI Settings

### Scenario when this would be used?

not support Display Scaling On High DPI Settings

![image](https://github.com/microsoft/PowerToys/assets/54027179/860a2d6b-6e30-4d21-a4dc-c535d2969a1d)


### Supporting information

_No response_
Repository: rust
Issue: Add SIMD operations that use f16 and f128
Labels: E-help-wanted,C-feature-request,A-SIMD,T-libs,F-f16_and_f128

Eventually we will want to be able to make use of simd operations for f16 and f128, now that we have primitives to represent them. Possibilities that I know of:

- Aarch64 neon supports `float16x{4,8}` https://developer.arm.com/architectures/instruction-sets/intrinsics/#f:@navigationhierarchiessimdisa=[Neon]&f:@navigationhierarchiesreturnbasetype=[float]&f:@navigationhierarchieselementbitsize=[16]&q=.
- Arm sve supports `float16x{1,2}` https://developer.arm.com/architectures/instruction-sets/intrinsics/#f:@navigationhierarchiesreturnbasetype=[float]&f:@navigationhierarchieselementbitsize=[16]&f:@navigationhierarchiessimdisa=[sve2,sve]&q=
- RISC-V apparently has both f16 and f128 https://five-embeddev.com/riscv-user-isa-manual/riscv-user-2.2/v.html
- NVIDIA PTX has f16 SIMD
  - Implementation: https://github.com/rust-lang/stdarch/pull/1626
  - Submodule https://github.com/rust-lang/rust/pull/128866
  - Tracking issue: https://github.com/rust-lang/rust/issues/111199
- x86 with +avx512fp16
  - Implementation: https://github.com/rust-lang/stdarch/pull/1605
  - Submodule: https://github.com/rust-lang/rust/pull/128466
  - Tracking issue: https://github.com/rust-lang/rust/issues/127213
- Portable SIMD should eventually be able to support these operations

Probably some work/research overlap with adding assembly https://github.com/rust-lang/rust/issues/125398

Tracking issue: https://github.com/rust-lang/rust/issues/116909

<!-- TRIAGEBOT_START -->

<!-- TRIAGEBOT_ASSIGN_START -->

<!-- TRIAGEBOT_ASSIGN_DATA_START$${"user":"krishpranav"}$$TRIAGEBOT_ASSIGN_DATA_END -->

<!-- TRIAGEBOT_ASSIGN_END -->
<!-- TRIAGEBOT_END -->