sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: angular
Issue: Decimal Pipe not formatting value correctly
Labels: area: common,P3

### Which @angular/* package(s) are the source of the bug?

common

### Is this a regression?

No

### Description

Input (string) : "123456789.123456789"
Format : 0.0-9
Output : 123,456,789.12345679
Expected : 123,456,789.123456789

template expression : {{input | number: format}}

### Please provide a link to a minimal reproduction of the bug

https://stackblitz.com/edit/angular-ivy-ycarro?file=src/app/app.component.html

### Please provide the exception or error you saw

```true
NA
```


### Please provide the environment you discovered this bug in (run `ng version`)

```true
Angular: 14.0.0
```


### Anything else?

_No response_
Repository: create-react-app
Issue: react-scripts 5.0.1 library having vulnerable transitive libraries 
Labels: needs triage,issue: bug report

We are using react-scripts 5.0.1 library, under this library having vulnerable transitive libraries 
1. terser/5.13.1
2. css-whatv3.4.2
3. nth-check/1.0.2

1. terser/5.13.1 is  before 4.8.1, from 5.0.0, and before 5.14.2 are vulnerable to Regular Expression Denial of Service (ReDoS) due to insecure usage of regular expressions and CVE: CVE-2022-25858(BDSA-2022-2526)
2. css-whatv3.4.2 is incorrectly implements Linear Time Complexity. An attacker can take advantage of this in order to overload system resources and cause a denial-of-service (DoS) and CVE : BDSA-2021-1962
3. nth-check/1.0.2 is vulnerable to Inefficient Regular Expression Complexity and CVE: 
CVE-2021-3803(BDSA-2021-2906)

We would expect to upgrade the react-scripts 5.0.1 to the latest version with 
1. terser/5.13.1 to latest version terser/5.15.1
2. css-whatv3.4.2 to latest version  css-what v6.1.0
3. nth-check/1.0.2 to latest version nth-check/2.1.1

using vulnerable react-scripts 5.0.1 makes our product makes vulnerable please make upgrade the react-scripts 5.0.1 to the latest version with transitive dependencies security patches
Repository: stable-diffusion-webui
Issue: [Feature request] Persistent form or form manager (Save forms and automatic fill) in text2img
Labels: enhancement

Persistent form or Form manager where to save the form state with all the data and to be able to load it again in a simple and fast way.

When the web interface crashes, all entered data (positive and negative prompt, sampling steps, sampler...) are lost. To avoid Copy Paste it would be convenient to have a Form manager where to save the form state with all the data and to be able to load it again in a simple and fast way.

The simple solution is to remember the last form data in a persistent way.

The complex solution is to create a Prompts manager in a new window of the form where to have all the prompts that have been saved and to be able to load them directly. This way sharing them is also easier.
Repository: PowerToys
Issue: Add Hotkeys for PowerToRun
Labels: Idea-Enhancement,Needs-Triage

### Description of the new feature / enhancement

Would be nice to have a hotkey to select proposed search results in powertoys run. I believe that's can save some time and improve usability : ) 
For example: ALT+1, ALT+2 ...., ALT+9
![image](https://user-images.githubusercontent.com/10092371/196705258-5fb6b9d2-69b9-4089-a7b5-38b3cf4d0663.png)


### Scenario when this would be used?

I use powertoys run to avoid using mouse. To keep my hands on a keyboard (in the right position). This feature can save some focus while working. 

### Supporting information

_No response_
Repository: vscode
Issue: Inline completions and snippets collide
Labels: feature-request,inline-completions

* enable inline completions
* trigger a snippets with multiple placeholders
* type inside a placeholder, inline completions show
* press `tab` to advance to the next placeholder
* 😕 the completion is accepted...
Repository: tauri
Issue: [feat] Call javascript function from Rust (expose wry's eval_with_callback in tauri)
Labels: type: feature request

### Describe the problem

I recently have a project that needs to call a certain calculation function of a javascript library and get its result, which needs to be called in the rust code.

I have found the discussion https://github.com/tauri-apps/tauri/discussions/3018.
But the `window.eval("window['function_name']()")` solution can not be called with arguments and can not return data.

### Describe the solution you'd like

I would like to call a javascript function with arguments in rust code and can get its return data.

### Alternatives considered

_No response_

### Additional context

_No response_
Repository: vscode
Issue: Show file size and date modified in file explorer.
Labels: feature-request,file-explorer

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->
VSCode's file explorer currently doesn't show any attributes of files (at least not to a screen reader). I'm not able to confirm if it shows them visually, but I doubt it. Attributes such as file size and last modified date can be quite helpful when working on a code project. Is it possible to add these by chance? Thanks!
Repository: node
Issue: doc, stream: incomplete readable._read description
Labels: doc,stream

### Affected URL(s)

https://nodejs.org/dist/latest-v19.x/docs/api/stream.html#readable_readsize

### Description of the problem

Now docs say

> When [readable._read()](https://nodejs.org/dist/latest-v19.x/docs/api/stream.html#readable_readsize) is called, if data is available from the resource, the implementation should begin pushing that data into the read queue using the [this.push(dataChunk)](https://nodejs.org/dist/latest-v19.x/docs/api/stream.html#readablepushchunk-encoding) method.

but they don't say what to do if data is **not yet** available from the resource. Also, the overall text creates an impression (at least for me) that it's enough to implement this method only for the stream to work. Only the example for `readable.push` sheds some light on how it is supposed to deal with resources that are being written while reading. If that's a recommended way, I think it should be mentioned as such and also underline that this way fits for Node's Readable streams as well.
Repository: godot
Issue: Autosave not working for built-in script
Labels: bug,topic:editor,needs testing,crash

### Godot version

v3.5.stable.official [991bb6ac7]

### System information

Windows 11 Home. Version 22H2

### Issue description

When working on a "stand-alone" script (tool, EditorScript....) and running it by clicking "File" -> "Run" (shortcut: Control - Shift -X) it isn't saved before execution even though Auto Save - Save Before Running is turned on.

I have been working on a script for a few hours and ran it multiple times but then on a run (the last run :-) ), it crashed the editor. When reopening the editor the file was all the way back to the version I left off with last night when closing the editor.

Yes, I know, never trust auto-save, and do git commits for every line of new code :-) but alas, I have gotten lazy and just relied on auto-save.

### Steps to reproduce

I doubt it makes any difference in this case since the auto-saving of the script should have been performed many times earlier over the last few hours, and at the very least right before the run that crashed the editor.

### Minimal reproduction project

_No response_
Repository: rust
Issue: Seems like quantificator symbol do not works correctly in macros expression
Labels: A-macros,T-compiler,C-bug,WG-macros

I tried this code:

```rust
#[macro_export]
macro_rules! vec2 {
    ( $( $x:expr ),* ) => {
        {
            let mut temp_vec = Vec::new();
            $(
                temp_vec.push($x);
            )? // this one works the same as below
            temp_vec
        }
    };
}

#[macro_export]
macro_rules! vec3 {
    ( $( $x:expr ),* ) => {
        {
            let mut temp_vec = Vec::new();
            $(
                temp_vec.push($x);
            )* // this one works the same as above
            temp_vec
        }
    };
}
```

I expected to see this happen: *macros expression that use "?" should return error*

Instead, this happened: *both macros works in same way*

### Meta

`rustc --version --verbose`:
```
rustc 1.60.0 (7737e0b5c 2022-04-04)
binary: rustc
commit-hash: 7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c
commit-date: 2022-04-04
host: x86_64-pc-windows-msvc
release: 1.60.0
LLVM version: 14.0.0

```
Repository: godot
Issue: Skeleton.set_bone_rest() puts meshes into a state that can only be resolved by calling Mesh._initialize_skinning()
Labels: topic:rendering,documentation,topic:animation,topic:3d

### Godot version

3.5

### System information

Linux

### Issue description

I was trying to overcome a [limitation in Blender](https://blender.stackexchange.com/questions/277270/how-to-make-the-gltf-import-preserve-skeleton-bone-orientations) by rewriting the rest pose transforms in the Skeleton so they were axially aligned with the -Z instead of +Y (as required for [OpenXR hand tracking](https://registry.khronos.org/OpenXR/specs/1.0/html/xrspec.html#_conventions_of_hand_joints)).

Unfortunately whenever you change any of these bone rest transforms the mesh gets totally screwed up:
![Screenshot from 2022-10-19 16-41-54](https://user-images.githubusercontent.com/677254/196741504-11f61285-2658-480c-b06b-feac16284972.png)

After much digging in the source code, I got it to work by setting a MeshInstance skin parameter to "" to trick the system into calling [MeshInstance::_initialize_skinning()](https://github.com/godotengine/godot/blob/3.5/scene/3d/mesh_instance.cpp#L206) to recalculate against the new rest poses.

![Screenshot from 2022-10-19 16-42-15](https://user-images.githubusercontent.com/677254/196749841-4334fd9b-69f6-4784-bb69-e16f588771c6.png)

I've filed this as a bug because calling `Skeleton.set_bone_rest()` when the skeleton is already connected to a mesh always leaves the mesh skin in an unusable state.

We should maybe add a note to the [set_bone_rest()) docs](https://docs.godotengine.org/en/stable/classes/class_skeleton.html?highlight=set_bone_rest#class-skeleton-method-set-bone-rest) to warn people to use with care.

### Steps to reproduce

See in the minimal project.

```GDscript
func _ready():
	var skel = $blender2bone4/Armature/Skeleton
	skel.set_bone_rest(1, Transform(Basis(), Vector3(0,0.11,0)))

	var meshinstance = skel.get_node("Sphere001")
	var mesh = meshinstance.mesh

# ****UNCOMMENT THIS**** to force MeshInstance::_initialize_skinning() to be called
# which results it being changed and then defaulting back to ".." 

#	meshinstance.skeleton = ""
```	


### Minimal reproduction project

[bonerestproblem.zip](https://github.com/godotengine/godot/files/9822038/bonerestproblem.zip)
Repository: svelte
Issue: Easy workaround to put component classes to childs (without global)
Labels: css

### Describe the problem

Sometimes, we need to use :global() styles
to modify child components
Otherwise, it would not work.

```
<div>
    <Icon class="extra" />
</div>

<style>
:global(.extra) {
    color: red;
}
</style>
```



### Describe the proposed solution

MAGIC value $HASH
$HASH is replaced with the value (for example: svelte-urs9w7) of component hash

The code could look so:

```
<div>
    <Icon class="{$HASH} extra" />
</div>

<style>
.extra {
    color: red;
}
</style>
```

finally - Icon class turn to:
class="svelte-urs9w7 extra"


### Alternatives considered

Alternative: do it automatic

Add $HASH to any child component, that use class, defined in style-block

### Importance

i cannot use svelte without it
Repository: godot
Issue: NOTIFICATION_TRANSFORM_CHANGED only happens once
Labels: bug,topic:core,confirmed

### Godot version

3.5.1

### System information

Linux Mint

### Issue description

Setting the position on a parent node does only triggers NOTIFICATION_TRANSFORM_CHANGED on the child nodes once.

![image](https://user-images.githubusercontent.com/78934401/196757720-71057dd2-af00-438f-a000-f0da85ee1142.png)

This is due to an error in the design of:

`CanvasItem::_notify_transform()`

Namely, the notification is ignored if global_invalid is set to true.

```
if (/*p_node->xform_change.in_list() &&*/ p_node->global_invalid) {
	return; //nothing to do
}

p_node->global_invalid = true;
```

`global_invalid` is only set to false in  `CanvasItem::get_global_transform()`

Which is not called.

The concept of 'don't put this thing in the list twice' should not be overlapped with the concept of 'the global transform is dirty'. 

I am surprised and confused this issue has been undetected for so long.

I am sure you are surprised too, so I have attached a reproduction project to prove the existence of the bug.

### Steps to reproduce

Test script that moves the grandparent, parent or child every second:
```
extends Node2D

onready var child := $Parent/Child as Node2D
onready var parent := $Parent as Node2D

func _ready():
	var move_delta := 100.0
	var i := 0
	while true:
		yield(get_tree().create_timer(1.0), "timeout")
		print("\n")
		match i:
			0:
				print("moving grandparent")
				position = position + Vector2.RIGHT * move_delta
			1:
				print("moving parent")
				parent.position = parent.position + Vector2.RIGHT * move_delta
			2:
				print("move child")
				child.position = child.position + Vector2.RIGHT * move_delta
		i = (i + 1) % 3

```

Listening script:

```
extends Node2D

func _ready():
	set_notify_transform(true)

func _notification(what):
	match what:
		NOTIFICATION_TRANSFORM_CHANGED:
			print("NOTIFICATION_TRANSFORM_CHANGED")

```

Output:

```
moving grandparent
[Child] NOTIFICATION_TRANSFORM_CHANGED


moving parent


move child

```
### Minimal reproduction project

[NotificationTransformChanged.zip](https://github.com/godotengine/godot/files/9822696/NotificationTransformChanged.zip)
Repository: go
Issue: x/crypto: tag v1.0.0
Labels: NeedsDecision

x/ repo tagging is here!

@heschi mentioned in #48523 that the system supports v1 as well, and I think that's a better fit for x/crypto than v0. The API is absolutely full of things I wish were not there, but it's been around for too long, and I don't think it would be tenable to make any backwards-incompatible changes without bumping the import path (which going from v0 to v1 doesn't do).

In practice, we've been upholding the Go Compatibility Promise in x/crypto for years, so we're effectively already at v1, we just need to call it that.

/cc @golang/security
Repository: stable-diffusion-webui
Issue: [Feature Request] Saving outputs to S3
Labels: enhancement

**Is your feature request related to a problem? Please describe.**
I'm running webui with GPU-intensive instance of some kind of cloud service, and in my situation, it is pretty hard to add block storage or expand the capacity. Currently I'm utilizing NFS or sshfs to mount the outputs directory at separate external server, but rather, I want the webui itself to have the ability to export output directly to s3, without consuming disk capacity.

**Describe the solution you'd like**
Feature to export output to a particular s3 bucket using aws credentials given through environmental variables or other files

**Describe alternatives you've considered**
NFS, sshfs, s3fs, etc.
Repository: rust
Issue: transitive coercion to slice doesn't work for arrays
Labels: C-bug,A-coercions,A-array

The first three coercions here work fine, but the last one fails on both `v1.64.0` and `v1.66.0-nightly` ([playground link](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=7ab90c5b24fc5b18fe23f31d3595f6c4)):

```rust
let vec: Vec<i32> = vec![1, 2, 3];
let _: &[i32] = &vec;

let array: [i32; 3] = [1, 2, 3];
let _: &[i32] = &array;

let vec_rc: Rc<Vec<i32>> = Rc::new(vec![1, 2, 3]);
let _: &[i32] = &vec_rc;

let array_rc: Rc<[i32; 3]> = Rc::new([1, 2, 3]);
let _: &[i32] = &array_rc;  // error[E0308]: mismatched types
```

Is that expected? [The Reference mentions](https://doc.rust-lang.org/reference/type-coercions.html#coercion-types) that transitive coercions are "not fully supported yet", so maybe this is a known limitation, but I wasn't able to find anything explicit about it. This [old unfinished RFC](https://github.com/rust-lang/rust/issues/18469) might also be related, but I'm not totally sure. If there's a known limitation like "transitive unsized coercions aren't currently supported", I'd be happy to submit a PR clarifying that in the Reference.
Repository: node
Issue: feat: Implement a way to expose static files from a directory (similar to Python SimpleHttpServer)
Labels: feature request,tools,never-stale

### What is the problem this feature will solve?

[HTTP  Server](https://www.npmjs.com/package/http-server) is a very popular package with 1M+ weekly downloads used to expose static files from a directory. 

Node.js doesn't have any native way to expose static files in a directory from a single command.

This is an idea given by @ruyadorno during a session on Tooling WG at https://github.com/nodejs/tooling/issues/164 which he suggested I implement it.


### What is the feature you are proposing to solve the problem?

In Python, they have the [SimpleHTTPServer](https://docs.python.org/2/library/simplehttpserver.html) a native module meant for the development environment and has basic security checks.

The idea is not to replace the HTTP Server package, as it's a robust package, but to have a similar implementation to Python's SimpleHTTPServer exposing directory files.

Adding something like:

```sh
node --serve directory -p 3000
```
or
```sh
node --serve . 
#with a default port
```




### What alternatives have you considered?

_No response_
Repository: go
Issue: crypto: boringcrypto NewGCMTLS no longer accessible
Labels: NeedsInvestigation

### What version of Go are you using (`go version`)?

go1.19.2

### Does this issue reproduce with the latest release?

Yes

### What did you do?

Before go1.19, the dev.boringcrypto branch let you access the NewGCMTLS function because it was exposed on the AES cipher struct.

You could do the following:

```go
type gcmtls interface {
	NewGCMTLS() (cipher.AEAD, error)
}

if aesTLS, ok := aesCipher.(gcmtls); ok {
	gcm, err = aesTLS.NewGCMTLS()
} else {
	gcm, err = cipher.NewGCM(c)
}
```

But this is no longer possible as the method is no longer exposed on the internal/boring AES struct. It was removed by this CL: https://go-review.googlesource.com/c/go/+/403976 as part of #51940.

It is useful to be able to use this GCM mode directly from an application using the boringcrypto experiment. The way it was exposed on the aes struct previously was ideal since it was hidden unless boringcrypto was active, but any other way of exposing it would work as well.
Repository: terminal
Issue: Add app-specific configuration for DefTerm handoff
Labels: Issue-Feature,Product-Conhost,Area-DefApp

In chatting with @awakecoding on Twitter, I realized that we may be able to add support for application-specific handoff configuration without servicing Windows.

When OpenConsole receives a handoff request in `ConsoleEstablishHandoff`...

https://github.com/microsoft/terminal/blob/7e47f6aab96b0f2d01309bc05cebe1c57b44a127/src/host/srvinit.cpp#L404-L424

... there's a decision point after it's read the `CONNECT` packet but before it yeets a PTY connection into Terminal ...

https://github.com/microsoft/terminal/blob/7e47f6aab96b0f2d01309bc05cebe1c57b44a127/src/host/srvinit.cpp#L566-L567

... where we can figure out which application is connecting and look up settings in the old conhost way using `RegistrySerialization` (et al) (`HKCU\Console\C:_Path_To_Whatever.exe` or reading the `LNK` file).

Returning an error from `ConsoleEstablishHandoff` (or earlier, in `CConsoleConnection`) will trigger conhost's recovery/fallback mode that hosts console applications locally.

That _should_ enable us to make a late-binding decision in OpenConsole (part of the Terminal package) on whether to continue with handoff.

### Risks

This works on the assumption that we can read the same connect packet multiple times; I believe we can, as conhost _already_ read it to figure out `wShowWindow`.

This will "waste" a megabyte of memory and a process creation on startup as OpenConsole must load and, if it determines _not_ to hand off, exit before the client application gets hooked up to the original conhost.

### Thoughts

Interesting thought exercise: OpenConsole could instead choose to host the connection itself. It would provide the same guarantees as conhost (one top-level window, owned by the process) while offering all of the console API, VT and behavioral updates we've made in the past few years that haven't yet trickled out in Windows updates. Folks who have been on the team for a while will recognize this as the effort I used to call "conhost coast to coast"¹.

¹ (we originally planned on moving just conhost to a package and updating it via the store, before Terminal was approved!)
Repository: vscode
Issue: unknown webview view
Labels: bug,error-telemetry,webview

```javascript
Error: unknown webview view
at I.getWebviewView in src/vs/workbench/api/browser/mainThreadWebviewViews.ts:129:10
at I.$setWebviewViewTitle in src/vs/workbench/api/browser/mainThreadWebviewViews.ts:43:28
at v._doInvokeHandler in src/vs/workbench/services/extensions/common/rpcProtocol.ts:455:17
at v._invokeHandler in src/vs/workbench/services/extensions/common/rpcProtocol.ts:440:32
at v._receiveRequest in src/vs/workbench/services/extensions/common/rpcProtocol.ts:370:19
at v._receiveOneMessage in src/vs/workbench/services/extensions/common/rpcProtocol.ts:296:10
at <anonymous> in src/vs/workbench/services/extensions/common/rpcProtocol.ts:161:42
at f.invoke in src/vs/base/common/event.ts:626:17
at a.deliver in src/vs/base/common/event.ts:828:22
at c.fire in src/vs/base/common/event.ts:789:24
at o.fire in src/vs/base/parts/ipc/common/ipc.net.ts:646:19
at g._receiveMessage in src/vs/base/parts/ipc/common/ipc.net.ts:988:23
at <anonymous> in src/vs/base/parts/ipc/common/ipc.net.ts:852:73
at f.invoke in src/vs/base/common/event.ts:626:17
at a.deliver in src/vs/base/common/event.ts:828:22
at c.fire in src/vs/base/common/event.ts:789:24
at c.acceptChunk in src/vs/base/parts/ipc/common/ipc.net.ts:390:21
at <anonymous> in src/vs/base/parts/ipc/common/ipc.net.ts:346:51
at _listener in src/vs/base/parts/ipc/node/ipc.net.ts:87:4
at Socket.emit (node:events:526:28)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at Readable.push (node:internal/streams/readable:228:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
```
[Go to Errors Site](https://vscode-errors.azurewebsites.net/card?ch=d045a5eda657f4d7b676dedbfa7aab8207f8a075&bH=aa95b349-6c8d-27b6-af01-40f0d826727a)