sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: lintrunner mypy raises error in numpy
Labels: module: lint,triaged

On my machine, `lintrunner -a` produces the following output:
```
(/raid/rzou/pt/debug-cpu4-env) [0] rzou@devfair0317:/raid/rzou/pt/debug-cpu4 (debug-cpu4) $ lintrunner -a
  FLAKE8 success!
  CLANGFORMAT success!
  MYPY failure
  MYPYNOFOLLOW success!
  MYPYSTRICT success!
  CLANGTIDY success!
  TYPEIGNORE success!
  NOQA success!
  CIRCLECI success!
  NATIVEFUNCTIONS success!
  NEWLINE success!
  CONSTEXPR success!
  TABS success!
  INCLUDE success!
  SPACES success!
  ERROR_PRONE_ISINSTANCE success!
  PYBIND11_INCLUDE success!
  PYPIDEP success!
  PYBIND11_SPECIALIZATION success!
  EXEC success!
  RAWCUDA success!
  RAWCUDADEVICE success!
  ROOT_LOGGING success!
  CMAKE success!
  SHELLCHECK success!
  ACTIONLINT success!
  TESTOWNERS success!
  CALL_ONCE success!
  ONCE_FLAG success!
  WORKFLOWSYNC success!
  CUBINCLUDE success!
  UFMT success!
  COPYRIGHT success!
  BAZEL_LINTER success!
  LINTRUNNER_VERSION success!


>>> Lint for ../debug-cpu4-env/lib/python3.11/site-packages/numpy/__init__.pyi:

  Error (MYPY) [syntax]
    Positional-only parameters are only supported in Python 3.8 and greater

         633  |    def flush(self) -> object: ...
         634  |    def fileno(self) -> int: ...
         635  |    def tell(self) -> SupportsIndex: ...
    >>>  636  |    def seek(self, offset: int, whence: int, /) -> object: ...
         637  |
         638  |# NOTE: `seek`, `write` and `flush` are technically only required
         639  |# for `readwrite`/`write` modes

Successfully applied all patches.
```
the numpy error blocks any other errors from showing up.
Repository: godot
Issue: Autowrap doesn't correctly wrap without spaces
Labels: bug,topic:gdscript,topic:editor,usability

### Godot version

4.0.2

### System information

Windows 10 x64

### Issue description

If you have a long line like this
```GDSCript
get_world_2d().direct_space_state.intersect_ray(PhysicsRayQueryParameters2D.create(Vector2(), Vector2(100, 100), 0b11010101, [])
```
autowrap moves the whole line to a new line
![](https://chat.godotengine.org/file-upload/qyHotHo2eDnx7NuNf/Clipboard%20-%2019%20kwietnia%202023%2022:58)
This is because the first space is very far and it doesn't wrap before it.

VS Code for comparison
![](https://chat.godotengine.org/file-upload/Ramc3eu9iWbwfhFhf/Clipboard%20-%2019%20kwietnia%202023%2023:05)

### Steps to reproduce

1. Enable wrapping in the editor
2. Make sure your script editor is not too wide
3. Write the aforementioned code line

### Minimal reproduction project

N/A
Repository: godot
Issue: `GraphEdit` emits `scroll_offset_changed` signal in cases where scroll_offset hasn't changed
Labels: bug,regression,topic:gui

### Godot version

4.0.2.stable

### System information

Windows 10

### Issue description

When using GraphEdit, the scroll_offset_changed signal will emit under circumstances where you wouldn't expect/it shouldn't be emitting, where the scroll_offset has not actually changed.

Noticeably this happens when adding a new GraphNode child, as well as if you just click on the graph without moving it at all.

### Steps to reproduce

Using the reproduction project attached, go into the Offset Demo plugin screen at the top next to AssetLib.
Open the output window to see messages for when the scroll_offset is changed.

Add a node to the graph using the 'Add node' button and see the scroll offset signal occurring, without the offset ever changing.
Clicking on the graph will also cause the behaviour.

(The repro project was edited in the 4.1 development branch to check it still existed but this behaviour was first observed on 4.0.2.stable.)

### Minimal reproduction project

[scroll offset minrepro.zip](https://github.com/godotengine/godot/files/11277908/scroll.offset.minrepro.zip)
Repository: storybook
Issue: [Bug]: GH Actions -  Markdown Links Check - Incorrect results
Labels: bug,other,configuration

### Describe the bug

As part of the weekly CI workflows configured, it seems that the link validator task enabled in [`cron-weekly.yml`](https://github.com/storybookjs/storybook/blob/next/.github/workflows/cron-weekly.yml) is currently generating false positives, reporting that there aren't any broken links when that's not the case as reported by #22130 and to some extent in #22101. This situation is probably happening in other documentation pieces, despite the efforts made when submitting a pull request, whether affecting documentation or a structural code change in the repository.

What needs to happen:
- The [associated workflow](https://github.com/storybookjs/storybook/blob/next/.github/workflows/cron-weekly.yml) will require additional tweaks to accurately validate any broken links and report them as a failure.
- If possible, notify @jonniebigodes with a message notifying him of the existing broken link in the documentation.

@yannbf let's follow up on this async when you have a moment so that we're able to apply the required changes and try and solve this once and for all.

### To Reproduce

N/A

### System

```shell
N/A
```


### Additional context

N/A
Repository: pytorch
Issue: Jacfwd become slower after update pytorch ("We’ve integrated functorch into PyTorch---Documentation")
Labels: high priority,needs reproduction,triaged,module: functorch

Hello, I used to use 
```
from functorch import jacfwd
```
and Jacfwd takes 3.5s, after the update, I am using
```
from torch.func import jacfwd
```
Jacfwd is taking almost 6s, is anyone noticed this?

cc @ezyang @gchanan @zou3519 @Chillee @samdow @soumith @kshitij12345 @janeyx99
Repository: PowerToys
Issue: Fanzy zone windows sizing
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.69.1

### Installation method

PowerToys auto-update

### Running as admin

Yes

### Area(s) with issue?

FancyZones

### Steps to reproduce

I use multiple desktops using different fancy zone layouts. If I switch between desktops open windows on the now active desktop "forget" their size and location and switch to the left hand side of the screen with the full depth of the screen.

### ✔️ Expected Behavior

No change in set locations

### ❌ Actual Behavior

See steps to produce above

### Other Software

_No response_
Repository: PowerToys
Issue: Hide items not in use
Labels: Needs-Triage

### Description of the new feature / enhancement

When turning off the item it hides similar to how removing extension from the toolbar or how turning off an extension removes it from the toolbar and/or extension icon.

### Scenario when this would be used?

With the PowerToys settings window open in the left sidebar is several features and yet I'm sure not everyone uses them all. To turn them off and them be hidden would make it easier to recall which are in use and are not. In turn it shorts the list for users.

### Supporting information

_No response_
Repository: flutter
Issue: [Dcoumentation] Semantics widget documentation isn't clear
Labels: framework,a: accessibility,d: api docs,P2,customer: samehere,team-framework,triaged-framework

The [semantics widget doc ](https://api.flutter.dev/flutter/widgets/Semantics/Semantics.html) does not contain much useful information since most of the parameter is fed directly into [SemanticsProperties](https://api.flutter.dev/flutter/semantics/SemanticsProperties-class.html)

There isn't any description on what each parameter does until developers find out the real explanation in SemanticsProperties. We should cross reference each parameters from two classes.
Repository: pytorch
Issue: Training Faster R-CNN model with COCO dataset has been consistently unsuccessful.
Labels: module: dataloader,triaged

### 📚 The doc issue

My computer has downloaded the COCO dataset and now I want to use PyTorch to load the dataset and train a Faster R-CNN object detection model. However, there seems to be a problem with loading the data. Can you help me solve this issue?The following is my code.

```python
import torchvision
import torch
import torchvision.transforms as transforms
from torch.utils.data import DataLoader
from torchvision.datasets import CocoDetection
from torchvision.models.detection import FasterRCNN
from torchvision.models.detection.rpn import AnchorGenerator
import torch.optim as optim
import torch.nn as nn
from torch.utils.tensorboard import SummaryWriter

## dataloader
transform = transforms.Compose([
    transforms.ToTensor(),
    transforms.Normalize([0.485, 0.456, 0.406], [0.229, 0.224, 0.225])
])

train_data_dir = '../data/coco/train2017'
train_ann_file = '../data/coco/annotations/instances_train2017.json'
val_data_dir = '../data/coco/val2017'
val_ann_file = '../data/coco/annotations/instances_val2017.json'

train_dataset = CocoDetection(root=train_data_dir, annFile=train_ann_file, transform=transform)
test_dataset = CocoDetection(root=val_data_dir, annFile=val_ann_file, transform=transform)
train_loader = DataLoader(train_dataset, batch_size=4, shuffle=True)
val_loader = DataLoader(test_dataset, batch_size=4, shuffle=False)

## model
backbone = torchvision.models.mobilenet_v2(pretrained=True).features
backbone.out_channels = 1280
anchor_generator = AnchorGenerator(sizes=((32, 64, 128, 256, 512),), aspect_ratios=((0.5, 1.0, 2.0),))
roi_pooler = torchvision.ops.MultiScaleRoIAlign(featmap_names=[0], output_size=7, sampling_ratio=2)
model = FasterRCNN(backbone, num_classes=80, rpn_anchor_generator=anchor_generator, box_roi_pool=roi_pooler)

## optimizeer and others
params = [p for p in model.parameters() if p.requires_grad]
optimizer = optim.SGD(params, lr=0.005, momentum=0.9, weight_decay=0.0005)
lr_scheduler = optim.lr_scheduler.StepLR(optimizer, step_size=3, gamma=0.1)
criterion = nn.SmoothL1Loss()

device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')


## train model
model.train()
num_epochs = 10
for epoch in range(num_epochs):
    for i, (images, targets) in enumerate(train_loader):
        images = list(image.to(device) for image in images)
        targets = [{k: v.to(device) for k, v in t.items()} for t in targets]

        loss_dict = model(images, targets)
        losses = sum(loss for loss in loss_dict.values())

        optimizer.zero_grad()
        losses.backward()
        optimizer.step()

        if i % 100 == 0:
            print(f"Epoch [{epoch+1}/{num_epochs}], Step [{i+1}/{len(train_loader)}], Total Loss: {losses.item()}")
```

### Suggest a potential alternative/fix

_No response_

cc @SsnL @VitalyFedyunin @ejguan @NivekT @dzhulgakov
Repository: stable-diffusion-webui
Issue: [Bug]: Outputs is much more broken after updating version to 532ac22b --"Merge branch 'lora_inplace'"
Labels: bug-report

### Is there an existing issue for this?

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

### What happened?

the generated image quality is much worst (actually nearly broken) after me updating to #532ac22b  --"Merge branch 'lora_inplace'"

I tried all versions then i find every pics with LoRA after this merge is broken on my PC.

im trying to work it out by disabled all extensions to see if its extensions break it, but sadly, the image is broken with no extensions.

Did anybody got same problems with me?
sorry for my poor english. 

### Steps to reproduce the problem

Any version after #532ac22b  --"Merge branch 'lora_inplace'" is generating bad quality images with LoRa.
i've check out all versions .

### What should have happened?

"Merge branch 'lora_inplace'" is generating bad quality images with LoRa. might had some bug on my PC

### Commit where the problem happens

#532ac22b  --"Merge branch 'lora_inplace'"

### What platforms do you use to access the UI ?

Windows

### What browsers do you use to access the UI ?

Google Chrome

### Command Line Arguments

```Shell
--port 7861 --xformers --force-enable-xformers --no-half-vae --opt-channelslast --disable-nan-check
```


### List of extensions

![A9TF7{}$7 8OC)~XU@L(9ZO](https://user-images.githubusercontent.com/52244346/233239365-aa3aba7e-72ef-4eb7-ae24-2eb629a8871a.png)


### Console logs

```Shell
No actually logs
```


### Additional information

![00005-3532011647](https://user-images.githubusercontent.com/52244346/233239453-8779e918-837f-447c-ad0d-230145e5610f.png)
![00007-3532011647](https://user-images.githubusercontent.com/52244346/233239477-98c3061c-77c0-46f9-8dad-25aeffe02dd6.png)
These 2 pics are generating with exactly same promps and lora/loha ,the dark one is generating at #532ac22b  --"Merge branch 'lora_inplace'"
Repository: godot
Issue: [Godot 3] Option button, some items are not selectable if parent scale greater than one.
Labels: bug,topic:gui

### Godot version

b0c399ec8c9f5f71c64656e8463907153f8459ff

### System information

ArchLinux

### Issue description

If the parent control scale is greater than one, the last items in the list in the option button are not selectable.

### Steps to reproduce

Create a control with a child option button. Add 10 items to the option button. Scale the root control rect to 2. The last entires in the option button list are not selectable.

### Minimal reproduction project

[TestOptionsButton.zip](https://github.com/godotengine/godot/files/11279565/TestOptionsButton.zip)
Repository: tauri
Issue: [bug] change window size quickly will cause memory bump so quickly, and finally crash the whole application
Labels: type: bug,status: needs triage

### Describe the bug

 change window size quickly will cause memory bump so quickly, and finally crash the whole application

 ELIFECYCLE  Command failed with exit code 4294967295.
 ELIFECYCLE  Command failed with exit code 3221225477.
 ELIFECYCLE  Command failed with exit code 1.

### Reproduction

run the app, drag window edge back and forth quickly, see memory useage go up very quickly

I'll found the code cusing this:

```ts
import * as win from "@tauri-apps/api/window";
export async function onMaximizeChange(
  callback: (isMaximized: boolean) => void
): Promise<() => void> {
  return win.appWindow.onResized(() => {
    win.appWindow.isMaximized().then((isMaximized) => {
      callback(isMaximized);
    });
  });
}


// later in component

 useEffect(() => {
    let handle: any = null;
    (async () => {
      try {
        const isMaximized_ = await isMaximized();

        console.log("isMaximized_", isMaximized_)
      } catch {
        /** NOOP */ 
      }

      try {
        // ref: https://github.com/tauri-apps/tao/issues/633
        handle = await onMaximizeChange(async (x) => {
          // console.log("onMaximizeChange", x)
          if (await isMaximized()) {  // <--  my colleague didn't notice that I already give the state in the first argument, 
            console.log("onMaximizeChange maximized");
          } else {
            console.log("onMaximizeChange minimized");
          }
        });
      } catch {
        /** NOOP */
      }
    })();

    return () => {
      // ref: https://tauri.app/v1/api/js/window#onresized
      handle?.();
    };
  }, []);
```

So basically is like calling `win.appWindow.isMaximized()` in a loop

### Expected behavior

nothing should happen

### Platform and versions

```text
› Webview2: 112.0.1722.48
  › MSVC:
      - Visual Studio Community 2022
  › Node.js: 18.12.1
  › npm: 8.19.2
  › pnpm: 8.3.0
  › yarn: 1.22.19
  › rustup: 1.25.2
  › rustc: 1.70.0-nightly
  › cargo: 1.70.0-nightly
  › Rust toolchain: nightly-x86_64-pc-windows-msvc

Packages
  › @tauri-apps/cli [NPM]: 1.2.3
```


### Stack trace

```text
don't have
```


### Additional context

_No response_
Repository: PowerToys
Issue: Option - Do not apply "Always on top" to maximized window
Labels: Idea-Enhancement,Product-Always On Top

### Description of the new feature / enhancement

The tick box right after the one "Do not activate when Game Mode is On".
Options called "Do not apply to maximized window".

### Scenario when this would be used?

Browser window _maximized_, screenshot with important numbers in small window switched to always on top.
I've used the numbers to input them into the browser window.
Now I'm going to revert to "on top" from the screenshot window, but I did not mention that at the moment the browser window is active.
I use CTRL+WIN+T... And visually everything is Ok, the screenshot window goes to the background.
But not because it loses the "on top", but because the browser window became "always on top".

Yes, mostly it is just misused functionality, but the described option could help to avoid it.

### Supporting information

_No response_
Repository: godot
Issue: [3.6 Beta] Exported Script CANNOT be given with a default value if assigned without `= null`
Labels: bug,topic:editor

### Godot version

3.6 beta1 ~ beta 4

### System information

Windows 11, GLES3

### Issue description

![动画](https://user-images.githubusercontent.com/22123964/233280080-4a676c06-410e-45de-9b57-ce287e0bf81c.gif)
As the gif displays, when I dragged the script resource to exported variable typed as `Script` **_without "= null" assigned_**, nothing happened on its inspector dock, neither did i pop the menu to add it manually.
Also, it showed "null" when running; thus it was actually blocked from setting its value
Problematic code:
```GDScript
export var custom_script: Script
```
Workaround code:
```GDScript
export var custom_script: Script = null
```

### Steps to reproduce

1. In an existing project, create a node and create a script for it
2. In that script, set some exported variables and type them as Script or GDScript, **without "= null" assigned** to that property
3. Write a new GDScript code, no matter what you want to write
4. Drag the written one to the inspector dock of that exported property and you will see nothing happened

### Minimal reproduction project

[Test.zip](https://github.com/godotengine/godot/files/11280713/Test.zip)
(Note: Open Goomba.tscn and locate to EnemyKilled)
Repository: material-ui
Issue: [docs-infra] Allow to zoom on images
Labels: new feature,scope: docs-infra

A lot of the images in the Toolbar doc are screenshots, and they can be hard to read on big screens.

Here is the *Quick start* guide on my screen

![image](https://user-images.githubusercontent.com/3309670/229793825-610315f8-074c-426e-8f3c-4d5a4d63b4bf.png)

Maybe we could open a big version of the image when clicking on it (that's a common pattern on websites).

Not sure if it's a Toolpad topic or and mui-infra one.
Repository: PowerToys
Issue: one-click feature for remapping keys and shortcuts to those available in Mac
Labels: Needs-Triage

### Description of the new feature / enhancement

At present, I'm trying to map multiple keys and multiple shortcuts to have Mac like capabilities.

e.g.
alt-left to ctrl-left, win-left to alt-left  and then I've to define mac like shortcuts for copy, paste, line selection. 

In future I would expect to simply click on a button (or import a powertoys config file if it exists) to import all Mac like keys and shortcut settings without going through the pain of defining one by myself.

### Scenario when this would be used?

This would be most useful for developers who are transitioning from Mac to Windows because they moved to Microsoft :) 

I'm facing a big hurdle in getting used to windows laptops and have faced productivity issues. In order to solve that I ended up installing powertoys

### Supporting information

_No response_
Repository: flutter
Issue: [Feature Request - Cupertino Design Style]- A `SnackBar` equivalent widget 
Labels: c: new feature,framework,f: cupertino,c: proposal,team-design

## Use case

<!--
     Please tell us the problem you are running into that led to you wanting
     a new feature.

     Is your feature request related to a problem? Please give a clear and
     concise description of what the problem is.

     Describe the alternative solutions you've considered. Is there a package
     on pub.dev/flutter that already solves this?
-->
I have been working on developing mobile applications for both iOS and Android. While I develop an app for both the platforms, a common widget I use is `SnackBar` which I reckon is the case for many developers. 

The issue is, SnackBar at the moment is a Material design widget. There is no Cupertino Style equivalent available for it. So, it makes it difficult or cumbersome to build a snackBar for iOS devices. 

The issue can be resolved by using it using pub.dev/cupertino package and using it inside a CupertinoPageScaffold. This is a workaround as of now and it works fine. 

But there are cases where the developer might not be using it under a CupertinoPageScaffold directly. But using it under a function in a widget which is rendered in CupertinoPageScaffold, but In such case, The SnackBar does not adapt to iOS but delivers Material design even under CupterinoPageScaffold. 

Which might look fine but ruins the UI and design Style for iOS 
## Proposal

<!--
     Briefly but precisely describe what you would like Flutter to be able to do.

     Consider attaching something showing what you are imagining:
      * images
      * videos
      * code samples

     Does this have to be provided by Flutter directly, or can it be provided
     by a package on pub.dev/flutter? If so, maybe consider implementing and
     publishing such a package rather than filing a bug.
-->
The package called 'cupertino' already exists that consists of iOS design style widgets to a certain extent, My proposal would be to add this widget to this package and release it because this is a widget that more often than not is used in every app built for mobile platforms. So Having an equivalent Cupertino implmentation would make it more cleaner, leaner code and easier. 

I would like to work on this issue with the contributors team, see what are some other possibilities and contribute in anyway I can. 

Thank you!
Repository: tauri
Issue: [bug] input[required] missing message when invalid form 
Labels: type: bug,platform: Linux,status: needs triage

### Describe the bug

When we complete the form and some input is invalid for example type="mail" then in required message box isn't text message.

### Reproduction

Add `<form><label>Ex.</label><input  type="mail" required/></form>` into React Vite skeleton app.

### Expected behavior

Show message into required box when input is invalid.

### Platform and versions

```text
┌💁  euuki @ 💻  litepc in 📁  test
└❯ npm run tauri info

> test@0.0.0 tauri
> tauri info


Environment
  › OS: Red Hat Enterprise Linux 37.0.0 X64
  › Node.js: 18.15.0
  › npm: 9.5.0
  › pnpm: Not installed!
  › yarn: Not installed!
  › rustup: 1.25.2
  › rustc: 1.68.2
  › cargo: 1.68.2
  › Rust toolchain: stable-x86_64-unknown-linux-gnu 

Packages
  › @tauri-apps/cli [NPM]: 1.2.3
  › @tauri-apps/api [NPM]: 1.2.0
  › tauri [RUST]: 1.2.4,
  › tauri-build [RUST]: 1.2.1,
  › tao [RUST]: 0.15.8,
  › wry [RUST]: 0.23.4,

App
  › build-type: bundle
  › CSP: unset
  › distDir: ../dist
  › devPath: http://localhost:1420/
  › framework: React
  › bundler: Vite

App directory structure
  ├─ src-tauri
  ├─ .vscode
  ├─ src
  ├─ public
  └─ node_modules
```


### Stack trace

_No response_

### Additional context

[Nagranie ekranu z 2023-04-20 10-44-58.webm](https://user-images.githubusercontent.com/35242996/233312223-3b4eeedc-e55a-48cf-b013-f7fbc6267be0.webm)