sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: neovim
Issue: chansend() does not always send data to stdin
Labels: enhancement,job-control

### Problem

hi, i'm trying to port `echo hello | sudo dd of=outfile` to lua, the following code is what i got so far, and it works not.
the problem is the data sent by `chansend()` also goes to tty which should be stdin as it claimed in its doc.

### Steps to reproduce

* nvim --clean +'luafile test.lua'
* (test.lua wants to behave like shell `echo hello | sudo dd of=/tmp/outfile`)
* in the opened terminal, you can see 'hello' be showed in there, and it is a part of the password which is received by `sudo`, so `sudo` will ask you to enter password again.

the test.lua:
```lua
local uv = vim.loop
local api = vim.api

local bufnr = api.nvim_create_buf(false, true)
-- stylua: ignore
api.nvim_open_win(bufnr, true, {
  relative = "editor", style = "minimal", col = 0, row = 0, width = vim.o.columns, height = vim.o.lines,
})

local term = vim.fn.termopen({ "sudo", "dd", "of=/tmp/outfile" }, {
  stdin = "pipe",
  pty = true,
})
vim.cmd.startinsert()

vim.fn.chansend(term, "hello")
```

### Expected behavior

as i'm carefully using `jobstart(pty = true, stdin = 'pipe')`， i do think the test.lua should work with no problem, stdin and pty should be different things, thus `chansend(job, data)` should just send data to stdin rather than pty.

### Neovim version (nvim -v)

NVIM v0.8.3

### Vim (not Nvim) behaves the same?

N/A

### Operating system/version

archlinux

### Terminal name/version

st 0.8.5

### $TERM environment variable

tmux-256color

### Installation

system package manager
Repository: three.js
Issue: Always select 3d models with bones and animation.
Labels: Bug

### Description

In a scene consisting of 3d model with bones and animation, when I select another 3d model in that scene, it always selects the 3d model with bones and animation. But when I try a scene with the model without bones and animation, this problem doesn't happen. Watch the video the phone is a 3d model without bones and the cheetah is a 3d model with bones and animation. 

(Please watch the video: https://drive.google.com/file/d/1DPkdwFU8fxpJ2upq7JLaToFyYSoUZpY4/view?usp=sharing)

### Reproduction steps

1. Create a scene with models and a model with bones and animation.
2. Click on any a model in the scene, it always selects to the model with bones and animation
3. Create a scene with models and a model without bones and animation.
4. This issue doesn't appear with the 3d model without bones

### Code

No code example

### Live example

https://drive.google.com/file/d/1DPkdwFU8fxpJ2upq7JLaToFyYSoUZpY4/view?usp=sharing

### Screenshots

_No response_

### Version

r151

### Device

_No response_

### Browser

Chrome

### OS

_No response_
Repository: storybook
Issue: [Bug]: `useParameter` behaviour as you change between stories
Labels: bug,api: addons,addon: toolbars

### Describe the bug

- Currently the manager only knows the parameter of stories it has rendered before.
- When you select a story it emits a `STORY_PREPARED` event which reaches the manager after some delay.
- Many addons (such as `backgrounds`) cannot work, and must hide themselves if they don't see the right parameter.

The net effect of this is when you browse between stories, there is a "flash of hidden toolbars" as the addons hide themselves while they wait for the new story to prepare.

We might also consider the behaviour as the **first** story loads, as similarly we don't have parameter information.

### To Reproduce

- Refresh the browser
- Browse around a sandbox
- Observe the backgrounds addon carefully.

### System

_No response_

### Additional context

To fix this, we might consider:

**Falling back to the component + project parameters** (we could make them available ala this unmerged PR: https://github.com/storybookjs/storybook/pull/22071)

This generally speaking would work well, but in some examples it might have similar issues of things flashing on and off as it loads. For example when you move between two stories with non-standard settings for the add (perhaps hiding it), the addon would briefly appear.

**Continuing to return the previous story's value until the new story is prepared**.

This might be complex to implement, but could be the best solution.
Repository: PowerToys
Issue: A smart (per-app) input method switching
Labels: Idea-New PowerToy,Needs-Triage

### Description of the new feature / enhancement

I tried using the built-in Windows feature of setting a different input method for each window, but it didn't achieve the effect I wanted. What I want is to be able to recognize the current window or software and automatically switch to the corresponding input method based on preset configurations. For example, since I am in China, the input method will automatically switch to Chinese when I use Word, while it will switch to English when I open VS Code, without requiring me to manually switch.

### Scenario when this would be used?

This is particularly useful for non-native English speakers who need to use different input methods in different software

### Supporting information

This kind of software is available in macOS, such as this project '**https://github.com/itsuhane/SwitchKey**'.
I don't know if it's a problem with the underlying system, but I haven't found similar software on Windows. Is it impossible to achieve?
Repository: pytorch
Issue: Add `TORCH_ASSERT_ONLY_METHOD_OPERATORS` to functorch codebase
Labels: triaged,better-engineering,module: functorch

### 🚀 The feature, motivation and pitch

`TORCH_ASSERT_ONLY_METHOD_OPERATORS` was introduced to the native codebase a few months ago, and it brings us a significant speed-up in terms of incremental compilation because the codebase doesn't need to be re-compiled every time an operator is changed or added.

Therefore, I would like to propose adding `TORCH_ASSERT_ONLY_METHOD_OPERATORS` to the functorch codebase.

If this sounds a good idea I can propose PRs doing so.

### Alternatives

_No response_

### Additional context

_No response_

cc @zou3519 @Chillee @samdow @soumith @kshitij12345 @janeyx99
Repository: PowerToys
Issue: Add shortcuts service for everywhere
Labels: Needs-Triage,Needs-Team-Response

### Description of the new feature / enhancement

Is it possible to add shortcut service for input field? Like macOS for Convert Text to Simplified Chinese or Traditional Chinese.

### Scenario when this would be used?

Chinese users

### Supporting information

macOS already has this.
Repository: godot
Issue: AnimationTree`s animation started event notification bug (does not work with looped animations)
Labels: discussion,topic:animation

### Godot version

4.0.2 mono

### System information

Mac OS Ventura 13.2.1

### Issue description

In class AnimationTree there are events: AnimationStarted and AnimationFinished. Both expected to be invoked whenever animation tree plays another animation or finishs it. For regular animations they are working fine. But if your state machine has looped animations, you wont be notified through both events. See screenshots and attached project

<img width="1191" alt="Screenshot 2023-04-17 at 10 02 38" src="https://user-images.githubusercontent.com/32593471/232410130-68efe36d-5b65-40cb-b0b6-a984d195cf97.png">
<img width="801" alt="Screenshot 2023-04-17 at 10 02 57" src="https://user-images.githubusercontent.com/32593471/232410136-37fef63c-be20-49b7-8393-75cffcb31778.png">


### Steps to reproduce

Steps to reproduce:
Download character body from Mixamo
Download set of animations from Mixamo
Build animations and character body to glb files with Blender (separatelly)
Import those animations to projects as animation library
While import animations, set some animations Loop mode to Linear
Create character scene, add there character body, shape and imported skeleton from Mixamo
Add animation libraries to anim player
Add AnimationTree and setup some animations using state machine (idle (no loop) -> idle (no loop) -> running (loop))
Add script for your character body, get animation tree and subscribe on event AnimationStarted or AnimationFinished

Expected behavior:
Being notified whenever looped animation started or finished (through sync transition condition interuption for example)

Actual behavior:
When looped animation started, no event from event AnimationStarted.
If you setup exit from state via sync transition with condition, you will not receive AnimationFinished event notification on animation interuption

### Minimal reproduction project

Compatibility type: Compatibility
Environment: .Net 6 or 7, C#

(see 'example.zip' with projects setup)
[example.zip](https://github.com/godotengine/godot/files/11247297/example.zip)
Repository: pytorch
Issue: Automatically set dropout for SDPA depending on training mode / `training` argument
Labels: module: nn,triaged,enhancement,module: sdpa

### 🚀 The feature, motivation and pitch

Hi,

`torch.nn.functional.dropout` has a `training` argument that allows to disable/enable dropout during inference. In a module, it simplifies code by passing simply `training=self.training` instead of `p=self.droupout_p if self.training else 0.0`. This avoids as well a python controlflow (that dynamo may not like).

```python
a = torch.rand(20, 30)
b = torch.nn.functional.dropout(a, p=0.5, training=False)
```

It would be great to have a similar option in `torch.nn.scaled_dot_product_attention`, as e.g. `eval()` does not change the behavior (dummy example):

```python
import torch
import torch.nn as nn

class MyModel(nn.Module):
    def __init__(self):
        super().__init__()

        self.q = nn.Parameter(torch.rand(1, 64, 32, 64, dtype=torch.float16).to("cuda"))
        self.k = nn.Parameter(torch.rand(1, 64, 32, 64, dtype=torch.float16).to("cuda"))
        self.v = nn.Parameter(torch.rand(1, 64, 32, 64, dtype=torch.float16).to("cuda"))
        
    def forward(self, x):
        res = torch.nn.functional.scaled_dot_product_attention(self.q, self.k, self.v, is_causal=True, dropout_p=0.8) * x
        return res

model = MyModel()
model = model.eval()
inp = torch.Tensor([3.]).to("cuda", torch.float16)
with torch.inference_mode():
    res = model(inp)

print(res)
"""
prints
tensor([[[[0.0000, 0.0000, 0.0000,  ..., 0.0000, 0.0000, 0.0000],
          [0.0000, 0.0000, 0.0000,  ..., 0.0000, 0.0000, 0.0000],
          [0.0000, 0.0000, 0.0000,  ..., 0.0000, 0.0000, 0.0000],
          ...,
          [1.0000, 0.4944, 0.9648,  ..., 0.9160, 0.9844, 1.2383],
          [0.0000, 0.0000, 0.0000,  ..., 0.0000, 0.0000, 0.0000],
          [3.4277, 1.6973, 2.8184,  ..., 3.3672, 2.6348, 2.9453]],
...
"""
```

cc @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki @bhosmer @cpuhrsch @erichan1 @drisspg @mikekgfb

### Alternatives

Adding a controlflow

### Additional context

/
Repository: tauri
Issue: [log] process hang and never open the window if add dep `tokio` with `signal` feature
Labels: type: bug

> This issue has been upstreamed from https://github.com/tauri-apps/plugins-workspace/issues/307 

### platform
Linux / macOS, but not Windows

### reproduction

https://github.com/meowtec/bug-reproductions/tree/tauri-log the branch is `tauri-log`

1. use`tauri-plugin-log`
2. add dependence `tokio` with the `signal` feature
3. add some `log` in `setup()` hook
4. npm run tauri dev

main.rs
```rs
fn main() {
    tauri::Builder::default()
        .plugin(
            tauri_plugin_log::Builder::default()
                .targets([LogTarget::LogDir, LogTarget::Stdout, LogTarget::Webview])
                .build(),
        )
        .setup(move |_app| {
            // NOTICE: use log here!!!
            log::info!("setup app");
            Ok(())
        })
        .run(tauri::generate_context!())
        .expect("error while running tauri application");
}
```

Cargo.toml

```toml
[dependencies]
tauri = { version = "1.2", features = ["shell-open"] }
log = "0.4"
tauri-plugin-log = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "dev" }

# NOTICE: add tokio!!!!
tokio = { version = "1", features = ["signal"] }
```

**The window will never show.**

The output:
```
> tauri-app-demo@0.0.0 tauri
> tauri dev

        Info Watching /bugs-report/src-tauri for changes...
    Finished dev [unoptimized + debuginfo] target(s) in 0.13s
Could not determine the accessibility bus address
[2023-04-15][14:21:50][tauri_app][INFO] setup app
[2023-04-15][14:21:50][mio::poll][TRACE] registering event source with poller: token=Token(2147483649), interests=READABLE
```
Repository: rust
Issue: inferred repeat expression length unnecessarily needs `Copy`
Labels: C-bug,F-generic_arg_infer

```rust
#![feature(generic_arg_infer)]
struct NotCopy;

fn with_len<T, const N: usize>(_: [T; N]) {}

fn main() {
    let x = [NotCopy; _];
    with_len::<NotCopy, 0>(x)
}
```
results in the following error:
```rust
error[[E0277]](https://doc.rust-lang.org/nightly/error_codes/E0277.html): the trait bound `NotCopy: Copy` is not satisfied
 --> src/main.rs:7:14
  |
7 |     let x = [NotCopy; _];
  |              ^^^^^^^ the trait `Copy` is not implemented for `NotCopy`
  |
  = note: the `Copy` trait is required because this value will be copied for each element of the array
help: consider annotating `NotCopy` with `#[derive(Copy)]`
  |
2 + #[derive(Copy)]
3 | struct NotCopy;
  |
```

we should be able to solve that by using marker traits (potentially waiting until they're stable)
```rust
#[marker]
trait RepeatExprMayCopyValue {}
impl<T: Copy, const N: usize> RepeatExprMayCopyValue for [T; N] {}
impl<T> RepeatExprMayCopyValue for [T; 0] {}
impl<T> RepeatExprMayCopyValue for [T; 1] {}
```
and then change hir typeck to require `RepeatExprMayCopyValue` for the array instead of optionally requiring `Copy` for the value.
Repository: vscode
Issue: Explore alternative wording for "Continue On" explanations
Labels: ux,continue-working-on
Repository: pytorch
Issue: Slicing and indexing support negative steps
Labels: feature,triaged,module: advanced indexing

### 🚀 The feature, motivation and pitch

At present pytorch is not compatible with the following code(pytorch 2.0), and will raise an error 'step must be greater than zero'
```
a=torch.arange(12).float()
print(a[::-1])
```
At the same time, this is always available in numpy. Is it possible this basic feature be add in pytorch in the near future?


### Alternatives

An alternative to this is using torch.flip(a, dims=[0]), but it would be great if [::-1] can be used in both 0d/1d and multidim tensors.

### Additional context

_No response_
Repository: stable-diffusion-webui
Issue: [Bug]: Incorrect upscaler behavior in the API.
Labels: bug-report,platform:mac

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

I'm trying to enlarge the picture through the api. But regardless of the configuration api removes the backgroud of the picture.

Request
```http://127.0.0.1:7860/sdapi/v1/extra-single-image```
```json
{
	"resize_mode": 0,
	"show_extras_results": true,
	"gfpgan_visibility": 0,
	"codeformer_visibility": 0,
	"codeformer_weight": 0,
	"upscaling_resize": 4,
	"upscaling_resize_w": 512,
	"upscaling_resize_h": 512,
	"upscaling_crop": false,
	"upscaler_1": "R-ESRGAN 4x+",
	"upscaler_2": "None",
	"extras_upscaler_2_visibility": 0,
	"upscale_first": false,
	"remove_background": "None",
        "image": "..."
	}
```

I tried adding Remove Background : "None" but no effect. What can you tell me about it?

### Steps to reproduce the problem

1. send request to API
2. look at the result


### What should have happened?

The picture should just enlarge. The background should remain untouched.

### Commit where the problem happens

https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/a9fed7c364061ae6efb37f797b6b522cb3cf7aa2

### What platforms do you use to access the UI ?

MacOS

### What browsers do you use to access the UI ?

Apple Safari

### Command Line Arguments

```Shell
Launching Web UI with arguments: 
--api --upcast-sampling --no-half-vae --use-cpu interrogate
```


### List of extensions

No

### Console logs

```Shell
No
```


### Additional information

_No response_
Repository: pytorch
Issue: There has implmenet bug in LTC IrBuilder's MakeSizeMul method.
Labels: triaged,lazy,module: lazy

The default implementation of LTC IrBuilder's MakeSizeMul has error called method. The detail code is listed as below: 
```c++
static inline NodePtr MakeSizeMul(const Value& a, const Value& b) {
  return getIrBuilder()->MakeSizeAdd(a, b);
}
```
It is located in `pytorch/torch/csrc/lazy/core/ir_builder.h`, and the currently `main` branch also has this bug.

### Versions

The nightly main branch.
Repository: excalidraw
Issue: Excalidraw getting slow in Obsidian
Labels: performance ⚡️

Hi,

I use Ecalidraw inside Obsidian (Android app v 1.4.3 with Excalidraw plugin v 1.8.17) on my Chromebook (ChromeOS 111.0.5563.118, Acer Spin 514) with a pen. I use it for handwritten Notes or small drawings. But once I write about one loosely filled screen of text, Excalidraw starts to become very slow. The sampling rate for the pen position becomes so slow that some letters are not written at all or become just a straight line (so just two pen positions are recorded by Excalidraw). 

I don't know how to give instructions to reproduce this or what information I can add to make this easier to understand or analyze, so please let me know and I'll try to provide whatever I can. I don't know what exactly the issue is here, but I have this related to the amount of text on a note just with Excalidraw in this setup. I did not experience it with other handwriting software (apps or web), only then the system load of my Chromebook is very high, which is not the case with Excalidraw, at least not when the note is pretty empty. I would also be happy with options to just "flatten" the drawing (meaning to make it just an image on which I can continue to write). I do not change stuff from the top of the nor and if I want to, I can just draw white lines above the old and rewrite, so that would be totally fine. But I didn't find an option to do that.

Regards,
Jan
Repository: storybook
Issue: [Bug]:  Hot reload broken in Storybook 7 with Stencil 3.2
Labels: bug,compatibility with other tools,html,windows

### Describe the bug

Hello, 

I'm on windows 10, node 16.3, npm 9.1.2

I use storybook + stencil for two years now and it always worked great.

I updated storybook from 6.5 to 7.0.5 and now the hot reload is broken for no storybook files.
That means I can edit a xxx.stories.js file but not a xxx.scss or xxx.tsx file (provided by stencil)

The terminal has no error so it's difficult to detect if something doesn't work correctly.
`<i> [webpack-dev-middleware] wait until bundle finished: /runtime~main.iframe.bundle.js
<i> [webpack-dev-middleware] wait until bundle finished: /vendors-node_modules_storybook_addon-essentials_dist_actions_preview_mjs-node_modules_storybo-21683d.iframe.bundle.js
<i> [webpack-dev-middleware] wait until bundle finished: /main.iframe.bundle.js 
<i> [webpack-dev-middleware] wait until bundle finished: /runtime_main.b0bb9eaf7bd2c874c260.hot-update.json`

I followed the classic migration guide when I updated storybook version : npx storybook@latest upgrade


Anyone could help me please?

### To Reproduce

I can provide a repo if necessary.

### System

```shell
System:
    OS: Windows 10 10.0.19045
    CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz   
  Binaries:
    Node: 16.13.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 9.1.2 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (112.0.1722.48)
  npmPackages:
    @storybook/addon-actions: ^7.0.5 => 7.0.5
    @storybook/addon-essentials: ^7.0.5 => 7.0.5
    @storybook/addon-interactions: ^7.0.5 => 7.0.5
    @storybook/addon-links: ^7.0.5 => 7.0.5
    @storybook/html: ^7.0.5 => 7.0.5
    @storybook/react: ^7.0.5 => 7.0.5
    @storybook/react-webpack5: ^7.0.5 => 7.0.5
    @storybook/testing-library: ^0.1.0 => 0.1.0
```


### Additional context

_No response_
Repository: pytorch
Issue: CI for s390x
Labels: module: ci,triaged,enhancement

It'd be great to have s390x CI for pytorch. It'd help to improve support for s390x in pytorch.

It's possible to request s390x machine for CI for pytorch. Only question is who'll manage it: pytorch maintainers or us. For me first option would be more convenient, but second one is also possible.

cc @seemethere @malfet @pytorch/pytorch-dev-infra
Repository: stable-diffusion-webui
Issue: [Bug]: macOs open local env using --nowebui mode, the request of txt2img api return base64 str,production of image is  wrong in confusion。。。
Labels: bug-report,platform:mac

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

![image](https://user-images.githubusercontent.com/27141436/232465942-bb324283-e4ba-43c7-961f-00f9b9aac51f.png)
1. stable diffusion open api mode :python launch.py --nowebui --skip-torch-cuda-test --no-half
2. http post request:txt2img
3. stable diffusion return result base64 str arr,i got this result to parse image ,but image is out of expect, like above pic...
production of image result is wrong...i also print the res on python source code ,the base64 format string output of this api make me suck...is it my mac config is wrong,but on the webui mode anything is ok ^/^

### Steps to reproduce the problem

1. stable diffusion open api mode :python launch.py --nowebui --skip-torch-cuda-test --no-half
2. http post request:/txt2img
3. stable diffusion return result base64 str arr,i got this result to parse image ,but image is out of expect, like above pic...


### What should have happened?

production of image result is wrong...i also print the res on python source code ,the base64 format string output of this api make me suck...

### Commit where the problem happens

master

### What platforms do you use to access the UI ?

_No response_

### What browsers do you use to access the UI ?

_No response_

### Command Line Arguments

```Shell
python launch.py --nowebui --skip-torch-cuda-test --no-half

post req
```


### List of extensions

No

### Console logs

```Shell
no
```


### Additional information

_No response_
Repository: go
Issue: proposal: runtime: Expose `goid` and `gopc` in `GoroutineProfile`
Labels: Proposal

While investigating `runtime.GoroutineProfile()` for profiling (sampling), I've noticed the resulting `StackRecord` is missing any way to identify a Goroutine across collected samples. Actual copy of `goid` and `gopc` from `g` could happen in [`saveg()`](https://github.com/golang/go/blob/0853f8caec60f59df234c287be7f5971ab62133f/src/runtime/mprof.go#L1175) to `StackRecord`, but I'm not sure that's the best idea, considering, `StackRecord` is also used in a couple of other places where it wouldn't make sense to add these fields. Also, it wouldn't be a generic StackRecord then...