sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: stable-diffusion-webui
Issue: [Bug]: ValueError: cannot convert float NaN to integer
Labels: bug-report

### Is there an existing issue for this?

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

### What happened?

Training Embedding at such 999or2999 step,will show up:
---------------------------------------------------
raceback (most recent call last):
  File "I:\stable-diffusion-webui\modules\textual_inversion\textual_inversion.py", line 479, in train_embedding
    c = shared.sd_model.cond_stage_model(batch.cond_text)
  File "I:\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 1194, in _call_impl
    return forward_call(*input, **kwargs)
  File "I:\stable-diffusion-webui\modules\sd_hijack_clip.py", line 233, in forward
    embeddings_list = ", ".join([f'{name} [{embedding.checksum()}]' for name, embedding in used_embeddings.items()])
  File "I:\stable-diffusion-webui\modules\sd_hijack_clip.py", line 233, in <listcomp>
    embeddings_list = ", ".join([f'{name} [{embedding.checksum()}]' for name, embedding in used_embeddings.items()])
  File "I:\stable-diffusion-webui\modules\textual_inversion\textual_inversion.py", line 84, in checksum
    self.cached_checksum = f'{const_hash(self.vec.reshape(-1) * 100) & 0xffff:04x}'
  File "I:\stable-diffusion-webui\modules\textual_inversion\textual_inversion.py", line 81, in const_hash
    r = (r * 281 ^ int(v) * 997) & 0xFFFFFFFF
ValueError: cannot convert float NaN to integer

### Steps to reproduce the problem

1. Go to Embedding training
2. training some steps
3. erro


### What should have happened?

Embedding training works fine

### Commit where the problem happens

602a1864b05075ca4283986e6f5c7d5bce864e11

### What platforms do you use to access UI ?

Windows

### What browsers do you use to access the UI ?

Google Chrome

### Command Line Arguments

_No response_

### Additional information, context and logs

_No response_
Repository: deno
Issue: Strip tab and newline from URL's protocol setter
Labels: bug,web

Corrected tests: https://github.com/web-platform-tests/wpt/pull/38032.

Context: https://github.com/whatwg/url/issues/609.
Repository: godot
Issue: EditorNode3DGizmoPlugin does not always redraw
Labels: bug,topic:editor,topic:3d

### Godot version

v4.0.beta14.official [28a24639c]

### System information

Windows 10 (10.0.19045 Build 19045) | Forward+ | Vulkan API 1.3.206 | AMD Radeon RX 6800 XT

### Issue description

It seems like `EditorNode3DGizmoPlugin._redraw(gizmo)` isn't always triggered when dragging a handle. There is noticable stutter when dragging a handle. When moving the mouse too fast then `_redraw` stops completely until the mouse hovers the handle again. The value is continuously updated, so everything except the drawing seems to be working.

https://user-images.githubusercontent.com/44872771/214330540-98df8830-0f83-4899-894d-d1927c792417.mp4



### Steps to reproduce

Select the root node in the minimal reproduction. Then drag the handle and notice the stutter/freezes.

### Minimal reproduction project

[gizmo-bug.zip](https://github.com/godotengine/godot/files/10491240/gizmo-bug.zip)
Repository: PowerToys
Issue: More Maths Possibility for Run
Labels: Needs-Triage

### Description of the new feature / enhancement

An update where we can write bigger equation and in LateX for exemple

### Scenario when this would be used?

it would be used to faster the equation computing without using the calculator

### Supporting information

_No response_
Repository: vscode
Issue: Emmet extension is getting activate even when no editor is opened
Labels: bug,extension-activation

Testing #172037

- Open a empty folder
- Open extensions view and look for emmet extension - `@builtin emmet` and open it
- Go to Runtime status tab

🐛 Emmet extension is activated

I expect extension is activated only when there is a file opened.
Repository: vscode
Issue: Inline suggest hover inconsistent keybinding style to other editor hovers
Labels: under-discussion,inline-completions

Testing #172029

I'm not saying one is better than the other, but it's an inconsistency that was pretty obvious to me

<img width="444" alt="image" src="https://user-images.githubusercontent.com/2193314/214340637-b5183dd9-a604-479b-89c4-1b2bc87255ad.png">

![image](https://user-images.githubusercontent.com/2193314/214340677-2f5a194e-d3c6-4a28-b3fd-b047a97c2d72.png)
Repository: next.js
Issue: Production CSS optimization breaks margins behavior
Labels: bug

### Verify canary release

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

### Provide environment information

    Operating System:
      Platform: darwin
      Arch: arm64
      Version: Darwin Kernel Version 21.6.0: Mon Aug 22 20:19:52 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T6000
    Binaries:
      Node: 16.17.0
      npm: 8.15.0
      Yarn: 1.22.19
      pnpm: 7.20.0
    Relevant packages:
      next: 13.1.6-canary.0
      eslint-config-next: 13.0.6
      react: 18.2.0
      react-dom: 18.2.0

### Which area(s) of Next.js are affected? (leave empty if unsure)

App directory (appDir: true)

### Link to the code that reproduces this issue

https://codesandbox.io/p/sandbox/modest-water-cc23eb?file=%2Fpackage.json&selection=%5B%7B%22endColumn%22%3A25%2C%22endLineNumber%22%3A14%2C%22startColumn%22%3A25%2C%22startLineNumber%22%3A14%7D%5D

### To Reproduce

1. Use `app` dir
2. Create css file 
```
.test {
    --test-a: initial;
    --test-b: initial;
    --test-c: 10px;
    --test-d: initial;

    margin-top: var(--test-a);
    margin-left: var(--test-b);
    margin-bottom: var(--test-c);
    margin-right: var(--test-d);
}
```
4. Use this css in your application
5. Build aplication in production mode and run it

### Describe the Bug

All `margins` props are combined into one `margin` prop. Because of that whole margin property is broken.
I thought that it was `postss` and tried to make it minimal:
```
# postcss.config.json
{
    "plugins": ["postcss-nesting"]
}

```
But that didn't help

### Expected Behavior

There should be a way to disable optimization because it breaks production behavior.

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

Chrome 109.0.5414.87

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

_No response_
Repository: vscode
Issue: Inline suggest hover insufficient contrast when hovering actions
Labels: feature-request,accessibility,inline-completions

Testing #172029

Using Dark+

![image](https://user-images.githubusercontent.com/2193314/214343825-7156a60f-fdb4-4d58-bddd-52137bb96225.png)
<img width="391" alt="image" src="https://user-images.githubusercontent.com/2193314/214343907-87584e67-a54e-4a41-b930-6af8cebaf44f.png">
Repository: flutter
Issue: Warning about finding CupertinoIcons when building a web app with only material
Labels: tool,P2,team-tool,triaged-tool

Running `flutter build web --release` at ~HEAD

> Expected to find fonts for (MaterialIcons, packages/cupertino_icons/CupertinoIcons), but found (MaterialIcons). This usually means you are referring to font families in an IconData class but not including them in the assets section of your
pubspec.yaml, are missing the package that would include them, or are missing "uses-material-design: true".
Font asset "MaterialIcons-Regular.otf" was tree-shaken, reducing it from 1645184 to 7680 bytes (99.5% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.
Compiling lib/main.dart for the Web...                           1,853ms
Repository: vscode
Issue: Make Portable mode easier to migrate to
Labels: feature-request,portable-mode

Testing #172015

Re [Migrate to Portable mode](https://code.visualstudio.com/docs/editor/portable#_migrate-to-portable-mode)

I'm not sure who the target audience is for this, but the steps feel complicated/involved. Is there a way we could set this up for people?
Repository: vscode
Issue: Remove extension host start delay
Labels: debt,extension-host,perf

For the longest time we started the extension host process from the renderer. Because forking/spawing can cause a stall of some millis (or seconds) we would back of to give the editor a chance to do its first render. This is done [here](https://github.com/microsoft/vscode/blob/7e54126f9e85baa6f1f1ca3bceb1db67c85b406b/src/vs/workbench/services/extensions/electron-sandbox/nativeExtensionService.ts#L118-L120) but since then things have changed and we are now (mostly) node-free and spawning of the EH process doesn't happen from the renderer anymore. Therefore the delay isn't needed anymore and should be removed
Repository: vscode
Issue: Clicking anywhere hides modal dialog about untrusted link 
Labels: bug,electron,uri,confirmation-pending

Testing #172084

Not sure if some changes happened in dialog land, but after I clicked on a `vscode-insiders://` protocol link in the terminal which showed a modal about external applications wanting to open the link in VS Code, clicking outside of the modal hid the modal, but it was still open as a separate application window, which was pretty confusing (cursor style was still `pointer`, `Reload Window` didn't work, etc)
Repository: TypeScript
Issue: `satisfies` changes the generic type, "resolves" it immediately
Labels: Bug,Help Wanted

# Bug Report

It seems that using `satisfies` on a value that is bound to a generic type, in some way resolves the generic type at that place.
```ts
const foo = <T extends 1 | 2>(bar: T) => {
  // PROBLEM: a and b should have the same type.
  const a = bar satisfies any; // using any type that doesn't use the generic T here creates this problem
  //    ^? 1 | 2
  const b = bar;
  //    ^? T extends 1 | 2
}
```
[Playground link](https://www.typescriptlang.org/play?#code/MYewdgzgLgBAZiEMC8MA8AVGBTAHlbMAEwhgEYYAfGAJgD4AKAIwEMAnALhgwEoU6YAbwBQMGKEiwWKGKzYwILKAEsIcZdlIswATwDcomAHojYsQD0A-IYnRZMuQbEmzMK8IC+QA)


### 🔎 Search Terms

`satisfies` changes type, generic, widening

### 🕗 Version & Regression Information

<!-- When did you start seeing this bug occur?

"Bugs" that have existed in TS for a long time are very likely to be FAQs; refer to
  https://github.com/Microsoft/TypeScript/wiki/FAQ#common-bugs-that-arent-bugs

If possible, please try testing the nightly version of TS to see if it's already been fixed.
For npm: `typescript@next`
This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly

Note: The TypeScript Playground can be used to try older versions of TypeScript.

Please keep and fill in the line that best applies:
-->
Using 4.9.4 now with `satisfies` and noticed this.
- This changed between versions 4.9 and 4.8 when satisfies was introduced
- This is the behavior in every version I tried, and I reviewed the FAQ
- I was unable to test this on prior versions because satisfies didn't exist

### ⏯ Playground Link

[Playground link](https://www.typescriptlang.org/play?#code/MYewdgzgLgBAZiEMC8MA8AVGBTAHlbMAEwhgEYYAfGAJgD4AKAIwEMAnALhgwEoU6YAbwBQMGKEiwWKGKzYwILKAEsIcZdlIswATwDcomAHojYsQD0A-IYnRZMuQbEmzMK8IC+QA)

### 🙁 Actual behavior

`a` and `b` have different types as seen in the playground

### 🙂 Expected behavior

`satisfies` should be a no-op
Repository: rust
Issue: relating higher-ranked projections can unexpectedly constrain inference
Labels: P-medium,A-inference,C-bug,T-types,A-higher-ranked

The following compiles (although it shouldn't, arguably, see below for reasoning): https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=05d31c1cc2a9e8752d7a3fc05e9446ea
```rust
pub trait Trait {
    type Ty<'a>;
}

fn my_fn<T: Trait>(_: T::Ty<'_>) {}

fn test<A: Trait, B: Trait>() -> impl Fn(A::Ty<'static>) {
    my_fn
}
```
It stops compiling with a trivial change that gets rid of higher-ranked regions:
```diff
- fn my_fn<T: Trait>(_: T::Ty<'_>) {}
+ fn my_fn<T: Trait>(_: T::Ty<'static>) {}

fn test<A: Trait, B: Trait>() -> impl Fn(A::Ty<'static>) {
    my_fn
+   //~^ ERROR type annotation needed
}
```

This was discovered by @BoxyUwU in #96912.

@rustbot label T-types C-bug I-unsound A-inference
Repository: vscode
Issue: [css] missing colon causes error to be placed on next rule
Labels: bug,css-less-scss

Testing: https://github.com/microsoft/vscode/issues/172045

It seems to highlight the incorrect section but it does have the correct error message. It makes it more confusing but isn't necessarily broken in that it still correctly identifies the error.

<img width="611" alt="Screenshot 2023-01-24 at 9 02 10 AM" src="https://user-images.githubusercontent.com/26030610/214373430-3a6e697f-6d60-479f-88f4-4d2dfac0d82f.png">
Repository: PowerToys
Issue: Key mappings don't work when Visual Studio has focus
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.66.0

### Installation method

GitHub, PowerToys auto-update

### Running as admin

No

### Area(s) with issue?

Keyboard Manager

### Steps to reproduce

Set up Keyboard Manager to swap Caps Lock with Control, and Left Win with Left Alt.

Exercise the remapped keys, see that they are swapped as requested.

Run Visual Studio.

Exercise the remapped keys again.

![image](https://user-images.githubusercontent.com/87488032/214377906-c91897a2-b3c3-4c8a-82aa-6f1dd767e9e6.png)

### ✔️ Expected Behavior

I expected the remapped keys to still be remapped when Visual Studio has focus.

### ❌ Actual Behavior

Instead, the keys behave according to their original function with no remapping applied. As soon as focus leaves Visual Studio, remapping resumes. 
For example, press remapped Win in Visual Studio, and the menu bar pops up. Press remapped Alt in Visual Studio, and the Windows menu appears. Now that focus has left Visual Studio, press remapped Win and the Windows menu disappears.

### Other Software

Microsoft Visual Studio Community 2022 (64-bit)
Version 17.4.4

running on Windows 10 21H2
Repository: pytorch
Issue: functorch.functionalize doesn't error out with logcumsumexp.out
Labels: triaged,module: xla,module: meta tensors,module: functionalization

### 🐛 Describe the bug

logcumsumexp.out will error out if the given output buffer's dtype is different from the input, but somehow that property is violated after functionalization, here is the PoC:
```
import torch
import functorch


def poc6():
  device = 'cpu'
  axis = -1

  # Check input and inplace_output type mismatch
  b = torch.randn(5, 2, device=device, dtype=torch.float64)
  inplace_out = torch.zeros(5, 2, device=device, dtype=torch.float32)
  try:
    torch.logcumsumexp(b, axis, out=inplace_out)
  except Exception as e:
    print(e)



print("CPU")
poc6()
print()

print("CPU Functionalize")
functorch.functionalize(poc6)()
```

Output:
```
ptxla@t1v-n-307ffe96-w-0:/workspaces/work/pytorch/xla$ python poc6.py 
CPU
expected scalar_type Double but found Float

CPU Functionalize
```

### Versions

Nightly.

CC @bdhirsh @wonjoolee95 @JackCaoG 

cc @bdhirsh @ezyang @eellison @soumith
Repository: godot
Issue: NoiseTexture2D seamless not working
Labels: bug,discussion,topic:shaders

### Godot version

Godot 4.0 Beta 15

### System information

Windows 10

### Issue description

Scrolling a seamless 2D noise texture in 2D does not work as the texture does not appear to be seamless.
The visual shader is the same between Godot 3.5.1.stable and Godot 4.0 Beta 15.
The NoiseTexture is supposed to be moved by 0.5 in all examples.

![BrokenScrollingNoiseTexture](https://user-images.githubusercontent.com/38868780/214396381-5a8e0097-d49a-4cff-b61f-9ed30ce23df9.PNG)
Broken in 2D

![ScrollingNoiseTextureIn3D](https://user-images.githubusercontent.com/38868780/214396372-294e2e08-cad5-4880-9d21-24d7f9b6355d.PNG)
Works in 3D on a planar mesh

![WorkingScrollingNoiseTexture](https://user-images.githubusercontent.com/38868780/214396394-be3b6391-b5e7-42d5-964f-bf36f3f3608a.PNG)
Works in Godot 3.5.1.stable


### Steps to reproduce

Open Scrolling2DNoiseTexture.tscn in the appended example

### Minimal reproduction project

[Broken2dSeamlessNoiseTextures.zip](https://github.com/godotengine/godot/files/10493517/Broken2dSeamlessNoiseTextures.zip)
Repository: godot
Issue: Tree function get_item_area_rect() returns incorrect value
Labels: bug,topic:gui

### Godot version

v4.0.beta.custom_build [3cc926bf7]

### System information

Windows 10, NVIDIA GeForce GTX 760

### Issue description

![image](https://user-images.githubusercontent.com/122531384/214401889-33bb5c31-7aa8-49e1-84ca-657c67b242d8.png)


### Steps to reproduce

N/A

### Minimal reproduction project

N/A
Repository: rust
Issue: Windows: Path API Incorrectly Handles Alternate Data Stream Identifiers
Labels: O-windows,T-libs-api,C-bug,A-io

<!--
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.
-->

On Windows a file path may contain the name of an alternate data stream, which is provided after the file name with a colon as a separator (e.g. `foo.bar:quux`). The `Path::components`, `Path::file_name`, `Path::extension`, `Path::with_file_name` and `Path::with_extension` functions do not correctly handle this. They treat the stream name as part of the extension. 

```rust
    let p = Path::new("foo.bar:quux");

    for c in p.components() {
        println!("{c:?}");
    }

    println!("filename: {:?}", p.file_name());
    println!("extension: {:?}", p.extension());
    println!("with_extension: {:?}", p.with_extension("blah"));
    println!("with_file_name: {:?}", p.with_file_name("blah.txt"));
```

I expected to see this happen:

```
Normal("foo.bar")
DataStream("quux") // I'm not sure about this one? But being Normal seems confusable.
filename: Some("foo.bar")
extension: Some("bar")
with_extension: "foo.blah:quux"
with_file_name: "blah.txt:quux"
```

Instead, this happened:

```
Normal("foo.bar:quux")
filename: Some("foo.bar:quux")
extension: Some("bar:quux")
with_extension: "foo.blah"
with_file_name: "blah.txt"
```

### Meta
<!--
If you're using the stable version of the compiler, you should also check if the
bug also exists in the beta or nightly versions.
-->

`rustc --version --verbose`:
```
rustc 1.66.1 (90743e729 2023-01-10)
binary: rustc
commit-hash: 90743e7298aca107ddaa0c202a4d3604e29bfeb6
commit-date: 2023-01-10
host: x86_64-pc-windows-msvc
release: 1.66.1
LLVM version: 15.0.2
```
</details>
Repository: vscode
Issue: Git - Encoding issues when previewing changes in Source Control tab
Labels: bug,git

Type: <b>Bug</b>

Does this issue occur when all extensions are disabled?: Yes

- VS Code Version: 1.74.3
- OS Version: Ubuntu 18.04.6

Steps to Reproduce:

1. Make changes to tracked file with Scandinavian characters
2. Open the Source Control tab
3. Click on the file where changes were made to preview

Additional comments:
The encoding error is no longer present once the changes have been staged.
It's as if the changes preview opens up the editor view of the file with a different encoding than that of the staged changes preview. The erroneous encoding is in [Thai script](https://en.wikipedia.org/wiki/Thai_script) (tis620 encoding).

Screenshots:
![github-vs-code-issue_01](https://user-images.githubusercontent.com/2377215/214404893-96e43fb8-abbb-44eb-a568-e9bc5c3cd068.jpg)



VS Code version: Code 1.74.3 (97dec172d3256f8ca4bfb2143f3f76b503ca0534, 2023-01-09T16:57:40.428Z)
OS version: Linux x64 4.15.0-202-generic
Modes:
Sandboxed: No

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz (8 x 3277)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_renderer: enabled_on<br>video_decode: disabled_software<br>video_encode: disabled_software<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: disabled_off|
|Load (avg)|0, 1, 1|
|Memory (System)|15.49GB (12.89GB free)|
|Process Argv|--disable-extensions --crash-reporter-id 13c18c14-b8f3-4488-b7c7-8281596ff8c2|
|Screen Reader|no|
|VM|0%|
|DESKTOP_SESSION|xubuntu|
|XDG_CURRENT_DESKTOP|XFCE|
|XDG_SESSION_DESKTOP|xubuntu|
|XDG_SESSION_TYPE|x11|
</details>Extensions disabled<details>
<summary>A/B Experiments</summary>

```
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscoreces:30445986
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
vsclangdf:30486550
c4g48928:30535728
dsvsc012cf:30540253
azure-dev_surveyone:30548225
pyindex848:30577860
nodejswelcome1cf:30587006
2e4cg342:30602488
89544117:30613380

```

</details>

<!-- generated by issue reporter -->
Repository: angular
Issue: Provide an API for passing additional data to ngOptimizedImage loaders
Labels: feature,area: common,feature: in backlog

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

common

### Description

The ngOptimizedImage loader API currently is hardcoded such that the provided loader function only received [two data points](https://angular.io/api/common/ImageLoaderConfig) from the image directive: `src` and `width`. This is not flexible enough to support image CDNs with a variety of URL-based image transformations. 

The image loader API enhanced should be enhanced to allow users to pass arbitrary attributes through to the loader for use in the construction of image URLs. 

CC @AndrewKushnir @pkozlowski-opensource

### Proposed solution

I'm proposing we allow the user to pass data through to the loader using a special attribute that receives an object with arbitrary payload, and then passes that data along to the loader. This would look something like the following:

```
<img ngSrc="test.jpg" width="300" height="200" [loaderParams]={ 
  c_crop: true, 
  g_face: true, 
  crop_height: 400, 
  crop_width: 400} >
```

To keep the template from becoming too unreadable, presumably many developers would opt to define the loader parameters in the TypeScript:

```
const loaderProps: LoaderProps = {
  c_crop: true, 
  g_face: true, 
  crop_height: 400, 
  crop_width: 400 }
```

This would require the LoaderProps type to have been defined or imported. The loaderProps could then be consumed as so:

```
<img ngSrc="test.jpg" width="300" height="200" [loaderParams]=”loaderProps” >
```

### Alternatives considered

I also considered passing additional query parameters in a plain string blob, but the proposed data structure lends itself a lot better to typing the data.
Repository: pytorch
Issue: Add Stride Argument For Constructors
Labels: triaged,enhancement,module: tensor creation

### 🚀 The feature, motivation and pitch

randn, full, ones, and zeros dont have a stride argument. The lack of the stride argument makes it difficult to write functional decompositions. For instance, `randn_like` I would like to decompose functionally, but because there is no way to pass along the stride of the input, I need to write it as the following:
```
@register_decomposition(aten.randn_like)
def randn_like(
    a,
    *,
    dtype: Optional[torch.dtype] = None,
    device: Optional[torch.device] = None,
    layout: Optional[torch.layout] = None,
    pin_memory: bool = False,
    memory_format: torch.memory_format = None,
):
    result = torch.empty_like(a, dtype=dtype, device=device, layout=layout, pin_memory=pin_memory, memory_format=memory_format)
    result.random_(0, 1)
    return result

```

### Alternatives

_No response_

### Additional context

_No response_

cc @gchanan @mruberry