sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: UserWarning: The TorchScript type system doesn't support instance-level annotations on empty non-base types in `__init__`.
Labels: oncall: jit

### 🐛 Describe the bug

This small script produces a warning, but the warning is not very actionable. Is there something we can do to make this not warn or tell me what to do to fix the warning?

```python
import torch
from torch.fx.experimental.proxy_tensor import make_fx
from functorch._src.compile_utils import strip_overloads

def f(x):
    return x

fx = make_fx(f)(torch.ones(2, 3))
strip_overloads(fx)
torch.jit.script(fx)
```


Output:
```
/usr/local/google/home/silvasean/.local/lib/python3.10/site-packages/torch/jit/_check.py:181: UserWarning: The TorchScript type system doesn't support instance-level annotations on empty non-base types in `__init__`. Instead, either 1) use a type annotation in the class body, or 2) wrap the type in `torch.jit.Attribute`.
  warnings.warn("The TorchScript type system doesn't support "
```

### Versions

Collecting environment information...
PyTorch version: 1.14.0.dev20221114+cpu
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A

OS: Debian GNU/Linux rodete (x86_64)
GCC version: (Debian 12.2.0-3) 12.2.0
Clang version: 14.0.6-2
CMake version: version 3.24.3
Libc version: glibc-2.35

Python version: 3.10.7 (main, Sep  8 2022, 14:34:29) [GCC 12.2.0] (64-bit runtime)
Python platform: Linux-5.18.16-1rodete4-amd64-x86_64-with-glibc2.35
Is CUDA available: False
CUDA runtime version: No CUDA
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

Versions of relevant libraries:
[pip3] numpy==1.23.4
[pip3] torch==1.14.0.dev20221114+cpu
[pip3] torchvision==0.15.0.dev20221114+cpu
[conda] Could not collect

cc @EikanWang @jgong5 @wenzhe-nrv @sanchitintel
Repository: pytorch
Issue: Improve clarity of meaning of `torch.jit.trace`'s `example_inputs`
Labels: oncall: jit

### 📚 The doc issue

The document in question is the [torch.jit.trace documentation](https://pytorch.org/docs/stable/generated/torch.jit.trace.html#torch.jit.trace).

Specifically, it describes the `example_inputs` parameter as follows:

> **example_inputs** ([tuple](https://docs.python.org/3/library/stdtypes.html#tuple) or [torch.Tensor](https://pytorch.org/docs/stable/tensors.html#torch.Tensor)) – A tuple of example inputs that will be passed to the function while tracing. The resulting trace can be run with inputs of different types and shapes assuming the traced operations support those types and shapes. *example_inputs* may also be a single Tensor in which case it is automatically wrapped in a tuple.

This may be perfectly clear to most people, but for several days I thought that the plural "example_input**s**" meant that I could provide a tuple of a bunch of different inputs of various shapes as a tuple, and they'd all be traced. That doesn't seem to be the case; at least, in my experience, all of the inputs are passed to my `forward` function at once. What I believe this actually means, in reality, is that if your `forward` function requires multiple inputs, you can pass those inputs as a tuple.

### Suggest a potential alternative/fix

Something like this, in which I've tried to make it more clear that this is really just one example input, but it can be a tuple if the `forward` function uses multiple input values.

> **example_inputs** ([tuple](https://docs.python.org/3/library/stdtypes.html#tuple) or [torch.Tensor](https://pytorch.org/docs/stable/tensors.html#torch.Tensor)) – An example input that will be passed to the function while tracing. If the `forward` function requires multiple inputs, then this example input should be a tuple of those inputs. The resulting trace can be run with inputs of different types and shapes assuming the traced operations support those types and shapes. *example_inputs* may also be a single Tensor in which case it is automatically wrapped in a tuple.

If that is correct, then also it's a little confusing that this argument is called `example_inputs`, since it's more like "`example_input`, potentially with multiple parts", but for historical reasons I don't see that changing.

cc @EikanWang @jgong5 @wenzhe-nrv @sanchitintel
Repository: pytorch
Issue: view_copy out= does not reshape zero element tensors
Labels: triaged,module: viewing and reshaping,module: functionalization

### 🐛 Describe the bug

from [how-does-out-work-in-pytorch](https://github.com/pytorch/pytorch/wiki/Developer-FAQ#how-does-out-work-in-pytorch) 
> if an out tensor has no elements it will be resized to the shape, stride, and memory format of the output of the computation.

however I get the following error when trying this:

```
In [4]: torch.view_copy(x, [3], out=torch.tensor([]))
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
Input In [4], in <cell line: 1>()
----> 1 torch.view_copy(x, [3], out=torch.tensor([]))

RuntimeError: The size of tensor a (0) must match the size of tensor b (3) at non-singleton dimension 0
``` 


### Versions

Collecting environment information...
PyTorch version: 1.14.0a0+gitcef13eb
Is debug build: False
CUDA used to build PyTorch: 11.7
ROCM used to build PyTorch: N/A

OS: Ubuntu 18.04.6 LTS (x86_64)
GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Clang version: Could not collect
CMake version: version 3.24.1
Libc version: glibc-2.27

Python version: 3.8.13 | packaged by conda-forge | (default, Mar 25 2022, 06:04:10)  [GCC 10.3.0] (64-bit runtime)
Python platform: Linux-4.15.0-147-generic-x86_64-with-glibc2.10
Is CUDA available: True
CUDA runtime version: Could not collect
GPU models and configuration: 
GPU 0: Quadro RTX 8000
GPU 1: Quadro RTX 8000

Nvidia driver version: 515.65.01
cuDNN version: Probably one of the following:
/usr/local/cuda-10.1/targets/x86_64-linux/lib/libcudnn.so.7
/usr/local/cuda-10.2.89/targets/x86_64-linux/lib/libcudnn.so.7
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

Versions of relevant libraries:
[pip3] functorch==0.3.0a0+9166625
[pip3] mypy==0.812
[pip3] mypy-extensions==0.4.3
[pip3] numpy==1.23.2
[pip3] torch==1.14.0a0+git6dbde84
[conda] functorch                 0.3.0a0+9166625           dev_0    <develop>
[conda] magma-cuda117             2.6.1                         1    pytorch
[conda] mkl                       2022.1.0           h84fe81f_915    conda-forge
[conda] mkl-include               2022.1.0           h84fe81f_915    conda-forge
[conda] numpy                     1.23.2           py38h3a7f9d9_0    conda-forge
[conda] torch                     1.14.0a0+git6dbde84           dev_0    <develop>


cc @bdhirsh @ezyang @soumith
Repository: PowerToys
Issue: PowerToys Hosts: ability to invert the order of displayed hosts
Labels: Idea-Enhancement,Needs-Triage,Product-Hosts File Editor

### Description of the new feature / enhancement

Hi, I think it could be useful to have an option (that should be saved in the user prefs) to invert the order of the displayed hosts entries. For those who have many entries it is userful to see the last entris in the top of the list.

Another seconday option (it can be achieved in different ways already now) could be a shortcut to open the host lists.

Thanks!

### Scenario when this would be used?

We have manu entries and the most important items that we would like to see at the top of the list are the most recent entries.

### Supporting information

_No response_
Repository: storybook
Issue: [Bug]: Looping when processing an array of objects, one field of which is a react node
Labels: bug,needs triage

### Describe the bug

I have a problem with using a storybook.

In my library, there is a Tabs component that accepts "tabs" as one of the props - an array of objects with the following structure:

```
export const tabType = {
    content: PropTypes.node
    name: PropTypes.string.isRequired,
    key: PropTypes.string.isRequired,
    hasForceRender: PropTypes.bool,
    isDisabled: PropTypes.bool,
    contentRowTabs: PropTypes.oneOfType([PropTypes.node, PropTypes.string])
};
```

When I pass just an array to this prop, with the structure above, everything works fine.

**BUT**, when it comes to the simplest function that returns the same array - the page and the whole storybook stops responding, I can't switch to another component of my library or just refresh the page.

Function:
```
export const getContent = count => {
    return[
        {
            content: `${count}`,
            name: 'Tab tab tab 4',
            keys: 4
        },
        {
            content: <div>taaab</div>,
            name: 'Tab tab tab 5',
            key: 5
        },
        {
            content: <div>taaab6</div>,
            name: 'Tab tab tab 6',
            keys: 6
        }
    ];
};
```

I pass it to the next component, inside which the "tabs" prop just comes in and the div tag is returned:

```
<Tabs
            {...args}
            tabs={getContent(1)}
        />
tabs: PropTypes.arrayOf(PropTypes.shape(tabType)).isRequired,
```

I noticed that the error occurs when I try to pass a node in the content field of the array object, since everything also works with string content.

Field with node:
`content: <div>taaab</div>,
`
I also noticed that the problem may be in this function, and when I want to send a node component to one object, a loop may occur in this function, which placement in  

_node_modules/react-element-to-jsx-string/dist/cjs/formatter/formatComplexDataStructure.js.flow_

<img width="1060" alt="Снимок экрана 2022-11-15 в 20 09 52" src="https://user-images.githubusercontent.com/84034065/201982631-37919d19-72ce-4059-a857-fe0af18b76a1.png">

I am almost sure that the problem here is not in my solution, but in the storybook and its work when passing the node in this way, because in the rest of the forms of my project, which are not located in the storybook, everything works as it should.

### To Reproduce

_No response_

### System

_No response_

### Additional context

_No response_
Repository: opencv
Issue: intersectConvexConvex sometimes fails to give the correct result
Labels: bug

### System Information

OpenCV python version: 4.6.0
OS: Ubuntu 20.04
Python 3.8.10

### Detailed description

As described here also https://github.com/opencv/opencv/issues/10044 `intersectConvexConvex` seems to sometimes be returning the wrong answer. I'm opening a new issues because the other one is closed and has not been reopened based on latest comments. Note that unlike the linked issue, I have found that the two polygons need not be totally disjoint for the error to arise. See the Python snippet for a test that shows this.


### Steps to reproduce

Here is a Python snippet to reproduce the error:

```python
import cv2
import numpy as np

poly_1 = np.array([
    0.29191044, 1.2570167,
    0.037910465, 1.2571087,
    0.037893265, 1.2571062,
    0.037817374, 1.0475562,
    0.29181734, 1.0474641,
    0.29183453, 1.0474666,
]).reshape(-1, 2)

poly_2 = np.array([
    0.2784909, 1.0457377,
    0.27847248, 1.0457454,
    0.024497004, 1.0492755,
    0.02158466, 0.83974582,
    0.021603081, 0.83973807,
    0.27557856, 0.83620799,
]).reshape(-1, 2)
 
area, intersection = cv2.intersectConvexConvex(poly_1.astype(np.float32), poly_2.astype(np.float32))

print(area)

# Both polygons are convex.
print(cv2.isContourConvex(poly_1.astype(np.float32).reshape(-1, 1, 2)))
print(cv2.isContourConvex(poly_2.astype(np.float32).reshape(-1, 1, 2)))

# Note that one of the points of poly_1 lies inside poly_2
for point in poly_1:
    print(cv2.pointPolygonTest(poly_2.astype(np.float32).reshape(-1, 1, 2), point.astype(np.float32), False))

img = np.zeros(shape=(1000, 1000, 3), dtype=np.uint8)
cv2.polylines(img, [(poly_1 * 500).astype(np.int32).reshape(-1, 1, 2)], True, (255, 0, 0), thickness=3)
cv2.polylines(img, [(poly_2 * 500).astype(np.int32).reshape(-1, 1, 2)], True, (0, 0, 255), thickness=3)
cv2.polylines(img, [(intersection * 500).astype(np.int32).reshape(-1, 1, 2)], True, (0, 255, 0), thickness=1)
cv2.imshow("window", img)
cv2.waitKey()
```
And here is a screen snip of the output. Notice the green rectangle which is supposed to represent the intersection.
![image](https://user-images.githubusercontent.com/16543381/201987975-fd949f2e-a6a7-484a-b2c2-652c1435d681.png)

### Issue submission checklist

- [X] I report the issue, it's not a question
- [X] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [x] I updated to the latest OpenCV version and the issue is still there
- [X] There is reproducer code and related data files (videos, images, onnx, etc)
Repository: kubernetes
Issue: Missing gcr.io/authenticated-image-pulling/windows-nanoserver:v3 image for E2E tests
Labels: sig/node,sig/windows,sig/testing,kind/failing-test,triage/accepted

### Which jobs are failing?

capz-windows-containerd-master

### Which tests are failing?

``[sig-node] Container Runtime blackbox test when running a container with a new image should be able to pull from private registry with secret [NodeConformance]``

### Since when has it been failing?

Since https://github.com/kubernetes/kubernetes/pull/113900 merged.

### Testgrid link

https://testgrid.k8s.io/sig-windows-signal#capz-windows-containerd-master

### Reason for failure (if possible)

A recent PR [1] updated the image versions we use for E2E tests. However, the windows-nanoserver image is meant to be in a private authenticated registry: ``gcr.io/authenticated-image-pulling/windows-nanoserver``, which requires credentials to pull images from it. This image is required by the ``[sig-node] Container Runtime blackbox test when running a container with a new image should be able to pull from private registry with secret [NodeConformance]`` test for Windows. The v3 image does not exist, there's no automatic promotion process for that registry. Previously, it was built and pushed manually.

Because of this, the https://testgrid.k8s.io/sig-windows-signal#capz-windows-containerd-master jobs have started to fail.

[1] https://github.com/kubernetes/kubernetes/pull/113900

### Anything else we need to know?

Related PR: https://github.com/kubernetes/kubernetes/pull/113923

The issue can be resolved if the image is built and pushed to the ``gcr.io/authenticated-image-pulling/`` registry.

This can be done by running:

```
cd kubernetes/test/images
make REGISTRY=gcr.io/authenticated-image-pulling WHAT=windows-nanoserver all-push
```

### Relevant SIG(s)

/sig windows
/sig testing
Repository: flutter
Issue: linux run fails with "/usr/local" permissions
Labels: tool,a: first hour,platform-linux,P2,team-tool,triaged-tool

Running "flutter run" on linux can fail because of permissions to "/usr/local".   It is surprising that it would make this complaint.  The issue was previously reported and closed but not fixed.  I'm making a new issue.

## Error log
```
clarkeaa@gamer:~/dev/flutter-examples/counter$ flutter run
Launching lib/main.dart on Linux in debug mode...
CMake Error at cmake_install.cmake:66 (file):
  file INSTALL cannot copy file
  "/home/clarkeaa/dev/flutter-examples/counter/build/linux/x64/debug/intermediates_do_not_run/counter"
  to "/usr/local/counter": Permission denied.
```

## Flutter doctor
```
[✓] Flutter (Channel stable, 3.3.8, on Ubuntu 22.04.1 LTS 5.15.68.1-microsoft-standard-WSL2, locale C.UTF-8)
    • Flutter version 3.3.8 on channel stable at /home/clarkeaa/dev/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 52b3dc25f6 (7 days ago), 2022-11-09 12:09:26 +0800
    • Engine revision 857bd6b74c
    • Dart version 2.18.4
    • DevTools version 2.15.0

[✓] Linux toolchain - develop for Linux desktop
    • Ubuntu clang version 14.0.0-1ubuntu1
    • cmake version 3.22.1
    • ninja version 1.10.1
    • pkg-config version 0.29.2
```

## Environment

`Ubuntu 22.04.1 LTS` on Windows Linux Subsystem

## Previously reported workaround

run `flutter clean` and try again

## Previously closed issue

https://github.com/flutter/flutter/issues/59890
Repository: flutter
Issue: linux cmake does not report names of missing packages
Labels: tool,platform-linux,a: desktop,a: build,P2,team-linux,triaged-linux

When running "flutter run" on linux, cmake might not find required packages but it doesn't report the name of the missing packages.  The output also doesn't have a full path to the appropriate cmake file so it can be looked up.  The cmake file has to be hunted down.

error log:
```
clarkeaa@gamer:~/dev/flutter-examples/counter$ flutter run
Launching lib/main.dart on Linux in debug mode...
CMake Error at /usr/share/cmake-3.22/Modules/FindPkgConfig.cmake:603 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-3.22/Modules/FindPkgConfig.cmake:825 (_pkg_check_modules_internal)
  flutter/CMakeLists.txt:25 (pkg_check_modules)


Building Linux application...
Exception: Unable to generate build files
```
Repository: flutter
Issue: [go_router] Clarify where the GoRouter configuration should be stored.
Labels: d: api docs,package,P3,p: go_router,team-go_router,triaged-go_router

Right now our GoRouter samples use this pattern:

```dart
void main() => runApp(const MyApp());

/// The route configuration.
final GoRouter _router = GoRouter(
  routes: /* ... */
);

/// The main app.
class MyApp extends StatelessWidget {
  /// Constructs a [MyApp]
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp.router(
      routerConfig: _router,
    );
  }
}
```

But is it OK to add GoRouter directly to the `MaterialApp.router constructor`? 

```dart
return MaterialApp.router(
  routerConfig: GoRouter(
    /* ... */
  ),
);
```

If not, we should see if this can be fixed or add some documentation.
Repository: vscode
Issue: Sluggish scrolling in search view when there are many results in one file
Labels: bug,freeze-slow-crash-leak,search,confirmed

* Install lodash along with its typings file
* Search `lodash` (make sure node_modules is not ignored)
* Scroll, the view becomes slugglish, sometimes blocking

<img width="899" alt="image" src="https://user-images.githubusercontent.com/876920/202004563-08f70b8f-62a9-4029-9c14-afa692e2c060.png">

<img width="701" alt="image" src="https://user-images.githubusercontent.com/876920/202004627-c8a15858-df57-4f85-924b-b6ca8ca3cd02.png">

It seems while scrolling, we are creating tree items and disposing them within short periods, and each time generating labels with highlights for the viewport can take 200ms, and without any scrolling optimization (delay the real rendering to next frame, for example), it blocks the UI.,
Repository: rust
Issue: Incorrect `unnecessary parenthesis` inside attribute parameters 
Labels: A-diagnostics,T-compiler,L-unused_parens

<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.

If you cannot produce a minimal reproduction case (something that would work in
isolation), please provide the steps or even link to a repository that causes
the problematic output to occur.
-->

Given the following code: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=5b455db4401f5a5f2bd6bec013fab8de

```rust
use clap::{Parser};

#[derive(Debug, Parser)]
pub struct Args {
    #[arg(short, long, value_name="ingredients.txt", default_value_t=("ingredients.rs".to_owned()))]
    ingredients: String,
}
```

The current output is:

```
warning: unnecessary parentheses around assigned value
 --> src/lib.rs:5:70
  |
5 |     #[arg(short, long, value_name="ingredients.txt", default_value_t=("ingredients.rs".to_owned()))]
  |                                                                      ^                           ^
  |
  = note: `#[warn(unused_parens)]` on by default
help: remove these parentheses
  |
5 -     #[arg(short, long, value_name="ingredients.txt", default_value_t=("ingredients.rs".to_owned()))]
5 +     #[arg(short, long, value_name="ingredients.txt", default_value_t="ingredients.rs".to_owned())]
  |
```

<!--
If the problem is not self-explanatory, please provide a rationale for the
change.
-->

However removing the parenthesis results in
```
error: expected `,`
 --> src/lib.rs:5:86
  |
5 |     #[arg(short, long, value_name="ingredients.txt", default_value_t="ingredients.rs".to_owned())]
  |                                                                                      ^

```

<!--
If dramatically different output is caused by small changes, consider also
adding them here.

If you're using the stable version of the compiler, you should also check if the
bug also exists in the beta or nightly versions. The output might also be
different depending on the Edition.
-->
Repository: PowerToys
Issue: [New Feature] Improved LAPS UI
Labels: Idea-New PowerToy,Needs-Triage

### Description of the new feature / enhancement

The old (existing) LAPS UI has two problems for me:
1. The used font makes it a bit problematic to identify the different characters when reading them. (You can't copy the password into the login screen's password field.)
2. For long passwords the ui ist to small when dpi scaling is enabled. And because you can't resize the UI you have to move the text with the cursor which is annoying when typing long passwords.

With [Windows LAPS](https://learn.microsoft.com/en-us/windows-server/identity/laps/laps-overview#windows-laps-vs-legacy-microsoft-laps) three new features are added which aren't supported by the LAPS UI.
_(I don't know if MS plans to release a new version of the LAPS UI for Windows LAPS.)_
1. Reset the password of the current computer immediately.
2. Access/read the password history of a computer.
3. Access encrypted passwords from Windows LAPS.

### Scenario when this would be used?

Having a better LAPS UI experience and especially with long password.

### Supporting information

It is important that the Utility supports "Run as different user" to support environments where the LAPS password is only available using special admin accounts.