sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: Cloning conjugate tensor in torch_dispatch context produces non equality.
Labels: triaged,module: complex,module: __torch_dispatch__

### 🐛 Describe the bug

```python
class TestMode(TorchDispatchMode):
        def __torch_dispatch__(self, func, types, args=(), kwargs=None):
                args2 = clone_inputs(args)
                out = func(*args, **kwargs)
                for i in range(len(args2)):
                        print(f'before {args2[i]}, after {args[i]}, {torch.equal(args2[i], args[i])}')
                return out

a = torch.rand((3,3), dtype=torch.complex64)
b = torch.rand((3,3), dtype=torch.complex64)
b = torch.conj(b)
with enable_torch_dispatch_mode(TestMode()):
        torch.mm(a, b)
```
This prints:

```python
before tensor([[0.0290+0.4019j, 0.2598+0.3666j, 0.0583+0.7006j],
        [0.0518+0.4681j, 0.6738+0.3315j, 0.7837+0.5631j],
        [0.7749+0.8208j, 0.2793+0.6817j, 0.2837+0.6567j]]), after tensor([[0.0290+0.4019j, 0.2598+0.3666j, 0.0583+0.7006j],
        [0.0518+0.4681j, 0.6738+0.3315j, 0.7837+0.5631j],
        [0.7749+0.8208j, 0.2793+0.6817j, 0.2837+0.6567j]]), True
before tensor([[0.2388-0.7313j, 0.6012-0.3043j, 0.2548-0.6294j],
        [0.9665-0.7399j, 0.4517-0.4757j, 0.7842-0.1525j],
        [0.6662-0.3343j, 0.7893-0.3216j, 0.5247-0.6688j]]), after tensor([[0.2388-0.7313j, 0.6012-0.3043j, 0.2548-0.6294j],
        [0.9665-0.7399j, 0.4517-0.4757j, 0.7842-0.1525j],
        [0.6662-0.3343j, 0.7893-0.3216j, 0.5247-0.6688j]]), False
```
Which indicates that `mm` mutates its second input which is not the case. 



### Versions

N/A

cc @ezyang @anjali411 @dylanbespalko @mruberry @Lezcano @nikitaved @Chillee @zou3519 @albanD @samdow
Repository: flutter
Issue: Add a check that all files are exported
Labels: team,p: tooling,package,team-ecosystem,P3,triaged-ecosystem

Per https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#structure

> Flutter packages should not have "private" APIs other than those that are prefixed with underscores. Every file in a Flutter package should be exported. ("Private" files can still be imported so they are still actually public APIs; by not exporting them explicitly we are tricking ourselves into thinking of them as private APIs which may lead to poor design.)

We currently have violations of this in at least some of our packages. We also have cases like https://github.com/flutter/plugins/pull/6155 where we just forget to export something and have to fix it later.

We could address both issues by having a repo tool command that would validate that for every Dart file in `lib/src/` there is a transitive include route from at least one top-level `lib/` file. (We need to check all of them to handle deliberate cases of not using the primary export like https://github.com/flutter/plugins/blob/ca63d964d9fdfff9be36533ea4248d0d0ca28fd0/packages/url_launcher/url_launcher/lib/url_launcher_string.dart.) It should probably ignore anything with any import qualifiers (`show`/`hide`) since those violate the spirit of the style rule.
Repository: rust
Issue: Type derivation problems with closure
Labels: A-closures,A-inference

I think rust should have a good type push for such closures.
```rust 
let closure = | x | {
    x + 1i32
};
```
As you can see here the x here should be automatically pushed to the i32 type。
Repository: flutter
Issue: [A11y] [Android] Unexpected ordering of semantic labels by MergeSemantics on SwitchListTiles
Labels: platform-android,a: accessibility,customer: google,P2,team-design,triaged-design

Cross posting from internal bug 240352216.

On Android, a SwitchListTile will have a semantic label as follows: "<On/Off>, <Label>, Switch, ..."

Looking at other apps, and iOS, it seems like this is the semantic labels are being read in an incorrect order. 

Actual:
Talkback reads: "On, Get notified when Jessica shares photos, Switch, double tap to toggle"

Expected:
Talkback reads: "Get notified when Jessica shares photos, Switch, Off, double tap to toggle"
Repository: rust
Issue: Build rustdoc JSON for all crates with crater before stabilization
Labels: T-rustdoc,S-waiting-on-review,A-rustdoc-json

Before we stabilize [rustdoc JSON](https://github.com/rust-lang/rust/issues/76578), we should make sure that we can build rustdoc JSON for all crates on crates.io without ICEs or other errors.

This issue is meant to be used as a trigger point for crater runs.

See [this](https://rust-lang.zulipchat.com/#narrow/stream/266220-rustdoc/topic/rustdoc.20JSON.3A.20look.20for.20ICEs.20using.20crater.3F) Zulip topic for more info.

Support for building rustdoc JSON with crater was [recently deployed](https://github.com/rust-lang/crater/pull/654#issuecomment-1198076081).

@rustbot labels +A-rustdoc-json +T-rustdoc
Repository: create-react-app
Issue: Module Not Found : Cannot load 'react-scripts start' command.
Labels: needs triage,issue: bug report


### Describe the bug

After doing a clean installation of React using `npx create-react-app my-app` in _my-app_ folder, the `npm start` command failed to initialize the development server and produced **MODULE NOT FOUND** error

```
'D\my-app\node_modules\.bin\' is not recognized as an internal or external command,
operable program or batch file.
node:internal/modules/cjs/loader:936
  throw err;
  ^

Error: Cannot find module 'D:\Neil\Web Projects\Frontend\react-scripts\bin\react-scripts.js'
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}
```

### Environment

```
Environment Info:

  current version of create-react-app: 5.0.1
  running from C:\Users\neilb\AppData\Local\npm-cache\_npx\c67e74de0542c87c\node_modules\create-react-app

  System:
    OS: Windows 10 10.0.22000
    CPU: (8) x64 AMD Ryzen 5 3550H with Radeon Vega Mobile Gfx
  Binaries:
    Node: 16.13.2 - C:\Program Files\nodejs\node.EXE
    Yarn: Not Found
    npm: 8.13.2 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: Not Found
    Edge: Spartan (44.22000.120.0), Chromium (103.0.1264.49)
    Internet Explorer: 11.0.22000.120
  npmPackages:
    react: ^18.2.0 => 18.2.0
    react-dom: ^18.2.0 => 18.2.0
    react-scripts: 5.0.1 => 5.0.1
  npmGlobalPackages:
    create-react-app: Not Found
```
Cannot seem to fix the issue please help!
Repository: pytorch
Issue: Implement torch.clamp() on sparse tensors with SparseCPU backend
Labels: module: sparse,triaged

### 🚀 The feature, motivation and pitch

torch.clamp() fails on sparse tensors using SparseCPU backend. Among other things, this breaks gradient clipping with sparse tensors. 

```
import torch

sparse_tensor = torch.sparse_coo_tensor([[1,2]], [1,5], (3,))
torch.clamp(sparse_tensor, -1, 1)
```

Fails with error: `Could not run 'aten::clamp' with arguments from the 'SparseCPU' backend.`

### Alternatives

It's not exactly difficult to manually clamp sparse tensors, but we shouldn't have to when a function exists.

### Additional context

_No response_

cc @nikitaved @pearu @cpuhrsch @amjames @bhosmer
Repository: excalidraw
Issue: shape recognition
Labels: enhancement,discussion

Hi, sorry if this was requested before, I searched through the issues but could not find anything related.

Basically, the feature request is this: https://youtu.be/lmusL9pg9cI?t=28

And what it will potentially allow in my opinion is to simplify Excalidraw even more. While drawing, instead of switching shapes all the time (which I find very tiring), user could just casually **free draw** the existing shapes like circle, rectangle and even arrows, and let Excalidraw perfect them (snap them to shape).

This, in my opinion will allow faster prototyping, easier, more intuitive UX, and reduce the learning curve even more (Not that it's currently high, but getting used to selecting the shape you want *fast* takes a bit of time, imo).

What do you think?
Repository: terminal
Issue: Allow a separate launch mode for when Terminal automatically starts on login
Labels: Issue-Feature,Area-UserInterface,Area-Settings,Product-Terminal

_Ported from MSFT-40653626_

It would be nice if we could do these two things:

1. Have a separate launch mode for when Terminal is started on login by our start on login setting.
2. Once we have that, add support for launching _minimized_. This would let people specify that on startup, Terminal should launch minimized... but it should launch normally otherwise.
Repository: terminal
Issue: Users cannot Touch Inspect window caption controls
Labels: Issue-Bug,Area-Accessibility,Product-Terminal,Priority-2

1. Open Terminal
1. On a touch device, start Narrator
	1. Hover over title bar content such as min/max/close buttons
	1. Observe that Narrator cannot find the controls
1. Alternative, use Inspect and use it to hit test the title bar content
	1. Observe that hit testing in Inspect doesn't find the min/max/close controls

It is worth noting that the tabs in the title bar hit test correctly. The draggable part also hit tests, but Inspect shows that the bounding rect extends beyond the bounds of the window (looks like the width is that of the window rather than (window - tabs)).

> _Notes from original reporter_
>
> This issue was discovered in the investigation of a similar issue in File Explorer. We believe it is up to providers
> to support hit testing when their client area extends into the title bar.
>
> In this scenario, the issue is that the app has specified that its client area includes the non-client area of the
> title bar. UIA makes sure not to override any hit testing that is within the client area of an app.
> 
>  
> 
> To make this work, we recommend following the pattern of other apps that extend their client area into the title bar,
> such as WordPad:
> 
> 1) Set the provider option to remove UIA non-client area support (may be more of an optimization and not strictly
> required) by returning ProviderOptions_RefuseNonClientSupport.
> 
> ex:
> 
> ```c++
> CUxHWNDElementProvider::get_ProviderOptions  
> {  
> // <snip> 
>      // Claim support for the non-client area   
>     *pRetVal = (ProviderOptions)(ProviderOptions_ServerSideProvider | ProviderOptions_RefuseNonClientSupport);  
>     return S_OK;  
> }  
> ```
> 
> 2) Update client-area hit testing to also test non-client controls, such as min/max/close buttons.
> 
> ex:
> 
> ```c++
> CUxHWNDElementProvider::RootElementProviderFromPoint  
> // <snip> 
>     // Ask the main frame what caption element pt is on, if any
>     POINT pt = {static_cast<LONG>(x), static_cast<LONG>(y)}; 
>     LRESULT lHit = SendMessage(_hwndMain, WM_NCHITTEST, 0, POINTTOPOINTS(pt)); 
>  
>     // Special case for custom caption elements: this could potentially be a custom child element 
>     // Those values are returned by HWndContainer::OnNcHitTest 
>     if (lHit == HTCAPTION || lHit == HTBORDER) 
>     { 
> // <snip> --- Special handling for custom controls in title bar --- 
>     } 
> 
>     // If we don't have anything yet, try the regular hit-testing for non-client. 
>     if (pProvider == NULL) 
>     { 
> // <snip> --- maps lHit to OBJID_* --- 
>             // Get the non-client provider for this piece and wrap it up 
>             IRawElementProviderSimple * pRawProvider; 
>             hr = UiaProviderForNonClient(_hwndMain, lEnd, CHILDID_SELF, &pRawProvider); 
> ...  
> ```

_Ported from MSFT-38927143_
Repository: neovim
Issue: Expose whether option is map in `nvim_get_option_info`
Labels: enhancement,needs:discussion,options

### Feature already in Vim?

_No response_

### Feature description

Add a field, e.g. `map: bool`, to the return value of `nvim_get_option_info`, to differentiate those from simple lists.

This would apply to e.g. `listchars`.
Repository: godot
Issue: VehicleBody wheels shift on vehicle removed/added onto a spatial scene.
Labels: bug,confirmed,topic:physics,topic:3d

### Godot version

3.4.3

### System information

Windows 10

### Issue description

If a VehicleBody node is removed and later added onto a scene, its wheels will shift from their default positions. Sometimes the wheels will rotate relative to the car, meaning the raycasts are probably not casting towards the car's down direction anymore.
I've tested transfering it to the same scene and between copies of the same scene, should probably also happen between two scenes.
I doubt it's something about how the VehicleWheels are set up as I replicated it in the Truck Town demo as well.

![image](https://user-images.githubusercontent.com/74799857/181855144-9a9f2892-990f-4fd7-bf9e-166528e1aea3.png)
this picture is after two or three transfers. One of the wheels is upside down.
video 1: (https://www.youtube.com/watch?v=rBieb4vuJTQ)
video 2: (https://www.youtube.com/watch?v=c4iLIHFKeC4)
both videos are less than a minute.

For aditional context, in my project I save all the vehicles in a map into an array inside a RaceManager script, so the manager can show positions and get lap times and, most importantly, not need to re-instance them if an event is reloaded from the pause menu. Creating a car means instancing it, getting their tune stats and, for the player's own, attaching a few controller scripts, and theoretically I don't need to run through that just to restart a race.

### Steps to reproduce

- create a VehicleBody node and add it to a scene.
- in any section of the code, have it so the vehicle is removed from the scene, but a reference to the now orphaned node is kept.
- then, code that adds that orphaned node back to that same scene.
- run, a couple of times. Wheels should shift progressively, sometimes even rotating.
here's an example of code to run in the vehiclebody's own script.
```
func _unhandled_input(event):
	if event.is_action_pressed("ui_accept"):
		var scene = self.get_parent()
		scene.remove_child(self)
		scene.add_child(self)
```

### Minimal reproduction project

[3D Truck Town Demo.zip](https://github.com/godotengine/godot/files/9223739/3D.Truck.Town.Demo.zip)
the 3D vehicle demo, quickly modified so that the Enter key shows the bug.
Repository: neovim
Issue: <C-@> doesn't work
Labels: bug,platform:windows,tui

### Neovim version (nvim -v)

NVIM v0.8.0-dev+532-g60604d6a9

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

no, vim 9.0.0103

### Operating system/version

Windows 10

### Terminal name/version

microsoft-windows-terminal 1.14.1861.0

### $TERM environment variable

vtpcon

### Installation

chocolatey 

### How to reproduce the issue

* start nvim `nvim --clean`
* Go to insert mode `i`
* type `asdf`
* exit insert mode `<ESC>`
* enter insert mode `i`
* press `<C-@>` (for me this is `CTRL+SHIFT+2`

### Expected behavior

Another `asdf` should be added and should exit insert mode

### Actual behavior

Nothing happens
Repository: flutter
Issue: [FlexibleSpaceBar] can't build 'background' according to the stretch state
Labels: framework,f: material design,d: api docs,d: examples,d: stackoverflow,team-design,triaged-design

## Use case

Because 'background' can only pass one fixed component and cannot display different component contents according to 'FlexibleSpaceBar' stretch, we need a way to build a 'background' according to the stretch state.


## Proposal
add `backgroundBuilder`, expose 'FlexibleSpacebarSettings' and' BoxConstraints' to users to build components more flexibly according to stretch state.
```
Widget (BuildContext context, FlexibleSpaceBarSettings settings, BoxConstraints constraints) backgroundBuilder 
``` 

`Background 'and' backgroundBuilder' can't be used at the same time. Retaining 'background' ensures forward compatibility.
Repository: pytorch
Issue: Symbolic tensors are not printable
Labels: module: printing,triaged,module: dynamic shapes

### 🐛 Describe the bug

```
  File "/data/users/ezyang/pytorch-tmp/test/test_dynamic_shapes.py", line 258, in test_aten_ops
    print(x)
  File "/data/users/ezyang/pytorch-tmp/torch/_tensor.py", line 423, in __repr__
    return torch._tensor_str._str(self, tensor_contents=tensor_contents)
  File "/data/users/ezyang/pytorch-tmp/torch/_tensor_str.py", line 591, in _str
    return _str_intern(self, tensor_contents=tensor_contents)
  File "/data/users/ezyang/pytorch-tmp/torch/_tensor_str.py", line 535, in _str_intern
    if self.numel() == 0 and not self.is_sparse:
RuntimeError: Tensors of type TensorImpl do not have numel

```

Maybe this will get fixed when we get sym numel landed

### Versions

master
Repository: deno
Issue: deno install with import_map.json appears to be broken
Labels: needs investigation

I have made this third party module https://deno.land/x/wallpal. It is a cli script, so I attempted to install it with
```bash
deno install -A --import-map=https://deno.land/x/wallpal@1.0.0/import_map.json https://deno.land/x/wallpal@1.0.0/wallpal.ts
```

deno prints this output, then exits with `1`.
```
Download https://deno.land/x/wallpal@1.0.0/std@0.149.0/encoding/_yaml/parse.ts
Download https://deno.land/x/wallpal@1.0.0/std@0.149.0/encoding/_yaml/schema.ts
Download https://deno.land/x/wallpal@1.0.0/std@0.149.0/encoding/_yaml/schema/mod.ts
Download https://deno.land/x/wallpal@1.0.0/std@0.149.0/encoding/_yaml/stringify.ts
Download https://deno.land/x/wallpal@1.0.0/std@0.149.0/encoding/_yaml/type.ts
Download https://deno.land/x/wallpal@1.0.0/std@0.149.0/_util/assert.ts
Download https://deno.land/x/wallpal@1.0.0/std@0.149.0/fs/copy.ts
Download https://deno.land/x/wallpal@1.0.0/std@0.149.0/fs/empty_dir.ts
Download https://deno.land/x/wallpal@1.0.0/std@0.149.0/fs/ensure_dir.ts
Download https://deno.land/x/wallpal@1.0.0/std@0.149.0/fs/ensure_file.ts
Download https://deno.land/x/wallpal@1.0.0/std@0.149.0/fs/ensure_link.ts
Download https://deno.land/x/wallpal@1.0.0/std@0.149.0/fs/ensure_symlink.ts
Download https://deno.land/x/wallpal@1.0.0/std@0.149.0/fs/eol.ts
Download https://deno.land/x/wallpal@1.0.0/std@0.149.0/fs/exists.ts
Download https://deno.land/x/wallpal@1.0.0/std@0.149.0/fs/expand_glob.ts
Download https://deno.land/x/wallpal@1.0.0/std@0.149.0/fs/move.ts
Download https://deno.land/x/wallpal@1.0.0/std@0.149.0/fs/walk.ts
Download https://deno.land/x/wallpal@1.0.0/std@0.149.0/io/buffer.ts
Download https://deno.land/x/wallpal@1.0.0/std@0.149.0/io/readers.ts
Download https://deno.land/x/wallpal@1.0.0/std@0.149.0/io/streams.ts
Download https://deno.land/x/wallpal@1.0.0/std@0.149.0/io/util.ts
Download https://deno.land/x/wallpal@1.0.0/std@0.149.0/io/writers.ts
error: Module not found "https://deno.land/x/wallpal@1.0.0/std@0.149.0/fs/expand_glob.ts".
    at https://deno.land/std@0.149.0/fs/mod.ts:12:15
```

This project has an import map that looks like this:
```json
{
  "imports": {
    "std/fs": "https://deno.land/std@0.149.0/fs/mod.ts",
    "std/io": "https://deno.land/std@0.149.0/io/mod.ts",
    "std/flags": "https://deno.land/std@0.149.0/flags/mod.ts",
    "std/encoding/": "https://deno.land/std@0.149.0/encoding/",
    "keypress/": "https://deno.land/x/keypress@0.0.8/",
    "/": "./",
    "./": "./"
  }
}
```
and imports that look like
```ts
import * as fs from 'std/fs'
```

It seems that deno is attempting to resolve these imports as if they are local to the wallpal module. These import maps work fine locally, but they fail with `deno install`, so I am inclined to believe there is a bug.

`deno --version`
```
deno 1.24.0 (release, x86_64-unknown-linux-gnu)
v8 10.4.132.20
typescript 4.7.4
```
Repository: flutter
Issue: Flutter Web - Enable fetching of fonts on demand instead of loading all of them at app start
Labels: c: new feature,framework,a: assets,platform-web,c: proposal,P3,team-web,triaged-web

Currently, all the fonts are loaded at the start of the application in flutter-web. Since my app supports about 50 languages with unique character-sets, the total size of all fonts amounts to about 80 mb. Preloading 80mb of fonts is making the app load time very high.

Please include a way to fetch fonts only when needed (like css) instead of pre-fetching them at once.
Repository: TypeScript
Issue: Allow circular function parameter typing with typeof
Labels: Suggestion,Experience Enhancement

# Suggestion

<!--
  Please fill in each section completely. Thank you!
-->

## 🔍 Search Terms

<!--
  💡 Did you know? TypeScript has over 2,000 open suggestions!
  🔎 Please search thoroughly before logging new feature requests as most common ideas already have a proposal in progress.
  The "Common Feature Requests" section of the FAQ lists many popular requests: https://github.com/Microsoft/TypeScript/wiki/FAQ#common-feature-requests

  Replace the text below:
-->

circular function parameter typeof

## ✅ Viability Checklist

<!--
   Suggestions that don't meet all these criteria are very, very unlikely to be accepted.
   We always recommend reviewing the TypeScript design goals before investing time writing
   a proposal for ideas outside the scope of the project.
-->
My suggestion meets these guidelines:

* [X] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [X] This wouldn't change the runtime behavior of existing JavaScript code
* [X] This could be implemented without emitting different JS based on the types of the expressions
* [X] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
* [X] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).


## ⭐ Suggestion

I would like to be able to type a function parameter via a circular `typeof` (see example).

## 📃 Motivating Example

<!--
  If you were announcing this feature in a blog post, what's a short explanation that shows
  a developer why this feature improves the language?
-->

```
type Foo = typeof foo;

const foo = {
    bar: 0,
    addBar: (self: Foo) => {
        self.bar += 1
    }
} as const;
```

Right now, TypeScript gets mad that Foo circularly references itself, though I don't see why it's necessary that a function parameter type not reference the parent object.

## 💻 Use Cases

In the project I'm working on, I have a large complex type (lets call it Foo) typed via typeof. On Foo there are some functions that perform operations on itself, and I would like to be able to type that easily. One simple workaround is to cast the value inside the function, but that's clunky and loses the typing when calling the function from outside.

<!--
  What do you want to use this for?
  What shortcomings exist with current approaches?
  What workarounds are you using in the meantime?
-->