sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: `et lint` command
Labels: P1,team-engine,triaged-engine

There are currently several different scripts that drive linting in the engine repo.

* Dart analyzer: https://github.com/flutter/engine/blob/main/ci/analyze.sh
* Python: https://github.com/flutter/engine/blob/main/ci/pylint.sh
* Clang-tidy: https://github.com/flutter/engine/blob/main/ci/clang_tidy.sh
* Java/Android: https://github.com/flutter/engine/blob/main/tools/android_lint/bin/main.dart

There are also lint-like tools that CI runs to check miscellaneous other properties.
* https://github.com/flutter/engine/blob/main/ci/ban_generated_plugin_registrant_java.sh
* https://github.com/flutter/engine/blob/main/ci/check_build_configs.sh
* [Maybe] https://github.com/flutter/engine/blob/main/ci/licenses.sh

Some of these are cheap to run, even over the entire tree. Some are very expensive to run unless limited to changed files or subdirectories.

Just to get started, `et` can just directly invoke the shell scripts, probably using the default arguments which will generally limit the checks to changed files, or another inexpensive option.

Going forward, [as with the `et format` command](https://github.com/flutter/engine/blob/afaa6b18ad4e5893086b9fe6146514b6b16a907a/tools/engine_tool/lib/src/commands/format_command.dart#L20), the Dart programs that back these scripts should be integrated into `et` as libraries.
Repository: PowerToys
Issue: Setting Plugin Hints to Not Included Globally Results in Leftover "Plugin keywords" Label Despite Empty Section
Labels: Issue-Bug,Product-PowerToys Run,Area-User Interface,Cost-Small,Status-Reproducible

### Microsoft PowerToys version

0.78.0

### Installation method

PowerToys auto-update

### Running as admin

No

### Area(s) with issue?

PowerToys Run

### Steps to reproduce

Configure PowerToys as described above.

### ✔️ Expected Behavior

![image](https://github.com/microsoft/PowerToys/assets/98100481/a86ea3a9-c9ff-4d37-882d-06b59f54418e)

This should be all that shows up given the lack of any entries left to show (as the few plugins I use are all already included globally).

### ❌ Actual Behavior

![image](https://github.com/microsoft/PowerToys/assets/98100481/afe80b30-e4c3-4bfe-a057-557b45a7d792)

An empty "Plugin keywords" label still shows up above an empty array of hints.

### Other Software

_No response_
Repository: PowerToys
Issue: [Run] Inconsistent Top/Bottom Results Padding
Labels: Issue-Bug,Product-PowerToys Run,Area-User Interface,Needs-Triage

### Microsoft PowerToys version

0.78.0

### Installation method

PowerToys auto-update

### Running as admin

No

### Area(s) with issue?

PowerToys Run

### Steps to reproduce

Search.

### ✔️ Expected Behavior

Either decrease the top padding :
![image](https://github.com/microsoft/PowerToys/assets/98100481/1c89e0cd-64ea-4061-8d01-144d439d7d1e)

Or increase that of the bottom :
![image](https://github.com/microsoft/PowerToys/assets/98100481/7ed6f304-b7e2-4976-bc1e-518fed600c4f)

This last draft looks a lot better to me given that the padding is all around square.

(sorry for the compression I couldn't get it to render the edges properly)

### ❌ Actual Behavior

![image](https://github.com/microsoft/PowerToys/assets/98100481/8468e82f-a4d2-4726-9c15-68b4de7d360e)

There is an apparent 10px offset between the top and bottom padding.

### Other Software

_No response_
Repository: TypeScript
Issue: File gets corrupted due to mismatched file casing
Labels: Needs Investigation

### 🔎 Search Terms

- doc
- comment

### 🕗 Version & Regression Information

5.5.0-dev.20240226

### ⏯ Playground Link

_No response_

### 💻 Code

In the vscode repo, create a file:

```ts
/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

/**
 * A hierarchical value.
 */
export class HierarchicalScope {
	public static readonly sep = '.';

	constructor(
		public readonly value: string
	) { }

	public equals(other: HierarchicalScope): boolean {
		return this.value === other.value;
	}

	public contains(other: HierarchicalScope): boolean {
		return this.equals(other) || this.value === '' || other.value.startsWith(this.value + HierarchicalScope.sep);
	}

	public intersects(other: HierarchicalScope): boolean {
		return this.contains(other) || other.contains(this);
	}

	public append(...parts: string[]): HierarchicalScope {
		// TODO: escape parts
		return new HierarchicalScope([this.value, ...parts].join(HierarchicalScope.sep));
	}
}
```

1. Delete the whole comment for `A hierarchical value.`
2. undo
3. Try formatting the file

### 🙁 Actual behavior

The file becomes corrupted. Running format produces:

```ts
/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

xport class HierarchicalScope {
	ublic static readonly sep = '.';

	constructor(
		public readonly value: string
	 { }

	public equals(other: HierarchicalScope): boolean {
		return this.value === other.value;
	

	public contains(other: HierarchicalScope): boolean {
		return this.equals(other) || this.value === '' || other.value.startsWith(this.value + HierarchicalScope.sep);
	

	public intersects(other: HierarchicalScope): boolean {
		return this.contains(other) || other.contains(this);
	
	
public append(...parts: string[]): HierarchicalScope {
		// TODO: escape parts
		return new HierarchicalScope([this.value, ...parts].join(HierarchicalScope.sep));
	}
}
```

### 🙂 Expected behavior

File shouldn't be corrupted

### Additional information about the issue

Server logs

[tsserver.log](https://github.com/microsoft/TypeScript/files/14438894/tsserver.log)
Repository: flutter
Issue: plugin_test uses system installed Java in some parts
Labels: a: tests,platform-android,tool,P2,team-tool,triaged-tool

In my environment, `java -version` told me I had Java 21. `dart bin/run.dart -t plugin_test` would fail with a message like about unsupported class version 65.

Setting $JAVA_HOME to be Android Studio's Java made things work, but the test should be resillient to this.
Repository: vscode
Issue: Improvements to Run in folded section button 
Labels: feature-request,notebook-folding

Tracking issue for improvements to the folded cell hint run button. 

In the future, we would like to support Run, Spin, and also a stop button. Will require a slight rework to allow for the third stop button, likely leveraging a menu button design rather than just the clickable DOM element
Repository: pytorch
Issue: torch.compile() and optimizer UX issues
Labels: module: optimizer,triaged,oncall: pt2,module: pt2 optimizer

### 🐛 Describe the bug

I was trying to get some toy training loop going and there were a few sharp bits that we should probably document in 1 place

1. Need to instantiate both `optimizer` and `criterion` outside of the compiled function
2. There are graph breaks on `optimizer.zero_grad()` and `optimizer.step()`, those graph breaks are deliberate since per @janeyx99 these would take too long to trace but users might still to try to fix them to make their models go faster
3. `loss.backward()` fails in fullgraph with an `torch._dynamo.exc.Unsupported: Tensor.backward` error

There might be more, will update this issue if I find them

### Error logs

https://gist.github.com/msaroufim/15a4b97c3f45cead4b2feb90894ed8d3

### Minified repro

n

### Versions
Latest stable

cc @vincentqb @jbschlosser @albanD @janeyx99 @crcrpar @ezyang @bdhirsh @anijain2305 @zou3519 @chauhang @mlazos
Repository: pytorch
Issue: Support a context manager to set torch dtype?
Labels: feature,triaged,actionable,module: python frontend

### 🚀 The feature, motivation and pitch

Currently, to set a dtype and restore the previous dtype, I'm doing:

```
prev_dtype = torch.get_default_dtype()
torch.set_default_dtype(new_dtype)
model = init_model(....)
torch.set_default_dtype(prev_dtype
```

This is for example in functions to initialize models where I don't want to persist a call to `torch.set_default_dtype` as to not modify the global state of the application.

it seems as this would be much easier with a context manager - 

```
with torch.dtype(new_dtype):
    model = ....
# prev dtype is restored on the way out
```

This would be similar in concept to the `with torch.device` context manager. @albanD what do you think? 

### Alternatives

_No response_

### Additional context

_No response_

cc @albanD
Repository: next.js
Issue: catch all with basePath set resulting in 404 on vercel
Labels: bug,Runtime

### Link to the code that reproduces this issue

https://github.com/baked-dev/pages-api-catchall-repro
https://github.com/baked-dev/pages-api-catchall-repro/tree/try-app-router

### To Reproduce

1. deploy to vercel
2. visit /base/api/test

### Current vs. Expected behavior

**Current:**
the default 404 page shows

**Expected:**
the request path should be returned

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:18 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6000
  Available memory (MB): 65536
  Available CPU cores: 10
Binaries:
  Node: 18.17.1
  npm: 9.6.7
  Yarn: 3.4.1
  pnpm: 8.6.5
Relevant Packages:
  next: 14.1.1-canary.78 // Latest available version is detected (14.1.1-canary.78).
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.1.3
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

Middleware / Edge (API routes, runtime)

### Which stage(s) are affected? (Select all that apply)

Vercel (Deployed)

### Additional context

- this bug did not exist in 14.1.0 and we only encountered it when updating to the current latest canary version (14.1.1-canary.78)
- also affects optional catch all routes

vercel deployments:
[app router](https://pages-api-catchall-repro-git-try-app-router-baked-dev.vercel.app/base/api/test)
[pages router](https://pages-api-catchall-repro.vercel.app/base/api/test)
Repository: pytorch
Issue: Problem differentiating through a torch.layer_norm() call when exporting to torch.jit.trace
Labels: oncall: jit,triaged

### 🐛 Describe the bug

To reproduce my issue, run this code:

```
import torch


class Model(torch.nn.Module):

    def forward(self, inputs):
        xseq = inputs[0].detach().requires_grad_()
        with torch.enable_grad():

            # differentiating through this "loss" fails to export:
            loss = torch.layer_norm(xseq, (10,), None, None).sum()
            return torch.autograd.grad([loss], [xseq])[0]


# export onnx:
torch.jit.trace(
    Model(),
    [torch.randn([2, 2, 10]) ** 2],
)
```

I get the following error:

```
RuntimeError: Found an unsupported argument type in the JIT tracer. File a bug report.
```

### Versions

PyTorch version: 2.2.1+cu118
Is debug build: False

OS: Microsoft Windows 10 Enterprise
GCC version: Could not collect
Clang version: Could not collect
CMake version: version 3.25.1
Libc version: N/A

Python version: 3.10.11 (tags/v3.10.11:7d4cc5a, Apr  5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)] (64-bit runtime)
Python platform: Windows-10-10.0.19045-SP0
Is CUDA available: True
CUDA runtime version: 10.0.130
CUDA_MODULE_LOADING set to: LAZY
GPU models and configuration: GPU 0: NVIDIA GeForce RTX 3090 Ti
Nvidia driver version: 536.23
cuDNN version: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\cudnn_ops_train64_8.dll
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

CPU:
Architecture=9
CurrentClockSpeed=3501
DeviceID=CPU0
Family=107
L2CacheSize=16384
L2CacheSpeed=
Manufacturer=AuthenticAMD
MaxClockSpeed=3501
Name=AMD Ryzen Threadripper PRO 3975WX 32-Cores
ProcessorType=3
Revision=12544

Versions of relevant libraries:
[pip3] onnx==1.14.1
[pip3] onnx-graphsurgeon==0.3.27
[pip3] onnxconverter-common==1.13.0
[pip3] onnxruntime==1.15.1
[pip3] optree==0.10.0
[pip3] pytorch-lightning==1.4.2
[pip3] tf2onnx==1.16.0
[pip3] torch==2.2.1+cu118
[pip3] torch-cluster==1.6.1
[pip3] torch-fidelity==0.3.0
[pip3] torch-geometric==2.3.0
[pip3] torch-scatter==2.1.1
[pip3] torch-sparse==0.6.17
[pip3] torch-spline-conv==1.2.2
[pip3] torchaudio==2.2.1+cu118
[pip3] torchmetrics==0.6.0
[pip3] torchvision==0.17.1+cu118
[conda] blas                      1.0                         mkl
[conda] cudatoolkit               11.6.0              hc0ea762_10    conda-forge
[conda] libblas                   3.9.0              16_win64_mkl    conda-forge
[conda] libcblas                  3.9.0              16_win64_mkl    conda-forge
[conda] liblapack                 3.9.0              16_win64_mkl    conda-forge
[conda] mkl                       2022.1.0           h6a75c08_874    conda-forge
[conda] mkl-include               2023.2.0            intel_49496    intel
[conda] mkl-static                2023.2.0            intel_49496    intel
[conda] numpy                     1.24.2          py310hd02465a_0    conda-forge
[conda] pytorch                   1.12.0          py3.10_cuda11.6_cudnn8_0    pytorch
[conda] pytorch-mutex             1.0                        cuda    pytorch

cc @EikanWang @jgong5 @wenzhe-nrv @sanchitintel
Repository: flutter
Issue: [ios][device_lab] crash when displaying 5-6 ad banners
Labels: platform-ios,P3,team-ios,triaged-ios

### Steps to reproduce

For ad benchmark, I got crash when I put 5-6 banners on the screen. The test was run successfully, but after the test ended, the timeline summary json file was not written, and I got this error: 
```
  "reason": "Task failed: PathNotFoundException: Cannot open file, path = '/Users/huanlin/Desktop/flutter/flutter/dev/benchmarks/platform_views_layout/build/platform_views_scroll_perf_ad_banners.timeline_summary.json' (OS Error: No such file or directory, errno = 2)"
```

Running 3-4 banners seem fine. I suspect this is memory issue. 

### Expected results

NA

### Actual results

NA

### Code sample

<details open><summary>Code sample</summary>

```dart
[Paste your code here]
```

</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>

[Upload media here]

</details>


### Logs

<details open><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
[Paste your output here]
```

</details>
Repository: PowerToys
Issue: FancyZones zone editor fails to launch
Labels: Issue-Bug,Product-FancyZones,Needs-Triage

### Microsoft PowerToys version

0.78.0

### Installation method

PowerToys auto-update

### Running as admin

Yes

### Area(s) with issue?

FancyZones Editor

### Steps to reproduce

1) Launch PowerToys (with or without Admin rights).
2) Attempt to open FancyZones editor (either through a keyboard shortcut, or by opening the PowerToys main window and then going to FancyZones and clicking "Launch Layout Editor").
3) Observe that the mouse pointer spins, but the editor does not open.

[PowerToysReport_2024-02-28-14-52-37.zip](https://github.com/microsoft/PowerToys/files/14439860/PowerToysReport_2024-02-28-14-52-37.zip)


### ✔️ Expected Behavior

I expected to see the FancyZones editor.

### ❌ Actual Behavior

The cursor shows that something is loading, but no window is opened.

### Other Software

_No response_
Repository: go
Issue: net/http: TestIdentityTransferEncoding failures
Labels: NeedsInvestigation

```
#!watchflakes
default <- pkg == "net/http" && test == "TestIdentityTransferEncoding"
```

Issue created automatically to collect these failures.

Example ([log](https://build.golang.org/log/e95ba3c2afbdb83082f765c54f90b110f36bd08e)):

    --- FAIL: TestIdentityTransferEncoding (0.00s)
        --- FAIL: TestIdentityTransferEncoding/h2 (12.15s)
            clientserver_test.go:1661: Get "https://127.0.0.1:50927": unexpected EOF


— [watchflakes](https://go.dev/wiki/Watchflakes)
Repository: ollama
Issue: Add ability to sort Ollama library by size
Labels: feature request,ollama.com

Hi,
I run a quite old machine and I'd like to test the smallest models out there to see if I could have a minimal code/text fonctionality locally.
Unfortunately, the https://ollama.com/library does not provide means to "sort by size", nor even provides info about the size in the short description of the models for each and every model. Thus users need to open *all* models pages and read them, which is very tedious...
Repository: PowerToys
Issue: Can't scroll with Crop And Lock 
Labels: Issue-Bug,Needs-Triage,Needs-Team-Response,Product-CropAndLock

### Microsoft PowerToys version

0.78.0

### Installation method

GitHub

### Running as admin

None

### Area(s) with issue?

Crop and Lock

### Steps to reproduce

I was klicking on "further information" in the crop and lock settings and saw the way it works. On the page you can see, how you crop a part of the browser and then scroll in the cropped window further. That's not possible on my end. I can not scroll the webpage. 

### ✔️ Expected Behavior

Scrolling webpage with crop and lock

### ❌ Actual Behavior

it is not scrolling

### Other Software

_No response_
Repository: pytorch
Issue: [C10D] DeviceMesh + _set_default_timeout doesn't work
Labels: oncall: distributed,triaged

when creating a DeviceMesh in torchtrain (whc/pp branch) and later setting the PG timeout,  the effect is nothing happens.

The reason is that inside _set_default_timeout, we get both 'cpu' and 'cuda' devices as the devices supported by the default PG.

in _set_default_timeout
```
    devices = group._device_types
    logger.warning(f"devices is {devices}")
```
`distributed_c10d.py:1134] devices is [device(type='cuda'), device(type='cpu')]`
This leads us to set the timeout on gloo instead of nccl

in _set_default_timeout
```
    for backend in backends:
        logger.warning(f"Set timeout for {backend}")
        backend._set_default_timeout(timeout)
```
` Set timeout for <torch.distributed.distributed_c10d.ProcessGroupGloo object at 0x7f6330e20a30>`

In DeviceMesh, we create the default PG like this 

```
if not default_initialized:
   init_process_group()
```

I wonder if we need to make DeviceMesh init the default PG on cuda instead of not specifying a device.
* I also think DeviceMesh needs to be more flexible about how it creates the pg, in case users want to specify other options for initialization.  But thats a bigger/separate issue. 

But regardless, we also need to make _set_default_timeout work.  I guess in this case, it's legit for it to try to set the timeout on both gloo and nccl, and we should change the logic?

cc @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @H-Huang @kwen2501 @awgu @penguinwu @fegin @XilunWu @wanchaol @fduwjj @wz337 @tianyu-l @yf225 @shuqiangzhang
Repository: kubernetes
Issue: Allow registration of Extension API Servers that are not Kubernetes Services
Labels: kind/bug,sig/api-machinery,kind/feature,needs-kind,triage/accepted

I ran into this issue in the kube-aggregator project that accurately describes our ask but we saw it was closed with no comment.

https://github.com/kubernetes/kube-aggregator/issues/24

> My company is migrating to Kubernetes. We have a custom software networking stack (Discovery, Routing, Traffic Control, etc) that we do not intend to deprecate as part of the migration. This has generally not been a problem; the loosely coupled nature of the k8s design makes it possible for us to create and manage the API objects we care about (Deployments, Pods, Nodes, etc) while integrating with our custom networking stack.
> 
> While working on deploying the k8s metrics server, I was surprised to learn that the metrics server (or any API server extension) MUST be deployed as a k8s Service. https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.21/#apiservicespec-v1-apiregistration-k8s-io
> 
> This seems like an unnecessary requirement. We can work around it by creating an ExternalName Service (we don't run kube-dns so it doesn't really do much) and then adding the necessary CNAME to our own internal DNS resolver.
> 
> We would prefer to just configure a DNS name and the CN of the extension API server's certificate and call it a day.


We are in a similar boat. We, too, have a custom networking stack and a custom CA and we have resorted to non-ideal workarounds to get this to work. We would love to be able to pass an external address for the Extension API Server that also works with TLS (as today, the TLS validation in the assumes the server name ends in `.svc` https://github.com/kubernetes/kube-aggregator/blob/master/pkg/apiserver/handler_proxy.go#L209)

Since this is pretty important to us, we are willing to do the work to support this!
Repository: flutter
Issue: api.text_magnifier.text_magnifier.0_test golden image is flaky
Labels: a: tests,a: text input,framework,d: api docs,P2,c: flake,team-text-input,triaged-text-input

See image history here: https://flutter-gold.skia.org/search?corpus=flutter&include_ignored=false&left_filter=name%3Dapi.text_magnifier.text_magnifier.0_test&max_rgba=0&min_rgba=0&negative=true&not_at_head=false&positive=true&reference_image_required=false&right_filter=&sort=descending&untriaged=true

Each differently colored dot is a unique image result.
We are skipping this test for now as it is keeping the tree red generating unique images as commits are landing.
Repository: storybook
Issue: [Bug]: themes addon does not switch docs stories theme with tailwind
Labels: feature request,has workaround,addon: themes

### Describe the bug

Currently, setting up light/dark mode with storybook and tailwind is easy to do with `addon-themes`, however this falls short when in docs pages as that the theme does not switch effectively for the stories shown on the docs page. This is due to many factors such as the fact that the `dark` class name is applied to `body` and not `.docs-story` which is the wrapper in docs pages. The toolbar for light/dark toggle switch is there on docs pages however when you switch between light/dark mode, it does not have the same behaviour as with normal stories.

To get light/dark mode working on docs pages, I needed to create my own addon in `manager.tsx` file and listen for the global theme variable change, then manually adding the `dark` class to `.docs-story` elements around. I also needed to implement my background and text color `@apply` to not only the `body` element but also `.docs-story` in the global css file.

My way of getting this to work can be found in this Github gist: https://gist.github.com/ixahmedxi/5ee7dd6d2f92d185e061c847e4a808d4

So to put it very simply, when using `@storybook/addon-themes`, the `dark` class is applied to `body` tag and not also `.docs-story` elements making light/dark mode not working in docs pages with tailwind.



### To Reproduce

_No response_

### System

_No response_

### Additional context

_No response_