sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: Inconsistent Hash of IValue between aten/src/ATen/core/ivalue.cpp and aten/src/ATen/core/Dict_inl.h
Labels: oncall: jit

### 🐛 Describe the bug

Recently, I'm using libtorch 1.13.0 using C++ in VS 2022. I want to create a torch::Dict, which maps tuple<string, string, string> to tuple<string, string, string>. After I create the tuple key, I use torch::IValue::hash(key) and this works. However, when I want to insert (key, value) into dict, the program raises error in DictKeyHash::operator()(const IValue& ivalue) (the function is in aten/src/ATen/core/Dict_inl.h). It says can't hash IValues. 

The reason is that DictKeyHash::operator() only supports to hash int, string, double, complex double, bool, tensor and device. However, the funciton torch::IValue::hash in aten/src/ATen/core/ivalue.cpp supports None, Bool, Double, Tensor, Storage, Int, SymInt, SymFloat, String, Tuple, and Device. **There is a conflict between two hash function. The first one cannot hash None, Storage, SymInt, SymFloat, Tuple, and the second one cannot hash complex double.**

Is it a bug? Can these hash functions be consistent? Thanks!

Here's my code.

`#include <iostream>
#include <torch/torch.h>

int main() {
    torch::TupleTypePtr pt = torch::TupleType::create({torch::StringType::get(), torch::StringType::get(), torch::StringType::get()});
    std::cout << pt->str() << "\n";

    c10::Dict<torch::IValue, torch::IValue> dict(pt, pt);
    torch::IValue key(std::make_tuple("one", "one", "one"));
    std::cout << torch::IValue::hash(key) << "\n";
    dict.insert(key, key); // <- will fail in DictKeyHash::operator()
    return 0;
}
`

### Versions

Windows 10, Visual Studio 2022, C++, libtorch 1.13.0 with cuda

cc @EikanWang @jgong5 @wenzhe-nrv @sanchitintel @jbschlosser
Repository: go
Issue: proposal: cmd/go: generate add flag to fail fast
Labels: Proposal,GoCommand

In our project we run `go generate ./...` on a big code-base, if there's an error `go generate` skips the package and carries on, only returning an error code at the end. This makes it hard to scroll through the mountain of logs to find the actual error.

It would be great if we had a fail fast flag, i.e something like `go generate --fail-fast ./...` that would stop on the first error it sees, to make it clear where the error is coming from (and also to save time).
Repository: go
Issue: x/vuln/cmd/govulncheck: unrecognized failures
Labels: NeedsInvestigation,vulncheck or vulndb

```
#!watchflakes
post <- pkg == "golang.org/x/vuln/cmd/govulncheck" && test == ""
```

Issue created automatically to collect these failures.

Example ([log](https://build.golang.org/log/c5b2665c64e83db03673818c1b0bda420beee4ee)):

    panic: test timed out after 10m0s
    running tests:
    	TestCommand (10m0s)
    	TestCommand/testdata/default (7m8s)
    
    goroutine 58 [running]:
    testing.(*M).startAlarm.func1()
    	/var/gobuilder/buildlet/go/src/testing/testing.go:2240 +0x310
    created by time.goFunc
    	/var/gobuilder/buildlet/go/src/time/sleep.go:176 +0x38


— [watchflakes](https://go.dev/wiki/Watchflakes)
Repository: opencv
Issue: Plan-V4D: A task graph engine with support for 2D/3D graphics as well as GUI in conjuction with computer vision.
Labels: feature,category: highgui-gui

The name changed from V4D to Plan-V4D because it consists of two components now.

### Describe the feature and motivation

I am working on a high performance visualization module. It consist of two parts: Plan a task graph engine and V4D a 2D/3D graphics runtime. It should support OpenGL, 2D vector graphics (through NanoVG), 3D graphics (through bgfx) a GUI system (based on ImGui)  and hardware acceleration whenever it can (e.g.: OpenGL, CL-GL interop and CL-VA interop). Also drawing on top of streaming videos should be supported.
<strike>It must support WebAssembly.</strike>
I would also like to support Vulkan, DirectX and Metal - <strike>through ANGLE</strike>.

 I have released an alpha version of the [module](https://github.com/kallaballa/Plan-V4D). See the README!

At the moment it depends on pull requests that haven't been merged yet but could work without, just slower: #22780 and #22704 

#### Currently supported
* it uses C++20
* It supports OpenGL 3.0 and ES 3.2
* Depth buffer support
* it supports usage of multiple OpenGL-contexts (using context-sharing) so multiple independent state-machines are available. Very handy when you want to integrate an external API based on OpenGL or you simply don't want/need to manage GL-states meticulously between different rendering sub-systems.
* It supports NanoVG (2D and font-rendering) out-of-the-box by using the multi-context-support.
* It supports an experimental fork of BGFX  (3D engine which i altered so it will adhere to the concurrency model of Plan-V4D)
* It supports making GUI-overlays using IMGui
* it is based on a template impementation of a task graph engine which is facilitated for parallelization
* it is based on T-API
* it supports fast videoio and manipulation of videos
* it facilitates hardware acceleration where it can (e.g. VAAPI) and makes use of interop implementations to keep frames on the GPU (in some samples all the time)
* in optimal cases it uses my 4.x fork: https://github.com/kallaballa/opencv but it is compatible with main-line
* Most of the PRs pertaining the fork have already been intergrated into 4.x and 5.0
* External dependencies: OpenCL (optionally), OpenGL, GLEW and GLFW
* Internal dependencies: opencv_core opencv_imgproc opencv_videoio opencv_video

What do you think?
Repository: excalidraw
Issue: change how `appState.scrollX/Y` works
Labels: discussion

In the very early days when we implemented scrolling, for an unknown reason we encoded scroll positions in a way that if you scroll down by 100px, we set `scrollY` as `-100`.

Comes from this commit:

https://github.com/excalidraw/excalidraw/commit/51e19b977eceb8336156e510a5ddde8cef199bb6#diff-0b5adbfe7b36e4ae2f479291e20152e33e940f7f265162d77f40f6bdb5da7405R658-R661

This makes it very unintuitive, especially for public API.

Thoughts on migrating to swap the sign?

/cc @ad1992 @zsviczian
Repository: TypeScript
Issue: Downlevel TemplateStringsArray for tagged templates should be frozen
Labels: Bug,ES6

# Bug Report

The `TemplateStringsArray` we emit for tagged templates (as well as its `raw` property) should be frozen when we emit to `--target ES5`, to match the ES2015 specification. Without this change, developers could run into issues with a spec-compliant [`String.dedent`](https://github.com/tc39/proposal-string-dedent) polyfill. This was first reported here: https://github.com/tc39/proposal-string-dedent/issues/75#issuecomment-1333011358

### 🔎 Search Terms

tagged template array frozen TemplateStringsArray

### ⏯ Playground Link

[Playground link with relevant code](https://www.typescriptlang.org/play?target=1#code/CYUwxgNghgTiAEA3W8BmAueUB2BPA3AFCGoAGUAJAN4CMAvgEalA)

### 💻 Code

```ts
const f = (ar: TemplateStringsArray, ...args) => ar;
const x = f`a${1}b`
console.log(Object.isFrozen(x));
console.log(Object.isFrozen(x.raw));
```

### 🙁 Actual behavior

Neither the `TemplateStringsArray` nor its `raw` property are frozen.

### 🙂 Expected behavior

Both the `TemplateStringsArray` and its `raw` property should be frozen.
Repository: create-react-app
Issue: Importing Jquery into Index.html 
Labels: needs triage

I'm currently trying to convert an Html template of an ecommerce website into a ReactJs web app  ,it comes with a lost of jquery and i've tried adding the import statements to the index.html but it doesn't render as expected . 

It is possible or should i have to write back all of the Js myself considering the're alot of jquery files ,

how can i do that ? 
Thank you in advance
Repository: flutter
Issue: Android app Touch/trackpad events have a delayed response on Chromebooks with Android 9 subsystem
Labels: e: device-specific,platform-android,engine,perf: speed,a: mouse,P2,team-android,triaged-android

Touches / trackpad events are queued until you hover the cursor over one of the window manager elements. I.e. minimize / maximize / close. 

Same Android app, same build running on a newer Chromebook with same version of chrome os but newer Android 11 subsystem works fine.

We're seeing this issue on a Pixelbook Go (2019 https://store.google.com/product/pixelbook_go?hl=en-US) - it has the latest Chrome OS, but the Android subsystem is Android 9.  Newer chromebooks come with updated baseboards/intel chip sets and use Android 11. App works with those as well as Android  8+ phones/tablets.


Video of behavior: https://photos.app.goo.gl/L35KuFZesaqMdmGFA
Repository: flutter
Issue: Add plugin tooling check for large files
Labels: team,p: tooling,package,team-ecosystem,P2,triaged-ecosystem

Currently we don't have any checks on files being added to our packages. This has come up in a few different ways over time. Examples:
- Occasionally adding a large file to a package, generally not needed for actual use (tests, docs, etc.) See https://github.com/flutter/plugins/pull/6284 for instance.
- We usually check in `flutter create` output for examples as-is, which means we have all the full-quality icons for every supported platform in each package's example.

While we don't need to be as strict about binary files as flutter/flutter (where developers are checking out the entire history, so suffer all the cumulative weight of every version of every file ever checked in), but people are downloading the whole current package via `pub`, so large files aren't ideal.

As a starting point we should:
- Add tooling that flags either files over a certain threshold, or maybe any binary file not on an allow-list, and requires a `override: ` label to pass checks so that a human has to evaluate it.
- Add guidance to https://github.com/flutter/flutter/wiki/Contributing-to-Plugins-and-Packages about what to do in various cases.
  - For icons in particular, we could have a canonical set of icons (with high-res versions stripped out, or otherwise shrunk in some way since they don't need to be attractive) that live in a root directory in the project, and tell anyone adding examples to copy from those into the template.
Repository: rust
Issue: using ...default syntax for a type implementing Drop gives a cryptic error
Labels: A-diagnostics,T-compiler

<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.

If you cannot produce a minimal reproduction case (something that would work in
isolation), please provide the steps or even link to a repository that causes
the problematic output to occur.
-->

Given the following code: https://play.integer32.com/?version=stable&mode=debug&edition=2021&gist=e102832a5f43e97abef2948a54648236

```rust
#[derive(Default)]
pub struct Blah {
    a: u8,
    b: Vec<u8>,
}

impl Drop for Blah {
    fn drop(&mut self) {}
}

fn main() {
    let _x = Blah {
        a: 0,
        ..Default::default()
    };
}
```

The current output is:

```
error[E0509]: cannot move out of type `Blah`, which implements the `Drop` trait
  --> src/main.rs:12:14
   |
12 |       let _x = Blah {
   |  ______________^
13 | |         a: 0,
14 | |         ..Default::default()
15 | |     };
   | |     ^
   | |     |
   | |_____cannot move out of here
   |       move occurs because value has type `Vec<u8>`, which does not implement the `Copy` trait

For more information about this error, try `rustc --explain E0509`.
```
Ideally the output should look like:

I'm not sure, honestly. But it would be better if the span pointed only to the `..Default::default()` part. As an aside, I don't think it's clear that this statement creates a full instance of `Blah`, not just "the rest of the fields". Maybe a note explaining this could be added.
Repository: pytorch
Issue: [RFC] Allow FSDP mixed precision for only certain type of submodules
Labels: oncall: distributed,module: fsdp

### 🚀 The feature, motivation and pitch

Mixed Precision frequently runs into unsupported operator for the lower precision issue, or just worse / degraded accuracy if some operators / modules are run in lower precision.

For FSDP native mixed precision, if users are aware of these operators and the modules that they belong to, it could be useful to simply exclude these modules from mixed precision and still get the performance enhancements by having rest of the module in mixed precision. 

One useful API might be to ignore some modules for mixed precision, or the reverse direction, specify explicitly which modules to be mixed precision.

For the latter, we could add a `modules_for_mixed_precision` arg to `MixedPrecision` configuration, if this is non-None, it specifies the types of modules we should apply mixed precision on. 

### Alternatives

_No response_

### Additional context

_No response_

cc @mrshenli @pritamdamania87 @zhaojuanmao @satgera @gqchen @aazzolini @osalpekar @jiayisuse @H-Huang @kwen2501 @awgu
Repository: stable-diffusion-webui
Issue: [Bug]: M1 Mac: Performance degrages severely after 1 generation
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?

Did a fresh install this morning to make sure I was running the latest and greatest. Generating a 768x768 image at 20 steps with Euler_a using the 2.0 model. Launched with the --medvram argument but got similar results without it. Batch count and batch size both at 1. The first batch generated in 1:56; the second batch, with identical settings, took 17:04. Cancelling and relaunching the Terminal command does seem to get it back to the initial performance, but only for one batch, thus necessitating quitting and relaunching every time.

### Steps to reproduce the problem

1. Launch web-ui on an M1 Mac.
2. Load the 2.0 model and set X/Y to 768, sampler to euler_a, cfg to 7, steps to 20.
3. With batch count and batch size both at 1, generate an image. Should take a reasonable amount of time.
4. Generate a second image. Should take an order of magnitude more time or more.

### What should have happened?

The generation time for the second batch should be more or less the same as the time for the first batch.

### Commit where the problem happens

44c46f0

### What platforms do you use to access UI ?

MacOS

### What browsers do you use to access the UI ?

Mozilla Firefox

### Command Line Arguments

```Shell
--medvram
```


### Additional information, context and logs

For the purposes of this bug report I launched with --medvram, mostly to see if it would improve performance as suggested in the Apple Installation article on the wiki. With this argument,the first generation happened in approx half the time, but similar results overall were observed in the second generation. (I don't actually know how long the second generation will take without the --medvram argument; the UI was estimating 30 mins, and I cancelled it after 20.)
Repository: react
Issue: [DevTools Bug] Element "15" not found
Labels: Type: Bug,Status: Unconfirmed,Component: Developer Tools

### Website or app

https://github.com/sfmarco/Task.git

### Repro steps

Solo queria ver los estados de mi componente y aparecio el error

### How often does this bug happen?

Every time

### DevTools package (automated)

react-devtools-extensions

### DevTools version (automated)

4.27.0-bd2ad89a4

### Error message (automated)

Element "15" not found

### Error call stack (automated)

```text
at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:39558:15
```


### Error component stack (automated)

```text
at InspectedElementContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40933:3)
    at Suspense
    at ErrorBoundary_ErrorBoundary (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:39237:5)
    at div
    at InspectedElementErrorBoundaryWrapper (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:39771:3)
    at NativeStyleContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:42429:3)
    at div
    at div
    at OwnersListContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:35080:3)
    at SettingsModalContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:37705:3)
    at Components_Components (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:44505:52)
    at ErrorBoundary_ErrorBoundary (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:39237:5)
    at div
    at div
    at ThemeProvider (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:39409:3)
    at PortaledContent (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:39439:5)
    at div
    at div
    at div
    at ThemeProvider (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:39409:3)
    at TimelineContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:44686:3)
    at ProfilerContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:44115:3)
    at TreeContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:31940:3)
    at SettingsContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32584:3)
    at ModalDialogContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:39834:3)
    at DevTools_DevTools (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56039:3)
```


### GitHub query string (automated)

```text
https://api.github.com/search/issues?q=Element  not found in:title is:issue is:open is:public label:"Component: Developer Tools" repo:facebook/react

Error
```
Repository: rust
Issue: Suggest the correct name if using a struct literal and struct update syntax
Labels: A-diagnostics,T-compiler

<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.

If you cannot produce a minimal reproduction case (something that would work in
isolation), please provide the steps or even link to a repository that causes
the problematic output to occur.
-->

Given the following code: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=d00e87e77db94bfa1cc76d92b966c599

```rust
#[derive(Debug)]
struct Shape<'a> {
    colour: &'a str,
    sides: usize,
}

fn main() {
    let blue_triangle = Shape {
        colour: "blue",
        sides: 3,
    };

    println!("The blue triangle is {:?}", blue_triangle);

    let blue_square = {
        sides: 4,
        ..blue_triangle
    };

    println!("The blue square is {:?}", blue_square);
}
```

The current output is:

```
error: struct literal body without path
  --> src/main.rs:15:23
   |
15 |       let blue_square = {
   |  _______________________^
16 | |         sides: 4,
17 | |         ..blue_triangle
18 | |     };
   | |_____^
   |
help: you might have forgotten to add the struct literal inside the block
   |
15 ~     let blue_square = { SomeStruct {
16 |         sides: 4,
17 |         ..blue_triangle
18 ~     } };
   |
```

Ideally the output should look like:

```diff
 error: struct literal body without path
   --> src/main.rs:15:23
    |
 15 |       let blue_square = {
    |  _______________________^
 16 | |         sides: 4,
 17 | |         ..blue_triangle
 18 | |     };
    | |_____^
    |
 help: you might have forgotten to add the struct literal inside the block
    |
 15 ~     let blue_square = { SomeStruct {
 16 |         sides: 4,
 17 |         ..blue_triangle
 18 ~     } };
    |
+help: perhaps you intended to use this struct literal:
+   |
+15 ~     let blue_square = Shape {
+16 |         sides: 4,
+17 |         ..blue_triangle
+18 |     };
+   |
```

You'd want to be somewhat conservative here, but in this case:

* the struct I'm passing in `..blue_triangle` is a `Shape`
* the field I'm updating is also valid on `Shape`

For comparison with a similar construction in another language: TypeScript has a spread operator which is similar to Rust's struct update syntax, and it recognises that I'm overriding a field here without asking me to respecify the type. See [TypeScript Playground example](https://www.typescriptlang.org/play?#code/C4TwDgpgBAygFgQ0lAvFA3gKCjqBjAewBsCBXAJwC4oBnYcgSwDsBzAbm1xoYBMIbqTUgFsARhHIcAvh0wAzUkzzAGBJlDCMmweEggAKJgmERqdLSwA0tRJGq7IASmoA3ArwycchJjWIQAOhIWfQADABU4aAASdCMTKSgGGihYgCkYAHkAOQDzZhYGORB9GlsIRylQx2lMTB86KFEiUghwxgRWIlNYctQMfGIyKigAcmbW0etuPgEoAGYoGUxNZh1y-XGW6HoGTpZuqabt9r2uitkG4GPWmABHUgRyaDR0KACPibaO8+nefmoABYlhxVtoHAYtq1aA8nhAjl97o9njVMEA)
Repository: flutter
Issue: The native background color on Windows should be overridable.
Labels: c: new feature,engine,platform-windows,c: proposal,a: desktop,P3,team-windows,triaged-windows

The native background color of a flutter view and flutter app window should be overridable so that users can make desktop apps with a custom shape.

See also https://github.com/flutter/flutter/issues/113975 (macOS) and https://github.com/flutter/flutter/issues/149920 (Linux).
Repository: rust
Issue: Suggest borrowing fields in a match pattern when you're updating a struct in a loop
Labels: A-diagnostics,T-compiler

(Feel free to suggest a better bug report title, I got kinda lost)

Given the following code: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=010d7de8a334afab94a4197fbcf32f57

```rust
pub struct MyStruct {
    pub x: Option<String>,
    pub y: Option<String>,
}

fn main() {
    for _i in 1..3 {
        let struct1 = MyStruct {
            x: Some(String::from("blue triangle")),
            y: None,
        };

        let struct2 = MyStruct {
            y: match struct1.x {
                Some(x) => Some(x.to_uppercase()),
                None => None,
            },
            ..struct1
        };
    }
}
```

The current output is:

```
error[[E0382]](https://doc.rust-lang.org/stable/error-index.html#E0382): use of partially moved value: `struct1.x`
  --> src/main.rs:13:23
   |
8  |           let struct1 = MyStruct {
   |  _______________________-
9  | |             x: Some(String::from("blue triangle")),
10 | |             y: None,
11 | |         };
   | |_________- this reinitialization might get skipped
12 |
13 |           let struct2 = MyStruct {
   |  _______________________^
14 | |             y: match struct1.x {
15 | |                 Some(x) => Some(x.to_uppercase()),
   | |                      - value partially moved here
16 | |                 None => None,
17 | |             },
18 | |             ..struct1
19 | |         };
   | |_________^ value used here after partial move
   |
   = note: partial move occurs because value has type `String`, which does not implement the `Copy` trait
```

Ideally the output should look include:

```
help: borrow this field in the pattern to avoid moving `struct1.x.0`
   |
15 |                 Some(ref x) => Some(x.to_uppercase()),
   |                      +++
```

Rust already knows about this message; if you [remove the outermost loop](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=eefcd9d1345000cf20f3b4d2eff6cb2a) then it gives you the suggestion to add the `ref`. For some reason wrapping the struct/match inside a loop makes it unable to give this suggestion, even though (to my eyes) it still looks appropriate.

<!-- TRIAGEBOT_START -->

<!-- TRIAGEBOT_ASSIGN_START -->

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

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