sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: mac framework tests timeout: isolates_test.dart: compute()
Labels: a: tests,team,framework,P2,team: presubmit flakes,c: flake,team-framework,triaged-framework

There has been a failed engine->flutter roll because of the mac framework tests timing out.

example: https://github.com/flutter/flutter/runs/4859258366

log:
```
25:40 +6191 ~15: /opt/s/w/ir/x/w/flutter/packages/flutter/test/foundation/isolates_test.dart: compute()                                                                                                
25:41 +6191 ~15: /opt/s/w/ir/x/w/flutter/packages/flutter/test/foundation/isolates_test.dart: compute()                                                                                                
25:42 +6191 ~15: /opt/s/w/ir/x/w/flutter/packages/flutter/test/foundation/isolates_test.dart: compute()                                                                                                
25:43 +6191 ~15: /opt/s/w/ir/x/w/flutter/packages/flutter/test/foundation/isolates_test.dart: compute()                                                                                                
25:44 +6191 ~15: /opt/s/w/ir/x/w/flutter/packages/flutter/test/foundation/isolates_test.dart: compute()                                                                                                
25:45 +6191 ~15: /opt/s/w/ir/x/w/flutter/packages/flutter/test/foundation/isolates_test.dart: compute()                                                                                                
25:46 +6191 ~15: /opt/s/w/ir/x/w/flutter/packages/flutter/test/foundation/isolates_test.dart: compute()                                                                                                
25:47 +6191 ~15: /opt/s/w/ir/x/w/flutter/packages/flutter/test/foundation/isolates_test.dart: compute()     
```
Repository: flutter
Issue: Allow focus traversal to leave additional padding when an item is focused within a Scrollable widget
Labels: c: new feature,framework,f: scrolling,a: quality,f: focus,P3,team-framework,triaged-framework

## Use case

Some applications would like to maintain extra padding when focusing items with directional or tab focus. Currently, Flutter aligns the top or bottom of the item with the top or bottom of the Scrollable it resides in. Adding additional padding allows applications that mainly depend on directional input to peek items in scrolling lists.

## Proposal

* Add the ability to pass a padding to `Scrollable.ensureVisible` and `ScrollPosition.ensureVisible` (breaking change)
* Add a user-modifiable default padding to FocusManager (defaults to 0)
* Add a getter on FocusNode to get the padding for ensureVisible to support per-node paddings in the future
Repository: go
Issue: go/types: documentation needs to be updated
Labels: Documentation,NeedsInvestigation,generics

The documentation on go/types needs to be updated for generics: https://github.com/golang/example/tree/master/gotypes

At the very least it should point out what's not yet documented with respect to generics.

cc: @findleyr
Repository: godot
Issue: Editing properties calls setter function
Labels: topic:core,topic:editor,documentation

### Godot version

3.3-stable_x11.64 and 3.4.2-stable_x11.64

### System information

Linux Mint 20

### Issue description

Properties set in the editor call the relevant setter functions. There are some exported properties I want to have as constants, but since Godot doesn't allow exported constants, I added ```setget dummy``` , where dummy is

```
func dummy(_unused):
     pass
```

to them to make sure that nothing (outside the class, at least) can overwrite it. It turns out that this does not work. Instead of setting the property when I start the scene, the dummy function is called and it's left in its default state.

What I expect to happen is that the editor properties set the value directly without calling the setter function. According to the docs, setget functions are only supposed to be called when modified by non-local access to the variable, and I would consider the property editor to be local access, though Godot sometimes disagrees with me about this.

### Steps to reproduce

Export a variable and use the ```setget``` keyword to register a setter. Whatever code is in the setter, such as a print statement or a simple pass, will run instead of directly setting the variable.

### Minimal reproduction project

[minimal_example.zip](https://github.com/godotengine/godot/files/7893378/minimal_example.zip)
Repository: flutter
Issue: [FragmentProgram] Allow defining an ImageFilter
Labels: c: new feature,engine,customer: crowd,c: proposal,P3,a: gamedev,team-engine,triaged-engine

Similar to #94235 the recent work to enable the creation of custom Shader objects is very close in functionality to enabling the creation of custom ImageFilter objects. What would be needed is to allow the program to access an image input that will be supplied at render time and then wrapping the compiled program into a ui.ImageFilter implementation.

For example:

ui.FragmentProgram currently has FragmentProgram.shader(...) here:
https://github.com/flutter/engine/blob/31b1a1d05803ec9fa25ae0f7b2b0f078ff3980b1/lib/ui/painting.dart#L3847

That method returns a ui.Shader object that you can use wherever flutter takes one of those objects (Paint.shader, etc.)

If ui.FragmentProgram had another method that returned a ui.ImageFilter object then you could use that wherever Flutter takes an ImageFilter (such as Paint.imageFilter, or the ImageFiltered widget, etc.)
Repository: rust
Issue: Insufficient test coverage for `Stdin::Read` on Windows "console mode"
Labels: O-windows,E-hard,E-needs-test,C-bug,T-libs,A-io,A-code-coverage

While implementing #91754, we came across a lack of test coverage for `Stdin::Read`. The function has two code paths, one of which is triggered when input is piped in, and the other is triggered when the user is calling the executable from the console. This "console mode" code path is, as far as I'm able to tell, entirely ignored by automated tests and the CI.



I was unable to get anything near automated to actually use the console mode. However, manually feeding it inputs is easy, and has been the main method of testing that code path since the path's creation. This is sub-optimal, and should be remedied.

We have a couple approaches that could be attempted, but I seek larger input from the community, since this is not a trivial problem. 

- Finding a way to mock the console mode in Windows
- Have a toggleable flag that would allow for the console mode path to be diverted during testing. (This one I could implement, but I'd need to make sure it respects policy)
- Not doing anything. As of now, this approach seems to not have caused very many issues.
Repository: vscode
Issue: Spacing out the buttons in action bar [Accessibility]
Labels: feature-request,accessibility,workbench-views

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->

Is it possible to better space out the buttons that appear under Source Control? Whenever I'm trying to mass commit files, I keep hitting the revert button, when I'm actually trying to hit the + button. 

![Screen Shot 2022-01-18 at 20 05 50](https://user-images.githubusercontent.com/6877114/150044433-e43ed6c2-1816-4592-8964-15401af140c6.png)
Repository: pytorch
Issue: torch.nn.LayerNorm support for arbitrary axis in order to allow NCHW application
Labels: high priority,module: nn,triaged,actionable

### 🚀 The feature, motivation and pitch

LayerNorm starts to be applied to image data on per-channel basis (e.g. in ConvNeXt model).

`torch.nn.LayerNorm` support normalization only on the last several dimensions. If the input is NCHW tensor (default layout) it requires explicit NHWC conversion in order to do normalization on channels only. Example from ConvNeXt implementation: https://github.com/facebookresearch/ConvNeXt/blob/main/models/convnext.py#L15

`LayerNorm` could instead allow to specify which axis the normalization should be performed over and be backed by an efficient kernel. Example in Keras receiving `axis` argument: https://www.tensorflow.org/api_docs/python/tf/keras/layers/LayerNormalization 

Additionally, it'd be nice to also support `memory_format=channels_last` setting for the input tensor. Though it's an orthogonal point - this issue talks about semantics, not about the underlying memory format.

P.S. related discussion: https://twitter.com/wightmanr/status/1481383606782087168



cc @ezyang @gchanan @zou3519 @kadeng @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki @kshitij12345 @saketh-are
Repository: ant-design
Issue: defaultActiveFirstOption in cascader
Labels: help wanted,Inactive

- [x] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.

### What problem does this feature solve?
Currently, in cascader component, the user has to press the down arrow twice to select the first option (once to open the cascader options list and second to select the first option). However, if the first option is ative by default then it will reduce the need of pressing down key for selecting the first option. 

### What does the proposed API look like?
The Select component alreadty has a `defaultActiveFirstOption` prop. We can use the same syntax for the cascader component as well.


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: terminal
Issue: Opening File Explorer using the browse button in settings sometimes gets stuck
Labels: Help Wanted,Needs-Repro,Issue-Bug,Product-Terminal,Priority-2,Area-SettingsUI

### Windows Terminal version

1.11.3471.0

### Windows build number

10.0.19044.1469

### Other Software

_No response_

### Steps to reproduce

1. Press Ctrl + ` to open the settings interface
2. Click "Add a new profile" to create a new profile
3. Click the "Browse..." button
4. The interface freezes. Neither the File Explorer window nor the "Windows Terminal" can be closed via the taskbar

### Expected Behavior

Open a file explorer window that works normally, but also can be closed normally

### Actual Behavior

The interface is frozen, and the Explorer window for selecting files cannot be manipulated, nor can this window be closed
Repository: react-native
Issue: borderStyle: 'dashed' doesn't work correctly
Labels: Needs: Triage :mag:

### Description

Dear Developers:
I am trying to control the style of View.
When 'Dashed' pressed, the style of View will be changed, especially the borderStyle will be set as 'dashed'.

The problem is, when I run this on iOS devices, the dashed border line and the solid border line are coexisted. It only appears when overflow is set as 'hidden'

![image](https://user-images.githubusercontent.com/41295396/150074289-fe566c27-bf76-4097-8584-64b581a94a45.png)


Waiting for your answer : )
```
import React, { useState } from 'react';
import { Text, View, StyleSheet } from 'react-native';

const styles = StyleSheet.create({
  item: {
    width: 100,
    height: 100,
    borderWidth: 1,
    borderColor: 'gray',
    borderRadius: 4,
    overflow: 'hidden'
  },
  addItem: {
    width: 100,
    height: 100,
    borderWidth: 3,
    borderColor: 'red',
    borderRadius: 4,
    borderStyle: 'dashed',
    overflow: 'visible'
  }
})

const HelloWorldApp: React.FC = () => {
  const [st, setSt] = useState(styles.item)
  return (
    <View
      style={{
        flex: 1,
        justifyContent: "center",
        alignItems: "center"
      }}>
      <Text>Hello, world!</Text>
      <View style={st}/>
      <Text onPress={() => {
        setSt(styles.addItem)
      }}>Dashed</Text>
      <Text onPress={() => {
        setSt(styles.item)
      }}>Reset</Text>
    </View>
  )
}
export default HelloWorldApp;
```

### Version

0.66.00

### Output of `npx react-native info`

I dont have any info because I reproduced this problem on reactnative.dev/docs/tutorial

### Steps to reproduce

You can paste code here [reactnative.dev](https://reactnative.dev/docs/tutorial), where I met this problem.

Run with iOS device and click the 'Dashed' Text, you will met same problem, I think.

```
import React, { useState } from 'react';
import { Text, View, StyleSheet } from 'react-native';

const styles = StyleSheet.create({
  item: {
    width: 100,
    height: 100,
    borderWidth: 1,
    borderColor: 'gray',
    borderRadius: 4,
    overflow: 'hidden'
  },
  addItem: {
    width: 100,
    height: 100,
    borderWidth: 3,
    borderColor: 'red',
    borderRadius: 4,
    borderStyle: 'dashed',
    overflow: 'visible'
  }
})

const HelloWorldApp: React.FC = () => {
  const [st, setSt] = useState(styles.item)
  return (
    <View
      style={{
        flex: 1,
        justifyContent: "center",
        alignItems: "center"
      }}>
      <Text>Hello, world!</Text>
      <View style={st}/>
      <Text onPress={() => {
        setSt(styles.addItem)
      }}>Dashed</Text>
      <Text onPress={() => {
        setSt(styles.item)
      }}>Reset</Text>
    </View>
  )
}
export default HelloWorldApp;
```

### Snack, code example, screenshot, or link to a repository

_No response_
Repository: ant-design
Issue: Table拖拽排序不支持树形结构数据
Labels: 💡 Feature Request,Inactive

- [ ] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.

### What problem does this feature solve?
可满足多层级树形数据的排序

### What does the proposed API look like?


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: node
Issue: Start moving to Uint8Array in new APIs?
Labels: buffer,discuss

There was a suggestion by @jasnell to use `Uint8Array`s in new APIs over `Buffer`s as well as a weigh-in by @sindresorhus saying it is easier to author cross-platform APIs when using `Uint8Array`s.

Here is a context https://github.com/nodejs/node/pull/41553#discussion_r786284208

That is, the ask here is that Node.js should prefer `Uint8Array`s over `Buffer`s in new APIs.

What does everyone think? Should we stick to `Buffer` (which is a subclass of `Uint8Array` as a reminder) or prefer `Uint8Array`s over buffers when possible in new APIs?

cc @nodejs/buffer @nodejs/streams
Repository: create-react-app
Issue: Improve logging when IP address is not private
Labels: issue: proposal,needs triage

### Is your proposal related to a problem?

<!--
  Provide a clear and concise description of what the problem is.
  For example, "I'm always frustrated when..."
-->

When fetching the ip address here https://github.com/facebook/create-react-app/blob/a422bf227cf5294a34d68696664e9568a152fd8f/packages/react-dev-utils/WebpackDevServerUtils.js#L46-L60 `lanUrlForConfig` is set to `undefined` if the ip address is not private. This results in the error `Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.allowedHosts[0] should be a non-empty string.` I was having a Hamachi server https://www.vpn.net/ open in the background, and it took a long time to figure out that the ip address fetched was the ip address of the hamachi server (starting with 25, i.e. not private).

### Describe the solution you'd like

<!--
  Provide a clear and concise description of what you want to happen.
-->

If the error should indeed happen in this case I would like the logging to be improved. Maybe tell the user that the ip is not private, and is what causes the error.

### Describe alternatives you've considered

<!--
  Let us know about other solutions you've tried or researched.
-->

In the start when I encountered the error, I worked around it using the solution stated in https://stackoverflow.com/questions/70374005/invalid-options-object-dev-server-has-been-initialized-using-an-options-object/70491173#70491173 which indeed worked. This was just a bandaid solution however.

### Additional context

<!--
  Is there anything else you can add about the proposal?
  You might want to link to related issues here, if you haven't already.
-->
This is related to https://github.com/facebook/create-react-app/issues/11762 and https://github.com/facebook/create-react-app/pull/11877
Repository: node
Issue: Major discrepancy in FS constants between the docs and distribution
Labels: doc,fs

### Version

v16.13.2

### Platform

Microsoft Windows NT 10.0.19043.0 x64

### Subsystem

fs

*Ref: https://nodejs.org/docs/latest-v16.x/api/fs.html#file-access-constants*

### What steps will reproduce the bug?

Run the following script:

```js
const {constants} = require("fs")

for (const k of Object.keys(constants).sort()) {
    const v = constants[k]
    if (v != null && typeof v !== "function" && typeof v !== "object") {
        console.log(k)
    }
}
```

### How often does it reproduce? Is there a required condition?

100% of the time

### What is the expected behavior?

The following modulo whatever legacy constants there are.

```
COPYFILE_EXCL
COPYFILE_FICLONE_FORCE
COPYFILE_FICLONE
F_OK
O_APPEND
O_CREAT
O_DIRECT
O_DIRECTORY
O_DSYNC
O_EXCL
O_NOATIME
O_NOCTTY
O_NOFOLLOW
O_NONBLOCK
O_RDONLY
O_RDWR
O_SYMLINK
O_SYNC
O_TRUNC
O_WRONLY
R_OK
S_IFBLK
S_IFCHR
S_IFDIR
S_IFIFO
S_IFLNK
S_IFMT
S_IFREG
S_IFSOCK
S_IRGRP
S_IROTH
S_IRUSR
S_IRWXG
S_IRWXO
S_IRWXU
S_IWGRP
S_IWOTH
S_IWUSR
S_IXGRP
S_IXOTH
S_IXUSR
UV_FS_O_FILEMAP
W_OK
X_OK
```

### What do you see instead?

```
COPYFILE_EXCL
COPYFILE_FICLONE
COPYFILE_FICLONE_FORCE
F_OK
O_APPEND
O_CREAT
O_EXCL
O_RDONLY
O_RDWR
O_TRUNC
O_WRONLY
R_OK
S_IFCHR
S_IFDIR
S_IFLNK
S_IFMT
S_IFREG
UV_DIRENT_BLOCK
UV_DIRENT_CHAR
UV_DIRENT_DIR
UV_DIRENT_FIFO
UV_DIRENT_FILE
UV_DIRENT_LINK
UV_DIRENT_SOCKET
UV_DIRENT_UNKNOWN
UV_FS_COPYFILE_EXCL
UV_FS_COPYFILE_FICLONE
UV_FS_COPYFILE_FICLONE_FORCE
UV_FS_O_FILEMAP
UV_FS_SYMLINK_DIR
UV_FS_SYMLINK_JUNCTION
W_OK
X_OK
```

### Additional information

This represents the following diff (hand-written):

```diff
---distribution
+++docs
 COPYFILE_EXCL
 COPYFILE_FICLONE
 COPYFILE_FICLONE_FORCE
 F_OK
 O_APPEND
 O_CREAT
+O_DIRECT
+O_DIRECTORY
+O_DSYNC
 O_EXCL
+O_NOATIME
+O_NOCTTY
+O_NOFOLLOW
+O_NONBLOCK
 O_RDONLY
 O_RDWR
+O_SYMLINK
+O_SYNC
 O_TRUNC
 O_WRONLY
 R_OK
+S_IFBLK
 S_IFCHR
 S_IFDIR
+S_IFIFO
 S_IFLNK
 S_IFMT
 S_IFREG
+S_IFSOCK
+S_IRGRP
+S_IROTH
+S_IRUSR
+S_IRWXG
+S_IRWXO
+S_IRWXU
+S_IWGRP
+S_IWOTH
+S_IWUSR
+S_IXGRP
+S_IXOTH
+S_IXUSR
-UV_DIRENT_BLOCK
-UV_DIRENT_CHAR
-UV_DIRENT_DIR
-UV_DIRENT_FIFO
-UV_DIRENT_FILE
-UV_DIRENT_LINK
-UV_DIRENT_SOCKET
-UV_DIRENT_UNKNOWN
-UV_FS_COPYFILE_EXCL
-UV_FS_COPYFILE_FICLONE
-UV_FS_COPYFILE_FICLONE_FORCE
+UV_FS_O_FILEMAP
-UV_FS_SYMLINK_DIR
-UV_FS_SYMLINK_JUNCTION
 W_OK
 X_OK
```
Repository: flutter
Issue: [url_launcher] Support Safari Modal Presentation Style
Labels: c: new feature,platform-ios,p: url_launcher,package,c: proposal,P3,team-ios,triaged-ios

## Use case

Add options to launch urls using differen Presentation Styles for Safari ViewControllers. For a List of different Presentation styles can be seen here:
https://developer.apple.com/documentation/uikit/uimodalpresentationstyle#declaration

## Proposal

I already put together a working prototype in https://github.com/flutter/plugins/pull/4469 however as @stuartmorgan pointed out this change should only be made once the rework of the url_launcher Plugin Api is done
Repository: pytorch
Issue: Feature request: Add complex support to `torch.nanmean`
Labels: feature,triaged,module: complex,module: NaNs and Infs,module: reductions

### 🐛 Describe the bug

Based on the documentation of `torch.nanmean`, it is identical to `torch.mean()` when there are no NaN values in the input tensor. However, it only expects input to have floating point and complex tensor can have NaN.

```python
import torch
input= torch.rand([6, 5, 5], dtype=torch.complex128)
print(torch.mean(input))
# tensor(0.5126+0.5373j, dtype=torch.complex128)
torch.nanmean(input)
# RuntimeError: nanmean(): expected input to have floating point dtype but got ComplexDouble
```

```python
import torch
input = torch.rand([2, 2], dtype=torch.complex64)
input[0] = torch.nan
print(torch.mean(input))
# tensor(nan+nanj)
torch.nanmean(input)
# RuntimeError: nanmean(): expected input to have floating point dtype but got ComplexFloat
```

### Versions

pytorch: 1.10.1

cc @ezyang @anjali411 @dylanbespalko @mruberry @Lezcano @nikitaved
Repository: create-react-app
Issue: Hot Reload update received but not applied
Labels: needs triage,issue: bug report

Hot Reload stopped working after switching to v5. I tried finding the error and found out that:

The WebSocket connection works as expected but the engine doesn't apply the changes.

Prove:
![image](https://user-images.githubusercontent.com/46626041/150112207-f09309d3-b886-4134-89fd-217c96a1c701.png)

Got the update.js with the new content. That means that the injected client side code doesn't apply the changes correctly.
Repository: go
Issue: cmd/go:  invalid flag in #cgo LDFLAGS: -zcommon-page-size=2097152
Labels: NeedsInvestigation

<!--
Please answer these questions before submitting your issue. Thanks!
-->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.16.5 linux/arm64
</pre>

### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
</pre></details>

### What did you do?
number_main.go
![image](https://user-images.githubusercontent.com/14355168/150113635-54611948-4536-483d-a998-77606124994c.png)

go build -buildmode=pie -ldflags='-v -linkmode=internal' number_main.go

<!--
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on go.dev/play is best.
-->



### What did you expect to see?
build successfully


### What did you see instead?

go build command-line-arguments: invalid flag in #cgo LDFLAGS: -zcommon-page-size=2097152
Repository: create-react-app
Issue: Two compilations per file change on version 5.0.0
Labels: needs triage,issue: bug report

Hi Guys! Thanks a lot for such a great tool.

We started to update the react-scripts from version 4.0.3 to version 5.0.0 and got a faster production build.

But in development mode, there are two compilations per change.

On version 4.0.3 everything was fine.

<img src="https://user-images.githubusercontent.com/421161/150116416-e7848a57-afad-4379-b676-3234f893ec91.gif" width="70%">

But after the update, it began to report twice about the compilation process for each change, and the time from changing each file to the end of the final compilation became much longer than in version 4.0.3

<img src="https://user-images.githubusercontent.com/421161/150116601-86d65eae-b45a-4d96-9778-1512e8b8ab93.gif" width="70%">

This is reproducible on our machines on Linux and macOS.