sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: `pad(mode='reflect')` beyond `input.size`
Labels: module: nn,triaged,enhancement,module: padding

A needed feature; I've [implemented it](https://github.com/lostanlen/kymatio/blob/fix-672/kymatio/scattering1d/backend/agnostic_backend.py#L63) for reference, but it's Python and slow.

Current limitation:

```python
torch.nn.functional.pad(torch.randn(1, 1, 128), pad=[0, 256], mode='reflect')
```

cc @albanD @mruberry @jbschlosser
Repository: ant-design
Issue: Avatar groups should only display the   n overflow element when n>1, otherwise use the space to display the final item
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?
Avatar groups should only display the   n overflow element when n>1, otherwise use the space to display the final item. The current behavior is to display a number of item specified by maxCount, plus an additional item with the  n value when the number of children exceeds max count.

### What does the proposed API look like?
Not sure how to express this idea concisely in the prop name, but backwards compatibility could be maintained by adding a boolean prop to determine whether to follow a new pattern in which the final item is either put in the max position if it is the last item, or that position is used to display the count of remaining items

Current behavior is like
```
maxCount = 3
(A)
(A)(B)
(A)(B)(C)
(A)(B)(C)( 1) <-- Note that we're not only displaying more than the user has asked for, and the last position is used inefficiently.
(A)(B)(C)( 2)
...

Proposed behavior with overFlowInFinal === true:
maxCount = 3
(A)
(A)(B)
(A)(B)(C) <-- We limit the total number of elements to the maxCount and correctly display the final item in slot 3
(A)(B)( 2)
...
```

Props would look like this:
```
export interface GroupProps {
  className?: string;
  children?: React.ReactNode;
  style?: React.CSSProperties;
  prefixCls?: string;
  maxCount?: number;
  overflowInFinal?: boolean; // <-- Add this prop
  maxStyle?: React.CSSProperties;
  maxPopoverPlacement?: 'top' | 'bottom';
  /*
   * Size of avatar, options: `large`, `small`, `default`
   * or a custom number size
   * */
  size?: AvatarSize;
}
```


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: go
Issue: net/http: handling range requests for empty files
Labels: NeedsInvestigation

<!--
Please answer these questions before submitting your issue. Thanks!
For questions please use one of our forums: https://github.com/golang/go/wiki/Questions
-->

### What version of Go are you using (`go version`)?
go version go1.16.3 darwin/amd64


### Does this issue reproduce with the latest release?



### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env

GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/matt/Library/Caches/go-build"
GOENV="/Users/matt/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/matt/Code/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/matt/Code/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.16.3"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/matt/Code/go/skyd/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/f9/2yp855dn19s0cqcjwbrv_0900000gn/T/go-build2190681930=/tmp/go-build -gno-record-gcc-switches -fno-common"
</pre></details>

### What did you do?

<!--
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
-->

In our API package we add a range request to the `HEADER` like so
```go
	req, err := c.NewRequest("GET", resource, nil)
	if err != nil {
		return nil, errors.AddContext(err, "failed to construct GET request")
	}
	req.Header.Add("Range", fmt.Sprintf("bytes=%d-%d", from, to))
	httpClient := http.Client{CheckRedirect: c.CheckRedirect}
        res, err := httpClient.Do(req)
```
When we extended our testing to include zero-byte (ie empty) files we found that the response from the `httpClient.Do` method is `416 Requested Range Not Satisfiable`.  This was with a `from` and `to` values of 0.

Now I know that technically that is correct since that range request is asking for the first byte and that doesn't exist in an empty file. However, I could not find in the documentation a way to submit range requests for empty files.  

Would it be possible for the standard library to be updated to provided direction on how to submit a range request for an empty file? Or do you expect the caller to make that determination and just not submit a range if it is an empty file. 


### What did you expect to see?
There should be a standard way to handle a range request for a zero-byte (empty) file. 


### What did you see instead?
`416 Requested Range Not Satisfiable`
Repository: go
Issue: cmd/compile: missed phi elim opportunity using result of function call
Labels: ToolSpeed,NeedsInvestigation,FeatureRequest,compiler/runtime

This is a reasonably common piece of code:

```go
func isClosed(c chan struct{}) bool {
	select {
	case <-c:
		return true
	default:
		return false
	}
}
```

The core of it compiles to:

```
CALL	runtime.selectnbrecv(SB)
CMPB	16(SP), $0
JEQ	74
MOVB	$1, "".~r1+48(SP)
RET
MOVB	$0, "".~r1+48(SP)
RET
```

We should be able to use the result directly rather than branching.
Repository: TypeScript
Issue: "Unassigned parameter" analysis doesn't account for local var declarations
Labels: Bug

In JS, it's legal to have a `var` declaration merge with a parameter declaration. By doing this and creating one with an initializer, you can get around TypeScript 4.4's "is this parameter ever assigned to?" checks for aliased conditions.

```ts
function foo(x: string | number) {
    // Try uncommenting (1) and (2) 

    // (1)
    // var x: string | number = 42;

    // (2)
    // x = 42;

    const a = typeof x === "string";
    if (a) {
        x // observe the type switch between `string` and `never` here.
    }
}
```
Repository: flutter
Issue: [Documentation] Archive package is documented on https://api.flutter.dev but not exposed by SDK
Labels: framework,d: api docs,a: quality,P2,team-framework,triaged-framework

I needed to unzip a file for in a Flutter app. Googling led me to this [Flutter API documenation](https://api.flutter.dev/flutter/archive/archive-library.html) yet it seems that the archive library is not actually exported inthe public Flutter SDK? 

I then realised I needed to make use of the [archive package from pub.dev](https://github.com/brendan-duncan/archive) but it was quite a confusing experience, even as an experienced Flutter dev.

It would be nice if the Flutter API docs didn't include libraries that aren't made available by the SDK or maybe even better make the archive package be an export by the SDK, but I guess that takes on a big responsibility for the SDK making it a supported public SDK API.
Repository: godot
Issue: The editor does not center the view when opening a scene
Labels: bug,topic:editor,needs testing,topic:2d

### Godot version

3.3.2 official mono

### System information

w10 64

### Issue description

When I open a scene, the editor focuses on a point, random? and you need to find the location of the scene.
So if you manually locate the scene and then open a new scene, then now the editor is focused on opening the new scene.


https://user-images.githubusercontent.com/19652075/124261164-c3833080-db30-11eb-8466-45de9990259a.mp4


In the video you can see:
First I open two scenes without focusing on any of them and the editor remains unfocused.
Then I open the same scene but center the editor, then I open the other scene and now the editor remains centered.

The editor should open the scene and:
Load the last coordinate of the user where the editor was located in this scene, if there is no coordinate, center the editor on the parent node.

### Steps to reproduce

Deactive this option:
![Captura](https://user-images.githubusercontent.com/19652075/124261188-cc740200-db30-11eb-91cc-fca2a056eafa.PNG)


Move the editor behind limits of scene

open/close various scenes and observe the coords of the editor

### Minimal reproduction project

_No response_
Repository: go
Issue: x/tools/go/analysis: framepointer doesn't report BP clobbering on Windows
Labels: OS-Windows,NeedsInvestigation,Tools,Analysis

https://go-review.googlesource.com/c/tools/+/248686 introduced frame pointer check for clobbering BP register, however the check is only enabled for linux and darwin.

```
// func mixBlocksSSE2(out, a, b, c *block)
TEXT ·mixBlocksSSE2(SB), 4, $0-32
	MOVQ out+0(FP), DX
	MOVQ a+8(FP), AX
	MOVQ b+16(FP), BX
	MOVQ c+24(FP), CX
	MOVQ $128, BP
	RET
```

As an example doesn't report the clobbering on windows. https://github.com/golang/crypto/blob/5ff15b29337e062d850872081bcd9f4d784f4c25/argon2/blamka_amd64.s#L204

It's not clear why other OS-s were excluded from this analysis.

I would expect the clobbering to be reported on files that are compiled for linux/darwin on windows as well.
Repository: angular
Issue: Testing services documentation unclear
Labels: P2,area: docs

In the [Testing Services](https://angular.io/guide/testing-services) documentation, a reference to the `asyncData` function is made, but the docs don't explain where this function is coming from.

![image](https://user-images.githubusercontent.com/34658414/124279433-e2c49280-db1d-11eb-8caf-1415f5b9211f.png)
Repository: godot
Issue: Line2D doesn't draw full gradient if it doesn't have enough points
Labels: bug,topic:rendering,confirmed,topic:2d

### Godot version

3.3 / 6ef0b8f

### System information

W10

### Issue description

![ndlJcQAFvJ](https://user-images.githubusercontent.com/2223172/124283901-bbd18500-db4c-11eb-8bc9-02c2974e9b31.gif)
It would *maybe* make sense if the offsets were ignored and instead it used only the colors, but it's not the case.

### Steps to reproduce

1. Add Line2D
2. Add 2 points to it
3. Add a gradient to `gradient` property, with 3 colors

### Minimal reproduction project

_No response_
Repository: flutter
Issue: Feature Request: Widget that scrolls into view whenever a descendent widget receives focus
Labels: c: new feature,framework,f: material design,f: scrolling,c: proposal,f: focus,P3,team-design,triaged-design

## Use case

A new widget that automatically scrolls itself into view whenever a child receives focus.

Many Flutter users will add decorations to the built-in focusable widgets such as `TextField`. These decorations can be an important part of the UI and should be considered when Flutter automatically scrolls these into view.

## Proposal

```dart
// ANY Scrollable widget
ListView(
  children: [
    // Proposed feature
    EnsureVisible(
      // The child may contain focusable widget and other decorations
      child: Column(
        children: [
          Text('Some Label'),
          TextField(/* said focusable widget */),
          Text('Other Decorations'),
        ],
      ),
    ),
  ],
);
```

In the above example, when the TextField is focused, instead of changing the scroll to fit just the TextField, the entire EnsureVisible widget is scrolled into view.

## Video Example

I have emulated the desired behaviour, but in doing so I am fighting against the built-in scroll behaviour of Flutter.

https://www.loom.com/share/44684b41f3834f1c9922b6c579830525

## Code

Here's my widget. Unoptimised.

```dart
class EnsureVisible extends StatefulWidget {
  final Widget child;

  const EnsureVisible({
    Key? key,
    required this.child,
  }) : super(key: key);

  @override
  _EnsureVisibleState createState() => _EnsureVisibleState();
}

class _EnsureVisibleState extends State<EnsureVisible>
    with WidgetsBindingObserver {
  @override
  void initState() {
    super.initState();
    WidgetsBinding.instance!.addObserver(this);
    WidgetsBinding.instance!.focusManager.addListener(autoScroll);
  }

  @override
  void dispose() {
    WidgetsBinding.instance!.removeObserver(this);
    WidgetsBinding.instance!.focusManager.removeListener(autoScroll);
    super.dispose();
  }

  @override
  void didChangeMetrics() {
    autoScroll();
  }

  @override
  Widget build(BuildContext context) => widget.child;

  void autoScroll() async {
    var focussedNode = WidgetsBinding.instance!.focusManager.primaryFocus;
    if (focussedNode != null) {
      var v =
          focussedNode.context?.findAncestorWidgetOfExactType<EnsureVisible>();
      if (v == widget) {
        // Flutter ALSO tries to adjust the focus / scroll
        await Future.delayed(Duration(
          milliseconds: 50,
        ));
        // Make sure it's not past the bottom
        Scrollable.ensureVisible(
          context,
          alignmentPolicy: ScrollPositionAlignmentPolicy.keepVisibleAtEnd,
        );
        // // ...nor the top
        Scrollable.ensureVisible(
          context,
          alignmentPolicy: ScrollPositionAlignmentPolicy.keepVisibleAtStart,
        );
      }
    }
  }
}
```
Repository: flutter
Issue: Set limit for linter results
Labels: tool,dependency: dart,c: proposal,P3,team-tool,triaged-tool

In other languages, there is an ability to specify a threshold of infos, warnings, and errors where exceeding the threshold specified will throw an exception. 

`flutter analyze --max-infos 50` could be a potential usecase; if running that command produces 50 "info" results, the linting has passed. However, if the command produces 51 or more "info" results, the linting fails. This will aid CI/CD solutions and prevent the number of info results from climbing as features integrate. 

I would desire the same feature for warnings and errors, and potentially `flutter test` as well.
Repository: godot
Issue: Occasional crash when exiting the editor
Labels: bug,topic:editor,needs testing,crash

### Godot version

3.3.2 stable mono

### System information

w10 64

### Issue description

I have been experiencing several crashes.
I just tried to change the angle of a node after painting on the tilemap.
I could not describe the reason very well but I have some information, if it is useful then perfect and if it does not work, then close the thread.

[2021-07-02_17.42.19_8844.log](https://github.com/godotengine/godot/files/6755642/2021-07-02_17.42.19_8844.log)

![Captura](https://user-images.githubusercontent.com/19652075/124298968-2d193400-db5d-11eb-820e-7b55880bb37a.PNG)

in this video I reproduce the crash
https://youtu.be/bNxb7KEaYEs

### Steps to reproduce

...

### Minimal reproduction project

_No response_
Repository: godot
Issue: Cannot add TreeItem from signal item_selected()
Labels: bug,topic:gui

### Godot version

3.3.2 official

### System information

Windows 10

### Issue description

I have created a Tree node and added one TreeItem.  By pressing a button I can add a child TreeItem to the first TreeItem.  However, if I want to add a TreeItem to any existing TreeItem by selecting it, Godot crashes.
 
I checked to see if a valid TreeItem is loaded when I use the item_selected() signal and call .get_selected(). This checks out fine.  However, for some reason, from the item_selected() function, I can't add a child TreeItem to the one selected.

 

### Steps to reproduce

First:
1) run provided Test project.
2) press button and see a TreeItem created under the top TreeItem.
all is well

close and run again:
1. This time click on the TreeItem.
2. Godot crashes with the error that the created TreeItem is NULL

### Minimal reproduction project

[Test.zip](https://github.com/godotengine/godot/files/6755753/Test.zip)
Repository: electron
Issue: [Bug]: The "Zoom In" shortcut doesn't work
Labels: platform/windows,platform/linux,bug :beetle:,23-x-y

### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/master/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a feature request that matches the one I want to file, without success.

### Electron Version

v11.4.9

### What operating system are you using?

Other Linux

### Operating System Version

Linux exia 5.12.11-zen1-1-zen #1 ZEN SMP PREEMPT Wed, 16 Jun 2021 15:25:30 +0000 x86_64 GNU/Linux

### What arch are you using?

x64

### Last Known Working Electron version

_No response_

### Expected Behavior

Pressing the equivalent of `Ctrl++` on a Swiss-German Keyboard (`Ctrl+Shift+1`) should zoom in.
Pressing `Ctrl+-` works as expected.

### Actual Behavior

Nothing happens.

### Testcase Gist URL

_No response_

### Additional Information

Interestingly enough, it's even broken in discord.

Resubmission of https://github.com/electron/electron/issues/15496
Repository: PowerToys
Issue: [Color Picker] Color Wheel
Labels: Idea-Enhancement,Product-Color Picker

### Description of the new feature / enhancement

It would be nice if, besides showing a color theme with different tones of the same color, it would show a color wheel, something like this:

![image](https://user-images.githubusercontent.com/161972/124319379-8333aa80-db50-11eb-8fc9-ed26b9e3bb06.png)

So you can easily see the triads, complementaries, etc.

### Scenario when this would be used?

Useful for quickly and easily designing color themes of colors which combine with each other

### Supporting information

_No response_
Repository: pytorch
Issue: Feature Request: torch.functional.interpolate to quietly ignore "align_corners" when mode is set to "nearest"
Labels: module: nn,triaged,enhancement,module: interpolation

The feature I'd like is for torch.functional.interpolate to quietly ignore the presence of "align_corners" when it's set to "nearest" which doesn't use the "align_corners" settings.

The motivation behind this is that it is a hassle going back and removing it and putting it back in when I'm comparing bilinear and nearest interpolation in a network. If it does nothing then I don't want to delete it and retype it later. In the docs just mention it doesn't do anything when the mode is set to "nearest".

cc @albanD @mruberry @jbschlosser
Repository: go
Issue: go/printer: absolute timing fails on slow devices and breaks test
Labels: Testing,NeedsFix

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version devel go1.17-03761ede02 Thu Jul 1 19:09:57 2021 +0000 linux/arm
</pre>

### Does this issue reproduce with the latest release?
yes

### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
GO111MODULE=""
GOARCH="arm"
GOBIN=""
GOCACHE="/home/ethereum/.cache/go-build"
GOENV="/home/ethereum/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="arm"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/Projekt/ethereum/goroot/bin/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/Projekt/ethereum/goroot/bin"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/Projekt/ethereum/goroot"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/Projekt/ethereum/goroot/pkg/tool/linux_arm"
GOVCS=""
GOVERSION="devel go1.17-03761ede02 Thu Jul 1 19:09:57 2021 +0000"
GCCGO="gccgo"
GOARM="7"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -marm -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build711812431=/tmp/go-build -gno-record-gcc-switches"
GOROOT/bin/go version: go version devel go1.17-03761ede02 Thu Jul 1 19:09:57 2021 +0000 linux/arm
GOROOT/bin/go tool compile -V: compile version devel go1.17-03761ede02 Thu Jul 1 19:09:57 2021 +0000
uname -sr: Linux 5.10.17-v7l+
Distributor ID:	Raspbian
Description:	Raspbian GNU/Linux 10 (buster)
Release:	10
Codename:	buster
/lib/arm-linux-gnueabihf/libc.so.6: GNU C Library (Debian GLIBC 2.28-10+rpi1) stable release version 2.28.
gdb --version: GNU gdb (Raspbian 8.2.1-2) 8.2.1
</pre></details>

### What did you do?

compile on raspberry pi:

1. clone rep with git clone https://go.googlesource.com/go goroot
2. cd goroot/src
3. ./all.bash

### What did you expect to see?

ALL TESTS PASSED

### What did you see instead?

--- FAIL: TestFiles (0.00s)
    --- FAIL: TestFiles/empty.input (10.01s)
        printer_test.go:185: testdata/empty.input: running too slowly
    --- FAIL: TestFiles/go2numbers.input#01 (10.01s)
        printer_test.go:185: testdata/go2numbers.input: running too slowly
    --- FAIL: TestFiles/go2numbers.input (10.01s)
        printer_test.go:185: testdata/go2numbers.input: running too slowly

Workaround:
        ./src/go/printer/printer_test.go: line 183
        case <-time.After(1000 * time.Second): // plenty of a safety margin, even for very slow machines
Repository: rust
Issue: `uncommon_codepoints` is ignored unless specified at crate level
Labels: C-enhancement,A-lints,A-Unicode,L-uncommon_codepoints

I tried [this code](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=bc2ad8390779175ff263dd0ff53caebe):

```rust
#[allow(uncommon_codepoints)]
pub mod 𓀄 {
}
```

I expected to see this happen: warning-free compilation

Instead, this happened:

```
warning: allow(uncommon_codepoints) is ignored unless specified at crate level
 --> src/lib.rs:1:9
  |
1 | #[allow(uncommon_codepoints)]
  |         ^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_attributes)]` on by default

warning: identifier contains uncommon Unicode codepoints
 --> src/lib.rs:2:9
  |
2 | pub mod 𓀄 {
  |         ^
  |
  = note: `#[warn(uncommon_codepoints)]` on by default

warning: allow(uncommon_codepoints) is ignored unless specified at crate level
 --> src/lib.rs:1:9
  |
1 | #[allow(uncommon_codepoints)]
  |         ^^^^^^^^^^^^^^^^^^^
```

### Meta
Tested on 1.53 stable and 1.55.0-nightly (2021-07-01 7100b311df0367c4d906)