sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: Nan is output by GRU on mps
Labels: triaged,module: correctness (silent),module: mps

### 🐛 Describe the bug

When I use the mps it turns into nan values for just a simple encoder similar to the tutorial on PyTorch.org. This was after I tried converting the tensors to float32.
```
class Encoder(nn.Module):
    def __init__(self, input_size, hidden_size, num_layers=1):
        super(Encoder, self).__init__()
        self.input_size = input_size
        self.hidden_size = hidden_size
        self.num_layers = num_layers
        self.embedding = nn.Embedding(input_size, hidden_size)
        self.gru = nn.GRU(hidden_size, hidden_size, num_layers, batch_first=True)
    
    def forward(self, x, hidden=None):
        embedded = self.embedding(x)
   
        output, hidden = self.gru(embedded, hidden)
        #the output and the hidden is nan
        return output, hidden
```

I just got the input that is basically a tokenized text from the basic_english and build vocab from iterator in torch text library.  The embedded works fine but after I feed the embedding into the GRU it just turns into nan values.

### Versions

This uses torch text and torch library. 

cc @kulinseth @albanD @malfet @DenisVieriu97 @jhavukainen @razarmehr @abhudev
Repository: godot
Issue: Inferred variables of GDScript type return the old script's constants after changing
Labels: bug,topic:gdscript

### Godot version

4.0.rc1

### System information

Ubuntu 22.04.1 LTS

### Issue description

I'll just lay out the MRP:
- You have class A and class B, both of which have a constant with the same name but different values.
- You make a variable with inferred typing: `var inferred := A`. This variable is now of type GDScript.
- Set `inferred` to B.
- Fetching the constant from `inferred` still returns its value in A.

Also this doesn't happen if I type it like `var inferred: GDScript = A` :neutral_face: I'm going to bed.

### Steps to reproduce

Run the MRP

### Minimal reproduction project

[NoConstUpdate.zip](https://github.com/godotengine/godot/files/10715179/NoConstUpdate.zip)
Repository: deno
Issue: Reference Error in SetTimeout Task Can Crash
Labels: bug,repl

```
$ deno
Deno 1.30.3
exit using ctrl+d, ctrl+c, or close()
REPL is running with all permissions allowed.
To specify permissions, run `deno repl` with allow flags.
> dogshit
Uncaught ReferenceError: dogshit is not defined
    at <anonymous>:2:1
> setTimeout(() => dogshit)
error: {"code":-32000,"message":"Execution was terminated"}
$
```
Repository: go
Issue: x/mobile/bind: C functions in headers should not be PascalCase 
Labels: help wanted,NeedsInvestigation,FeatureRequest,mobile

<!--
Please answer these questions before submitting your issue. Thanks!
-->

### What version of Go are you using (`go version`)?

<pre>
go version go1.17.6 darwin/arm64
</pre>

### Does this issue reproduce with the latest release?
Yes


### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
GO111MODULE="auto"
GOARCH="arm64"
GOBIN=""
GOCACHE="/Users/admin/Library/Caches/go-build"
GOENV="/Users/admin/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/admin/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/admin/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_arm64"
GOVCS=""
GOVERSION="go1.17.6"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/admin/Documents/Development/block/ssi-sdk-mobile/sdk/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/wh/3w785sdn0dj57ljs45b_70dc0000gn/T/go-build1910036593=/tmp/go-build -gno-record-gcc-switches -fno-common"

</pre></details>

### What did you do?

When using `go bind ios` in our project we are getting everything coming through as PascalCase. This is irritating because it's standard for methods and functions to be camelCase, classes to be PascalCase, and so on. But instead `go bind ios` seems to treat everything as PascalCase whether it's a class, function, method, variable, interface or anything else. 
<img width="1098" alt="Screenshot 2023-02-11 at 10 58 40 PM" src="https://user-images.githubusercontent.com/3495974/218295592-a5831362-b681-4e18-940d-23646562f023.png">

At a minimum `go bind ios` and `go bind android` should adopt best practices for casing.

### What did you expect to see?
Classes: PascalCase, methods: camelCase, constants or enums: UPPERCASE, variables: camelCase.


### What did you see instead?
Everything is PascalCase
Repository: terminal
Issue: Tab background should use opacity from profile
Labels: Issue-Feature,Product-Terminal,Area-Theming

The tab background color is picked from the current profile, but the opacity is not.
Which makes the tabs appear even darker than the actual tab contents.

![terminal-1](https://user-images.githubusercontent.com/6878281/218296616-576a83f9-6c0c-41c8-bee3-6cb9264b1491.png) ![terminal-2](https://user-images.githubusercontent.com/6878281/218296617-a690d986-d841-4142-a8d8-9a52959530a5.png)

_Light theme and GitBash on Solarized Dark with 70 opacity and useAcrylic.
Windows-Terminal Version: 1.16.10262.0_

Setting RGBA color values for tab colors in themes already works.
But then you lose the color hue from the current profile.

Hovering over an inactive tab comes close to the expected result.

![terminal-3](https://user-images.githubusercontent.com/6878281/218299141-6e628c30-717b-4777-a53b-24b61ebc19d5.png)

This is somewhat related to #14026 and #14815.
Repository: rust
Issue: More confident const UB warnings where applicable
Labels: A-diagnostics,T-compiler,A-const-eval

### Code


Here we have a small example of something that is wildly UB and, as I understand it, is almost certainly going to remain UB because if we permitted it, it would probably cause many other problems for all of our enum-based niche optimizations ([Playground](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=afcf73b12eb718533927f47ebab450b4)):

```Rust
#![feature(const_ptr_write)]
#![feature(const_mut_refs)]
#![feature(const_maybe_uninit_as_mut_ptr)]
use std::mem::{self, MaybeUninit};
use std::ptr::write_bytes;

pub struct MyStruct {
    pub some_bits: Bitpattern,
}

pub enum Bitpattern {
    Invalid,
    Valid,
}

pub static INVALID: MyStruct = unsafe {
    let mut u = MaybeUninit::uninit();
    let bytes = mem::size_of::<MyStruct>();

    write_bytes(u.as_mut_ptr() as *mut u8 as *mut u8, 0xA5, bytes);
    u.assume_init()
};
```


### Current output

```Shell
error[E0080]: it is undefined behavior to use this value
  --> src/lib.rs:16:1
   |
16 | pub static INVALID: MyStruct = unsafe {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at .some_bits.<enum-tag>: encountered 0xa5, but expected a valid enum tag
   |
   = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
   = note: the raw bytes of the constant (size: 1, align: 1) {
               a5                                              │ .
           }

For more information about this error, try `rustc --explain E0080`.
error: could not compile `playground` due to previous error
```


### Desired output

```Shell
error[E0080]: it is undefined behavior to evaluate this value
  --> src/lib.rs:16:1
   |
16 | pub static INVALID: MyStruct = unsafe {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at .some_bits.<enum-tag>: encountered 0xa5, but expected a valid enum tag
   |
   = note: a `const` or `static` evaluating to invalid values generates an arbitrary result
   = note: running a program that includes invalid `const` or `static` values can lead to undefined behavior

For more information about this error, try `rustc --explain E0080`.
error: could not compile `playground` due to previous error
```


### Rationale and extra context

I believe this is justified by the accepted [Rust RFC 3016: Const UB](https://rust-lang.github.io/rfcs/3016-const-ub.html). It is confusing to invite discourse if we only expect to give one response. We could defer this warning until the invalid `const` or `static` is used in the program in any way, but that seems unnecessary since we are already generating a compilation error for this case.
Repository: deno
Issue: cli: `deno run npm:expo` fails with cannot find module `arg`
Labels: node compat

The package does exist: https://www.npmjs.com/package/arg

```
➜  deno run npm:expo
✅ Granted env access to "OSTYPE".
✅ Granted env access to "EXPO_USE_LOCAL_CLI".
✅ Granted read access to <exec_path>.
⚠️  ┌ Deno requests run access to "/Users/sr/Library/Caches/deno/npm/registry.npmjs.org/@expo/cli/0.4.11/build/
✅ Granted run access to "/Users/sr/Library/Caches/deno/npm/registry.npmjs.org/@expo/cli/0.4.11/build/bin/cli".
node:internal/modules/cjs/loader:1042
  throw err;
  ^

Error: Cannot find module 'arg'
Require stack:
- /Users/sr/Library/Caches/deno/npm/registry.npmjs.org/@expo/cli/0.4.11/build/bin/cli
    at Module._resolveFilename (node:internal/modules/cjs/loader:1039:15)
    at Module._load (node:internal/modules/cjs/loader:885:27)
    at Module.require (node:internal/modules/cjs/loader:1105:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (/Users/sr/Library/Caches/deno/npm/registry.npmjs.org/@expo/cli/0.4.11/build/bin/cli:3:35)
    at Module._compile (node:internal/modules/cjs/loader:1218:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1272:10)
    at Module.load (node:internal/modules/cjs/loader:1081:32)
    at Module._load (node:internal/modules/cjs/loader:922:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:82:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/sr/Library/Caches/deno/npm/registry.npmjs.org/@expo/cli/0.4.11/build/bin/cli'
  ]
}
```
Repository: next.js
Issue: Sometimes Images are completely distorted for Next JS made websites on Google Chrome newer versions
Labels: bug

### Verify canary release

- [x] I verified that the issue exists in the latest Next.js canary release

## Note: I verified the bug by installing next v13.1.7-canary.10 and running a project on Google Chrome and the issue still exists...

### Provide environment information

   Operating System:
      Platform: linux
      Arch: x64
      Version: #1 SMP Debian 5.14.16-1~mx21+1 (2021-11-05)
    Binaries:
      Node: 16.19.0
      npm: 9.2.0
      Yarn: 1.22.19
      pnpm: 7.26.3
    Relevant packages:
      next: 13.1.6
      eslint-config-next: N/A
      react: 18.2.0
      react-dom: 18.2.0

### Which area(s) of Next.js are affected? (leave empty if unsure)

Image optimization (next/image, next/legacy/image)

### Link to the code that reproduces this issue

https://image-legacy-component.nextjs.gallery/layout-fill

### To Reproduce

Check out any Next.js website on Google Chrome Stable (Newer Versions) in Linux, especially on MX Linux, mine is 109.0.5414.119 (Official Build) (64-bit)

For example, visit this [Next.js examples Link](https://image-legacy-component.nextjs.gallery/layout-fill)

I am providing a screenshot below of the following issue in Google Chrome

![image](https://user-images.githubusercontent.com/48426888/218302972-1cb6e7f7-faf0-4d8b-8b02-19eeac16a886.png)


### Describe the Bug

The Bug is image isn't properly loaded or distorted, especially on Google Chrome, but it works fine on Firefox on the same machine...

Below is the screenshot of the same link on Firefox...

![image](https://user-images.githubusercontent.com/48426888/218303058-a8ac08fb-7ff0-4903-9fb3-db754c2f17a2.png)


### Expected Behavior

Images must load all the time properly on Google Chrome for all Next JS made websites...

### Which browser are you using? (if relevant)

Chrome 109.0.5414.119 (Official Build) (64-bit)
Repository: PowerToys
Issue: FancyZones - Single monitor - Layout per desktop
Labels: Needs-Triage

### Description of the new feature / enhancement

The ability to allocate a layout to a specified desktop, when using a single-monitor setup.

![image](https://user-images.githubusercontent.com/2591500/218306586-93979d73-e103-4800-b85c-3af4e9d09850.png)

![image](https://user-images.githubusercontent.com/2591500/218306527-a73151b6-b04d-4494-aa15-7de9e7e5d020.png)

### Scenario when this would be used?

I would like to allocate a layout per desktop so that I can use one for work and one for media.

### Supporting information

I understand I can easily switch between layouts using the `Ctrl + Win + Alt + [Num]` keyboard shortcut, however it would be nice to allocate a layout to a desktop.

I am using Windows 10 Pro.
Repository: godot
Issue: GDScript overridden methods don't enforce base method's type hint
Labels: bug,topic:gdscript

### Godot version

4.0 RC 1

### System information

Mageia 9, Linux

### Issue description

Follow-up to PR #38612, which aimed to solve this but predates GDScript 2.0 and was abandoned. See also the linked proposal https://github.com/godotengine/godot-proposals/issues/811 which may or may not solved together with this issue (it's about overriding `_to_string()` which is a builtin method, so I'm not sure the same reasoning applies).

A method in a derived class which overrides a typed method of its parent class, only validates that the returned type is correct when a new, incompatible type hint is specified. If no type hint is set on the overridden method, no error is raised.

Base script:
```gdscript
# node_base.gd 
extends Node

func _override_return_int() -> int:
        return 1

func _override_return_float() -> float:
        return 1.0
```

Derived script:
```gdscript
extends "res://node_base.gd"

func _override_return_int():
        return "str"

func _override_return_float() -> String:
        return "str"

func _ready():
        print(_override_return_int())
        print(_override_return_float())
```

In this example, `_override_return_int()` without type hint will not raise any warning nor error, and will print `str` even though the base method has `int` as type hint.

The second example with `_override_return_float()` properly raises a parser error because the types don't match:
```
SCRIPT ERROR: Parse Error: The function signature doesn't match the parent. Parent signature is "_override_return_float() -> float".
```

I think the untyped override case should raise the same error if the original method was typed.

### Steps to reproduce

See above.

### Minimal reproduction project

[gdscript_override_type_hint.zip](https://github.com/godotengine/godot/files/10716052/gdscript_override_type_hint.zip)
Repository: godot
Issue: ``depth_draw_never`` moves objects into the transparent pipeline for no reason
Labels: bug,topic:rendering,confirmed,regression,topic:3d

### Godot version

v4.0.rc1.official [8843d9ad3]

### System information

Windows 11, Vulkan

### Issue description

Disabling depth testing or disabling depth drawing unexpectedly removes objects from the opaque pass, so they disappear from screen textures. This is problematic because the user may intend to keep the objects opaque. The user may also wish to write directly to the depth buffer at any time, this is why depth settings and transparency should be decoupled.
![image](https://user-images.githubusercontent.com/50609684/218313847-a774e030-97ad-4953-a997-a4627ac8cfbe.png)

Example:
In Godot 3.5 I am able to create this x-ray effect entirely in the opaque pipeline by utilizing render priority and `render_mode depth_draw_never` in my shader, this is not possible anymore
![image](https://user-images.githubusercontent.com/50609684/218312624-948049bc-e4f7-4e25-94de-7ade4915ae35.png)



### Steps to reproduce

1. Create a new `MeshInstance3D` and assign a mesh
2. Assign a `StandardMaterial3D`
3. Set `depth_draw_mode = disabled`, or set `no_depth_test = true`
4. Check to see if they appear in the screen textures (SCREEN_TEXTURE or DEPTH_TEXTURE) using a screen-reading shader

In the reproduction you'll find 3 objects corresponding to each setting, and a box for peeking at the screen texture. If something doesn't appear in the screen texture, that implies it is not in the opaque pipeline

### Minimal reproduction project

[issue-reproduction.zip](https://github.com/godotengine/godot/files/10716141/issue-reproduction.zip)
Repository: rust
Issue: "unreachable_code" warns even on "unreachable!" itself
Labels: A-lints,A-diagnostics,T-compiler,A-control-flow,L-unreachable_code

### Code

```Rust
pub async fn get(client: &reqwest::Client, params: &[(&str, &str)]) -> String {
    loop {
        let response = client.get("https://example.com")
            .query(params).send().await.unwrap();
        if response.status().is_success() {
            return response.text().await.unwrap();
        }
        assert!(response.status() == reqwest::StatusCode::TOO_MANY_REQUESTS);
    }
    unreachable!();
}
```


### Current output

```Shell
Compiling playground v0.0.1 (/playground)
warning: unreachable statement
  --> src/lib.rs:10:5
   |
2  | /     loop {
3  | |         let response = client.get("https://example.com")
4  | |             .query(params).send().await.unwrap();
5  | |         if response.status().is_success() {
...  |
8  | |         assert!(response.status() == reqwest::StatusCode::TOO_MANY_REQUESTS);
9  | |     }
   | |_____- any code following this expression is unreachable
10 |       unreachable!();
   |       ^^^^^^^^^^^^^^ unreachable statement
   |
   = note: `#[warn(unreachable_code)]` on by default
   = note: this warning originates in the macro `unreachable` (in Nightly builds, run with -Z macro-backtrace for more info)

warning: `playground` (lib) generated 1 warning
    Finished dev [unoptimized + debuginfo] target(s) in 1.11s
```


### Desired output

```Shell
There should be no warning
```


### Rationale and extra context

Code above is based on my actual production code. The intention is this: continue issuing requests as long as we get TOO_MANY_REQUESTS. When we get SUCCESS, return from the function. I put `unreachable!` to the end intentionally: to make sure that that line is actually unreachable. I. e. I want to get panic if I'm wrong.

In this particular example rustc can prove that that piece is unreachable and thus give me a warning. But I don't like it. I don't want to remove `unreachable!`. It is present for a reason.

https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=684eaca4cc578206f971cc6345e3d0c6

Here is even more reduced version: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=e90f7dbeb04fd15ed2ae6354cb158fce (so that you can see that async and reqwest are not related here)

### Other cases

_No response_

### Anything else?

_No response_
Repository: PowerToys
Issue: a general purpose image preview for "first image" inside a zip archive
Labels: Needs-Triage

### Description of the new feature / enhancement

Hello devs.

Some applications produce their archive as a .zip container, labeled with an extension of their own, e.g. Geogebra (java), produces `file.ggb`, that can be unzipped when renamed `file.zip`.  
  
Within this zipped archive, the app stores a png preview of the graphics it displays, that is solely visible inside the java "file open" explorer of Geogebra, but sadly not inside the Windows explorer.  

Here is the content of such an archive :  
```
file.ggb --> file.zip
    geogebra.xml
    geogebra_defaults2d.xml
    geogebra_defaults3d.xml
    geogebra_javascript.js
    geogebra_thumbnail.png      512x508  pixels

"thumbnail" has the size of the screen-capture of the display-window when file is saved.
```

It would make sense ( and be so useful ... ) to have a *generic* preview component that would allow the preview of an embedded picture inside "any files extensions" that are zip containers (disguised), allowing to preview the first embedded image of actual known extensions ( png, jpg, bmp ...) that is larger than an icon-size or a thumbnail-size, e.g. a minimum of 100 pixels on the larger axis ( 100x60 included ).

- many images embedded : display the first having size-limit.
- only one image embedded : display it whatever the size, even an icon-size.  

And this for any "exotic" extension, not only `.ggb`, for which we can register this preview handler ( includes .zip ).  

- watching for a registered "ext" extension,
- reading file.ext as file.zip,
- fetching the proper element inside file.zip by file properties,
- extracting to memory for the preview ...

For an experimented Windows cpp developer (having hands to the whole set of approved templates ...), it should be quite straightforward to write. 
For an old user who knows only some bits of Python and JavaScript, it would take years !

It would also allow a preview of the first image inside a zipped photo-collection !
Thank you for your kind attention upon this suggestion.

Best regards, 
Stanislas.


### Scenario when this would be used?

image preview in the Windows Explorer.

### Supporting information

_No response_
Repository: deno
Issue: Stale entries may remain in lockfile
Labels: needs discussion

Demo:

1. Create `deno.json`

```json
{
	"imports": {
		"strip-indent": "https://esm.sh/strip-indent@4.0.0"
	}
}
```

create `demo.ts`

```ts
import stripIndent from 'strip-indent'
```

2. Run `deno cache demo.ts` and check `deno.lock`:

```json
{
  "version": "2",
  "remote": {
    "https://esm.sh/strip-indent@4.0.0": "18d37d0d7f2d77e3c9ae2e8dfc1acf588fc4f7a80e9b027900d0c655c9c3f544",
    "https://esm.sh/v106/min-indent@1.0.1/deno/min-indent.js": "4ebfae99e012af8c6586925d8bde83a47780375558908291483467d077ebdd71",
    "https://esm.sh/v106/strip-indent@4.0.0/deno/strip-indent.js": "f4c89b4a76b3df456d64e8208acf0b0924d9f01520d63f3f7c7edb546bef3a7f",
    "https://esm.sh/v106/strip-indent@4.0.0/index.d.ts": "445667c274632367bb877593759ec70b0ff1105026efd507b4b374391eb6d6a3"
  }
}
```

3. Change `deno.json` to use npm imports:

```json
{
	"imports": {
		"strip-indent": "npm:strip-indent@4.0.0"
	}
}
```

4, Run `deno cache demo.ts` and check `deno.lock` again:

```json
{
  "version": "2",
  "remote": {
    "https://esm.sh/strip-indent@4.0.0": "18d37d0d7f2d77e3c9ae2e8dfc1acf588fc4f7a80e9b027900d0c655c9c3f544",
    "https://esm.sh/v106/min-indent@1.0.1/deno/min-indent.js": "4ebfae99e012af8c6586925d8bde83a47780375558908291483467d077ebdd71",
    "https://esm.sh/v106/strip-indent@4.0.0/deno/strip-indent.js": "f4c89b4a76b3df456d64e8208acf0b0924d9f01520d63f3f7c7edb546bef3a7f",
    "https://esm.sh/v106/strip-indent@4.0.0/index.d.ts": "445667c274632367bb877593759ec70b0ff1105026efd507b4b374391eb6d6a3"
  },
  "npm": {
    "specifiers": {
      "strip-indent@4.0.0": "strip-indent@4.0.0"
    },
    "packages": {
      "min-indent@1.0.1": {
        "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==",
        "dependencies": {}
      },
      "strip-indent@4.0.0": {
        "integrity": "sha512-mnVSV2l+Zv6BLpSD/8V87CW/y9EmmbYzGCIavsnsI6/nwn26DwffM/yztm30Z/I2DY9wdS3vXVCMnHDgZaVNoA==",
        "dependencies": {
          "min-indent": "min-indent@1.0.1"
        }
      }
    }
  }
}
```

Are those stale `esm.sh` entries expected to remain in the lockfile? How to properly "clean" the lockfile, besides deleting it manually?