sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: storybook
Issue: [Feature Request]: Unable to set null value to date props via Controls
Labels: feature request,addon: controls

### Is your feature request related to a problem? Please describe

There is no way to use a nullable Date prop.

Example:
```tsx
type MyComponentProps = {
    myDate: Date | null;
};
const MyComponent = (props: MyComponentProps) =>
    (<span>{props.myDate?.toString() ?? 'No date' }</span>);
```

This component prop `myDate` can not be represented with current Controls addon, as date is converted to a numeric timestamp (noted in #11822, with workaround), **but also, the null value can not be represented with the current Control for date.**

The control for this date prop always shows a date (1970-01-01, 00:00), even after using `useArgs` hook and set explicit `null` value to `myDate` prop.

### Describe the solution you'd like

The solution could be just to let the date Control to be empty, which will represent a null value. Or maybe show a toggle button to set null or a mandatory Date.

### Describe alternatives you've considered

If it breaks existing usages of date Controls, it could be opt-in activated via control options in parameters or something like that.

### Are you able to assist to bring the feature to reality?

no

### Additional context

![image](https://user-images.githubusercontent.com/1970817/197266716-efe7484a-7724-409e-9c5e-5bc5968a737d.png)
Repository: pytorch
Issue: Missing docstring for resize_as
Labels: module: docs,triaged

### 📚 The doc issue

As per the title, there is no docstring for `resize_as`.

```python
In [2]: t = torch.randn(6)

In [3]: t.resize_as?
Signature: t.resize_as(tensor)
Docstring: <no docstring>
File:      /usr/local/Caskroom/miniconda/base/envs/book/lib/python3.10/site-packages/torch/_tensor.py
Type:      method

In [4]: torch.resize_as_?
Docstring: <no docstring>
Type:      builtin_function_or_method
```

### Suggest a potential alternative/fix

Add docstring.

cc @svekars @carljparker
Repository: storybook
Issue: [Bug]: ?. Operator in component breaks partially breaks StoryBook
Labels: bug,needs triage

### Describe the bug

Adding the following in a function within a StoryBook component `document.getElementById(id)?.focus();` causes StoryBook to load, not report any errors, but only partially render some controls and forget all formats. 

### To Reproduce

```shell
Add the following into a component:

<script lang="ts">
    export let id: string = 'name';

    function focusInput() {
        if (id) {
            // TODO - This function borks SB
            document.getElementById(id)?.focus();
        }
    }
</script>
```


### System

```shell
Environment Info:

  System:
    OS: macOS 12.6
    CPU: (10) arm64 Apple M1 Max
  Binaries:
    Node: 16.16.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 8.11.0 - /usr/local/bin/npm
  Browsers:
    Chrome: 106.0.5249.119
    Safari: 16.0
  npmPackages:
    @storybook/addon-actions: ^6.5.12 => 6.5.12 
    @storybook/addon-essentials: ^6.5.12 => 6.5.12 
    @storybook/addon-interactions: ^6.5.12 => 6.5.12 
    @storybook/addon-links: ^6.5.12 => 6.5.12 
    @storybook/addon-svelte-csf: ^2.0.7 => 2.0.7 
    @storybook/builder-vite: ^0.2.2 => 0.2.2 
    @storybook/svelte: ^6.5.12 => 6.5.12 
    @storybook/testing-library: ^0.0.13 => 0.0.13
```


### Additional context

_No response_
Repository: godot
Issue: [Godot 4.0] Editor Shows Error when using class_name on Script that Extends from Resource 
Labels: bug,topic:gdscript,topic:editor,needs testing

### Godot version

4.0.dev Beta 3

### System information

Windows 10, foward_plus, Nvidia RTX 2060

### Issue description

Editor displays message "Class Pepe(this case) hides a global script class", whenever saving a file with class_name.

In addition to this, when I create a resource based on this class and click to see it in the inspector, I cannot see the exported variables, even if I make a change it is not reflected in the inspector.

I am using Godot Editor

![class_name_error](https://user-images.githubusercontent.com/20196501/197276330-3da38509-fac2-476a-a293-ec32e215b410.png)




### Steps to reproduce

Open attached project.
Open my_script.gd.
Save file
There's an error.

Create a Resource using Pepe on Search box
Double click on recent created Resource.
Look at inspector, exported variable can't use from it.
If I remove the class_name then all works fine

![class_name_error_full](https://user-images.githubusercontent.com/20196501/197277079-1c297a7c-ec64-4192-a8a0-b4fc655e0637.png)


### Minimal reproduction project

[ClassNameOnResourceExtends.zip](https://github.com/godotengine/godot/files/9842030/ClassNameOnResourceExtends.zip)
Repository: pytorch
Issue: Synchronize domain builds to be executed after core build have completed
Labels: module: ci,triaged

Synchronize domain builds to be executed after core build have completed for nightly
Somethimes audio and vision nightly is kicked before pytorch core is complete hence we need to synchronize these builds in order to make sure we have up to date and correct nightlies

cc @seemethere @malfet @pytorch/pytorch-dev-infra
Repository: PowerToys
Issue: Codespaces are not being shown in VS Code results
Labels: Issue-Bug,Needs-Triage,Run-Plugin

### Microsoft PowerToys version

0.63.0

### Installation method

Windows Store

### Running as admin

- [ ] Yes

### Area(s) with issue?

PowerToys Run

### Steps to reproduce

1. Have a codespace in your recent VS Code history
2. Search for it with run `{ codespace` 

### ✔️ Expected Behavior

Codespace should show as a result

### ❌ Actual Behavior

Codespaces do not seem available as a result despite the PowerToys run setting saying it should be able to find "remote machines (SSH or Codespaces).

The results work for normal projects, WSL projects, and devcontainer projects, but not for codespaces.

### Other Software

_No response_
Repository: flutter
Issue: Create the separate location in cocoon for the Revert bot
Labels: team-infra,P2,triaged-infra

Create a new internal project for the revert bot.

Create the required build files, docker files etc... Use auto_submit as a reference.
Repository: flutter
Issue: Create Some Form of Revert Log that is Openly Reviewable
Labels: team-infra,P3,triaged-infra

Need to think this on through as we are collecting information about the reverts but we need to create a reviewable revert log so that we can audit to see if anyone is abusing the revert features.
Repository: pytorch
Issue: invalid_arguments.cpp is busted
Labels: module: bootcamp,triaged,actionable,module: python frontend

### 🐛 Describe the bug

This file is responsible for multi-overload error printing when arguments mismatch. It is supposed to have color formatting, where it tells you which argument mismatched, where green says it matched, and red says it mismatched. It is also completely broken.

<img width="946" alt="image" src="https://user-images.githubusercontent.com/13564/197295055-befa59a9-4de3-4dd3-bd95-5a3bd91d4c6a.png">

Notice that tuple is red, even though it actually is correctly matching for the second argument.

The brokenness appears to stem from the fact that, to determine how to match up the arguments, invalid_arguments.cpp *re-parses* the string names that the python arg parser assigns:

```
std::string FunctionParameter::type_name() const {
  switch (type_) {
    case ParameterType::TENSOR:
      return "Tensor";
    case ParameterType::SCALAR:
      return "Number";
    case ParameterType::INT64:
      return "int";
    case ParameterType::SYM_INT:
      return "int (or SymInt)";
    case ParameterType::DOUBLE:
      return "float";
    case ParameterType::COMPLEX:
      return "complex";
    case ParameterType::TENSOR_LIST:
      return "tuple of Tensors";
```

however, this parsing is completely busted; for example, to parse a tuple appropriately, you should must return a string `tuple[int]`. Furthermore, the names must exactly match what Python typename reports for the type in question.

This is completely bonkers because we have a type system for the parameters already in python_arg_parser.cpp, invalid_arguments.cpp should have reused it.

This would be a good starter task for someone, I think.

### Versions

master

cc @albanD
Repository: stable-diffusion-webui
Issue: [Feature Request]: Allow merging hypernetworks and full SD models.
Labels: enhancement

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What would your feature do ?

It would be nice if a hypernetwork could be merged with a model checkpoint to produce a standalone ckpt file. It'd probably be best to have it in a subtab under Checkpoint Merger ("With Checkpoint", "With Hypernetwork")

### Proposed workflow

1. Go to Checkpoint Merger
2. Select the "With Hypernetwork" Tab
3. Select primary model and hypernetwork from the respective dropdowns
4. Optionally change any of the usual options (name, multiplier, etc.)
5. Run


### Additional information

_No response_
Repository: flutter
Issue: Move Shared Service Code to Their own project/sub dir in Cocoon
Labels: team-infra,P2,triaged-infra

The auto-submit bot and revert bot will share service code that will need to be moved so we do not have duplicate code between projects in the same repository.

Github Service, Graphql Service, BigQuery Service are examples of shared service that can be moved to their own project/sub dir.
Repository: stable-diffusion-webui
Issue: [Feature Request]: CPU optimizations
Labels: enhancement

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What would your feature do ?

As per #3300 discussion, I think some optimizations for running SD on the CPU is possible, doesn't have to be major but minor improvements will benefit those that have a powerful CPU but an old GPU that isn't capable of running SD.

> According to this [article](https://www.gabriel.urdhr.fr/2022/08/28/trying-to-run-stable-diffusion-on-amd-ryzen-5-5600g/) running SD on the CPU can be optimized, [stable_diffusion.openvino](https://github.com/bes-dev/stable_diffusion.openvino) being slightly slower than running SD on the Ryzen iGPU.

> One one of the forks, I found DDIM sampler support. [Drake53/stable_diffusion.openvino@a56987c](https://github.com/Drake53/stable_diffusion.openvino/commit/a56987c6bb1b8500e8662f3666d042bbdbd5296c) Very nice.. it should produce decent results at 8 steps.

Quoting the discussion to show some optimizations are possible. 



### Proposed workflow

1. Add `--skip-torch-cuda-test --use-cpu all` to `webui-user`
2. Run `webui`
3. Hope 40 sampling steps doesn't take 8 minutes to finish
4. Enjoy

### Additional information

N/A
Repository: pytorch
Issue: RAM leak when copying tensor from cpu to cuda
Labels: module: cuda,module: memory usage,triaged

### 🐛 Describe the bug

If you profile run the following code then you'll see that line 8 grabs ~2GB of RAM, but it doesn't get released:

`
import gc
import torch
from memory_profiler import profile

@profile
def test(n):
    t1 = torch.ones(n)
    t2 = torch.ones(n).to("cuda")
    del t1
    del t2
    gc.collect()
    torch.cuda.empty_cache()

if __name__ == "__main__":
    test(3000000)
`

### Versions

PyTorch version: 1.12.0+cu102
Is debug build: False
CUDA used to build PyTorch: 10.2
ROCM used to build PyTorch: N/A

OS: Ubuntu 18.04.5 LTS (x86_64)
GCC version: Could not collect
Clang version: Could not collect
CMake version: Could not collect
Libc version: glibc-2.27

Python version: 3.8.12 (default, Sep 10 2021, 00:16:05)  [GCC 7.5.0] (64-bit runtime)
Python platform: Linux-5.4.214-120.368.amzn2.x86_64-x86_64-with-glibc2.27
Is CUDA available: True
CUDA runtime version: Could not collect
CUDA_MODULE_LOADING set to:
GPU models and configuration: GPU 0: Tesla T4
Nvidia driver version: 510.47.03
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

Versions of relevant libraries:
[pip3] botorch==0.2.1
[pip3] gpytorch==1.4.2
[pip3] mypy==0.982
[pip3] mypy-extensions==0.4.3
[pip3] numpy==1.23.4
[pip3] pytorch-lightning==1.7.7
[pip3] torch==1.12.0
[pip3] torchmetrics==0.10.0
[pip3] torchvision==0.13.1

cc @ngimel
Repository: stable-diffusion-webui
Issue: [Feature Request]: Automatic saving of best loss model when training
Labels: enhancement

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What would your feature do ?

When you train embedding or hypernetwork, the webui is designed save every x steps. But the lowest loss model might be lost between those steps. Also, simply saving lowest loss tend to overfit.


Therefore, I want webui to support saving history/log of best models. So, if the training produces better loss, webui will generate an image and save it and the model (just like the current mechanism).

I want to be able to specify the best loss threshold, 0 meaning even the smallest reduction from best loss will be saved. But such threshold might not work well as training goes and difference in loss gets way smaller. So maybe the threshold can be progressive(?) like the training rate. Or it can be percentage of best loss.

It might be nice to be able to enable or disable both the current saving mechanism and the best loss saving mechanism as separate toggles, so it's possible to have both of them on. The option to specify separate log directory would also be nice. Otherwise I might need to turn off the current mechanism just to not mix them up.

### Proposed workflow

1. Go to training tab
2. Select train tab
3. Tick "log best models" (there might be better label)
4. Specify loss threshold
5. Maybe specify a different log directory
6. Press train
7. Webui will log training everytime the training produces better loss (mind the threshold)

### Additional information

I might be able to work on this. I havent understood the project structure though, nor am I familiar with gradio.

Parameters are from [this file](https://github.com/R-N/stable-diffusion-webui/blob/master/modules/ui.py)
Training is done on [this file](https://github.com/R-N/stable-diffusion-webui/blob/f49c08ea566385db339c6628f65c3a121033f67c/modules/hypernetworks/hypernetwork.py)
Repository: stable-diffusion-webui
Issue: [Feature Request]: Eye position controller
Labels: enhancement

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What would your feature do ?

It would be really good if the Stable DIffusion has a feature to control the eye position precisely. 
This is a very important feature which will set the SD apart for any other AI becauese eye position of images control the dopamine secretion in the human brain. 
Please check the attached file for details. 
[Eye postion Controller.xlsx](https://github.com/AUTOMATIC1111/stable-diffusion-webui/files/9843501/Eye.postion.Controller.xlsx)


### Proposed workflow

1. Go to Inpainting
2. Mask the eye area 
3. Go to the Eye position selector
4. Set desired eye and pupil position
5. Apply eye position. 


### Additional information

_No response_
Repository: PowerToys
Issue: Keyboard Manager: Shift Keys have no effect when combined with Remapped NumPad keys
Labels: Issue-Bug,Product-Keyboard Shortcut Manager,Needs-Triage

### Microsoft PowerToys version

0.63.0

### Installation method

GitHub

### Running as admin

- [ ] Yes

### Area(s) with issue?

Keyboard Manager

### Steps to reproduce

physical key Shift (left or right) doesn't have any effect when combined with a NumPad key remapped to a directional key

example: NumPad 6 is remapped to Right (directional key)
For the above example, in a text file, the shift (left or right) key in conjunction with the "physical" Right (directional key) results in highlighted text, as expected for Shift+Right.  But for the shift (left or right) key in conjunction with the remapped NumPad 6 (Right directional key) results in the cursor moving right without highlighting text - the Shift key is ignored.

Control key combined with a NumPad key remapped to a directional key works as expected.  Eg Ctrl+NumPad 6 (above remap example) skips to the next word rather than moving just one character right.


Additionally for *Shortcut* remapping: 

Shift (left or right) + a NumPad key remapped to a directional key -- mapped to -- shortcut Shift (left or right) + Physical directional key, doesn't work any better (the shift key is ignored.)  If you use a Control key instead of a Shift key for this shortcut example, it works as expected.  It's even difficult to *input* a shift key with a NumPad key for a shortcut - you have to press the NumPad key first before you press the shift key in order for them both to be entered (otherwise the NumPad key overwrites the shift key).



### ✔️ Expected Behavior

The shift key + the remapped NumPad key to work the same way as the shift key + the physical key for the remap.

### ❌ Actual Behavior

The shift key is ignored.  The remapped NumPad key works as though it was pressed by itself.

### Other Software

_No response_
Repository: rust
Issue: `where` on `trait` declaration should be provided when the trait is an input bound, but is instead a requirement
Labels: C-feature-request

I tried this code: [[playground]](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=9f8aaf2cccd481a071e837e51187f2f9)

```rust
pub trait Trait {}

pub trait WithAssoc {
    type Assoc;
}

pub trait WithSizedAssoc: WithAssoc
where
    Self::Assoc: Trait,
{
}

pub struct S<T: WithSizedAssoc>(T::Assoc);
```

I expected this to compile. Instead, it gives the following error:

```
error[[E0277]](https://doc.rust-lang.org/stable/error-index.html#E0277): the trait bound `<T as WithAssoc>::Assoc: Trait` is not satisfied
  --> src/lib.rs:13:17
   |
13 | pub struct S<T: WithSizedAssoc>(T::Assoc);
   |                 ^^^^^^^^^^^^^^ the trait `Trait` is not implemented for `<T as WithAssoc>::Assoc`
   |
note: required by a bound in `WithSizedAssoc`
  --> src/lib.rs:9:18
   |
7  | pub trait WithSizedAssoc: WithAssoc
   |           -------------- required by a bound in this
8  | where
9  |     Self::Assoc: Trait,
   |                  ^^^^^ required by this bound in `WithSizedAssoc`
help: consider introducing a `where` clause, but there might be an alternative better way to express this requirement
   |
13 | pub struct S<T: WithSizedAssoc>(T::Assoc) where <T as WithAssoc>::Assoc: Trait;
   |                                           ++++++++++++++++++++++++++++++++++++

For more information about this error, try `rustc --explain E0277`.
```

### Meta

playground 1.66.0-nightly (2022-10-21 5c8bff74bc1c52bef0c7)
Repository: godot
Issue: Vulkan Mobile: Scaled object lighting incorrect on Snapdragon 865/870 (Adreno)
Labels: bug,platform:android,topic:rendering,topic:thirdparty,topic:3d

### Godot version

4.0beta3

### System information

Android, Qualcomm 865/870, Vulkan

### Issue description

a very simple scene with an 0.01 scale sphere

![Screenshot 2022-10-22 140024](https://user-images.githubusercontent.com/2771315/197324127-6dbf8ae8-1bb1-46a1-831d-35862ad86a05.jpg)

removed mobile shading specials

![Screenshot 2022-10-22 135957](https://user-images.githubusercontent.com/2771315/197324141-c8d2203b-2053-4609-b73a-3a7e7559136c.jpg)

on desktop （GTX3060）and  an some mobile chip （MediaTek Dimensity 1100）looks same as in editor

![Screenshot 2022-10-22 140525](https://user-images.githubusercontent.com/2771315/197324157-2afae110-24b2-4c37-8226-f3f12915bce9.jpg)

on vivo iqoo pro 5g (Qualcomm 865)

![Screenshot_20221022_142854](https://user-images.githubusercontent.com/2771315/197324208-0c936b07-64f7-4324-badb-96dbd47a66cd.jpg)

some other qualcomm chip have same result like lenovo yoga pad pro 13 （Qualcomm 870）


### Steps to reproduce

1. setup basic envrionment (vulkan mobile render, remove mobile force vertex settings)
2. build a scene with different scale object (setup at least one object transform scale to 0.01)
3. run on device

### Minimal reproduction project

[001scale.zip](https://github.com/godotengine/godot/files/9843724/001scale.zip)
Repository: angular
Issue: add nonDisableable forms
Labels: area: forms,P3,forms: strictly typed

### Which @angular/* package(s) are relevant/related to the feature request?

forms

### Description

with angular 14, I have been playing around with the new typed forms, what I usually find irritating is that the type of the value is always Partial, take this simple example

```
// login.component.ts

loginForm = this.formBuilder.nonNullable.group({
  username: ['', [Validators.required]],
  password: ['', [Validators.required]],
});
```

if I try to pass `this.loginForm.value` to a method with interface like

```
export interface User {
  username: string;
  password: string;
}
``` 

it will fail with the following error

```
Error: src/app/login/login.component.ts:33:28 - error TS2345: Argument of type 'Partial<{ username: string; password?: string | undefined; }>' is not assignable to parameter of type 'User'.
  Types of property 'username' are incompatible.
    Type 'string | undefined' is not assignable to type 'string'.
      Type 'undefined' is not assignable to type 'string'.

33     this.userService.login(this.loginForm.value);
                              ~~~~~~~~~~~~~~~~~~~~~
```

I understand that's because we can disable a formControl, and that will make this control not in the value

and I understand that `this.loginForm.getRawValue()` will give me the value without `Partial` but that doesn't protect against disabling a formControl

### Proposed solution

it will be similar to the `nonNullable` we have for the `FormBuilder` and inside the options of `FormControl` 
we add `nonDisableable`, which when given the user can't disable the form control (similar to what we have now with the `removeControl`)

this should do 2 things
1. if we used it for the formBuilder, the the value of the form will be without the partial we have today and all control will satisfy the required
2. if we used it for some of the formControls, these ones will be marked required, while only the other will be marked optional

### Alternatives considered

we can combine both the removeControl and disableable together

currently by default you can't remove a control unless marked optional
similarly to prevent disable them unless marked optional
eg. in the above example you can do `this.loginForm.disable();` to disable all controls or `this.loginForm.controls.username.disable();` to disable only username
but you are not allowed to do `this.loginForm.removeControl('username');` to remove username

but we can change it so it does not allowed to do either `removeControl` or `disable` unless this control marked optional

the first proposal is better in my opinion because you can mark the formControl for being disableable but not removable, this is different because even when it's disabled `this.loginForm.controls.username` would still always be `FormControl`, while marking it `removable` will make it `FormControl | undefined`