sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: Merge type stubs for `torch.nn.functional`
Labels: module: typing,triaged

### 🚀 The feature, motivation and pitch

From the discussion in https://github.com/pytorch/pytorch/issues/102918#issuecomment-1587576763 (cc @drisspg):

Similar to #102428, we would like to merge the .pyi type stub in the .py file for `torch.nn.functional`.

### Alternatives

Keep the .pyi file which is now generated by [`gen_pyi.py`](https://github.com/pytorch/pytorch/blob/main/tools/pyi/gen_pyi.py) from a .pyi.in template.

### Additional context

The pyi for `torch.nn.functional` consists of three parts:
- Functions imported from `torch` or `torch._C._nn` and passed through `_add_docstr`.
  - Functions in `torch` already have typing, #102918 has addressed the typing for `torch._C._nn`, and `_add_docstr` has been annotated to pass through the typing. Therefore, this part can be considered resolved.
- Functions generated by `torch._jit_internal.boolean_dispatch`. Their annotations are currently generated by `gen_pyi`.
  - We can move the generated overloads into the .py file. They should work directly.
  - I assume these do not involve `torch._jit_internal._overload` because they're already `boolean_dispatch`, **but need to be confirmed**.
- Functions directly defined in `nn/functional.py`.
  - They should already have annotation in the .py file, **but may need to be verified**.
  - By the following comment, these functions **may need special treatment to make both mypy and JIT work**, which I cannot imagine now (possibly blocks us from merging pyi): https://github.com/pytorch/pytorch/blob/5875a2fb3c4f21efec326dff6ba31d793a7194e1/torch/nn/functional.pyi.in#L30-L32

cc @ezyang @malfet @rgommers @xuzhao9 @gramster

---

This issue can be decomposed into several relatively self-contained sub-tasks, corresponding to the logs recorded below:
(I will open issues for each one and specify the sub-task in detail.)

```[tasklist]
### Tasks
- [ ] mypy does not recognize `BroadcastingList*`
- [ ] mypy does not recognize overloads decorated by `_jit_internal._overload`
- [ ] https://github.com/pytorch/pytorch/issues/103787
- [ ] https://github.com/pytorch/pytorch/issues/103806
- [ ] https://github.com/pytorch/pytorch/issues/103798
- [ ] https://github.com/pytorch/pytorch/issues/103800
```
Repository: go
Issue: cmd/dist: `Bus error` while bootstrapping on `freebsd-arm-paulzhol`
Labels: OS-FreeBSD,NeedsInvestigation,arch-arm

```
#!watchflakes
post <- builder == "freebsd-arm-paulzhol" && log ~ `Bus error`
```

Issue created automatically to collect these failures.

Example ([log](https://build.golang.org/log/7220d54f0f4668c5288cdd9325e1699df66d9a1c)):

    /tmp/workdir-host-freebsd-arm-paulzhol/go/src/make.bash: line 226:  1071 Bus error               ./cmd/dist/dist bootstrap -a $vflag $GO_DISTFLAGS "$@"


— [watchflakes](https://go.dev/wiki/Watchflakes)
Repository: react-native
Issue: MainApplication.onCreate: java.lang.UnsatisfiedLinkError - dlopen failed: "/data/data/com.patenteapp/lib-3/libc++_shared.so" is for EM_AARCH64 (183) instead of EM_X86_64 (62)
Labels: API: Share,Needs: Repro,Newer Patch Available,Needs: Attention

### Description

Fatal Exception: java.lang.UnsatisfiedLinkError
couldn't find DSO to load: libhermes.so caused by: couldn't find DSO to load: libjsi.so caused by: couldn't find DSO to load: libfolly_runtime.so caused by: couldn't find DSO to load: libglog.so caused by: couldn't find DSO to load: libc++_shared.so caused by: dlopen failed: "/data/data/com.patenteapp/lib-3/libc++_shared.so" is for EM_AARCH64 (183) instead of EM_X86_64 (62) result: 0 result: 0 result: 0 result: 0 result: 0

### React Native Version

0.70.10

### Output of `npx react-native info`

System:
    OS: macOS 13.1
    CPU: (8) arm64 Apple M1 Pro
    Memory: 76.67 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 20.3.0 - /opt/homebrew/bin/node
    Yarn: 1.22.17 - /opt/homebrew/bin/yarn
    npm: 9.6.7 - /opt/homebrew/bin/npm
    Watchman: 2023.03.27.00 - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.12.1 - /Users/mdrobiullah/.rvm/gems/ruby-3.0.0/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
    Android SDK: Not Found
  IDEs:
    Android Studio: 2022.1 AI-221.6008.13.2211.9514443
    Xcode: 14.2/14C18 - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.14.1 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.1.0 => 18.1.0 
    react-native: 0.70.10 => 0.70.10 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

### Steps to reproduce

It randomly happens in my live app.

<img width="1272" alt="image" src="https://github.com/facebook/react-native/assets/33126665/b96c37f8-b3a3-481f-947a-e021e62ab379">


### Snack, code example, screenshot, or link to a repository

What code do I have to paste here?
Repository: flutter
Issue: Flutter web integration tests fail after the "All tests passed!" message is received
Labels: c: crash,platform-web,f: integration_test,P2,team-web,triaged-web

I was noticing some strange behavior with flutter web integration tests where the test failed even though the logs show that "All tests passed". Example log output is in this comment on this PR: https://github.com/flutter/devtools/pull/5919#discussion_r1230247126. This seems like it might be a bug in the test runner.
Repository: opencv
Issue: [BUG] GitHub Actions workflow using non-working Ubuntu 18.04
Labels: category: infrastructure

### System Information

I don't think this applies here.

### Detailed description

One of the GitHub Actions workflows (specifically the [ARM64](https://github.com/opencv/opencv/blob/4.x/.github/workflows/arm64-build-checks.yml) builder) is using Ubuntu 18.04, which no longer works on GitHub Actions.
I suggest either using `ubuntu-latest` or `ubuntu-20.04`, which is a newer version and supported by GitHub Actions.

### Steps to reproduce

I don't think this applies here.


### Issue submission checklist

- [X] I report the issue, it's not a question
- [ ] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [ ] I updated to the latest OpenCV version and the issue is still there
- [ ] There is reproducer code and related data files (videos, images, onnx, etc)
Repository: node
Issue: Unreachable code reached when using {stdio: "overlapped"}
Labels: child_process

### Version

18.16.0

### Platform

Linux fedora 6.3.5-200.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 30 15:44:17 UTC 2023 x86_64 GNU/Linux

### Subsystem

_No response_

### What steps will reproduce the bug?

```
child_process.execSync("ls", {stdio: "overlapped"})
```


### How often does it reproduce? Is there a required condition?

Always

### What is the expected behavior? Why is that the expected behavior?

Execute the subprocess, and return some object.
According to the documentation, `pipe` should be used on non-Windows systems.

### What do you see instead?

A segfault.
```
node[107754]: ../../src/spawn_sync.cc:934:int node::SyncProcessRunner::ParseStdioOption(int, v8::Local<v8::Object>): Assertion `"Unreachable code reached" ": " "invalid child stdio type"' failed.
 1: 0x7ff7073fde1c node::Abort() [/lib64/libnode.so.108]
 2: 0x7ff7073fdeab  [/lib64/libnode.so.108]
 3: 0x7ff7074dbbe9 node::SyncProcessRunner::ParseStdioOption(int, v8::Local<v8::Object>) [/lib64/libnode.so.108]
 4: 0x7ff7074dbeda node::SyncProcessRunner::ParseStdioOptions(v8::Local<v8::Value>) [/lib64/libnode.so.108]
 5: 0x7ff7074dcc5d node::SyncProcessRunner::ParseOptions(v8::Local<v8::Value>) [/lib64/libnode.so.108]
 6: 0x7ff7074dce53 node::SyncProcessRunner::TryInitializeAndRunLoop(v8::Local<v8::Value>) [/lib64/libnode.so.108]
 7: 0x7ff7074dd008 node::SyncProcessRunner::Run(v8::Local<v8::Value>) [/lib64/libnode.so.108]
 8: 0x7ff7074dd127 node::SyncProcessRunner::Spawn(v8::FunctionCallbackInfo<v8::Value> const&) [/lib64/libnode.so.108]
 9: 0x7ff7086c60f6 v8::internal::FunctionCallbackArguments::Call(v8::internal::CallHandlerInfo) [/lib64/libnode.so.108]
10: 0x7ff7086c66b1  [/lib64/libnode.so.108]
11: 0x7ff7086c6fad v8::internal::Builtin_HandleApiCall(int, unsigned long*, v8::internal::Isolate*) [/lib64/libnode.so.108]
12: 0x7ff708559539  [/lib64/libnode.so.108]
Aborted (core dumped)
```

### Additional information

_No response_
Repository: godot
Issue: Generating Trimesh collision via script is not reliable
Labels: bug,topic:physics,needs testing,topic:3d

### Godot version

4.0.3

### System information

Xubuntu 22.04 - Compability Render

### Issue description

Calling `create_trimesh_collision()` function on imported models object through its MeshInstance3D childrens doesn't work properly, the problem is while it does generate collision nodes which is visible from the editor window but while playing those generated nodes from the function call gets removed for unknown reason. 

What I excepted that calling this function would be the same as selecting the MeshInstance3D node manually and clicking on the generatre tri mesh button. 



### Steps to reproduce

I uploaded the text files which shows how I tried implementing a more streamlined method of it. 

### Minimal reproduction project

[mapmodel_collision_maker.gd.txt](https://github.com/godotengine/godot/files/11776494/mapmodel_collision_maker.gd.txt)
[mapmodel_collision_maker.tscn.txt](https://github.com/godotengine/godot/files/11776495/mapmodel_collision_maker.tscn.txt)

(Github won't let me upload zip files)
Repository: PowerToys
Issue: "AUTO" CAPS and NUMLOCK
Labels: Idea-New PowerToy

### Description of the new feature / enhancement

The user could choose wich apps or programs would trigger the CAPS LOCK and the NUMLOCK keys, turning it on or off accordingly to the Window you are focused.

### Scenario when this would be used?

For example, alternating between a CAPS LOCK Word document and a email opened in your browser, where you need to only have capital letter in the first word of each phrase. Alternating between calculator, where you MUST have the NUMLOCK on and a simple text document in Notepad, where you need to focous only in typing letters. Alternating between programs that you MUST have all letters in capitals and other apps where you don't need, like WhatsApp or other chat apps.

### Supporting information

CapsWiz 2.0 was the best program ever made until now, but it does not get updated since very earlies 2000.
Repository: go
Issue: x/mod/sumdb/tlog: TestCertificateTransparency failures
Labels: NeedsInvestigation,modules

```
#!watchflakes
post <- pkg == "golang.org/x/mod/sumdb/tlog" && test == "TestCertificateTransparency"
```

Issue created automatically to collect these failures.

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

    --- FAIL: TestCertificateTransparency (30.04s)
        ct_test.go:80: Get "http://ct.googleapis.com/logs/argon2020/ct/v1/get-sth": dial tcp 64.233.182.95:80: i/o timeout


— [watchflakes](https://go.dev/wiki/Watchflakes)
Repository: terminal
Issue: FreeConsole() doesn't work past 5s during CTRL_CLOSE_EVENT
Labels: Product-Conhost,Area-Server,Issue-Bug,Issue-Task,Priority-3,Impact-Correctness

### Windows Terminal version

1.17.11461.0

### Windows build number

10.0.19045.3086

### Other Software

c++
mingwx64
an ide of your choice
cpu arch: x64

### Steps to reproduce

compile this code in c++ and run it.
go to task manager --> open terminal group processes --> program.exe --> go to details
click the x button on windows terminal.
the process of program.exe is no longer running and if you insert a while loop in the handler it closes 5 seconds later. This bug is reproducible with cmd powershell and conhost and windows terminal. I don't know which program issue or issues its on so I am reporting it here
```c++
BOOL WINAPI controlHandler(DWORD sig)
{
	if(sig == CTRL_CLOSE_EVENT)
	{
		Beep(800, 500);
		FreeConsole();
		return TRUE;
	}
}
int main()
{
   SetConsoleCtrlHandler(&controlHandler, TRUE);
   while(true);
}
```

### Expected Behavior

the process to stay open

### Actual Behavior

process closes

### Related Note:
FreeConsole() api doesn't have a parameter of PID and doesn't free all child processes another bug
Repository: stable-diffusion-webui
Issue: [Bug]: Load from extension index url error
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?

tips:
Something went wrong
Expecting value: line 1 column 1 (char 0)

### Steps to reproduce the problem

click  Load from https://raw.githubusercontent.com/AUTOMATIC1111/stable-diffusion-webui-extensions/master/index.json

### What should have happened?

show

### Commit where the problem happens

no

### What Python version are you running on ?

Python 3.10.x

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

Windows

### What device are you running WebUI on?

Nvidia GPUs (RTX 20 above)

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

Google Chrome

### Command Line Arguments

```Shell
no
```


### List of extensions

no

### Console logs

```Shell
no tips
```


### Additional information

1
Repository: godot
Issue: Button : Button Left Text Alignment chops the last character from the text
Labels: bug,topic:gui

### Godot version

4.1 Beta 2

### System information

Ubuntu Linux 23.04

### Issue description

Button : Buttons Left Text Alignment chops the last character from the text

### Steps to reproduce

Create a button. Give it a text description of 9 to 10 characters. Align the text to center - it displays fine, align it to the left and the last character of the text is no longer visible.

### Minimal reproduction project

Its a trivial reproduction. Just need a button node.
Repository: tensorflow
Issue: Errors when custom gradients are being used in TPU
Labels: stat:awaiting tensorflower,type:bug,comp:ops,TF 2.12

<details><summary>Click to expand!</summary> 
 
 ### Issue Type

Bug

### Have you reproduced the bug with TF nightly?

Yes

### Source

source

### Tensorflow Version

v2.12.0-rc1-12-g0db597d0d75 2.12.0

### Custom Code

Yes

### OS Platform and Distribution

_No response_

### Mobile device

_No response_

### Python version

_No response_

### Bazel version

_No response_

### GCC/Compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current Behaviour?

When writing custom gradient modules in TensorFlow (not using tf.GradientTape()) and applying it using an existing optimizer causes errors. I don't see any visible difference in tf.GradientShape() gradients and custom ones.

### Standalone code to reproduce the issue

```shell
with strategy.scope():
  with tf.GradientTape() as tape:
    model = ... #using any model
    loss = ... #using any loss function here
    loss_n = loss(y_batch, model(x_batch))

  grads = tape.gradient(loss_n, model.trainable_weights)
  new_grads = []
  
  for g in grads:
    new_grads += [tf.ones((tf.shape(g)))]
  
  optimizer.apply_gradients(zip(new_grads, model.trainable_weights)) #error here
```
```


### Relevant log output

```shell
Should be similar to below:


AttributeError                            Traceback (most recent call last)
<ipython-input-25-c9f1f22a039f> in <cell line: 1>()
     50       grads = tape.gradient(l, model.trainable_weights)
     51       c = grads[0]
---> 52       opt.apply_gradients(zip(grads, model.trainable_weights))
     53       print('Loss this batch: ' + closure().numpy())
     54       opt.next_steps()

2 frames
/usr/local/lib/python3.10/dist-packages/keras/optimizers/optimizer.py in apply_gradients(self, grads_and_vars, name, skip_gradients_aggregation, **kwargs)
   1171         )
   1172         if not skip_gradients_aggregation and experimental_aggregate_gradients:
-> 1173             grads_and_vars = self.aggregate_gradients(grads_and_vars)
   1174         return super().apply_gradients(grads_and_vars, name=name)
   1175 

/usr/local/lib/python3.10/dist-packages/keras/optimizers/optimizer.py in aggregate_gradients(self, grads_and_vars)
   1137           List of (gradient, variable) pairs.
   1138         """
-> 1139         return optimizer_utils.all_reduce_sum_gradients(grads_and_vars)
   1140 
   1141     def apply_gradients(

/usr/local/lib/python3.10/dist-packages/keras/optimizers/utils.py in all_reduce_sum_gradients(grads_and_vars)
     40         else:
     41             # TODO(b/183257003): Remove this branch
---> 42             reduced = tf.distribute.get_replica_context().merge_call(
     43                 _all_reduce_sum_fn, args=(filtered_grads_and_vars,)
     44             )

AttributeError: 'NoneType' object has no attribute 'merge_call'
```
```
</details>
Repository: godot
Issue: Using Sprite3D and Compatibility causes game to crash
Labels: bug,platform:macos,topic:rendering,needs testing,crash,topic:3d

### Godot version

v4.0.3.stable.official [5222a99f5]

### System information

MacOS Monterey 12.5, Apple M2

### Issue description

When I use Sprite3D with Compatibility rendering and run the game, the game silently crashes.

I should mention that I also have a lot of trouble getting Godot 4 to import textures, giving me errors such as: `Failed loading resource: res://chunky_trains-export.png. Make sure resources have been imported by opening the project in the editor at least once.` But when I somehow manage to bypass those errors, following these steps https://github.com/godotengine/godot/issues/76445#issuecomment-1522329688, I get the crashing behaviour.

None of this happens in 3.5.stable.

### Steps to reproduce

1. Create a new project using Compatibility renderer
2. Create a new 3D scene
3. Add a Sprite3D node
4. Put icon.svg as the texture (this happens with .pngs too)
5. Run the game

### Minimal reproduction project

[test sprite3d.zip](https://github.com/godotengine/godot/files/11778029/test.sprite3d.zip)
Repository: flutter
Issue: InkWell does not expose callbacks for handling tertiary taps
Labels: c: new feature,framework,f: material design,c: proposal,P2,team-design,triaged-design

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Use case

In my app, I want to replicate the behavior of opening content in another view via the middle mouse button. I'm not quite sure if Material intends a ripple effect to be shown for the middle mouse button but in this case I thought to put it in my existing InkWell for now. I see that #62788 has implemented middle mouse button clicks (tertiary taps) but the PR author failed to update potentially related widgets.

### Proposal

Expose and handle following callbacks:
- `onTertiaryTap`
- `onTertiaryTapUp`
- `onTertiaryTapDown`
- `onTertiaryTapCancel`
Repository: angular
Issue: Add .clear() to remove all member controls of FormGroup|FormRecord
Labels: area: forms,forms: Controls API

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

_No response_

### Description

`FormArray` has its convenience method [FormArray.clear](https://angular.io/api/forms/FormArray#clear) to help with swiftly removing all controls. `FormRecord` and `FormGroup` should have theirs too.

#### Use case

When building a set of checkboxes, besides using `FormArray` for this, one can also use a `FormGroup|FormRecord` approach, where the set has a value in shape of an object:

```ts
this.fb.record({
   [ key: string ]: this.fb.control(false | true)
});
```

so that the value becomes very natural to read and understand **and to set**:

```
hasPrivateBathroom: true,
hasTv: false,
hasBalcony: true,
hasMinibar: true,
```

When building the form record out of an array, you'd have code along these lines somewhere:

```ts
buildOptionsRecord(availableOptions: Option[]): void {
    // before constructing the FormRecord you need to first empty it
    // instead of iterating over the members and having to `.removeControl()` by name
    // I'd like to be able to say this.availableOptionsRecord.clear()
    // and have it emptied in one go
    
    // now build the controls
    availableOptions.forEach(option => {
      this.availableOptionsRecord.addControl(option.id, false)
    });
}
```

In response to the incoming array of available options you would need to first empty the current `FormGroup`|`FormRecord`. Currently this requires a very clumsy `while` loop.

### Proposed solution

add `FormGroup#clear()` as well `FormRecord#clear()`

### Alternatives considered

```
while(Object.keys(formGroup.controls).length){
      const toRemove = Object.keys(formGroup.controls)[0];
      formGroup.removeControl(toRemove)
}
```

No one want to have to write this type of code.
Repository: terminal
Issue: Customizable allow/disallow setting for clickable URIs
Labels: Issue-Feature,Area-Interaction,Product-Terminal

<!-- 
🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨

I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING:
1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement.
2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement.
3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number).
4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement.
5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement.

All good? Then proceed!
-->

# Description of the new feature/enhancement

In the new terminal version it allows all almost all URIs to be clickable as a link but for my use I need URIs file/http/https to be the only clickable link type while the other URIs should not be clickable and that they display only as an unsupported link. 

# Proposed technical implementation details (optional)

I rely on the previous terminal method of not generally allowing all URIs but I understand this behavior was changed because some people prefer to make many or all URIs clickable as a link. 

Can there be an option or setting introduced where the user can specify matching only certain URIs such as file:/// as a clickable link and the rest which are not matched to default to the previous behavior of showing dialog as 'This link type is currently not supported: ... ' if the user has the option configured?

Thank you
Repository: PowerToys
Issue: Accurate/pixel-perfect resizing & repositioning of windows 
Labels: Idea-New PowerToy,Needs-Triage

### Description of the new feature / enhancement

Like Sizer 3.0 but compatible with modern apps and Windows 11.

**As a:** Gamer who uses beta cloud gaming services
**I want to:** size windows at a width of exactly 720p (accounting for screen resolution)
**So that:** the poor stream quality looks pixel sharp!

### Scenario when this would be used?

> This is extremely useful when designing web pages, as it allows you to see how the page will look when viewed at a smaller size. The utility is also handy when compiling screen-shots for documentation, using Sizer allows you to easily maintain the same window size across screen grabs.



### Supporting information

Competing apps in the space are pretty limited. Sizer isn't really maintained and does not fit the new native UI updates in WIndows 10 and 11.