sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: godot
Issue: `await` generates invalid state machine that never completes for `System.Net.Http.HttpClient`
Labels: bug,topic:network,topic:dotnet

### Tested versions

v4.2.1.stable.mono.official [b09f793f5], v4.2.2.stable.mono.official [15073afe3]

### System information

Godot v4.2.2.stable.mono - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4090 (NVIDIA; 31.0.15.5161) - AMD Ryzen 9 5950X 16-Core Processor (32 Threads)

### Issue description

`await` generates an invalid state machine that never completes for `System.Net.Http.HttpClient`
awaiting using .Wait() works as intended.

This is an issue with third-party libraries that use System HttpClient instead of Godot's HttpClient.

### Steps to reproduce

Create a new C# project
Import the code below and run with debugger on (see gif below for execution results)
```csharp
using System.Threading.Tasks;
using Godot;

public partial class TestScript : Node
{
    private System.Net.Http.HttpClient _httpClient = new System.Net.Http.HttpClient();
    
    public override void _Ready()
    {
        Works();
        Hangs().Wait();
        base._Ready();
    }

    public void Works()
    {
        var task = _httpClient.GetAsync("https://www.google.com");
        task.Wait();
        var google = task.Result;
        var contentTask = google.Content.ReadAsStringAsync();
        contentTask.Wait();
        var googleContent = contentTask.Result;
        GD.Print(googleContent);
    }

    public async Task Hangs()
    {
        var google = await _httpClient.GetAsync("https://www.google.com");
        var googleContent = await google.Content.ReadAsStringAsync();
        GD.Print(googleContent);
    }
}
```
![Animation](https://github.com/godotengine/godot/assets/5092066/9c6b6700-b652-4dd9-8288-623a497629db)



### Minimal reproduction project (MRP)

[demo.zip](https://github.com/godotengine/godot/files/15218299/demo.zip)
Repository: rust
Issue: Derived `Clone` impl is not simplified if `Clone` is derived before `Copy`
Labels: A-macros,T-compiler,C-bug

Of these 4 ways to derive Copy and Clone:

```rs
#[derive(Copy, Clone)]
struct Foo(i32);

#[derive(Clone, Copy)]
struct Bar(i32);

#[derive(Copy)]
#[derive(Clone)]
struct Baz(i32);

#[derive(Clone)]
#[derive(Copy)]
struct Qux(i32);
```

The last one (derive Clone, then derive Copy) does not use the simplified form of the Clone derive for Copy types:

```rs
struct Foo(i32);
#[automatically_derived]
impl ::core::marker::Copy for Foo { }
#[automatically_derived]
impl ::core::clone::Clone for Foo {
    #[inline]
    fn clone(&self) -> Foo {
        let _: ::core::clone::AssertParamIsClone<i32>;
        *self
    }
}

struct Bar(i32);
#[automatically_derived]
impl ::core::clone::Clone for Bar {
    #[inline]
    fn clone(&self) -> Bar {
        let _: ::core::clone::AssertParamIsClone<i32>;
        *self
    }
}
#[automatically_derived]
impl ::core::marker::Copy for Bar { }

struct Baz(i32);
#[automatically_derived]
impl ::core::clone::Clone for Baz {
    #[inline]
    fn clone(&self) -> Baz {
        let _: ::core::clone::AssertParamIsClone<i32>;
        *self
    }
}
#[automatically_derived]
impl ::core::marker::Copy for Baz { }

struct Qux(i32);
#[automatically_derived]
impl ::core::marker::Copy for Qux { }
#[automatically_derived]
impl ::core::clone::Clone for Qux {
    #[inline]
    fn clone(&self) -> Qux { Qux(::core::clone::Clone::clone(&self.0)) }
}
```

I don't think this leads to any problems currently, but it's an odd (kind of amusing) inconsistency and may (citation needed) make for slightly worse codegen.
Repository: godot
Issue: Missing hint/suggestion for toggling visibility of a node
Labels: bug,topic:gdscript,topic:editor

### Tested versions

v4.2.2.stable.mono.official [15073afe3]

### System information

Edition	Windows 11 Pro Version	23H2 Installed on	‎13/‎03/‎2024 OS build	22631.3527 Experience	Windows Feature Experience Pack 1000.22700.1003.0

### Issue description

![Screenshot 2024-05-06 153438](https://github.com/godotengine/godot/assets/85598032/ef7d928f-7ac7-4e09-b696-a8bfe4f3ff28)


### Steps to reproduce

.

### Minimal reproduction project (MRP)

.
Repository: kubernetes
Issue: kubelet should alway get lastest secret/configmap resource in pod add event
Labels: kind/bug,priority/backlog,sig/node,triage/accepted

### What happened?

The logic is as follows:
1. Manually update secret resources.
2. kubelet listens to resources and updates the watch cache.
3. Start the pod and query the volume attached to the secret resource.

but probabilistically, especially at lots of operating pressures. The third step is performed before the second step. As a result, the old secret is mounted when the pod is started.

![image](https://github.com/kubernetes/kubernetes/assets/17514799/e72a9968-6467-4436-803d-002df05b5df7)

----------

![image](https://github.com/kubernetes/kubernetes/assets/17514799/b81c5384-4b47-420a-9995-6ce46ce275c5)

https://kubernetes.io/docs/reference/config-api/kubelet-config.v1beta1/



### What did you expect to happen?

![image](https://github.com/kubernetes/kubernetes/assets/17514799/e8fd8400-b3c4-4072-8399-322548183c3c)

solution: kubelet should alway get lastest secret/configmap resource in pod add event instead of using cache

### How can we reproduce it (as minimally and precisely as possible)?

see What happend

### Anything else we need to know?

_No response_

### Kubernetes version

<details>

```console
$ kubectl version
# paste output here
```

</details>


### Cloud provider

<details>

</details>


### OS version

<details>

```console
# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here
```

</details>


### Install tools

<details>

</details>


### Container runtime (CRI) and version (if applicable)

<details>

</details>


### Related plugins (CNI, CSI, ...) and versions (if applicable)

<details>

</details>
Repository: vscode
Issue: Draft an API for computing embedding
Labels: feature-request,api,api-proposal,chat

Being able to compute embeddings is often important when dealing with NLP tasks. There are plenty of models out there and we should have API to consume/provide embedding computation logic into VS Code
Repository: ollama
Issue: Mocked model for integration testing Ollama into other tools and environments
Labels: feature request

We are looking for a model or a functionality of Ollama that allows us to mock requests and responses without changing the Ollama binary. Basically we want to define a map of requests to responses, e.g. when "Foo" comes in as a request, we want to define that "Bar" should be returned by the model.

This allows us to do integration testing of Ollama for the [DevQualityEval](https://github.com/symflower/eval-dev-quality) (an evaluation benchmark to evolve the quality of code generation). We need deterministic mocking definition, to allow for deterministic testing.
Repository: PowerToys
Issue: Keyboard Manager: "non-concatenation remapping(s)" option
Labels: Needs-Triage

### Description of the new feature / enhancement

I want to have 2 remappings:
• _"PgUp" > "Next Track"_
• _"CTRL (Left) + PgUp" > "PgUp (original command)"_ (NOT redirected to _"Next Track"_)

### Scenario when this would be used?

In **Keyboard Manager**, I chose to remap the _"PgUp"_ key to _"Next Track"_ key (first remapping). If I type _"PgUp"_ it gives the _"Next Track"_ command.
Perfect. But now I no longer have the _"PgUp"_ command.

I want to choose to press _"CTRL (Left) + PgUp"_ to give the _"PgUp"_ command (second remapping). But this is impossible, because in the _"CTRL (Left) + PgUp"_ command the program reads the key _"PgUp"_ as _"Next Track"_! (Due to the first remapping)

**The program always concatenate the remappings.
I want to choose to not concatenate the remappings.**

I want (an **"original value of the key" option**) that in the second remapping _"CTRL (Left) + PgUp"_ the program reads the key _"PgUp"_ as _"PgUp"_ (NOT modified by the first remapping _"PgUp" > "Next Track"_!), and so to use this second remapping _"CTRL (Left) + PgUp" > "PgUp"_ to give the _"PgUp"_ command.

A **non-concatenation of remappings**.

### Supporting information

I'm setting up a remote control for the PC.
Repository: PowerToys
Issue: Peek will no longer display vsdm files
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.80.1

### Installation method

WinGet

### Running as admin

Yes

### Area(s) with issue?

Peek

### Steps to reproduce

Normally Visio files (vsdm) display in Peek (Ctrl + Space), this is however no longer the case.
I did try to open known files that I usually can open with Peek, they also didn't work anylonger. 
When this came about, I'm not sure of, however I know for sure that I had the Peek function working in v0.79.0.
Please view attached video to see the explained behavior.

https://github.com/microsoft/PowerToys/assets/48091180/122574e2-17aa-435d-afba-32fac0ba71f0



### ✔️ Expected Behavior

Visio drawing to be displayed when shortcut is pressed

### ❌ Actual Behavior

A white "sheet" is shown instead.

### Other Software

_No response_
Repository: go
Issue: wiki: SQLDrivers
Labels: Documentation,help wanted,NeedsDecision

> Drivers marked with [*] are both included in and pass the compatibility test suite

https://go.dev/wiki/SQLDrivers

The list of drivers tested has not been updated in years:

https://github.com/bradfitz/go-sql-test/blob/master/src/sqltest/drivers.go

---

I suggest you:

a) update the drivers to be tested and the update the wiki page afterward (and update it periodically)
b) remove the mention of the compatibility test suite
c) state that the compatibility test was done in 2019 (5 years ago)
Repository: next.js
Issue: Parallel routes breaks completely after being redirected from a server action function 
Labels: bug,Parallel & Intercepting Routes

### Link to the code that reproduces this issue

https://github.com/vercel/nextgram 

### To Reproduce

1. Start the application in dev mode 
2. change the page.tsx file iin (.)photos/[id] folder to the below code 
import { redirect } from 'next/navigation';
import { Modal } from './modal';

export default function PhotoModal({
  params: { id: photoId },
}: {
  params: { id: string };
}) {
  return <Modal>
      <div>{photoId}</div>
      <form action={async ()=>{
        "use server";
        redirect('/');
      }}>
        <button type="submit">Submit</button>        
        </form>    
    </Modal>;
}

3.  Now when i click the submit button im being redirected to the homepage but the other parallel routes are not being displayed when i click them instead it just changes the url to that route and no modal pops up 

### Current vs. Expected behavior

i expected the modal to pop up after being redirected to the '/' route but instead it just changes the url and nothing renders

### Provide environment information

```bash
Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 11 Home Single Language
  Available memory (MB): 15694
  Available CPU cores: 12
Binaries:
  Node: 20.11.1
  npm: N/A
  Yarn: N/A
  pnpm: 9.0.6
Relevant Packages:
  next: 14.3.0-canary.40 // Latest available version is detected (14.3.0-canary.40).
  eslint-config-next: N/A
  react: 18.3.1
  react-dom: 18.3.1
  typescript: 5.4.5
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

Parallel & Intercepting Routes

### Which stage(s) are affected? (Select all that apply)

next dev (local), next build (local), next start (local), Vercel (Deployed)

### Additional context

_No response_
Repository: stable-diffusion-webui
Issue: [Feature Request]: Increase image input size limit in imgtoimg
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 ?

There is a size limit for sending a file to imgtoimg I believe it is a maximum of 300mb, I also believe it comes from the Gradio interface, because even changing possible limits in grid files etc we still have this limit imposed, could anyone tell us where this limit to making a change is implicit, it would be incredible as it is limiting a number of cool things to happen, thank you very much in advance for your attention and congratulations on the incredible work 🙏

### Proposed workflow

1. Go to .... 
2. Press ....
3. ...


### Additional information

_No response_
Repository: pytorch
Issue: fx hook failed
Labels: triaged,module: fx

### 🐛 Describe the bug

```
import unittest
import torch
import torch.fx as fx
from eight_mlp import EightMLP
from torch.fx.passes.split_utils import split_by_tags
import re
class TestCompileMode(unittest.TestCase):
    def test_compile_mode(self):
        model = EightMLP(8)
        def hook(sel, args):
            print("call hook")
            assert False
            return args
        # model.mlp1.register_forward_pre_hook(hook)
        graph = fx.symbolic_trace(model)
        input = torch.randn((3, 8))
        rule = r"mlp\d+.*"
        for node in graph.graph.nodes:
            if re.match(rule, node.name):
                if int(node.name[3]) <= 4:
                    node.tag = "stage0"
                else:
                    node.tag = "stage1"
        global_graph = split_by_tags(graph, ["stage0", "stage1"])
        splited_module = global_graph.get_submodule("stage0")
        splited_module.mlp1.register_forward_pre_hook(hook)
        splited_module(input)
```
hook failed when use fx.graph.module name

### Versions

master

cc @ezyang @SherlockNoMad @EikanWang @jgong5 @wenzhe-nrv
Repository: go
Issue: proposal: chans: new package with chans.Seq
Labels: Proposal

### Proposal Details

#61899 would add iteration related functions to slices, and #61900 does the same for maps. There should also be a package with channel iteration helpers. I propose adding package chans with chans.Seq:

```go
package chans

import "iter"

// Seq returns an iterator that yields the values of ch until it is closed.
func Seq[T any](ch <-chan T) iter.Seq[T] {
    return func(yield func(T) bool) {
        for v := range ch {
            if !yield(v) {
                return
            }
        }
    }
}
```

An example use would be `s := slices.Collect(chans.Seq(ch))` as a convenient way to collect all values from a channel into a slice.
Repository: PowerToys
Issue: Name of PowerToy : Color Picker for English UK
Labels: Issue-Bug,Area-Localization,Needs-Triage,Issue-Translation

### Microsoft PowerToys version

0.80.1

### Utility with translation issue

ColorPicker

### 🌐 Language affected

English UK

### ❌ Actual phrase(s)

The powertoy tool called "Color Picker" is not localised in English UK correctly, like in Windows Paint, UK English spelling is "Colour Picker" and not "Color Picker" US English.
![ColourPicker-EnglishUK](https://github.com/microsoft/PowerToys/assets/6966118/d9583a01-74a2-408a-b642-bddbf7275879)
![ColourPicker-EnglishUK-inPaint](https://github.com/microsoft/PowerToys/assets/6966118/b23a4b30-892f-4857-9e52-859c35ee79a4)


### ✔️ Expected phrase(s)

Colour Picker

### ℹ Why is the current translation wrong

Not UK English
Repository: ollama
Issue: support llama 3 Moe
Labels: model request

please support 

QuantFactory/Meta-Llama-3-120B-Instruct-GGUF

raincandy-u/Llama-3-Aplite-Instruct-4x8B-GGUF-MoE
Repository: deno
Issue: `deno doc` stack overflows on namespace exporting itself
Labels: bug,cli

The file is https://gist.github.com/crowlKats/1f6ed084bbab0a10267df9ed31564599, which is a generated cleaned-up version of https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/test.d.ts.

I experimented around by reducing the file, and ended up on the case of a namespace exporting itself inside itself being at fault:
```ts
export namespace test {
  export { test };
}
```
Repository: rust
Issue: Instantiating Same Type via Function vs Directly => Compiler Thinks They Are Different Types.
Labels: A-diagnostics,T-compiler,C-bug,D-papercut

# I tried this code:

![image](https://github.com/rust-lang/rust/assets/83634595/11129734-e61a-412b-a6f0-82c1dbfc9564)


`Cargo.toml`
``` toml
cargo-features = ["codegen-backend"]

[profile.dev]
codegen-backend = "cranelift"

[workspace]
resolver = "2"
members = ["nice"]
```

`nice/Cargo.toml`:
``` toml
[package]
name = "nice"

[dependencies]
```

`nice/src/kiwi/kiwi_file.rs`
``` rust
#![allow(clippy::let_and_return)]

#[derive(Debug, Clone, PartialEq)]
pub struct Hello {
    pub field: String,
}

pub fn hello_func() -> Hello {
    let hello = Hello {
        field: String::default(),
    };
    hello
}

```

`nice/src/kiwi.rs`
``` rust
pub mod kiwi_file;
```

`nice/src/lib.rs`
``` rust
pub mod kiwi;
```

`nice/src/main.rs`:
```rust
extern crate nice;

use nice::kiwi::kiwi_file::hello_func;

use crate::kiwi::kiwi_file::Hello;

pub mod kiwi;

fn main() {
    let func_hello = hello_func();

    let direct_hello = Hello {
        field: String::default(),
    };

    assert_eq!(func_hello, direct_hello);
}
```

# I expected to see this happen:
`cargo check` works without throwing any errors

# Instead, this happened: 
`cargo check` produces this error:
```
error[E0308]: mismatched types
  --> nice/src/main.rs:16:28
   |
16 |     assert_eq!(func_hello, direct_hello);
   |                            ^^^^^^^^^^^^ expected `nice::kiwi::kiwi_file::Hello`, found `kiwi::kiwi_file::Hello`
   |
   = note: `kiwi::kiwi_file::Hello` and `nice::kiwi::kiwi_file::Hello` have similar names, but are actually distinct types
note: `kiwi::kiwi_file::Hello` is defined in the current crate
  --> nice/src/kiwi/kiwi_file.rs:4:1
   |
4  | pub struct Hello {
   | ^^^^^^^^^^^^^^^^
note: `nice::kiwi::kiwi_file::Hello` is defined in crate `nice`
  --> /home/amir-abdin/src/nice/nice/src/kiwi/kiwi_file.rs:4:1
   |
4  | pub struct Hello {
   | ^^^^^^^^^^^^^^^^
   = note: the crate `nice` is compiled multiple times, possibly with different configurations
``` 

### Meta
`rustc --version --verbose`:
```
rustc 1.77.0-nightly (d5fd09972 2024-01-22)
binary: rustc
commit-hash: d5fd0997291ca0135401a39dff25c8a9c13b8961
commit-date: 2024-01-22
host: x86_64-unknown-linux-gnu
release: 1.77.0-nightly
LLVM version: 17.0.6
```


</p>
</details>
Repository: opencv
Issue: Several videoio MPEG encoding tests fails with Gstreamer on Ubuntu 24.04
Labels: bug,category: videoio,category: 3rdparty

### System Information

OS: Ubuntu 24.04
Failed cases:
```
2024-05-06T08:12:14.0128972Z [  FAILED  ] videoio/videoio_synthetic.write_read_position/9, where GetParam() = (640x480, FOURCC(MPEG), .avi, GSTREAMER, 28dB)
2024-05-06T08:12:14.0133508Z [  FAILED  ] videoio/videoio_synthetic.write_read_position/12, where GetParam() = (640x480, FOURCC(MPEG), .mkv, GSTREAMER, 28dB)
2024-05-06T08:12:14.0138253Z [  FAILED  ] videoio/videoio_synthetic.write_read_position/25, where GetParam() = (976x768, FOURCC(MPEG), .avi, GSTREAMER, 28dB)
2024-05-06T08:12:14.0142758Z [  FAILED  ] videoio/videoio_synthetic.write_read_position/28, where GetParam() = (976x768, FOURCC(MPEG), .mkv, GSTREAMER, 28dB)
2024-05-06T08:12:14.0147930Z [  FAILED  ] videoio/videowriter_acceleration.write/40, where GetParam() = (FOURCC(MPEG), .mkv, GSTREAMER, 29dB, NONE, false)
2024-05-06T08:12:14.0152402Z [  FAILED  ] videoio/videowriter_acceleration.write/42, where GetParam() = (FOURCC(MPEG), .mkv, GSTREAMER, 29dB, ANY, false)
```

### Detailed description

The test produces video with synthetic frames and decodes it with same backend. GStreamer back-end produced video with some duplicated frames and loose user frames.

### Steps to reproduce

1. Install GStreamer
2. Run videoio test `./bin/opencv_test_videoio`

### Issue submission checklist

- [X] I report the issue, it's not a question
- [X] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [X] I updated to the latest OpenCV version and the issue is still there
- [X] There is reproducer code and related data files (videos, images, onnx, etc)
Repository: tauri
Issue: [feat] add an option to prevent window overflow
Labels: type: feature request

### Describe the problem

If I set the initial window size to say 1280x720, it will overflow to outside of the monitor on some screens (e.g. 1920x1080 with 1.75 scaling on a laptop)

### Describe the solution you'd like

It would be nice to have a built-in method for limiting the size to no larger than the working area (e.g. monitor - task bar)
I think this should even be on by default with an option to disable it if someone really wants to have a window bigger than the monitor/work area size

And a configurable margin like it must be smaller than the working area by 100px horizontally and 50px vertically would be nice as well

### Alternatives considered

_No response_

### Additional context

_No response_