sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: transformers
Issue: Chameleon image generation low quality. 
Labels: Feature request,WIP,bug

### System Info

transformers 4.43.0 dev

### Who can help?

@zucchini-nlp 

### Information

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

### Tasks

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

### Reproduction

Using the model.generate function within the transformers framework to generate an image, in comparison to the inference pipeline from https://github.com/GAIR-NLP/anole, results in a relatively lower quality image.

Besides I take a test on some image generation benchmark, and get consistent results.

### Expected behavior

1. Could you please provide a script to convert Hugging Face weights to PyTorch weights, so that we can use them with the Meta inference pipeline?
2. Could you kindly outline the best sampling parameters in the doc for generating high-quality images?
Repository: kubernetes
Issue: Make apiserver.Config.FeatureGate easier to access feature gate of other components.
Labels: kind/bug,sig/api-machinery,triage/accepted

### What happened?

With the introduction of https://github.com/kubernetes/enhancements/issues/4330, the feature gates of different components are associated with the versions of their components. Going forward, we should not put all features inside the `DefaultFeatureGate`, and it would be more common to pass instances of feature gate around instead of just referencing the `DefaultFeatureGate`.

Currently we pass a single instance of `featuregate.FeatureGate` into the [`apiserver.Config`](https://github.com/kubernetes/kubernetes/blob/3a8a60eba29940e26ac8db52329a91ba87305114/staging/src/k8s.io/apiserver/pkg/server/config.go#L157). This could be problematic if we need access to the feature gates of other components in apiserver. 

### What did you expect to happen?

 the `ServerConfig.FeatureGate` needs to be a type that has `func FeatureGateFor(component string) featuregate.FeatureGate` from `ComponentGlobalsRegistry`, so it is easier to access feature gates of other components.

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

N.A.

### Anything else we need to know?

_No response_

### Kubernetes version

1.31

### Cloud provider

<details>
N.A.
</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: go
Issue: x/perf/cmd/benchstat: ignore lines prefixed with `panic: `
Labels: NeedsFix,FeatureRequest

### Go version

go version go1.22.5 linux/amd64

### Output of `go env` in your module/workspace:

```shell
-bash-5.2$ go env
GO111MODULE=''
GOARCH='amd64'
GOBIN='/home/archanaravindar/Go/Go_master/go/bin'
GOCACHE='/home/archanaravindar/.cache/go-build'
GOENV='/home/archanaravindar/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/home/archanaravindar/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/home/archanaravindar/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/home/archanaravindar/Downloads/perfdash/amd/archana/Go1.22/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/home/archanaravindar/Downloads/perfdash/amd/archana/Go1.22/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.22.5'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/dev/null'
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 -ffile-prefix-map=/tmp/go-build1253104010=/tmp/go-build -gno-record-gcc-switches'
```


### What did you do?

I was trying to generate a benchstat comparison of the basic Go compiler benchmarks with latest version of Go1.22 and Go1.23rc1 and some of the tests face time outs on either of the Go versions and some on both in a particular set of runs.
 
For a subset of package directories under go/src I ran for both Go1.22.5 and Go1.23rc1, and generated two output files go1.22.txt and go1.23.txt and ran benchstat go1.22.txt and go1.23.txt 

 go test -c
 go test -bench=. -test.count=n >>output_file 


### What did you see happen?

In cases where only some tests time out in a particular package and generate a FAIL currently benchstat reports the results of even the tests that ran to completion on both versions separately in different sections of the file rather than as a comparison. If all the tests timed out and there is no data to compare this would be the only option. However since we have some partial data to compare a partial comparison would be useful.


### What did you expect to see?

it would be helpful to atleast generate a partial comparison report for that package for those tests that ran fully. 
For instance in the example attached document the package bytes causes a timeout for some of the tests on both versions (obfs.23.txt and obfs.22.txt) and if we look at the benchstat output file we see all tests under bytes reported separately in different sections(obfsbenchstatout.txt).  If benchstat can generate a partial comparison of atleast the tests that run to completion on both versions it would be very helpful instead of trying to write addon scripts to extract the information ourselves.
Repository: langchain
Issue: Chathuggingface 422 error
Labels: 🤖:bug,investigate

### Checked other resources

- [X] I added a very descriptive title to this issue.
- [X] I searched the LangChain documentation with the integrated search.
- [X] I used the GitHub search to find a similar question and didn't find it.
- [X] I am sure that this is a bug in LangChain rather than my code.
- [X] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

### Example Code

```python
from langchain_huggingface import ChatHuggingFace, HuggingFaceEndpoint

llm = HuggingFaceEndpoint(
    endpoint_url="http://10.165.9.23:9009",
    task="text-generation",
    max_new_tokens=10,
    do_sample=False,
    temperature=0.8,
)
res = llm.invoke("Hugging Face is")
print(res)
print('-------------------')

llm_engine_hf = ChatHuggingFace(llm=llm, model_id = "meta-llama/Meta-Llama-3-8B-Instruct")
res = llm_engine_hf.invoke("Hugging Face is")
print(res)
```


### Error Message and Stack Trace (if applicable)

_No response_

### Description

Using ChatHuggingFace with llm being HuggingFaceEndpoint got 422 error "Unprocessable entity" from huggingface-hub Inference client post function, when using the latest versions of langchain and huggigface-hub 0.24.3. Downgrading to the following version, I got the code to run.

The working versions of packages
huggingface_hub==0.24.0
langchain==0.2.9
langchain-core==0.2.21
langchain-huggingface==0.0.3
langchain_community==0.2.7

### System Info

The following versions are what caused problems
langchain-community==0.0.38
langchain-core==0.2.19
langchain-huggingface==0.0.3
langchain-openai==0.1.16
huggingface_hub==0.24.3
Repository: flutter
Issue: Skip all tests but certain ones when validating a PR on flutter/flutter CI
Labels: a: tests,c: proposal,team-infra,P3,c: tech-debt,triaged-infra,monorepo

As an example, in https://github.com/flutter/flutter/pull/152383, I want to know if `Linux_android_emu flutter_driver_android_test` is configured OK, but I need to run dozens of other tests. I could comment out tons of lines in the `.ci.yaml` file, but that is burdensome and has a margin of error where I forget to comment them back in.

---

## Proposal

A `test: only` label, that, when applied:

1. Skips all tests/tasks by default
2. _Doesn't_ skip tests/tasks that are specified by some magic comment text in the PR description, i.e. something like:

    ```txt
    TEST_ONLY="Linux_android_emu flutter_driver_android_test"
    ```

I would be fine if this check only ran on Draft PRs if that helps convince folks.
Repository: PowerToys
Issue: AI Search
Labels: Idea-Enhancement,Product-PowerToys Run

### Description of the new feature / enhancement

Enable users to search with AI using PowerToys Run.

### Scenario when this would be used?

This feature would make AI queries fast and easy since they can be accessed through the PowerToys Run function. PowerToys users always appreciate speed for things they frequently do.

### Supporting information

It takes time to open a web browser, find an AI assistant, and then type your query. PowerToys Run should incorporate this feature.
Repository: godot
Issue: Pattern Empty in TileMapLayer and TileMap
Labels: bug,topic:editor,topic:2d

### Tested versions

Reproducible in  v4.3.rc1.official [e343dbbcc]
[
![MudstoneWall](https://github.com/user-attachments/assets/127f95d0-f5df-4298-96da-1dd2e3e1970d)
](url)

### System information

Godot v4.3.rc1 - Windows 10.0.19045 - GLES3 (Compatibility) - Intel(R) HD Graphics 520 (Intel Corporation; 24.20.100.6299) - Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz (4 Threads)

### Issue description

TileMapLayer Patterns corrupted or missing after deselecting/opening project

The TileMapLayer Patterns often become corrupted or missing.

Patterns may still appear, but tiles may be missing from the pattern. Sometimes patterns are completely empty.

Sometimes generating an error "Cannot add an empty pattern to the tileset."

### Steps to reproduce

+ Sample texture atlas attached for testing purposes. Tiles are 16x16 pixels default
+ Create a TileMapLayer node (either is fine, bug originally found using TileMapLayer)
+ Create a new TileSet resource, assign the atlas, and assign a set of tiles as usual.
+ In Select mode, select a set of tiles from the scene and drag+drop them into the "Patterns" pane
+ Repeat the above step, creating a second Pattern
+ Select any other Node in the scene hierarchy
+ Select the TileMapLayer node again, navigate to the Patterns pane
+ Error "Cannot add an empty pattern to the tileset." appears in some projects, in other projects tilemap patterns are missing or corrupted

### Minimal reproduction project (MRP)

[tilemaplayerpatternbug.zip](https://github.com/user-attachments/files/16395176/tilemaplayerpatternbug.zip)
Repository: next.js
Issue: App Router 14.2.5 Setting a cookie in a Server Action Failing
Labels: bug

### Link to the code that reproduces this issue

https://github.com/lukebelbina/nextjs-cookie-server-action-bug

### To Reproduce

Create the following Page in Next Js 14.2.5.

```js
'use server'

export default async function Page() {
  async function setCookieServerAction(signInToken?: string) {
    'use server';

    cookies().set('test', '1234', {});
  }

  await setCookieServerAction();

  return <></>;
}
```

Navigate to the page and you should see the error:

> Error: Cookies can only be modified in a Server Action or Route Handler. Read more: https://nextjs.org/docs/app/api-reference/functions/cookies#cookiessetname-value-options

I have tried a bunch of different ways to do this based on the documentation but all of the result in the same error. My understanding is this is a server action. I also tried a route.

### Current vs. Expected behavior

Expect the cookie to be set

### Provide environment information

```bash
Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP PREEMPT_DYNAMIC Wed, 24 Jul 2024 22:25:43 +0000
  Available memory (MB): 127918
  Available CPU cores: 32
Binaries:
  Node: 22.4.1
  npm: 10.8.1
  Yarn: N/A
  pnpm: 9.5.0
Relevant Packages:
  next: 14.2.5 // Latest available version is detected (14.2.5).
  eslint-config-next: 14.2.5
  react: 18.3.1
  react-dom: 18.3.1
  typescript: 5.5.3
Next.js Config:
  output: N/A
```


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

Not sure

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

next dev (local), next start (local)

### Additional context

_No response_
Repository: TypeScript
Issue: Design Meeting Notes, 7/26/2024
Labels: Design Notes

# PR: error on variables that are used but never initialized

https://github.com/microsoft/TypeScript/pull/55887

- new error on variable declaration when a use occurs inside a block scope
- the reason we don't previously error is we can't see the whole control flow graph—we only error in cases where a control flow walk produces certainty that there's no initialization
- the strategy in the PR is to walk the whole AST and error if there are no assignments anywhere
- implementation isn't quite right
  - leverages the unused variable code, but maybe should be in control flow instead,
  - errors would occur on use sites instead of declaration
    - counterpoint: the _fix_ is going to be at the declaration
    - countercounterpoint: sure, but then you just go-to-def. It's a little harder to go to the references that are causing the error
  - introduces an extra property on symbols, memory hit, 0.5% time increase as-is, possibly unavoidable but maybe some is due to the extra property
- next steps: pass on feedback
  - add some code in checkIdentifier
  - do some stuff with `isPastLastAssignment`
Repository: pytorch
Issue: exclude_dim=[...] as a keyword argument to reduce type operations
Labels: feature,triaged,needs research,module: reductions

### 🚀 The feature, motivation and pitch

## Simple example
Let's say we have a tensor with many dims
```python
batch, channels, depth, height, width = 16, 32, 64, 128, 256
x = torch.randn(batch, channels, depth, height, width)
```
Now we want to find the minimum, but don't want to get the batch dim involved:
```python
some_min = x.amin(dim=(1,2,3,4))
```
Of course in this case we could .reshape the tensor and do it over one dim
```python
some_min = x.reshape(batch, -1).amin(dim=(1))
```
But if doing it over the channel dim, this would become more complex.

## More complex
Now we could have a tensor 
```python
 (batch, ...) = x.shape
``` 
that possibly has different shapes, but the op would still do it over all dimensions except the batch dimensions. Now we have to add additional conditions here to make it work.

## Solution
If we know what dimensions not to do the op over, we can just specify that dimension directly:
 ```python
some_min = x.amin(exclude_dim=(1,))
```

### Alternatives

_No response_

### Additional context

_No response_
Repository: go
Issue: net: UDP sockets on windows error on receive due to ICMP TTL
Labels: OS-Windows,NeedsInvestigation

### Go version

go1.22.5

### Output of `go env` in your module/workspace:

```shell
GO111MODULE=''
GOARCH='arm64'
GOBIN=''
GOCACHE='/Users/raggi/Library/Caches/go-build'
GOENV='/Users/raggi/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='arm64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMODCACHE='/Users/raggi/go/pkg/mod'
GONOPROXY='ra66i.org/raggi,rag.pub/raggi'
GONOSUMDB='ra66i.org/raggi,rag.pub/raggi'
GOOS='darwin'
GOPATH='/Users/raggi/go'
GOPRIVATE='ra66i.org/raggi,rag.pub/raggi'
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/Users/raggi/.cache/tailscale-go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/Users/raggi/.cache/tailscale-go/pkg/tool/darwin_arm64'
GOVCS=''
GOVERSION='go1.22.5'
GCCGO='gccgo'
AR='ar'
CC='clang'
CXX='clang++'
CGO_ENABLED='1'
GOMOD='/dev/null'
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 -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/bb/dyr_1n6j575g8nq85nmnfbt00000gn/T/go-build2102863150=/tmp/go-build -gno-record-gcc-switches -fno-common'
```


### What did you do?

We have observed errors in RecvFrom as a result of ICMP replies to UDP sockets on Windows, which is an unexpected behavior resulting from a Windows socket behavior quirk.

### What did you see happen?

Socket recv generated an error as a result of ICMP replies to earlier sent packets.

### What did you expect to see?

Socket recv should not generate an error due to ICMP received.

### Detail & Proposal

Background: a prior round of this issue was fixed in https://github.com/golang/go/commit/3114bd6f97492461d2027a49fee9f7fce3742b75 which addressed one case of ICMP reply (https://www.betaarchive.com/wiki/index.php?title=Microsoft_KB_Archive/263823), but there are two. The Godot project ran into this issue as well, and describes the issue and fix here: https://github.com/godotengine/godot/commit/397b01d590e5850762d25eaaa2951b1a76da46dc

The net package only disables `SIO_UDP_CONNRESET`, but not `SIO_UDP_NETRESET`, as such there are still ICMP responses that can lead to `wsarecvfrom: The connection has been broken due to keep-alive activity detecting a failure while the operation was in progress.`

We should set SIO_UDP_NETRESET as well as SIO_UDP_CONNRESET in order to get behavior that is most similar to bsd sockets on the other major platforms, where asynchronous ICMP replies are ignored unless explicitly opted in to.
Repository: flutter
Issue: Move over a minimal amount of capacity so that post-submit tasks can run in pre-submit in the `flutter/flutter` tree.
Labels: team-infra,P2,triaged-infra

### Type of Request

infra task

### Infrastructure Environment

I think _mainly_ device-lab capacity?

### What is happening?

@zanderso asked me to assign this to him:

> If we could hold off on <this> until I'm finished replacing the MotoG4 devices with mokey devices that would make things easier for me and simplify buying more capacity.

### Steps to reproduce

Blocks https://github.com/flutter/flutter/issues/151114.

### Expected results

I'd like to be able to add the [`test: all`](https://github.com/flutter/flutter/labels?q=test%3A+all) label in a `flutter/flutter` PR, and have all tasks, even post-submit ones, run in pre-submit. The capacity can be limited, but it should be possible to do so, and the results should be the same as-if it were run on post-submit (i.e. less surprises that "oops, this broke a post-submit task").
Repository: pytorch
Issue: Start processes in _MultiProcessingDataLoaderIter on a ThreadPool
Labels: module: performance,module: dataloader,triaged

### 🚀 The feature, motivation and pitch

When "spawn" is used and num_workers > 0, _MultiProcessingDataLoaderIter init could be very slow.

Each data worker process is created and started from the main thread in the for-loop, and if serialized Dataset passed to worker process is larger than pipe max size, then starting a new process becomes a blocking call (which will wait for all the init and imports to happen in the worker process before reading from the pipe).

With large num_workers this effect is even more pronounced, as we will sequentially wait on blocking calls N times.

For this scenario starting worker processes from the ThreadPool will significantly speed up overall DataLoder init time.


cc @msaroufim @andrewkho @gokulavasan @SsnL @VitalyFedyunin @dzhulgakov
Repository: neovim
Issue: Introduce FoldOpen and FoldClose autocmd events
Labels: enhancement,folds,events

### Problem

To my knowledge there is no current way to hook into an event for when a fold is opened or closed. I think this would be very beneficial for both users and plugin authors to know. The problem that I'm facing is in a situation like this https://github.com/folke/todo-comments.nvim/pull/304 I want to know when a certain fold is opened so I can update the highlights for the new lines that are now in view. I'm currently forced to highlight a certain number of lines (window height) past the top fold in case a fold is opened so the lines are highlighted properly.

### Expected behavior

Ideally there would be an autoevent FoldOpened and FoldClosed that users and plugin authors could hook into. Plugins like `nvim-ufo` can probably benefit from something like this as well.
Repository: next.js
Issue: Basic CSS Cascade Issue with Client Components
Labels: bug

### Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/nextjs-css-order-issue-ltgl6n

### To Reproduce

1. Start the application in dev mode
2. Notice the background color of the header

### Current vs. Expected behavior

I would expect the background color of the header to be the light green but instead it is light red. This looks like it is being caused by the way CSS is being compiled. I would expect the global CSS to come before the CSS from the client component, but it is the opposite. This breaks the normal CSS cascade behavior.

### Provide environment information

```bash
Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP PREEMPT_DYNAMIC Sun Aug  6 20:05:33 UTC 2023
  Available memory (MB): 4102
  Available CPU cores: 2
Binaries:
  Node: 20.11.1
  npm: 10.2.4
  Yarn: 1.22.19
  pnpm: 8.15.4
Relevant Packages:
  next: 14.2.5 // Latest available version is detected (14.2.5).
  eslint-config-next: 14.2.1
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.3.3
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

Not sure

### Which stage(s) are affected? (Select all that apply)

next dev (local), next build (local), next start (local)

### Additional context

This only happens if the `<Header>` is client component.
Repository: flutter
Issue: Cocoon server deploys seem to be broken
Labels: team-infra,P3,triaged-infra

The currently deployed version of Cocoon server is from https://github.com/flutter/cocoon/commit/0dbf196, merged on July 17, and the deploy went out July 19.

In addition, when I tried a manual deployment, the cloud build job succeeded but there is still no newer version of cocoon server serving traffic.