sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: vscode
Issue: Allow user to disable WCO (Window controls overlay)
Labels: feature-request,titlebar

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->
I'm a maintainer of a popular extension for VSCode that intends to add transparency effects to the main VSCode window. My extension relies on the ability to add styles to the entire VSCode window, but PR #188793 removed the experimental setting to control WCO, which means that my extension can no longer apply transparency to window controls on Windows platforms.

WCO can also be buggy in certain situations, see #165454 and #160518 as examples.

Please add a configuration option to allow the user to override the default behavior and disable WCO. The relevant function where this check can be added is here: https://github.com/microsoft/vscode/blob/e8fcc1eaf6d738b3f0992f03c3d352c32d7da536/src/vs/platform/window/common/window.ts#L194-L205
Repository: transformers
Issue: Add the learning rate (in exponential representation, like "9.197948717948718e-08") to the model training output
Labels: Feature request

### Feature request

Good day. Can you add current learning rate to output of training process. 
Now, if we train model with Trainer we get those output (without leraning rate):

<img width="302" alt="image" src="https://github.com/huggingface/transformers/assets/17560478/239c3ce1-c7dc-4d79-9664-52ac4e3ea605">


I'm using this code to add information about the current learning rate value to the output:

```python
from transformers import Trainer, Seq2SeqTrainer
from typing import Any, Dict, List, Union

class MyTrainer(Seq2SeqTrainer):
    def log(self, logs: Dict[str, float]) -> None:
        logs["learning_rate"] = self._get_learning_rate()
        print(logs["learning_rate"])
        super().log(logs)
        

trainer = MyTrainer(
    args=training_args,
    model=model,
    train_dataset=common_voice["train"],
    eval_dataset=common_voice["test"],
    data_collator=data_collator,
    compute_metrics=compute_metrics,
    tokenizer=processor.feature_extractor,
)

trainer.train()
```

This causes the learning rate values to appear in the tabular output during model training, as here:

<img width="536" alt="image" src="https://github.com/huggingface/transformers/assets/17560478/defa1a31-15a5-4994-905e-7afdccee76de">


But the latest version of the library doesn't have enough field width to display this parameter correctly.

### Motivation

Currently, when using the library, the learning rate is not displayed. It can only be viewed on the hub. But if the library is used locally without internet access, there is no way to track the current learning rate during fine-tuning/training of the model.

### Your contribution

Gave a succinct example of the sample code in "Feature request" field that I use to output a learning rate value.
Repository: pytorch
Issue: manylinux_2_28 support
Labels: module: build,triaged,enhancement

### 🐛 Describe the bug

Can we use **manylinux_2_28** to build latest pytorch? Latest binaries are released with manylinux2014 which use gcc 10.2.x. However to use the some of the flags available in GCC11/GCC12, can we use manylinux_2_28 to build pytorch binaries for CPU?

cc @seemethere @malfet @pytorch/pytorch-dev-infra

### Versions

PyTorch 2.1.x
Repository: tensorflow
Issue: manylinux_2_28 support
Labels: stat:awaiting tensorflower,type:build/install,subtype: ubuntu/linux,TF 2.15

### Issue type

Build/Install

### Have you reproduced the bug with TensorFlow Nightly?

Yes

### Source

source

### TensorFlow version

TF 2.15

### Custom code

Yes

### OS platform and distribution

Ubuntu 22.04

### Mobile device

Linux Ubuntu 22.04

### Python version

3.9

### Bazel version

Latest

### GCC/compiler version

10.2

### CUDA/cuDNN version

NA

### GPU model and memory

NA

### Current behavior?

This is not a bug, but didnt find a better place to ask the question.
Can we use manylinux_2_28 to build latest tensorflow v2.15? Latest binaries are released with manylinux2014 which use gcc 10.2.x. However to use the some of the flags available in GCC11/GCC12, can we use manylinux_2_28 to build Tensorflow binaries for CPU?

### Standalone code to reproduce the issue

```shell
N/A
```


### Relevant log output

```shell
NA
```
Repository: deno
Issue: error: Permission denied (os error 13)
Labels: bug,needs info

When I run 
`deno install --allow-read --allow-net --unstable https://deno.land/x/oak/mod.ts`
It will say this.
Repository: langchain
Issue: Issue: Unable to Serialize AgentExecutor Object for Centralized Storage
Labels: Ɑ: memory,Ɑ: agent,🤖:bug,🤖:question,🔌: redis

### Issue you'd like to raise.

To develop a scalable solution, I hoped to store the AgentExecutor object in centralized memory, such as Redis. However, due to its non-serializable nature, this has not been possible. Is there a workaround to achieve this?

### Suggestion:

_No response_
Repository: neovim
Issue: SwapExists event not triggered when buffer is loaded after :bdelete
Labels: bug-vim,events

### Problem

I expect the W325(#25336) to work and suppress the E325, when I use `:bdelete`.

### Steps to reproduce

1. open some file `nvim --clean file1`
2. open multiple files `nvim --clean file2 file1 file3`
3. use `:bdelete` until E325 appears

### Expected behavior

Works the same as if I had used `:bnext'.

### Neovim version (nvim -v)

NVIM v0.10.0-dev-df87266

### Vim (not Nvim) behaves the same?

idk

### Operating system/version

NixOS unstable

### Terminal name/version

foot

### $TERM environment variable

foot

### Installation

nix flake neovim/contrib
Repository: next.js
Issue: pages folder in src not ignored when app folder exists in root
Labels: bug

### Link to the code that reproduces this issue

https://github.com/atstoyanov/nextjs-build-fail

### To Reproduce

1. Clone the repository
2. Execute `npm i` and `npm run build`

### Current vs. Expected behavior

Current:
Running `npm run build` results into:
```
Build optimization failed: found page without a React Component as default export in 
pages/TestPage
```

Expect:
Components in `src/pages` to not to be counted as pages when the `/app` folder exists.

According to the documentation: 
https://nextjs.org/docs/app/building-your-application/configuring/src-directory

> `src/app` or `src/pages` will be ignored if `app` or `pages` are present in the root directory.

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.1.0: Mon Oct  9 21:27:24 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T6000
Binaries:
  Node: 18.18.2
  npm: 9.8.1
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 14.0.4-canary.6
  eslint-config-next: 14.0.3
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.1.6
Next.js Config:
  output: standalone
```


### Which area(s) are affected? (Select all that apply)

App Router

### Additional context

_No response_
Repository: go
Issue: proposal: database/sql: provide google/go-safeweb/safesql like api
Labels: Proposal

Currently the `database/sql` package does very little to prevent accidental SQL injection.

Both of these calls are valid and accepted: 

```go
db.QueryRow("SELECT id from db where name = ?", name) // Safe
db.QueryRow("SELECT id from db where name = '"+name+"'") // SQL injection vulnerable
```

There are ways to make sure that only constants or trusted strings end up being used as query sources, like the [safesql](https://pkg.go.dev/github.com/google/go-safeweb/safesql) package does.

Consider that the safesql package is a very tiny wrapper around the standard package, most code looks like this:

```go
func (c Conn) ExecContext(ctx context.Context, query TrustedSQLString, args ...interface{}) (Result, error) {
	return c.c.ExecContext(ctx, query.s, args...)
}
```

And the only real addition is the trusted string manipulation and construction library provided by the fifty lines of code in [safesql.go](https://github.com/google/go-safeweb/blob/d42a82ec06a0e6e6e8eae37d167805e8ec801e4e/safesql/safesql.go).

Maintaining this package is trivial as it only changes when the sql API package changes, and it contains very little logic.

The advantage is that this makes it significantly harder for programmers to accidentally pass user input as query source, without almost any hinderance on code writing, and migration is trivial ([see more in the doc](https://pkg.go.dev/github.com/google/go-safeweb/safesql#hdr-Migration_Examples)).

> Code like the following is trivial to migrate from sql to safesql:
> `db.Query("SELECT ...", args...)`
> The only change required would be to promote the string literal to a trusted string:
> `db.Query(safesql.New("SELECT ..."), args...)`

This approach is the one used and suggested by Google (the safesql package is itself owned by Google) and it has been talked about for a while now ([2016 talk by Christoph Kern](https://www.youtube.com/watch?v=ccfEu-Jj0as)). It's a very battle tested and effective way to prevent code injection.

The standard library has packages like `html/template` that already follow similar approaches, so this is not new to the Go stdlib.

Sadly, this is not known and most people end up using the barebone, unprotected SQL package.

My proposal would be to provide a v2 for `database/sql`, a `database/safesql` or even just a separate package outside of the stdlib that the doc for database/sql points to.

I think having users default to the less safe option is a suboptimal situation, we should at least provide a warning of the issue and point users to a solution.
Repository: nvm
Issue: Add CLI option to set where to get the node version from, other than `/.nvmrc`
Labels: feature requests

In my quest to try and have a clean root for my project, I have moved most of my config files to a `config` folder. I was able to do so because I could specify to the various tools that their config file was located there via a CLI option like `--config <path>`.

`nvm` does not provide a way to set such path. It would be handy to be able to run something like `nvm use --config config/nvm` or `nvm use -c config/nvm` and read the given file like it would read `.nvmrc`.

To further expand, one could put a `.nvmrc` file in a folder—say `config`—such that when the `-c` option is used by just giving the path to a folder, like `nvm use -c config`, it would look for a `.nvmrc` in that folder. Or, even better in my opinion, have it search for more than just `/.nvmrc` (personal taste, `./config/nvm/config` would be the best).
Repository: storybook
Issue: [Bug]: Controls don't persist when page is reloaded or moved to iframe
Labels: bug,args,sev:S2

### Describe the bug

Hi,

In our team, we discovered there is an issue related to some controls when the storybook page is reloaded or moved to the iframe view.

### To Reproduce

Basically, this error happens when `defaultValues` are set to the component we want to see in the storybook.

`componentName.defaultProps = defaultProps;`.

We believe this set overwrites the controls we manage in the storybook page.


https://github.com/storybookjs/storybook/assets/85619872/1a1e3860-976f-4385-8d8e-2c0b75c40607



### System

```bash
Any OS.
```


### Additional context

The issue has been tested on 6.5.10 and 7.5.3 (the latest one).
Repository: go
Issue: x/pkgsite/cmd/pkgsite: (self-hosted) README.md not visible in untagged version, but visible in tagged version
Labels: NeedsInvestigation,pkgsite

This issue describes a problem in a self-hosted `pkgsite` environment.

## Setup

Our setup uses [this commit](https://github.com/golang/pkgsite/commit/68be0dd19ca1f26829a1586f041de142ed2d3b44) as basis for a `pkgsite` frontend+worker, using [Athens v0.12.1](https://github.com/gomods/athens/releases/tag/v0.12.1) as proxy (through the frontend's `-proxy_url` commandline option) for our private Gitlab repositories. Our private Gitlab repositories are regularly fetched through the proxy, and the documentation is updated. This runs well. I can elaborate on the setup if that's needed.

We noticed a discrepancy between non-tagged Go modules and tagged Go modules with regards to the `README` file. We use `README.md` for easy reading within the Gitlab web interface.

## Problem description

In a repository containing a non-empty `README.md` with (multiple) Git tags (e.g. `v1.1.4`), the `README.md` is neatly shown inside the pkgsite frontend. However, in another repository that contains a non-empty `README.md` but does not have Git tags, the `README.md` is **not** shown in the pkgsite frontend.

## Expected behaviour

Regardless of the presence of Git tags, a non-empty `README` should be visible within the `pkgsite` frontend.

## Other information

The reported, most recent version in the untagged module is `v0.0.0-20231121130704-9ad3935cf734`. The reported, most recent version in the tagged module is `v1.1.4`. Our Gitlab settings set the `develop` branch as default branch. When cloning the repository, this defaults to pulling the `develop` branch.

In the untagged module, there exists a `master` branch with two commits, but the reported commit `9ad3935cf734` is not present in that branch. The `master` branch doesn't contain a `README.md`. However, if `pkgsite` would use the `master` branch, I would have expected a rather empty directory structure on the documentation page. When looking at the untagged module on the `pkgsite` frontend, it shows the directory structure currently present in the commit `9ad3935cf734`.

The size of `README.md` in the tagged repository is 641 bytes. The size of `README.md` in the untagged repository is 1134 bytes. The `MaxFileSize` in `internal/fetch/limit.go` is `30 * megabyte`, so I'm not expecting these `README`s to hit the fetch limit. Our log files from the frontend and the worker (both on log level `info`) do not contain words like `exceeds` or `file size`.

At this time, the pkgsite diff to [`master@ee1eba0daf6405765d06de9643dfe6c620ed47a8`](https://github.com/golang/pkgsite/compare/68be0dd19ca1f26829a1586f041de142ed2d3b44..ee1eba0daf6405765d06de9643dfe6c620ed47a8) with regards to our version doesn't seem to indicate any patches that would describe and/or solve this problem. 

Referencing self-hosting tracking issue #39827 as well.
Repository: vscode
Issue: API for chat "annotations"
Labels: feature-request,api-proposal

We have some scenarios where we need to attach something like metadata or an annotation to the stream of chat content coming from an agent.

- Annotating potential code vulnerabilities on a codeblock
- Annotating code references "snippy"
- Indicating a suggested file path that a codeblock could be saved to

We want to distinguish the "content" of the stream from "annotations" on the stream that just mark up the content in some way. There are a few ways to model this in extension API that we discussed.

- Add an annotation inline to the relevant piece of content itself, currently implemented here: https://github.com/microsoft/vscode/blob/abd2e2cd5267557fe6537f4ae86ebfccadb689dc/src/vscode-dts/vscode.proposed.chatAgents2Additions.d.ts#L37-L41
  - Pros: Talk about the content and the annotations at the same time. No need to refer to a previous position in the stream
  - Cons: Only works if you know about the annotation at the same moment that you send the content. It seems that this would be the case for the scenarios that we know about, but it's not flexible and maybe we would have a scenario where we want to add annotations after the fact.
- Send an annotation with an offset/length
  - Pros: Can send this at any point in the stream.
  - Cons: Doing the accounting to track offsets could be hard. If we have to convert an offset from the chat service to an offset in the vscode extension API markdown stream, we have to account for the way we slice and modify the markdown content.
- Relative offsets based on markdown constructs ("the previous codeblock", "the codeblock with index 2", etc)
  - This can also be sent at any point in the stream, you don't have to track specific offsets, you only have to count codeblocks
- A rich progress type for codeblocks, rather than streaming it in plain markdown
  - It would be easy to attach metadata to update the codeblock object at any point in time. But, the codeblock content still needs to stream. That would mean that an extension would create the codeblock object and the object would have its own content stream, and this gets complicated.
- A "marker" object in the stream, inside or next to the codeblock, that we can refer to or attach metadata to later
  - Combines the pros of the previous point and relative offsets, without having to actually count codeblocks
Repository: deno
Issue: Improve error message for `tailwindcss/plugin` esm import
Labels: feat,node compat,triage required 👀,dx

Importing `tailwindcss/plugin` as [recommended by their documentation](https://tailwindcss.com/docs/adding-custom-styles#writing-plugins) doesn't work in deno.

```sh
error: Unable to load /Users/marvinh/Library/Caches/deno/npm/registry.npmjs.org/tailwindcss/3.3.5/plugin imported from file:///Users/marvinh/dev/test/deno-tailwind/main.ts

Caused by:
    No such file or directory (os error 2)
```

## Steps to reproduce

1. Create file `foo.ts` with:
  ```tsx
  import plugin from "npm:tailwindcss/plugin";
  console.log(plugin);
  ```
2. Run `deno run -A foo.ts`

## Notes

The `tailwindcss` package is written in cjs and doesn't have an export map.
Repository: react-native
Issue: <Image /> UI component doesn't display image copied from Clipboard
Labels: Issue: Author Provided Repro,API: Clipboard,Component: Image

### Description

I have an React Native sample where trying to render image copied from Clipboard.

On iOS I get following error and image is not rendered:

 _**WARN**  Could not find image file:///private/var/containers/Bundle/Application/<appId>/ClipboardTestApp.app/<base64>.png_

I use following Clipboard module: https://github.com/react-native-clipboard/clipboard/

**NOTE:** it is reproducible on device with iOS 16.7.1

### React Native Version

0.72.7

### Output of `npx react-native info`

System:
  OS: macOS 14.1.1
  CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  Memory: 27.57 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 18.17.1
    path: /var/folders/c9/26x5c4kd5ggcl4z_lg_5gnsr0000gq/T/yarn--1700584616538-0.6727902694916463/node
  Yarn:
    version: 1.22.19
    path: /var/folders/c9/26x5c4kd5ggcl4z_lg_5gnsr0000gq/T/yarn--1700584616538-0.6727902694916463/yarn
  npm:
    version: 9.6.7
    path: /usr/local/bin/npm
  Watchman:
    version: 2023.06.08.00
    path: /usr/local/bin/watchman
Managers:
  CocoaPods:
    version: 1.14.3
    path: /Users/vtaliar/.rvm/gems/ruby-2.7.5/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.0
      - iOS 17.0
      - macOS 14.0
      - tvOS 17.0
      - watchOS 10.0
  Android SDK: Not Found
IDEs:
  Android Studio: 2022.2 AI-222.4459.24.2221.9971841
  Xcode:
    version: 15.0.1/15A507
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 11.0.18
    path: /Users/vtaliar/.jenv/shims/javac
  Ruby:
    version: 2.7.5
    path: /Users/vtaliar/.rvm/rubies/ruby-2.7.5/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.72.7
    wanted: 0.72.7
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

### Steps to reproduce

1. Copy some PNG image from Safari browser on device
2. Click on 'Get Image from clipboard'
3. See an error
 _**WARN**  Could not find image file:///private/var/containers/Bundle/Application/<appId>/ClipboardTestApp.app/<base64>.png_

**NOTE:** `imageIos` has correct  base64 string but <Image /> tries to load it as local image in native code

### Snack, screenshot, or link to a repository

Snack link: https://snack.expo.dev/aQr08Pfec
Repository: godot
Issue: Layout Mode in Control not updating when you programatically change its Anchors
Labels: bug,topic:gui

### Godot version

7022271291a3d2a9cbd6a223d22a29fd775dfc5d

### System information

Godot v4.2.rc (702227129) - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1070 (NVIDIA; 31.0.15.3623) - Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz (8 Threads)

### Issue description

If a Control is free to move about (not in container or root), then its Layout Mode should be "Position" if it's just moved about regularly (effectively Anchored to top left), or "Anchors" if the anchors are any different.

If a Control has their Anchors changed by a program, the Layout Mode *should* update to reflect this. Instead, you can programmatically change the Anchors and the Layout Mode stays the same.

### Steps to reproduce

1. Download and open Attached Project.
2. Open the Button's properties and observe the Layout Mode. It should be "Position". Also observe from the green cross that it's anchored top left as it should be. Adjust the size of the panel it's in to confirm.
3. In the Button's script properties, check the "Set Anchor to Right." This will run a tool script in the editor to set the Button's Anchor to the right. 
4. Observe the change in position of the green cross to show that the Button Anchor is now to the right. Adjust size of partent panel to confirm.
5. Observe the Layout Mode property for the button.

**Expected:** 
That the Layout Mode should show "Anchors" with the "Anchor Preset" menu now visible below it.

**Actual:**
The Layout Mode still shows "Position", "Anchor Preset" menu is not visible.

Bonus: If you switch Layout Mode from Position to Anchors after doing this, you'll see the Anchor Preset is "Top Right", which shows that this menu has taken into account the change to the anchor.

### Minimal reproduction project

[LayoutModeNotUpdating.zip](https://github.com/godotengine/godot/files/13429419/LayoutModeNotUpdating.zip)
Repository: flutter
Issue: Make OverlayPortalController Listenable
Labels: c: new feature,framework,c: proposal,P3,team-framework,triaged-framework

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Use case

I want to listen to the controller so that I can key `PopScope.canPop` on whether or not the overlay is currently visible.

### Proposal

Make `OverlayPortalController` listenable and notify listeners whenever the overlay visibility is toggled.