sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: Cleanup: Share DST size/align computation logic between codegen backends (and interpreter)
Labels: C-cleanup,A-codegen,A-const-eval,A-cranelift

Currently, each codegen backend and the MIR interpreter needs to re-implement this logic:

https://github.com/rust-lang/rust/blob/50f6a9ed87e47c7a8ff6aefcde01a33821e80e20/compiler/rustc_codegen_ssa/src/glue.rs#L11

https://github.com/rust-lang/rust/blob/e54a13f18bf2873f12d556fb05bb60f2a7f75bfa/compiler/rustc_codegen_cranelift/src/unsize.rs#L190

https://github.com/rust-lang/rust/blob/fd59d44f5880fea109fe68e31fab2486cd686fc6/compiler/rustc_const_eval/src/interpret/eval_context.rs#L570

Turns out the interpreter version actually [has a bug](https://github.com/rust-lang/miri/issues/2632). Ideally we'd only have this logic once so that we don't need the same subtle logic in multiple places.

Cc @bjorn3 @eddyb
Repository: angular
Issue: Allow setting enabled/disabled state of AbstractControl using a boolean value
Labels: area: forms,P3

### Which @angular/* package(s) are relevant/related to the feature request?

_No response_

### Description

Currently, in order to disable or enable an `AbstractControl` depending on another control's value or state, one has to use very verbose explicit code using both if/else branches of a condition:

```ts
.subscribe(value => {
  if(valueMeetsCondition(value)){
    this.ctrl.enable()
  } else {
    this.ctrl.disable()
  }
});
```
or its ternary equivalent.

It would simplify the code if we could say this instead:

```ts
.subscribe(value => this.ctrl.setEnabledState(valueMeetsCondition(value)));
```

### Proposed solution

In [AbstractControl API](https://angular.io/api/forms/AbstractControl), add a pair of methods that accept a boolean value:

- `setDisabledState` 

```ts
setDisabledState(isDisabled: boolean, opts: { onlySelf?: boolean; emitEvent?: boolean; } = {}): void
```

-  `setEnabledState`

```ts
setEnabledState(isEnabled: boolean, opts: { onlySelf?: boolean; emitEvent?: boolean; } = {}): void
```

I think it's important to have a pair of companions, just like we have `valid`/`invalid`, `enabled`/`disabled` property pairs on [AbstractControl](https://angular.io/api/forms/AbstractControl#abstractcontrol) for the sake of coding convenience.

It would allow developers for a smoother migration and cleaner code without the need of negating the conditions in their existing code.

### Alternatives considered

Workarounds? Described above which I want to stop using.
Alternative solutions? Can't think of any.
Repository: PowerToys
Issue: Move tiled windows between Virtual Desktops.
Labels: Idea-Enhancement,Product-FancyZones,Needs-Triage

### Description of the new feature / enhancement

Fancy Zones adds a new level of window management capability, but I'm feeling a lack of two key features.

I have looked through the documentation and tried many settings and combinations, but I was unable to find a way to move a tile window managed by Fancy Zones between virtual desktops using keyboard shortcuts. I would like to suggest it. 

The first feature is the possibility to **move tiled windows between virtual desktops**.
Just like we can quickly switch between virtual desktops with `win + ← ` and `win + →`. 

We can hold `win + alt + →` or `win + alt + ←` and Fancy Zones move it to the next virtual desktop on the right or left respectively.

The second feature is the possibility to **change the currently focused window with keyboard arrows**.
Works just as `alt + tab`, but more fluid since we can just use the relative arrows keys plus an alternator. 



### Scenario when this would be used?

When we have a set of multiple virtual desktops to perform different jobs with tiled zones on each virtual desktop.
We need _to quickly move a tiled window between a Virtual Desktop to another_ just using a simple keyboard shortcut. 

The following shortcuts `win + arrows` and `win + ctrl + alt + arrows` are already being used and attached to our “muscle memory”, by adding similar shortcuts we can have those two new features to extend our productivity when working.

### Supporting information

Currently, there's already a feature to switch between windows that are overlapped with `win + pagedown` and `win + pageup`. But this works only to switch the focus between overlapped windows, not on windows side-by-side.
Repository: pytorch
Issue: A segment fault can be triggered in fbgemm_pack_gemm_matrix_fp16
Labels: module: crash,triaged,module: third_party,module: half

### 🐛 Describe the bug

The following code can trigger a segment fault:
````python
import torch
import numpy as np
print(torch.__version__)
input = torch.rand([12, 10, 0, 8, 7], dtype=torch.float32)
res = torch.fbgemm_pack_gemm_matrix_fp16(
    input
)
````
Output:
````
1.13.0+cu117
Segmentation fault (core dumped)
````

### Versions

PyTorch version: 1.13.0+cu117
Is debug build: False
CUDA used to build PyTorch: 11.7
ROCM used to build PyTorch: N/A

OS: Ubuntu 20.04.5 LTS (x86_64)
GCC version: (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
Clang version: 11.0.0-2~ubuntu20.04.1
CMake version: version 3.16.3
Libc version: glibc-2.31

Python version: 3.10.6 (main, Oct 24 2022, 16:07:47) [GCC 11.2.0] (64-bit runtime)
Python platform: Linux-5.15.0-52-generic-x86_64-with-glibc2.31
Is CUDA available: True
CUDA runtime version: 11.8.89
CUDA_MODULE_LOADING set to: LAZY
GPU models and configuration: GPU 0: Tesla V100-PCIE-16GB
Nvidia driver version: 520.61.05
cuDNN version: Probably one of the following:
/usr/local/cuda-11.0/targets/x86_64-linux/lib/libcudnn.so.8.1.1
/usr/local/cuda-11.0/targets/x86_64-linux/lib/libcudnn_adv_infer.so.8.1.1
/usr/local/cuda-11.0/targets/x86_64-linux/lib/libcudnn_adv_train.so.8.1.1
/usr/local/cuda-11.0/targets/x86_64-linux/lib/libcudnn_cnn_infer.so.8.1.1
/usr/local/cuda-11.0/targets/x86_64-linux/lib/libcudnn_cnn_train.so.8.1.1
/usr/local/cuda-11.0/targets/x86_64-linux/lib/libcudnn_ops_infer.so.8.1.1
/usr/local/cuda-11.0/targets/x86_64-linux/lib/libcudnn_ops_train.so.8.1.1
/usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn.so.8.2.1
/usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_adv_infer.so.8.2.1
/usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_adv_train.so.8.2.1
/usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_cnn_infer.so.8.2.1
/usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_cnn_train.so.8.2.1
/usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_ops_infer.so.8.2.1
/usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_ops_train.so.8.2.1
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

Versions of relevant libraries:
[pip3] numpy==1.23.4
[pip3] torch==1.13.0
[conda] numpy                     1.23.4                   pypi_0    pypi
[conda] torch                     1.13.0                   pypi_0    pypi
Repository: godot
Issue: `Uncaught (in promise) TypeError: AudioWorkletNode constructor: Argument 1 is not an object.` error in web editor
Labels: bug,platform:web

### Godot version

3.5.1

### System information

Web version - https://editor.godotengine.org/releases/latest/

### Issue description

When trying to run project in web editor that only do some simple calculations in GDScript side, then I got this error (strange because I don't use any audio in scene)
```
Uncaught (in promise) TypeError: AudioWorkletNode constructor: Argument 1 is not an object.
    promise https://editor.godotengine.org/releases/latest/godot.tools.js:176
    promise callback*create https://editor.godotengine.org/releases/latest/godot.tools.js:176
    Og https://editor.godotengine.org/releases/latest/godot.tools.js:281
    _main https://editor.godotengine.org/releases/latest/godot.tools.js:309
    gj https://editor.godotengine.org/releases/latest/godot.tools.js:320
    v https://editor.godotengine.org/releases/latest/godot.tools.js:344
    v https://editor.godotengine.org/releases/latest/godot.tools.js:343
    promise callback*p/start/v< https://editor.godotengine.org/releases/latest/godot.tools.js:343
    promise callback*start https://editor.godotengine.org/releases/latest/godot.tools.js:343
    Execute https://editor.godotengine.org/releases/latest/:650
    Execute https://editor.godotengine.org/releases/latest/:649
    promise callback*Execute https://editor.godotengine.org/releases/latest/:648
    Pf https://editor.godotengine.org/releases/latest/godot.tools.js:296
    b https://editor.godotengine.org/releases/latest/godot.tools.js:293
    Y https://editor.godotengine.org/releases/latest/godot.tools.js:180
```
also cannot close project with X, due this error 
```
Uncaught RuntimeError: indirect call to null
    request_quit https://editor.godotengine.org/releases/latest/godot.tools.js:227
    j https://editor.godotengine.org/releases/latest/godot.tools.js:345
    closeGame https://editor.godotengine.org/releases/latest/:502
    onclick https://editor.godotengine.org/releases/latest/:1
```

### Steps to reproduce

- Open web editor https://editor.godotengine.org/releases/latest/
- Import minimal project
- Run `ManualTesting.tscn`

### Minimal reproduction project

[Qarminer.zip](https://github.com/godotengine/godot/files/9894042/Qarminer.zip)
Repository: next.js
Issue: Next.js 13 next/image `blurDataURL` not working without base64 Data URL
Labels: bug,linear: next

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

 Operating System:
      Platform: win32
      Arch: x64
      Version: Windows 10 Home Single Language
    Binaries:
      Node: 16.13.2
      npm: N/A
      Yarn: N/A
      pnpm: N/A
    Relevant packages:
      next: 13.0.0
      eslint-config-next: 13.0.0
      react: 18.2.0
      react-dom: 18.2.0

### What browser are you using? (if relevant)

_No response_

### How are you deploying your application? (if relevant)

vercel

### Describe the Bug

next/image blur placeholder not working in both development and production.
Demo:
https://nextjs-13-image.vercel.app/
It's working on NextJS 12

### Expected Behavior

Image Blur when images are loading 

### Link to reproduction

https://github.com/imPrathamDev/nextjs-13-image

### To Reproduce

https://github.com/imPrathamDev/nextjs-13-image

<sub>[NEXT-1370](https://linear.app/vercel/issue/NEXT-1370/nextjs-13-nextimage-blurdataurl-not-working-without-base64-data-url)</sub>
Repository: deno
Issue: lsp - quick fix for unversioned npm specifiers
Labels: suggestion,lsp,node compat

We should have a quick fix to change an import specifier like `import chalk from "npm:chalk";` to have a version requirement like `import chalk from "npm:chalk@^5.1";`. Probably `@^<major>.<minor>` or maybe have a variety of options.

Relates to https://github.com/denoland/deno_lint/issues/1094
Repository: stable-diffusion-webui
Issue: [Feature Request]: Possible storage saving through nondestructive dehydration of model/checkpoint
Labels: enhancement

### Is there an existing issue for this?

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

### What would your feature do ?

 Possible memory storage saving



### Proposed workflow

Integration of a tool that allows  the "dehydration" of a Dreamboot model in a nondestructive way so that it can fit in 1GB of space:
(https://github.com/bmaltais/dehydrate)




### Additional information

More details:
https://www.reddit.com/r/StableDiffusion/comments/yg0k6r/dehydrate_dreambooth_model_so_save_space_and/
Repository: go
Issue: gollvm: invalid argument to -O flag: fast
Labels: help wanted,NeedsInvestigation,FeatureRequest

<!--
Please answer these questions before submitting your issue. Thanks!
-->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.18 gollvm LLVM 15.0.0git 20221028 (experimental) linux/amd64
</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>
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/alex/.cache/go-build"
GOENV="/home/alex/.config/go/env"
GOEXE=""
GOEXPERIMENT="fieldtrack,regabiwrappers"
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/alex/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/alex/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/home/alex/test/gollvm/install"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/alex/test/gollvm/install/tools"
GOVCS=""
GOVERSION="go1.18 gollvm LLVM 15.0.0git 20221028 (experimental)"
GCCGO="/home/alex/test/gollvm/install/bin/llvm-goc"
GOAMD64="v1"
AR="ar"
CC="/usr/bin/cc"
CXX="/usr/bin/c++"
CGO_ENABLED="1"
GOMOD="/home/alex/test/go/test/bench/go1/go.mod"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build712666364=/tmp/go-build -gno-record-gcc-switches -funwind-tables"
</pre></details>

### What did you do?

<pre>
$ go build -gccgoflags="-Ofast"
/home/alex/test/gollvm/install/bin/llvm-goc: invalid argument to -O flag: fast
</pre>

<!--
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on go.dev/play is best.
-->



### What did you expect to see?

Successful build

### What did you see instead?

Error

Is there any reason why gollvm does not support -Ofast optimization level? For example the gccgo works fine with this option. If there is no reason I can add a support of this feature.
Repository: scrcpy
Issue: Event script for mouse and keyboard mainly for phones with broken screens.
Labels: feature request

 - [x] I have checked that a similar [feature request](https://github.com/Genymobile/scrcpy/issues?q=is%3Aopen+is%3Aissue+label%3A%22feature+request%22) does not already exist.

**Is your feature request related to a problem? Please describe.**
Unable to control the phone with broken screen and adb turned off.

**Describe the solution you'd like**
Add the ability to create input event macros that you save to a file. This will allow you to create a macro on your phone with adb enabled. Then you can run this macro on the phone without adb enabled to run this option. 

**Describe alternatives you've considered**
Ready preset with the ability to play scripts.

**Additional context**
Add any other context or screenshots about the feature request here.
Repository: create-react-app
Issue: How to change the index.html being loaded in Heroku
Labels: needs triage

I have successfully deployed my react app to my heroku server, however, I am getting a blank white screen.
After doing some research, apparently it is because the `index.html` file is being loaded.
I went to the `index.html` file and added text and redeployed it and the text showed.

Is it possible for any method to load the `App.js` instead of the `index.html`? 
Please could I have help on displaying my app and not just the `index.html` file?
Thank you.
Repository: opencv
Issue: Support TGA (Targa) files
Labels: feature,priority: low,category: imgcodecs

### Descripe the feature and motivation

Please consider support .tga files in future. There are great for so many applications. Thank you.

### Additional context

_No response_
Repository: rust
Issue: `Duration` `Debug` for 2.5s rounds inconsistently for `duration` and `duration.as_secs_f64()`
Labels: C-bug,T-libs

```rust
use std::time::Duration;

fn main() {
    let a = Duration::new(2, 500000000);
    println!("{:.0?}", a);
    println!("{:.0?}s", a.as_secs_f64());
    println!("{:.0?}", Duration::MAX);
}
```

I expected this to print (round to even):
```
2s
2s
18446744073709551616s
```

Instead, this prints:
```
3s
2s
0s
```
Repository: PowerToys
Issue: [Preview Pane] No Select-All/Copy for Source Files in Monaco File Explorer Preview
Labels: Issue-Bug,Product-File Explorer,Needs-Triage

### Microsoft PowerToys version

0.63.0

### Installation method

PowerToys auto-update

### Running as admin

_No response_

### Area(s) with issue?

{"File Explorer"=>"Preview Pane"}

### Steps to reproduce

1) Open up a source file
2) Click in the preview pane file
3) Try and hit `Ctrl+A` to Select all text, all files selected in file explorer instead.

### ✔️ Expected Behavior

Should be able to select all text in the preview (in order to copy it) without having to use mouse and scroll through entire file (i.e. keyboard shortcut and/or context menu option)

Related to #12637 and #3526

### ❌ Actual Behavior

File Explorer gets the keyboard command and selects all files in the folder.

No option in context menu either:

![image](https://user-images.githubusercontent.com/8959496/198858809-1a04d5b3-ff35-43b4-8d66-facc40d95467.png)

Looks like Ctrl+C for the shortcut for copy doesn't work either, need to select it in context menu to copy text.

### Other Software

_No response_
Repository: go
Issue: cmd/vet: `go vet` complains `unsafe.Slice` usage
Labels: NeedsInvestigation,Analysis

<!--
Please answer these questions before submitting your issue. Thanks!
-->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.19.2 darwin/amd64
</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>
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/hajimehoshi/Library/Caches/go-build"
GOENV="/Users/hajimehoshi/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/hajimehoshi/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/hajimehoshi/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.19.2"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/hajimehoshi/test/vet/go.mod"
GOWORK=""
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 x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/60/khbk2xqn1c5bml1byjn89dwc0000gn/T/go-build1170881183=/tmp/go-build -gno-record-gcc-switches -fno-common"
</pre></details>

### What did you do?

<!--
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on go.dev/play is best.
-->

```go
package main

import (
        "unsafe"
)

func main() {
        var foo uintptr = 0x12345678
        _ = unsafe.Slice((*byte)(unsafe.Pointer(foo)), 0)
}
```

```
module foo

go 1.19
```

and run `go vet`

### What did you expect to see?

No complaints

### What did you see instead?

```
$ go vet 
# foo
./main.go:9:27: possible misuse of unsafe.Pointer
```

When `reflect.SliceHeader` is used, there is no such a problem since the `Data` field is `uintptr` and we could use a uintptr value without warnings. So this sounds like a kind of regression.
Repository: TypeScript
Issue: TS server not reload tsconfig when extended tsconfig is installed
Labels: Bug,Help Wanted

# Bug Report

My package's tsconfig extends a shared tsconfig from another npm package.
Package tsconfig
```json
{
    "extends": "some-config-package/config/tsconfig.shared.json",
    "compilerOptions": {
        "outDir": "./dist",
        "rootDir": "./src",
    }
}
```

`tsconfig.shared.json` in some-config-package
```json
{
    "compilerOptions": {
        "jsx": "react-jsx",
    }
}
```

With TS server up and running:
When some-config-package is installed, the TS server does not pick up the extended tsconfig automatically and the tsconfig shown TS server log is still:
```json
{
    "compilerOptions": {
        "outDir": "./dist",
        "rootDir": "./src",
    }
}
```

### 🔎 Search Terms

TS server, tsconfig

### 🕗 Version & Regression Information

* 4.8.4

### 🙁 Actual behavior

When the extended tsconfig file is installed, TS server will not reload the tsconfig

### 🙂 Expected behavior

When the extended tsconfig file is installed, TS server should parse the extended tsconfig and reload tsconfig

### Question for workaround without restarting TS server

I know restarting TS server solves the issue.
I created a TS server plugin. Is there a way to force TS server to reload tsconfig in plugin? I found this function `ts.server.PluginCreateInfo.project.setCompilerOptions`. If I call this function from my plugin to manually set compiler options used for TS server, will it cause some unexpected behavior or inconsistent state for TS server?
Repository: java-design-patterns
Issue: Translate to Arabic
Labels: info: help wanted,type: feature,epic: documentation

This task tracks the translation of the patterns. More information about the translation process is available at https://github.com/iluwatar/java-design-patterns/wiki/15.-Support-for-multiple-languages

Acceptance criteria

- The patterns have been translated
- The patterns can be browsed in Github and on the website https://java-design-patterns.com
Repository: java-design-patterns
Issue: Translate to Bengali (Bangla)
Labels: info: help wanted,type: feature,epic: documentation

This task tracks the translation of the patterns. More information about the translation process is available at https://github.com/iluwatar/java-design-patterns/wiki/15.-Support-for-multiple-languages

Acceptance criteria

- The patterns have been translated
- The patterns can be browsed in Github and on the website https://java-design-patterns.com
Repository: java-design-patterns
Issue: Translate to German
Labels: info: help wanted,type: feature,epic: documentation

This task tracks the translation of the patterns. More information about the translation process is available at https://github.com/iluwatar/java-design-patterns/wiki/15.-Support-for-multiple-languages

Acceptance criteria

- The patterns have been translated
- The patterns can be browsed in Github and on the website https://java-design-patterns.com
Repository: java-design-patterns
Issue: Translate to Greek
Labels: info: help wanted,type: feature,epic: documentation

This task tracks the translation of the patterns. More information about the translation process is available at https://github.com/iluwatar/java-design-patterns/wiki/15.-Support-for-multiple-languages

Acceptance criteria

- The patterns have been translated
- The patterns can be browsed in Github and on the website https://java-design-patterns.com
Repository: java-design-patterns
Issue: Translate to Spanish
Labels: info: help wanted,type: feature,epic: documentation

This task tracks the translation of the patterns. More information about the translation process is available at https://github.com/iluwatar/java-design-patterns/wiki/15.-Support-for-multiple-languages

Acceptance criteria

- The patterns have been translated
- The patterns can be browsed in Github and on the website https://java-design-patterns.com
Repository: java-design-patterns
Issue: Translate to French
Labels: info: help wanted,type: feature,epic: documentation

This task tracks the translation of the patterns. More information about the translation process is available at https://github.com/iluwatar/java-design-patterns/wiki/15.-Support-for-multiple-languages

Acceptance criteria

- The patterns have been translated
- The patterns can be browsed in Github and on the website https://java-design-patterns.com