sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: PowerToys
Issue: [FancyZones] Tests: snapped window behavior 
Labels: Area-Tests,Product-FancyZones

- [ ]  Keep windows in zones → verify windows update positions when the work area is changed
- [ ]  Keep windows in zones if the layout changes → check valid zones
- [ ]  Keep windows in zones if the layout changes → check invalid zones
- [ ]  Move newly created windows in the last known zone - reopen the window
- [ ]  Move newly created windows in the last known zone - disable FZ - move window - enable FZ
- [ ]  Enable switch between windows → verify switching works
- [ ]  Disable switch between windows
Repository: transformers
Issue: log interval
Labels: Feature request

### Feature request

I want you to add "log_interval" argument for logging every N iteration not a epoch.

### Motivation

Some fine-tuning task/dataset does not require much epochs such as CoLA. It only requires 2~3 epochs, which means the log data(ex metric) is produced 2~3 times.

I want more log during training with 2~3 epochs, so I hope you add some feature which logs every N iteration.

I already add the argument in my project just adding below code, but it is borthing to add every project whenever I create new project based on your codes.

`
if completed_steps % args.log_interval == 0:
# presented evaluation code in original code.
`

### Your contribution

`
if completed_steps % args.log_interval == 0:
                model.eval()
                samples_seen = 0
                for step, batch in enumerate(eval_dataloader):
                    with torch.no_grad():
                        outputs = model(**batch)
                    predictions = outputs.logits.argmax(dim=-1) if not is_regression else outputs.logits.squeeze()
                    predictions, references = accelerator.gather((predictions, batch["labels"]))
                    # If we are in a multiprocess environment, the last batch has duplicates
                    if accelerator.num_processes > 1:
                        if step == len(eval_dataloader) - 1:
                            predictions = predictions[: len(eval_dataloader.dataset) - samples_seen]
                            references = references[: len(eval_dataloader.dataset) - samples_seen]
                        else:
                            samples_seen += references.shape[0]
                    metric.add_batch(
                        predictions=predictions,
                        references=references,
                    )

                eval_metric = metric.compute()
                logger.info(f"epoch {epoch}: {eval_metric}")

                if args.with_tracking:
                    accelerator.log(
                        {
                            "accuracy" if args.task_name is not None else "glue": eval_metric,
                            "train_loss": total_loss.item() / args.log_interval,
                            "train_mem": total_memory / args.log_interval,
                            "epoch": epoch,
                            "step": completed_steps,
                            "lr": optimizer.param_groups[0]["lr"],
                        },
                        step=completed_steps,
                    )
                total_loss = 0
`
Repository: go
Issue: x/sys/unix: update openbsd to OpenBSD 7.4
Labels: help wanted,NeedsInvestigation,compiler/runtime

OpenBSD [7.4 is now released](https://www.openbsd.org/74.html)

I'm not sure if there is any issues with this release, but as far as I know all the necessary files can be autogerated with [mkall.sh](https://cs.opensource.google/go/x/sys/+/master:unix/mkall.sh) in a openbsd 7.4 system.

e.g `GOOS=openbsd ./mkall.sh`
Repository: vscode
Issue: Flickers/Erratic behavior when Samsung `predictive text` is enabled
Labels: bug,editor-input,web,android

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 1.83.1
- OS Version: Android 12 on Samsung device

Steps to Reproduce:

1. Make sure the "predictive text" feature is enabled in the keyboard
2. Try to type anything into the editor
3. It feels like some chars are not taken into account or removed, and it flickers

see [flicker-bug.webm](https://github.com/microsoft/vscode/assets/23257479/79aa7859-f826-4899-8464-582e165aebf7)

I'm aware the mobile compatibility is not the priority, but this issue transforms a non-optimal behavior to a totally unusable behavior
Repository: PowerToys
Issue: [FancyZones] Tests: layouts
Labels: Area-Tests,Product-FancyZones

- [ ] Apply a layout with a shortcut
- [ ] Verify the `Flash zones` option
- [ ] Verify the parent layout applied on the new virtual desktop 
- [ ] Update the layout on the 2nd virtual desktop after creation, verify layouts on other virtual desktops are not changed
- [ ] Restart FZ, verify layouts are not reset
- [ ] Delete virtual desktop, verify other layouts are not reset
Repository: pytorch
Issue: Tensor.lerp inconsistent when using -Infinity between MPS and CPU
Labels: triaged,module: mps

### 🐛 Describe the bug

lerping between -Inf and another number is NaN on a MPS tensor and -Inf on the CPU. 
This breaks several Diffusion schedulers.

```
import torch

for device in ['cpu', 'mps']:

   minusInfinity = torch.tensor([0]).log().to(device)
   actualNumber = torch.tensor([1.0]).to(device);

   print(minusInfinity);
   print(actualNumber);

   print(minusInfinity.lerp(actualNumber, 0.5))
```

```
tensor([-inf])
tensor([1.])
tensor([-inf])
tensor([-inf], device='mps:0')
tensor([1.], device='mps:0')
tensor([nan], device='mps:0')
```



### Versions

Collecting environment information...
PyTorch version: 2.1.0
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A

OS: macOS 14.0 (arm64)
GCC version: Could not collect
Clang version: 15.0.0 (clang-1500.0.40.1)
CMake version: version 3.24.4
Libc version: N/A

Python version: 3.10.13 (main, Sep 28 2023, 14:27:43) [Clang 12.0.5 (clang-1205.0.22.9)] (64-bit runtime)
Python platform: macOS-14.0-arm64-arm-64bit
Is CUDA available: False
CUDA runtime version: No CUDA
CUDA_MODULE_LOADING set to: N/A
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

CPU:
Apple M1

Versions of relevant libraries:
[pip3] numpy==1.26.0
[pip3] torch==2.1.0
[pip3] torchvision==0.16.0
[conda] Could not collect


cc @kulinseth @albanD @malfet @DenisVieriu97 @razarmehr @abhudev
Repository: next.js
Issue: Error: Cannot find module 'styled-jsx/style'
Labels: bug,Runtime

### Link to the code that reproduces this issue

https://github.com/jmarroyave-compsci/error-nextjs-netlify-styled-jsx

### To Reproduce

1. When deploying a build to netlify after upgrading Next.js from 12.3.4 to 13.5.5
2. When trying to fetch an api handler from the browser it shows the error ( /pages/api folder )
3. Happens also in versions: 13.5.5-canary.8, 13.5.4, 13.5.3, 13.0.0


### Current vs. Expected behavior

Expect to fetch data from API's handler but instead shows the errror

### Verify canary release

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

### Provide environment information

```bash
Binaries:
  Node: v16.20.0
  npm: 8.19.4
```


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

Middleware / Edge (API routes, runtime)

### Additional context

What I tried?

    Installing different plugin versions ( @netlify/plugin-nextjs )
    Installing different nextjs versions
    Deleting node_modules and package-lock.json and reinstalling everything again
    npm i -S styled-jsx
Repository: flutter
Issue: Hot reload edge cases should be better documented
Labels: P2,team-tool,triaged-tool

Users are often surprised when a hot reload will not update certain parts of their Dart code. We should do an update of https://docs.flutter.dev/tools/hot-reload to better describe the limitations and edge cases of hot reload.
Repository: kubernetes
Issue: Kubelet deletes CSI mount points if a "requiresrepublish" call to NodePublishVolume returns an error
Labels: kind/bug,sig/storage,triage/accepted

### What happened?

When a CSI driver uses `spec.requiresRepublish` to request repeated calls to NodePublishVolume, if any of the "refresh" calls return a "final" error, then Kubelet will delete the mount point on the host filesystem ([code](https://github.com/kubernetes/kubernetes/blob/bdcb73d6b34288b030c5e98d6c2971fa9b074f61/pkg/volume/csi/csi_mounter.go#L316))

Unfortunately, doing this once the mount point has already been mounted into the target pod filesystem causes a permanent problem for the pod --- deleting the mount point from the host filesystem leaves the stale volume contents visible to the pod.  Even subsequent successful calls to NodePublishVolume don't restore the link --- the CSI driver can remount its volume in the host filesystem, but this doesn't trigger Kubelet to re-mount it into the pod filsystem.

The concrete case where I've hit this is when running a CSI driver that places auto-refreshing mTLS keys and certificates into the pod filesystem.  Refreshing the certificate requires an RPC to the issuing CA --- if this fails, and the error is bubbled up and returned from NodePublishVolume, then the target pod using the volume is stuck forever with an expired certificate.

Kubelet should either:
* Ignore errors from NodePublishVolume calls that are being used to refresh volume contents, or
* Cleanly unmount the volume on error, and remount it on the next successful call.

The first alternative probably makes more sense.
Repository: pytorch
Issue: [quant][pt2] Default batchnorm aten op has poor numerics during QAT
Labels: high priority,oncall: quantization,triaged

If a model contains batch norm, exporting `model.cpu()` gives `torch.ops.aten._native_batch_norm_legit.default` while exporting `model.cuda()` gives `torch.ops.aten.cudnn_batch_norm.default`. Quick experimentation revealed that these two ops have significantly different numerics. From running PT2 QAT on MobileNetV2, we found that these numerical differences are magnified through many back-to-back `[conv - bn]` or `[conv - bn - relu]` patterns, and training with `cudnn_batch_norm` gave significantly better accuracies.

For the short term, we recommend users of PT2 QAT to either export with `model.cuda()` from the start, or manually swap the batch norm op from `_native_batch_norm_legit` to `cudnn_batch_norm` before training. See this [tutorial](https://pytorch.org/tutorials/prototype/pt2e_quant_qat.html#prepare-the-model-for-quantization-aware-training) for more detail.

For the longer term, however, we wish to fix this so that the user does not have to do this manual swapping. We can achieve this by consolidating the batch norm ops such that exporting the model always gives the same op, regardless whether it is on CPU or cuda, and that op will automatically pick the right kernel to run on. See this relevant [comment](https://github.com/pytorch/pytorch/pull/108809#issuecomment-1724566234).



cc @ezyang @gchanan @zou3519 @kadeng @jerryzh168 @jianyuh @raghuramank100 @jamesr66a @vkuzo @jgong5 @Xia-Weiwen @leslie-fang-intel
Repository: godot
Issue: gui_input not being called if the touch starts on another control
Labels: topic:input,topic:gui

### Godot version

v4.2.dev4.mono.official [549fcce5f]

### System information

Windows 10

### Issue description

Let's assume this setup.

You have two control nodes, with the same script. This script listens to the gui_input event signal. 
Holding the touch/click. If you start your touch/click on an empty space, it will call the method when hovering over the control node, but, if that touch/click starts on top of one of the control nodes, it will not get called.

I have checked the other workarounds like checking if the point is inside the control area's and checking mouse enter exit. But at least in my case that wont work because:

-Two control areas can be overlapping, so the one at the top should win
-On mobile on_mouse_enter does not trigger

Is this by design? Or is it an error? If it's by design, what is the expected solution?


### Steps to reproduce

[Explained on the example](https://github.com/godotengine/godot/assets/95682085/6620eb93-3e22-4374-b109-789eb3136c6d)

### Minimal reproduction project

[MRP.zip](https://github.com/godotengine/godot/files/12925218/MRP.zip)
Repository: godot
Issue: Getter/Setter for Rect2, Rect2i `.end` is missing from extension_api.json 
Labels: bug,topic:gdextension

### Godot version

4.1.2.stable.official.399c9dc39

### System information

macOS 13.5.2 (22G91)

### Issue description

Rect2i has an `end` property in the builtin_classes in extension_api.json:

```
"name": "Rect2i",
"is_keyed": false,
"members": [
	{
		"name": "position",
		"type": "Vector2i"
	},
	{
		"name": "size",
		"type": "Vector2i"
	},
	{
		"name": "end",
		"type": "Vector2i"
	}
],
```

But in `builtin_class_member_offsets`, there's no entry for `end`:
```
"name": "Rect2",
"members": [
	{
		"member": "position",
		"offset": 0,
		"meta": "Vector2"
	},
	{
		"member": "size",
		"offset": 8,
		"meta": "Vector2"
	}
]
```

I guess that `end` should be a getter/setter but it seems to be missing from the extension_api.json file. 

I hit this issue in the Swift implementation of the bindings: 
https://github.com/migueldeicaza/SwiftGodot/issues/173

As a work around, we've added our own custom getter/setter but I am concerned that maybe there are other places where some setters are missing. 

### Steps to reproduce

There's no way for our code generator to generate setters/getters on Rect.end because it's not declared in the extension_api.json. 

I'm not sure how to provide a repro without needing you to build our whole project: https://github.com/migueldeicaza/SwiftGodot

Hopefully the issue description is clear enough.

### Minimal reproduction project

N/A
Repository: godot
Issue: Setting Window borderless=true and resizable=false prevents application grabbing focus
Labels: bug,platform:windows,topic:porting,confirmed

### Godot version

v4.2.beta.custom_build [b1371806a], v4.1.2.stable

### System information

Godot v4.2.beta (b1371806a) - Windows 10.0.19045 - GLES3 (Compatibility) - NVIDIA GeForce GTX 1080 Ti (NVIDIA; 31.0.15.3623) - AMD Ryzen Threadripper 1950X 16-Core Processor (32 Threads)

### Issue description

The combination of `display/window/size/borderless=true` and `display/window/size/resizable=false` in project settings will cause the application to silently fail to automatically grab focus when it starts. Calling `Window::grab_focus()` will not grab focus either. `Window::has_focus()` will lie to you and return `true`. Only actually clicking on the window will give the application focus.

Issue occurs in editor and in exported release.

Issue potentially may be platform-specific (Windows 10)

Issue may be avoided by setting `borderless` directly via GDScript in scene

### Steps to reproduce

In Project Settings:
Set display/window/size/borderless=true
Set display/window/size/resizable=false

### Minimal reproduction project

This project contains a node with a script which prints ui_up, down, left, and right when they are pressed.
Launch the game and observe that the printouts do not occur when hitting the arrow keys.
Focus the game by clicking on the screen and observe that the printouts now do occur when hitting the arrow keys.

[ReproProject.zip](https://github.com/godotengine/godot/files/12923192/ReproProject.zip)
Repository: pytorch
Issue: Use of -Wl,--as-needed in cmake config files can leak into third-party users' code and modify their own private libraries
Labels: module: build,triaged,topic: build

https://github.com/pytorch/pytorch/blob/a0632389b78bc52d66cfc31c72ee06df8d8dc986/cmake/public/utils.cmake#L264-L268

Use of `-Wl,--no-as-needed` paired with `-Wl,--as-needed` will corrupt the initial linker state upon returning. This appears to be the cause of the cmake config files providing the same linker args to other projects that depend on pytorch.

It will prevent other projects which also use Wl,--no-as-needed for their own code, from working with pytorch.

The linker has a dedicated flag for this which is much safer:
```
-Wl,--push-state,--as-needed <your args here> -Wl,--pop-state
```

It should be used instead. Reference: https://github.com/mesonbuild/meson/pull/12299

cc @malfet @seemethere
Repository: ant-design
Issue: popupBg submenu design token not working
Labels: Inactive,unconfirmed

### Reproduction link

[Edit on CodeSandbox](https://codesandbox.io/s/sub-menu-theme-antd-5-10-1-forked-jpvnf5)

### Steps to reproduce

Config design token not working with popupBg in the menu when collapsed

### What is expected?

popupBg property working

### What is actually happening?

Not working

| Environment | Info |
| --- | --- |
| antd | 5.9.3 |
| React | 18.2.0 |
| System | 0.1.0 |
| Browser | Chrome |

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: PowerToys
Issue: Peek + File Explorer add-ons/Preview Pane: Display .tex files
Labels: Idea-Enhancement,Product-File Explorer,Needs-Triage

### Description of the new feature / enhancement

Currently, the file preview pane options under the file explorer add-ons utility and the Peek utility does not display .tex files. Even if there a rendered view is not feasible a source code preview would still be beneficial.

<img width="586" alt="image" src="https://github.com/microsoft/PowerToys/assets/62636355/35e6a9ea-33a7-41d7-88a0-491fb6e7183a">


### Scenario when this would be used?

I often need to skim through many files and being able to view them without needing to wait for a code editor to open and navigate there instead would be convenient.

### Supporting information

_No response_
Repository: godot
Issue: Itemlist emit activated signal when single click next/prev item fast
Labels: bug,needs testing,topic:gui

### Godot version

3.5.3, 4.1.1

### System information

Windows 10

### Issue description

When click on itemlist itemA, then quick click itemB, it will trigger the activated signal. Which it not reset time counter when you click different item.

### Steps to reproduce

1.Create a itemlist with some items
2.Click on item
3.Quick click next/prev item

### Minimal reproduction project

[ItemListClickActivatedBug.zip](https://github.com/godotengine/godot/files/12923750/ItemListClickActivatedBug.zip)
Repository: next.js
Issue: global object is not the same in middleware and route.
Labels: bug

### Link to the code that reproduces this issue

https://codesandbox.io/p/sandbox/focused-forest-j2z84n

### To Reproduce

1. Start the application
2. Visit http://localhost:3000
3. Observe `[middleware] global.test123 test123 set` in the console log.
4. Visit http://localhost:3000/testRoute or click the link in the index page.
5. Observe `[route] global.test123 undefined` in the log.

### Current vs. Expected behavior

The application is quite simple, only two files involved.

In the middleware, `global.test123` has be set to a string:

```  js
import { NextResponse } from 'next/server';

export function middleware(request) {
 global.test123 = 'test123 set'
 console.log('[middleware] global.test123', global.test123)
 return NextResponse.next();
}
```

And in the `testRoute/route.js`, the value of `global.test123` is printed.

``` js
export async function GET(request) {  
    console.log('[route] global.test123', global.test123);

    return new Response('ok', {
        status: 200,
        headers: {
          'Content-Type': 'text/html; charset=utf-8',
        },
      });
}
```

## Expected result
Since both middleware and route only runs in the server, I expect the global object in the middleware and the route are the same object, so `global.test123` should be a string in the route handler.

## Actual result
`global.test123` is `undefined` is the route handler.

<img width="357" alt="截圖 2023-10-17 13 49 51" src="https://github.com/vercel/next.js/assets/2755720/fb5fe97c-f9e6-4af9-9554-fb005405babf">



### Verify canary release

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

### Provide environment information

```bash
Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP PREEMPT_DYNAMIC Sun Aug  6 20:05:33 UTC 2023
Binaries:
  Node: 20.5.1
  npm: 9.8.0
  Yarn: 1.22.19
  pnpm: N/A
Relevant Packages:
  next: 13.5.6-canary.1
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: N/A
Next.js Config:
  output: N/A
```


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

App Router

### Additional context

_No response_
Repository: go
Issue: html/template: reserved character "()" in href attribute is autoescaped.
Labels: Security,NeedsInvestigation

<!--
Please answer these questions before submitting your issue. Thanks!
-->
I think reservedcharacters percent encoding is not performed according to the RFC 3986 spec.

### What version of Go are you using (`go version`)?
1.21

### What did you do?

<!--
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on go.dev/play is best.
-->

```go
dict := make(map[string]interface{})
dict["link"] = `https://example.com/()"`
tag := `<a href="{{ $.link }}"></a>`
t, _ := template.New("tag").Parse(tag)

var tpl bytes.Buffer
e := t.Execute(&tpl, dict)
if e != nil {
    fmt.Println(e)
}

fmt.Println(tpl.String())
```

### What did you expect to see?
```
<a href="https://example.com/()"></a>
```

### What did you see instead?
```
<a href="https://example.com/%28%29%22"></a>
```
Repository: flutter
Issue: Add basic control over column widths of PaginatedDataTables by adding a parameter like columnWidths as in the Table widget.
Labels: c: new feature,f: material design,c: proposal,P3,team-design,triaged-design

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

Create a pagable table with predictably different space requirements in the columns.


### Proposal

Using TableColumnWidth Implementers like in the Table widgets to add basic control over column widths.