sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: [image_picker] Support image/video restrictions on Windows
Labels: c: new feature,platform-windows,p: image_picker,package,a: desktop,P3,team-windows,triaged-windows

The current Windows implementation of `image_picker` just delegates to `file_selector` and ignores all of the arguments that allow resizing images or restricting video length. We should consider implementing them, if we can do so without bringing in new library dependencies.

(Ideally we wouldn't have these be part of `image_picker` at all, and would leave that for post-processing by other code, but on iOS we get image data rather than a file, and so it's more efficient to do things like resize the image before writing it to disk, rather than add a write/read of the full sized image only to then resize it from Dart. But given that that doesn't apply on Windows, we may want to deliberately not implement this.)
Repository: go
Issue: runtime: corruption in tests on freebsd-arm
Labels: OS-FreeBSD,NeedsInvestigation,arch-arm,compiler/runtime

```
#!watchflakes
default <- (`runtime.throw\(` || `^\s*fatal error:`) && builder == "freebsd-arm-paulzhol"
```

Broken out from #55167.

<details><summary>2023-06-07 02:51 freebsd-arm-paulzhol go@ea51e92c (<a href="https://build.golang.org/log/acc474319f59955977b7073717dc03200874404f">log</a>)</summary>

    unexpected fault address 0x4d6149
    fatal error: fault
    [signal SIGBUS: bus error code=0x3 addr=0x4d6149 pc=0x1609c0]
    
    goroutine 4945 [running]:
    panic during panic
    SIGBUS: bus error
    PC=0x7cbd8 m=9 sigcode=3
    
    /tmp/workdir-host-freebsd-arm-paulzhol/go/src/make.bash: line 226:  1079 Bus error               ./cmd/dist/dist bootstrap -a $vflag $GO_DISTFLAGS "$@"
</details>
Repository: PowerToys
Issue: Fancy Zones just mixed up the monitors 
Labels: Issue-Bug,Product-FancyZones,Priority-2

### Microsoft PowerToys version

0.70.1

### Installation method

GitHub

### Running as admin

Yes

### Area(s) with issue?

FancyZones

### Steps to reproduce

After use for several days, Fancy Zone reversed the zone settings for the main laptop screen and the second monitor.  The zones were reversed for no apparent reason.  Monitor 1 is listed as Monitor 2 and Monitor 2 is listed as Monitor 1.  Windows 10 Display settings did not change.

### ✔️ Expected Behavior

Expected Fancy zones to work as designed without mixing up the monitors.

### ❌ Actual Behavior

The zones were reversed.

### Other Software

_No response_
Repository: kubernetes
Issue: PV controller is slow when there are many released PVs
Labels: kind/bug,sig/storage,triage/accepted

### What happened?

We have seen PVC binding (no dynamic provisioning) to take minutes when there are thousands of released PVs in the cluster. This is common when using local PVs in the cloud, where nodes get deleted more frequently and leave behind stale local PV objects.

It looks like PV controller is getting throttled by client-go, but the API server does not seem loaded, and there does not seem to be a signficant amount of UPDATEs from the PV controller (10 in a few minutes).
```
Waited for 14.99364385s due to client-side throttling, not priority and fairness, request: PUT:<apiserver>:443/api/v1/namespaces/default/persistentvolumeclaims/<pvc name>/status
```

From code inspection, here's what I've found so far:

Potentially unnecessary Get() calls: 
- https://github.com/kubernetes/kubernetes/blob/v1.27.0-alpha.2/pkg/controller/volume/persistentvolume/pv_controller.go#L643
- https://github.com/kubernetes/kubernetes/blob/fb57080e069fe2efe11734a4570a92873e673c35/pkg/controller/volume/persistentvolume/pv_controller.go#L1295

Unbind volume does not check if updated is needed: 
https://github.com/kubernetes/kubernetes/blob/fb57080e069fe2efe11734a4570a92873e673c35/pkg/controller/volume/persistentvolume/pv_controller.go#L1110

It looks like client-go throttling is done per rest client, so a lot of GETs could cause UPDATEs to get throttled:
https://github.com/kubernetes/kubernetes/blob/fb57080e069fe2efe11734a4570a92873e673c35/staging/src/k8s.io/client-go/rest/request.go#L624

### What did you expect to happen?

Released PVs should be less important than binding new PVCs

### How can we reproduce it (as minimally and precisely as possible)?

Create thousands of Released PVs in a cluster, try to bind a new PVC

### 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: material-ui
Issue: Reversed Range Slider
Labels: new feature,component: slider

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Summary 💡

Need the ability to have a slider's marks go from max to min instead of min to max. Looks like the component will re-order them behind the scenes even if the array goes that way.

### Examples 🌈

[1, 0.5, 0]

### Motivation 🔦

Eternal User Happiness
Repository: pytorch
Issue: [help] did torch.distributed.launch can be applied on k8s cluster with pytorch-operator
Labels: oncall: distributed,module: elastic

### 🐛 Describe the bug

Hi, i have been successfuly in starting distributed training via torch.distributed.launch on baremetal servers.
But recently, i need to using k8s cluster, and "apply -f operator.yaml" on kubernetes is recommanded .
I wonder does pytorch-operator or other training-operator support torch.distributed.launch ?
because pytorch-operator does not import args like "ADDR_MASTER" or "NODE_RANK" etc to starts distributed train, but these args should be manually initialized to input to torch.distributed.launch, which really confuses me.
Thank you in advance~ any hints would be helpful to me

### Versions

kubernetes cluster

cc @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @H-Huang @kwen2501 @awgu @dzhulgakov
Repository: godot
Issue: RenderingServer.global_shader_parameter_add doesn't seem to add a parameter
Labels: bug,topic:rendering,topic:editor,confirmed

### Godot version

4.1.dev4.official

### System information

Godot v4.1.dev4 - Windows 10

### Issue description

Using `RenderingServer.global_shader_parameter_add` doesn't appear to add an entry in Project Settings -> Shader Globals, and the shader editor doesn't pick up on its existence. 

### Steps to reproduce

Here is an example script to place on a SubViewport. Add it to a scene and note the global is not added.

```gdscript
@tool
extends SubViewport


func _ready() -> void:
	await RenderingServer.frame_post_draw
	RenderingServer.global_shader_parameter_add(HEIGHT_MAP_GLOBAL, RenderingServer.GLOBAL_VAR_TYPE_SAMPLER2D, get_texture())
```

### Minimal reproduction project

See above
Repository: go
Issue: net/textproto: can write binary header it can't read
Labels: NeedsInvestigation

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.20.5 linux/amd64
</pre>

### Does this issue reproduce with the latest release?

-  b9baf4452fe949a5a159eec4d4a437ad2833ead1 (latest tip) yes
- `1.20.5` (latest release) yes
- `1.19.10` (latest previous release) no

### 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/hugo/.cache/go-build"
GOENV="/home/hugo/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/hugo/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/hugo/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/home/hugo/Documents/Scripts/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/hugo/Documents/Scripts/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.20.5"
GCCGO="gccgo"
GOAMD64="v3"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/hugo/Documents/Scripts/go/src/go.mod"
GOWORK=""
CGO_CFLAGS="-O2 -g"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-O2 -g"
CGO_FFLAGS="-O2 -g"
CGO_LDFLAGS="-O2 -g"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build4234151944=/tmp/go-build -gno-record-gcc-switches"
</pre></details>

### What did you do?

Run https://go.dev/play/p/f3mNQX8WQf6.

### What did you expect to see?

```
Hello, 世界
```

### What did you see instead?

```
panic: malformed MIME header line: Test: this is a header  containing binary

goroutine 1 [running]:
main.main()
	/tmp/sandbox1871938318/prog.go:39 +0x2b7
```

### `git bisect`

I bisected the issue a6642e67e16b9d769a0c08e486ba08408064df19.

### RFC 7230

I get that my original code was buggy given RFC 7230 however it was working fine before and isn't anymore which is a breaking change, that why I am raising the issue here.
If you maintainers decide this is a WONTFIX, at least we should convert this issue to something along the lines of `net/textproto, mime/multipart: should error when writing invalid part header`, it is not normal that I can write thoses broken headers but not read them, if anything this should be consistent.
Repository: next.js
Issue: Client Head Manager > `updateElements` doesn't fail gracefully in production
Labels: bug,Metadata

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
This bug is not environment-specific.

Operating System:
      Platform: darwin
      Arch: arm64
      Version: Darwin Kernel Version 22.5.0: Mon Apr 24 20:52:24 PDT 2023; root:xnu-8796.121.2~5/RELEASE_ARM64_T6000
    Binaries:
      Node: 16.15.1
      npm: 8.11.0
      Yarn: N/A
      pnpm: 8.5.1
    Relevant packages:
      next: 13.4.5-canary.7
      eslint-config-next: N/A
      react: 18.2.0
      react-dom: 18.2.0
```


### Which area(s) of Next.js are affected? (leave empty if unsure)

Metadata (metadata, generateMetadata, next/head, head.js)

### Link to the code that reproduces this issue or a replay of the bug

https://github.com/vercel/next.js/blob/0d46361f8e83ce3607762483b55377a479cd7dbf/packages/next/src/client/head-manager.ts#L136-L143

### To Reproduce

This is a logic flaw in the code, not a behavioural bug. It may be intentional.

### Describe the Bug

The `initHeadManager().updateHead` method calls a private `updateElements` method, responsible for updating the `<head>` and storing a count of tags in a special `<meta name="next-head-count">`.

There are various scenarios (usually the lack of `{ Head } from 'next/document'` being implemented) that may lead to `<meta name="next-head-count">` not being included in the document head.

In development mode, the existence of the meta tag is checked and an error logged to the console if it is missing. In production this check does not exist, and where the tag is missing a critical error occurs.

https://github.com/vercel/next.js/blob/0d46361f8e83ce3607762483b55377a479cd7dbf/packages/next/src/client/head-manager.ts#L136-L143

### Expected Behavior

A missing `<meta name="next-head-count">` should be handled gracefully in production mode. The method should return prior to attempting to execute code relying on a tag that may or may not be present.

Specifically on L133, the type of `headCountEl` should rightly be `HTMLMetaElement | undefined` and handled accordingly.
https://github.com/vercel/next.js/blob/0d46361f8e83ce3607762483b55377a479cd7dbf/packages/next/src/client/head-manager.ts#L133-L135

### Which browser are you using? (if relevant)

_No response_

### How are you deploying your application? (if relevant)

_No response_
Repository: ant-design
Issue: Select. Virtual scrolling. The drop-down box will display blank if it exceeds a certain amount of data
Labels: Inactive,unconfirmed

### Reproduction link

[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/antd-virtual-select-vhnc85)

### Steps to reproduce

1. Set "virtual"
2. Set up data exceeding 700000

### What is expected?

scroll normally

### What is actually happening?

The drop-down box will display blank if it exceeds a certain amount of data

| Environment | Info |
| --- | --- |
| antd | 5.6.1 |
| React | >=17.0.2 |
| System | macos 13.4 |
| Browser | chrome 114.0.5735.106 |

---
it also occurs in antd4

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: rust
Issue: Confusing error message when enum variant is used without capitalization if a trait function has the name name
Labels: A-diagnostics,T-compiler

### Code

```Rust
enum Foo {
    Count,
}

const VALUE: Foo = Foo::count;
```


### Current output

```Shell
error[E0599]: `Foo` is not an iterator
 --> src/lib.rs:5:25
  |
1 | enum Foo {
  | --------
  | |
  | variant or associated item `count` not found for this enum
  | doesn't satisfy `Foo: Iterator`
...
5 | const VALUE: Foo = Foo::count;
  |                         ^^^^^ `Foo` is not an iterator
  |
  = note: the following trait bounds were not satisfied:
          `Foo: Iterator`
          which is required by `&mut Foo: Iterator`
note: the trait `Iterator` must be implemented
 --> /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/iter/traits/iterator.rs:74:1
  = help: items from traits can only be used if the trait is implemented and in scope
  = note: the following trait defines an item `count`, perhaps you need to implement it:
          candidate #1: `Iterator`

For more information about this error, try `rustc --explain E0599`.
```


### Desired output

```Shell
help: there is a variant with a similar name (notice the capitalization): `Count`
```


### Rationale and extra context

_No response_

### Other cases

_No response_

### Anything else?

_No response_
Repository: transformers
Issue: generation error when same token in "forced_eos_token_id" and "supress_token" parameter.
Labels: WIP

### System Info

- `transformers` version: 4.28.0.dev0
- Platform: Linux-5.4.0-139-generic-x86_64-with-glibc2.31
- Python version: 3.10.11
- Huggingface_hub version: 0.15.1
- Safetensors version: not installed
- PyTorch version (GPU?): 2.0.1+cu117 (True)
- Tensorflow version (GPU?): not installed (NA)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>

### Who can help?

@gante 

### Information

- [ ] The official example scripts
- [X] My own modified scripts

### Tasks

- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [X] My own task or dataset (give details below)

### Reproduction

1. HuggingFace's generation method was being used in the Open-Assistant library that used HuggingFace's Model class.
https://github.com/LAION-AI/Open-Assistant/blob/0fcf3e08fe62295d4696e590005b0f33383342ea/model/model_training/utils/ppo_utils.py#L264-L267

2. generate method throw an error: RuntimeError:probability tensor contains either `int`, `nan` or element < 0
![error1](https://github.com/huggingface/transformers/assets/85441953/56771083-4800-4138-a9b1-ad45c0505d61)

3. I found that if same token is in "forced_eos_token_id" and "suppress_tokens", error occurs.

```python
from transformers import AutoModelForCausalLM, AutoTokenizer

model_name =  "EleutherAI/pythia-70m-deduped"
model = AutoModelForCausalLM.from_pretrained(model_name)
tokenizer = AutoTokenizer.from_pretrained(model_name)

gen_kwargs = {'max_new_tokens': 10,
 'top_k': 0,
 'top_p': 0.7,
 'do_sample': True,
 'temperature': 1.0}

gen_kwargs["forced_eos_token_id"] = tokenizer.eos_token_id
gen_kwargs["suppress_tokens"] = [tokenizer.eos_token_id]
print(gen_kwargs)

question = """
Where is Gangnam?
"""
batch = tokenizer.encode(f"
{question}
", return_tensors="pt")

out = model.generate(
    input_ids=batch.to(model.device),
    **gen_kwargs
)
``` 

### Expected behavior

I want to know, using same token in "forced_eos_token_id" and "suppress_token" is restricted usage, because it seems to me bit contradictory.

If it is an general error, I think that something like warning should be recommended.

Or it might be my own error.
Repository: material-ui
Issue: [joy-ui][Slider] `isRtl` needs updated transforms
Labels: component: slider,package: joy-ui

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Steps to reproduce 🕹

Link to live example: https://codesandbox.io/s/9cutxl?file=/demo.tsx

Steps:

1. Simply add `isRtl` to the slider


### Current behavior 😯

All CSS `transform`s use the LTR values

### Expected behavior 🤔

All CSS `transform`s should use updated RTL values

### Context 🔦

_No response_

### Your environment 🌎

<details>
  <summary><code>npx @mui/envinfo</code></summary>

```
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.
```
</details>
Repository: rust
Issue: rustc keeps suggesting borrows to no avail
Labels: A-diagnostics,T-compiler,D-invalid-suggestion

### Code

Don't have a minimum reproduction case because I don't fully understand the issue yet

see repo [here](https://github.com/drewcassidy/generic-parameterize/tree/rustc-wtf) specifically [these lines](https://github.com/drewcassidy/generic-parameterize/blob/rustc-wtf/src/lib.rs#L260-L263)


```Rust

// it keeps wanting me to add more borrows!
    &(&param_lists
        .iter()
        .map(|pl| zip(repeat(pl.0.clone()), pl.1.params()))
        .multi_cartesian_product());
```


### Current output

```Shell
error[E0277]: the trait bound `std::boxed::Box<dyn Iterator<Item = &dyn params::Param>>: Clone` is not satisfied
    --> src/lib.rs:263:10
     |
263  |         .multi_cartesian_product());
     |          ^^^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `std::boxed::Box<dyn Iterator<Item = &dyn params::Param>>`
     |
     = note: required for `std::boxed::Box<dyn Iterator<Item = &dyn params::Param>>` to implement `Clone`
     = note: 1 redundant requirement hidden
     = note: required for `std::iter::Zip<std::iter::Repeat<proc_macro2::Ident>, std::boxed::Box<dyn Iterator<Item = &dyn params::Param>>>` to implement `Clone`
note: required by a bound in `multi_cartesian_product`
    --> /Users/drewcassidy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/itertools-0.10.5/src/lib.rs:1116:55
     |
1116 |               <Self::Item as IntoIterator>::IntoIter: Clone,
     |                                                       ^^^^^ required by this bound in `Itertools::multi_cartesian_product`
help: consider borrowing here
     |
260  ~     &(&(&param_lists
261  |         .iter()
262  ~         .map(|pl| zip(repeat(pl.0.clone()), pl.1.params())))
     |
```


### Desired output


Im not sure the correct solution here, but it keeps suggesting I borrow something already borrowed and it changes nothing



### Rationale and extra context

_No response_

### Other cases

_No response_

### Anything else?

Nightly shows the same output
Repository: stable-diffusion-webui
Issue: Can the stable-diffusion-webui integration extension plug-in have an independent accessible url address?
Labels: enhancement,extension-request

### 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 ?

Can the stable-diffusion-webui integration extension plug-in have an independent accessible url address?

Does not integrate a stable-diffusion-webui page http://x.x.x.x:7680/,
he has an independent access address http://x.x.x.x:7680/segment-anything,

the interface has too many functions, I just use his independent plug-in page, for example : There is a segment-anything plugin how do I do it?

### Proposed workflow

Access the plug-in function through the url path, which is an independent page, 

for example: http://x.x.x.x:7680/segment-anything

### Additional information

_No response_
Repository: tauri
Issue: [feat] ability to listen to when window is going to go full screen (macOS)
Labels: type: feature request

### Describe the problem

Tauri provides the `tauri://resize` event that can emit events when the window changes size and also (in macOS) when the app has entered/left full screen (emphasis on the past tense). But there are situations where we want to know if the window is going to leave/enter full screen (as in future).

One example for such is basically, lets say you have a header area and you want to inline the window controls into the window (a common macOS design style), we need to leave space for the window controls on the top left of the window. This space is not required in full screen as window controls are not present there. With the resize event, the current situation is that, if we toggled based on the `Window#isFullScreen()` property on the callback for the event, we only receive the callback after the window is done animating out of the full screen mode into the windowed view. This leads to a couple of moments where the spacing is not applied eventhough the window control is coming in.

Here is a video demo of roughly what I mean, the goal is to keep the emoji rendered aside the window controls, see how on leaving full screen we have few frames where the emoji is behind the window controls:

https://github.com/tauri-apps/tauri/assets/9131943/04cbc8c3-fda5-45e3-8b9d-964cb296d111




### Describe the solution you'd like

macOS does provide an event `windowWillExitFullScreen` and `windowWillEnterFullScreen` [[reference]](https://developer.apple.com/documentation/appkit/nswindowdelegate/1419332-windowwillexitfullscreen) to `NSWindowDelegates` that I am pretty sure Tao implements but doesn't expose into the event system. I think a way to access this event will be cool.

### Alternatives considered

Currently we internally literally override the `NSWindowDelegate` implementation Tao provides and add these as custom events but that is super brittle and weird.

### Additional context

I think this maybe a Tao specific request and might need to be moved to that repo, but I leave it to the maintainers to decide that.
Repository: pytorch
Issue: Image Processing with Pytorch
Labels: triaged

### 🚀 The feature, motivation and pitch

Hello, I would like to use it in Image Processing for calculating the similarity between two photos. I am thinking Pytorch is really well for this process. But I couldn't see any issue therefore I would like to open that issue. I would like to submit a code as an example of usage for PyTorch in this area. And I would like to know how and where can I do this.

### Alternatives

_No response_

### Additional context

My codes calculate the similarity between the reference image and the target image. For the data, I got some of the example pictures but the photo could change, it is necessary.
Repository: create-react-app
Issue: CRA no longer supported
Labels: needs triage,issue: bug report



### Describe the bug

![image](https://github.com/facebook/create-react-app/assets/29349136/58bf4178-9e87-453d-bca5-5d67b5cd6ae3)
i keep getting this warning saying to use Vite is CRA no longer supported ?