sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: Make axes selection keyword arguments in torch.diagonal and torch.transpose consistent
Labels: triaged,module: numpy,module: linear algebra,module: python array api

## 🚀 Feature
Make the keyword argument names for the 1st and 2nd dimensions on which `torch.diagonal` and `torch.transpose` operate consistent between the two functions. Namely, let the keyword arguments either both be `0`-indexed:

```python
x = torch.randn(5, 3, 5, 2)
y = torch.tranpose(x, dim0=0, dim1=2)
z = torch.diagonal(x, dim0=0, dim1=2)
```
or `1`-indexed, as is the case in `numpy` (e.g. [np.diagonal](https://numpy.org/doc/stable/reference/generated/numpy.diagonal.html)):
```python
x = torch.randn(5, 3, 5, 2)
y = torch.tranpose(x, dim1=0, dim2=2)
z = torch.diagonal(x, dim1=0, dim2=2)
```
## Motivation

Currently, the two functions `torch.diagonal` and `torch.transpose` have different interfaces. The transpose has a 0-indexed interface: `torch.transpose(input, dim0, dim1)` [[docs](https://pytorch.org/docs/stable/generated/torch.transpose.html)], whereas the diagonal has a 1-indexed interface `torch.diagonal(input, offset=0, dim1=0, dim2=1)` [[docs](https://pytorch.org/docs/stable/generated/torch.diagonal.html?highlight=diagonal#torch.diagonal)]. It should be self-evident why it would be easier to remember the interfaces if they were the same for the two functions.

## Pitch

The proposal is to change the interface of `torch.diagonal` to be inline with that of `torch.transpose` (and `torch.swapdims`) by renaming the keyword arguments: `dim1 -> dim0` and `dim2 -> dim1`.

cc @mruberry @rgommers @heitorschueroff @jianyuh @nikitaved @pearu @walterddr @IvanYashchuk @xwang233 @Lezcano @pmeier @asmeurer @leofang @AnirudhDagar @asi1024 @emcastillo @kmaehashi
Repository: TypeScript
Issue: `Tuple & nominal` not recognised as tuple in spread parameter
Labels: Bug

# Bug Report

<!--
  Please fill in each section completely. Thank you!
-->

### 🔎 Search Terms

<!--
  What search terms did you use when trying to find an existing bug report?
  List them here so people in the future can find this one more easily.
-->
Nominal, Spread, Tuple, 

### 🕗 Version & Regression Information

<!-- When did you start seeing this bug occur?

"Bugs" that have existed in TS for a long time are very likely to be FAQs; refer to
  https://github.com/Microsoft/TypeScript/wiki/FAQ#common-bugs-that-arent-bugs

If possible, please try testing the nightly version of TS to see if it's already been fixed.
For npm: `typescript@next`
This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly

Note: The TypeScript Playground can be used to try older versions of TypeScript.

Please keep and fill in the line that best applies:
-->
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about spread and intersections

### ⏯ Playground Link

<!--
  A link to a TypeScript Playground "Share" link which shows this behavior

  The TypeScript Workbench can be used for more complex setups, try
  https://www.typescriptlang.org/dev/bug-workbench/

  As a last resort, you can link to a repo, but these will be slower for us to investigate.
-->
[Playground link with relevant code](https://www.typescriptlang.org/play?#code/CYUwxgNghgTiAEEQBd5QFzwNoDsCuAtgEYgwA08+xpFVJMAuvAGTwDe8A+jgPYECWOKBE4ZKIAG6l4AXwCwAKEUAzPDjDJ+PHPCIAKAHRGADrCgEAzplyF6tWzUoPGASnaLF8pQv1GDUF0UgA)

### 💻 Code

<!-- Please post the relevant code sample here as well-->
```ts
declare let a: [number, number, number] & { _nominal_a: never }
function b(...params: [number, number, number]) {}
b(...a) // Error: A spread argument must either have a tuple type or be passed to a rest parameter.
```

### 🙁 Actual behavior

<!-- What happened, and why it was wrong -->
The error in the code example is thrown, because TypeScript does not detect it as being a tuple.
In roblox-ts, we use a nominal marker type to indicate a special kind of tuple. This bug means that this tuple type can then not be spreaded into a fixed argument function. Our issue: https://github.com/roblox-ts/roblox-ts/issues/1537
### 🙂 Expected behavior

<!-- What you expected to happen instead, and why -->
This is a tuple type, and should therefore be recognised as such.
Repository: yt-dlp
Issue: [Feature Request] Set date of all files to the same as video file
Labels: enhancement

<!--

######################################################################
  WARNING!
  IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################

-->


## Checklist

<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of yt-dlp:
- First of, make sure you are using the latest version of yt-dlp. Run `yt-dlp --version` and ensure your version is 2021.08.02. If it's not, see https://github.com/yt-dlp/yt-dlp on how to update. Issues with outdated version will be REJECTED.
- Search the bugtracker for similar feature requests: https://github.com/yt-dlp/yt-dlp. DO NOT post duplicates.
- Finally, put x into all relevant boxes like this [x] (Dont forget to delete the empty space)
-->

- [x] I'm reporting a feature request
- [x] I've verified that I'm running yt-dlp version **2021.08.02**
- [x] I've searched the bugtracker for similar feature requests including closed ones

When I open my download folder in a file manager and sort by "Date Modified", the videos and their additional files (subtitles, thumbnail, .description, .info.json, ...) are not grouped together. This could be achieved by setting the date of not only the video file but also all additional files.

This is not the same as #601.

<!--
Provide an explanation of your issue in an arbitrary form. Please make sure the description is worded well enough to be understood, see https://github.com/ytdl-org/youtube-dl#is-the-description-of-the-issue-itself-sufficient. Provide any additional information, suggested solution and as much context and examples as possible.
-->
Repository: node
Issue: `node:` protocol does not URL decode
Labels: module

### Version

v16.6.1

### Platform

Darwin Devons-Air 20.4.0 Darwin Kernel Version 20.4.0: Thu Apr 22 21:46:41 PDT 2021; root:xnu-7195.101.2~1/RELEASE_ARM64_T8101 arm64

### Subsystem

_No response_

### What steps will reproduce the bug?

The [docs](https://nodejs.org/api/esm.html#esm_node_imports) describe the `node:` prefix as a URL scheme, but they don't appear to be treated as URLs. Percent encoding is not supported, nor are query parameters.

For example, `import('node:%66s')` results in an error rather than returning the `fs` module. And `import('node:fs?foo=2')` also results in an error.

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

Always.

### What is the expected behavior?

I'd expect specifiers with the `node:` prefix to be treated as URLs. Percent encoding should work, and query parameters should be ignored.

### What do you see instead?

```
Uncaught Error [ERR_UNKNOWN_BUILTIN_MODULE]: No such built-in module: node:%66s
    at __node_internal_captureLargerStackTrace (node:internal/errors:464:5)
    at new NodeError (node:internal/errors:371:5)
    at Loader.builtinStrategy (node:internal/modules/esm/translators:282:11)
    at new ModuleJob (node:internal/modules/esm/module_job:63:26)
    at Loader.getModuleJob (node:internal/modules/esm/loader:258:11)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Loader.import (node:internal/modules/esm/loader:177:17)
    at async importModuleDynamicallyWrapper (node:internal/vm/module:437:15) {
  code: 'ERR_UNKNOWN_BUILTIN_MODULE'
```

```
> Uncaught Error [ERR_UNKNOWN_BUILTIN_MODULE]: No such built-in module: node:fs?foo=2
    at __node_internal_captureLargerStackTrace (node:internal/errors:464:5)
    at new NodeError (node:internal/errors:371:5)
    at Loader.builtinStrategy (node:internal/modules/esm/translators:282:11)
    at new ModuleJob (node:internal/modules/esm/module_job:63:26)
    at Loader.getModuleJob (node:internal/modules/esm/loader:258:11)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Loader.import (node:internal/modules/esm/loader:177:17)
    at async importModuleDynamicallyWrapper (node:internal/vm/module:437:15) {
  code: 'ERR_UNKNOWN_BUILTIN_MODULE'
```

### Additional information

This isn't a terribly big deal, but I am implementing support for `node:` in [Parcel](https://v2.parceljs.org)'s resolver and want to make sure the behavior is correct. We're implementing support for URL schemes using a URL parser, but it seems Node is not, so I wanted to clarify if this is expected or a bug.
Repository: material-ui
Issue: CardHeader de-centered avatar
Labels: component: avatar

Styling in [CardHeader.js](https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/CardHeader/CardHeader.js#L14) de-centers avatar.
```javascript
  /* Styles applied to the avatar element. */
  avatar: {
    flex: '0 0 auto',
    marginRight: 16,
  },
```

Current workaround (TypeScript):
```typescript
const theme = createTheme({
  components: {
    MuiCardHeader: {
      styleOverrides: {
        avatar: {
          marginRight: "unset",
        },
      },
    },
  },
});
```
Repository: go
Issue: mime: bypassing multi-boundary check via Parameter Value Continuations
Labels: NeedsDecision

<!--
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`)?

<pre>
$ go version
go version go1.16.4 darwin/amd64
</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="amd64"
GOBIN=""
GOCACHE="/Users/sym01/Library/Caches/go-build"
GOENV="/Users/sym01/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/sym01/Workspace/Go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/sym01/Workspace/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.4"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
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 -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/cr/jbhvnrzx39s46k8btfr1s2_r0000gp/T/go-build52418455=/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.
-->
https://play.golang.org/p/JLYLXf40j8y


### What did you expect to see?

`net/http` has a secure-by-default implement for `multipart/form-data` that doesn't allow multi boundaries. https://github.com/golang/go/blob/507cc341ec2cb96b0199800245f222146f799266/src/mime/mediatype.go#L188-L191
E.g., It will stop parsing the form with header `Content-Type: multipart/form-data;boundary="boundary";boundary="another-boundary"`.

### What did you see instead?

Due to [the support of RFC 2231](https://github.com/golang/go/blob/507cc341ec2cb96b0199800245f222146f799266/src/mime/mediatype.go#L196-L235), we can bypass this security check with header `Content-Type: multipart/form-data;boundary="boundary";boundary*0="another";boundary*1="-boundary"`

This incorrect implementation could be used for bypassing some security mechanisms, such as Web Application Firewall.
Repository: storybook
Issue: Storybook @storybook/addon-storysource not working
Labels: bug,addon: storysource

**Describe the bug**
The addon is not working with the following configuration as per the documentation.

<img width="733" alt="Screenshot 2021-08-09 at 10 33 57 AM" src="https://user-images.githubusercontent.com/6853192/128662157-98d8dd48-fdb1-4548-9b07-39f18bc3cf1c.png">

```
const path = require('path')
const webpack = require('webpack')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')

module.exports = {
    core: {
        builder: 'webpack5',
    },
    addons: [
        '@storybook/addon-links',
        '@storybook/addon-postcss',
        '@storybook/addon-essentials',
        {
            name: '@storybook/addon-storysource',
            options: {
                rule: {
                    // You can specify directories
                    include: [path.resolve(__dirname, '../resources/js')],
                },
                loaderOptions: {
                    prettierConfig: { printWidth: 80, singleQuote: true },
                },
            },
        },
    ],
    stories: ['../resources/js/**/*.stories.js'],
    webpackFinal: async (config) => {
        // your app's webpack.config.js
        const custom = await require('../node_modules/laravel-mix/setup/webpack.config.js')()

        config.plugins.push(new MiniCssExtractPlugin())

        // TODO: I don't know we actually need this.
        config.plugins.push(new webpack.ProvidePlugin({
            process: 'process/browser',
        }))

        return {
            ...config,
            module: {
                ...config.module,
                rules: custom.module.rules
            },
            resolve: {
                ...config.resolve,
                alias: custom.resolve.alias,
            }
        }
    },
}
```

**To Reproduce**
Used the above configuration with Laravel inertia stack.

Laravel: 8.53.0
Laravel Mix: 6.0.27
Vue: 3

**System**
```
Environment Info:

  System:
    OS: macOS 11.4
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  Binaries:
    Node: 14.17.0 - /usr/local/bin/node
    Yarn: 1.22.11 - /usr/local/bin/yarn
    npm: 7.20.5 - /usr/local/bin/npm
  Browsers:
    Chrome: 92.0.4515.131
    Safari: 14.1.1
```
Repository: flutter
Issue: [web] skipped image tests failing gold checks when enabled.
Labels: team,platform-web,P2,c: tech-debt,team: skip-test,team-web,triaged-web

Part of the skip test audit: #86396.

When the following tests are reenabled, they no longer fail outright, but they don't generate the right golden images. They both reference #54292, which appears to be fixed so maybe this a different problem that fixing that uncovered:

https://github.com/flutter/flutter/blob/6876c52b5ba7305bd9107f5b701f80ca6c3bd254/packages/flutter/test/widgets/image_test.dart#L1728-L1735

https://github.com/flutter/flutter/blob/6876c52b5ba7305bd9107f5b701f80ca6c3bd254/packages/flutter/test/widgets/image_test.dart#L1737-L1740

When turned on they generated golden failures that looked like:

<img width="1190" alt="Screen Shot 2021-08-08 at 7 29 50 PM" src="https://user-images.githubusercontent.com/19588/128665421-7859e0e3-9407-4e5d-8389-9f5245c7a08e.png">
Repository: flutter
Issue: flutter_tools variable_expansion_windows_test test skipped
Labels: team,tool,P3,c: tech-debt,team: skip-test,team-tool,triaged-tool

As part of the skip test audit: #86396, the follow test is skipped:

https://github.com/flutter/flutter/blob/6876c52b5ba7305bd9107f5b701f80ca6c3bd254/packages/flutter_tools/test/integration.shard/variable_expansion_windows_test.dart#L12-L20

If it is reenabled it will fail with:

```
04:11 +31 -1: test\integration.shard\variable_expansion_windows_test.dart: dart command will expand variables on windows [E]                                                                           
  Expected: contains 'args: ["(?!Golden).+"]'
    Actual: 'args: ["(?Golden).+"]\r\n'
              ''
  
  package:test_api                                                  expect
  test\integration.shard\variable_expansion_windows_test.dart 19:5  main.<fn>
```
Repository: flutter
Issue: [Documentation]: Make Sample code for AbsorbPointer simpler
Labels: framework,d: api docs,a: quality,P2,team-framework,triaged-framework

The sample code in [AbsorbPointer](https://api.flutter.dev/flutter/widgets/AbsorbPointer-class.html) states that:
> The following sample has an [AbsorbPointer] widget wrapping the button on top of the stack, which absorbs pointer events, preventing its child button and the button below it in the stack from receiving the pointer events.

But any widget below another widget is already prevented from getting the pointer events. So pointing it out here, asif it is new, seems weird. The example taken in the [video](https://youtu.be/65HoWqBboI8) would be a better sample - Wrapping a bunch of widgets with AbsorbPointer.
Repository: deno
Issue: Implement Performance.measureUserAgentSpecificMemory
Labels: web,suggestion

Spec: https://wicg.github.io/performance-measure-memory/#ref-for-dom-performance-measureuseragentspecificmemory%E2%91%A4
Repository: opencv
Issue: [G-API] How to understand row based in GAPI fluid backend?
Labels: question (invalid tracker),category: g-api / gapi

What is the difference between row based  and opencv ordinary backend？
Repository: PowerToys
Issue: [Color Picker] Feature request: copy alias string with specified color
Labels: Idea-Enhancement,Product-Color Picker

### Description of the new feature / enhancement

Add a section that specifies the aliases of color values

![image](https://user-images.githubusercontent.com/6134068/128693268-451eb37a-6d03-421c-99e0-1c315ddec1fb.png)

Add an option that copies the alias string to clipboard instead of its real color value

![image](https://user-images.githubusercontent.com/6134068/128695377-3f6707d3-7c7f-4e85-a97b-5f398d5fa681.png)


### Scenario when this would be used?

CSS variables are extremely useful with theming. While picking colors in the design document, we often needs the css variable name instead of the real color value. It will be very helpful the color picker can automatically convert color values to its alias that user specified

![image](https://user-images.githubusercontent.com/6134068/128694969-6a5a32b3-d385-42f9-ba25-37dfd2f1a539.png)

### Supporting information

_No response_
Repository: PowerToys
Issue: fancyzones upgrade as Dynamic Tiles Manager
Labels: Idea-Enhancement,FancyZones-Dragging&UI,FancyZones-Layouts,Product-FancyZones

### Description of the new feature / enhancement

**Core Feature needed**
- **(A)** shortcut to switch focus to another  tiles/windows. This could be relative.
- **(B)** allows "carousel"/global re-ordering approach : when a window is moved (eg:WIN+→) to another occupied tile, the other (non-minimised) windows are moved to other tiles

**extra feature (non-essential)**
- **(C)** shortcut to adjust the size/number of the tiles on the go
- **(D)** allow option for automatic creation of tiles when new window is added (this requires the addition of main and secondary tiles) where new windows are added to slaves tiles 

### Scenario when this would be used?

This is a major time gain in my opinion, as it allows 
- the re-organization of the windows entirely via keyboard
- with all windows staying visible at all time!
- to have a "main" tile where the main work is done, and have windows being moved to that tile instantly when I need to switch my focus to another process. The (current) alternative is reorganizing *all* windows every time to have the windows in the right positions.

**example of use case:**
you have a layout with 4 tiles; "1" is the main and bigger one on the left, then 3 stacked vertically on the right ("two", "three", "four").
During your work, you now need to focus your work on four.
In the current implementation : you need to move around all 4 windows to have four as the big main one, and the other ones in correct place in the other stacked tiles.
In the proposed implementation: you use **(A)** to focus on four, you use **(B)** to reorganize **all** tiles, took you an instant.

### Supporting information

These are existing implementation
windows : https://github.com/fuhsjr00/bug.n
linux: https://dwm.suckless.org/
Repository: TypeScript
Issue: TS2377 not reported when 'super' is called conditionally
Labels: Bug

# Bug Report

The TS2377 error is reported when the constructor of a derived class does not contain a call to 'super'. However, it is not reported when only some branches contain the call but not others.

### 🔎 Search Terms

TS2377 super class missing branch

### 🕗 Version & Regression Information

- This is the behavior in every version I tried, and I reviewed the FAQ for entries about **Classes**

### ⏯ Playground Link

[Playground link with relevant code](https://www.typescriptlang.org/play?#code/MYGwhgzhAEDCCuEAuB7AtgUQE5ZV6ApgB5IEB2AJjNrvgN4BQ00wKZyW8wqWAFAG5gQ8AgC5oHAJZkA5tAA+0MvDQAjAlgCU0Rs2aSAZtF5IAngAcCKI4OEFoAXifQA5FNkvtuvcwjxLfLYimkx6AL6EIBD23j4A9HHQKCjmEAA0SigS-hq82sBCIACEocxhoeVhQA)

### 💻 Code

```ts
class CustomError extends Error {
  constructor(value: string | number) {
    if (typeof value === 'string') {
      super(value)
    } else {
      // oops, no super() call!
    }
  }
}
```

### 🙁 Actual behavior

TypeScript does not report any errors for the above code.

### 🙂 Expected behavior

TypeScript should report TS2377 for the above code, since 'super' isn't called in every branch.