sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: storybook
Issue: ComponentStory<T> produces args with 'any' as type
Labels: bug,typescript

**Describe the bug**
Upgraded from SB 6.3.5 to 6.4.9. Now `args`'s type is `any`

Reverting to 6.3.5 makes it fine again.

## 6.4.9
```
import { ComponentMeta, ComponentStory } from '@storybook/react'

import { Avatar } from '.'

export default {
  title: 'Atoms/Avatar',
  component: Avatar,
  args: {
    url: 'https://placekitten.com/128/128',
  },
} as ComponentMeta<typeof Avatar>

const Template: ComponentStory<typeof Avatar> = (args) => {
  return <Avatar {...args} />
}

export const Playground = Template.bind({})
```

![Screenshot 2021-12-11 at 00 28 09](https://user-images.githubusercontent.com/49692/145608172-55b36b72-474d-4387-8715-b8aa950724be.png)

## 6.3.5 (works)

```
import { Meta, Story } from '@storybook/react'

import { Avatar, AvatarProps } from '.'

export default {
  title: 'Atoms/Avatar',
  component: Avatar,
  args: {
    url: 'https://placekitten.com/128/128',
  },
} as Meta

const Template: Story<AvatarProps> = (args) => {
  return <Avatar {...args} />
}

export const Playground = Template.bind({})
```

**System**
```
  System:
    OS: macOS 12.0.1
    CPU: (10) arm64 Apple M1 Max
  Binaries:
    Node: 14.18.1 - ~/.nvm/versions/node/v14.18.1/bin/node
    Yarn: 1.22.17 - ~/.nvm/versions/node/v14.18.1/bin/yarn
    npm: 6.14.15 - ~/.nvm/versions/node/v14.18.1/bin/npm
  Browsers:
    Chrome: 96.0.4664.93
    Safari: 15.1
  npmPackages:
    @storybook/addon-actions: ~6.4.9 => 6.4.9
    @storybook/addon-controls: ~6.4.9 => 6.4.9
    @storybook/addon-essentials: ~6.4.9 => 6.4.9
    @storybook/addon-links: ~6.4.9 => 6.4.9
    @storybook/react: ~6.4.9 => 6.4.9
```
Repository: godot
Issue: Godot Visual Script - 3.4 and 4.0 - Call Group Issue
Labels: bug,topic:visualscript

### Godot version

3.4 stable

### System information

Ubuntu 20.04 LTS, Ryzen 2700, Gtx 1060

### Issue description

The call group node gives errors and has no ports to input arguments. Occurs in both 3.4 and 4.0
![34callgroupissue1](https://user-images.githubusercontent.com/81984273/145606920-72b1ed95-a82e-404c-a788-91ee9317aca0.png)

There is also a problem with the fields disappearing when you reopen the project
![34callissuerepo_open](https://user-images.githubusercontent.com/81984273/145607166-c0dc3ddb-07f2-48ed-b403-997ee6a8da1d.png)
.

### Steps to reproduce

Put a node in a group, add a function to a script on that node, attempt to call it with the call group vs node from another script.



### Minimal reproduction project

[34_Call_Group_Issue.zip](https://github.com/godotengine/godot/files/7694118/34_Call_Group_Issue.zip)

You will have to drag out a fresh call group vs node and hook up the fields. (See above ScreenShot.)
Repository: storybook
Issue: Cannot read properties of undefined (reading 'id')
Labels: bug,vue,addon: docs

Hi everyone,
I'm using @storybook/vue to make my storybook and I'm trying to embed a view component in my mdx files but I get these errors:
"Cannot read properties of undefined (reading 'id')" and "The above error occurred in the <Canvas> component".
I've been looking for a solution on different forums but I can't find it.
Does anyone have a solution?

my code :
button.docs.mdx
```vue
import { Canvas, Meta, Story } from '@storybook/addon-docs';
import Table from "@/stories/stories-component/Table.vue";

<Meta title="Bootstrap Custom Button Documentation" />

# Test

<Canvas>
    <Story name="test table">
        {() => {
            return {
                components: { Table },
                template: `<Table></Table>`
            };
        }}
    </Story>
</Canvas>
````
Table.vue
```vue
<template>
    <p>test component </p>
</template>
<script>
export default {
    name:"Table",
    props: {}
}
</script>
```
Repository: yt-dlp
Issue: Add DirecTV Stream to MSO Providers
Labels: account-needed,site-enhancement

### Checklist

- [X] I'm reporting a feature request
- [X] I've verified that I'm running yt-dlp version **2021.12.01**. ([update instructions](https://github.com/yt-dlp/yt-dlp#update))
- [X] I've searched the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues including closed ones. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)

### Description

Can DirecTV Stream be added to the MSO providers? 

Looks like it uses the standard ATT login account.
Repository: PowerToys
Issue: File diff / comparison tool
Labels: Idea-New PowerToy,Product-File Actions Menu

### Description of the new feature / enhancement

Best in class file diff engine.  We had something like this that was monaco based in Windows Template Studio when you added an existing file.

This should be built into the context menu

### Scenario when this would be used?

Diff'ing files on your disk.

Stretch goals: 
- Local to website URL diff (github)
- Hex diff?
- more than 2 file diff'ing

### Supporting information

_No response_
Repository: go
Issue: x/net/html: cryptic error - void element  has child nodes 
Labels: NeedsDecision

<!--
Please answer these questions before submitting your issue. Thanks!
-->

### What version of Go are you using (`go version`)?

<pre>
$ go version
 go1.17.2 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>
MacOS/intel
</pre></details>

### What did you do?

<!--
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on go.dev/play is best.
-->
```
package main

import (
    "golang.org/x/net/html"
    "io/ioutil"
    "strings"
)

func main() {
    nodes, err := html.ParseFragment(strings.NewReader("<svg ><link class="hello-class" >0"), nil)
    if err != nil {
        return
    }
    for _, n := range nodes {
        if err := html.Render(ioutil.Discard, n); err != nil {
            panic(err)
        }
    }
}

```

### What did you expect to see?
HTML documents are usually long and such an cryptic error is hard to debug. I expected at least an error that points to the specific errornous node. The error should include the attributes of the invalid node and perhaps 2 - 3 parent nodes as well.

### What did you see instead?

`panic: html: void element <link> has child nodes
`

A cryptic error that provides little help.

This is also related to https://github.com/golang/go/issues/10535
Repository: pytorch
Issue: Torch Profiler does not count FLOPs for backward pass 
Labels: oncall: profiler

### 🐛 Describe the bug

I wanted to measure the FLOPs of forward and backward pass with the Pytorch Profiler. However, the backward pass doesn't seem to be tracked. 

```Python
from torch.profiler import profile
import torch
import torch.optim as optim
import torchvision.models as models

# setup model input and target
model = models.resnet18(num_classes=10).cuda()
inputs=torch.randn((1,3,224,224)).cuda() # dummy input
y = torch.randint(10, size=(1,)).cuda()  # dummy target

# warm up cuda memory allocator, recommended here: https://github.com/pytorch/pytorch/blob/master/torch/autograd/profiler.py
outputs = model(inputs)

### forward only
with torch.profiler.profile(
    activities=[
        torch.profiler.ProfilerActivity.CPU,
        torch.profiler.ProfilerActivity.CUDA,
    ],
    with_flops=True) as prof:
        outputs = model(inputs)

events = prof.events()
forward_flops = sum([int(evt.flops) for evt in events]) 
print("forward flops: ", forward_flops)
# forward flops:  3627132948

### forward + backward
optimizer = optim.SGD(model.parameters(), lr=0.01)
criterion = torch.nn.CrossEntropyLoss()
# warm up cuda memory allocator
optimizer.zero_grad()
outputs = model(inputs)
loss = criterion(outputs, y)
loss.backward()
optimizer.step()

### measure only backward pass
optimizer.zero_grad()
outputs = model(inputs)
with torch.profiler.profile(
    activities=[
        torch.profiler.ProfilerActivity.CPU,
        torch.profiler.ProfilerActivity.CUDA,
    ],
    with_flops=True) as prof:
        outputs = model(inputs) 
        loss = criterion(outputs, y)
        loss.backward()
        optimizer.step()
            
events = prof.events()
fwbw_flops = sum([int(evt.flops) for evt in events]) 
print("forward + backward flops: ", fwbw_flops)
# forward + backward flops:  3628081684
print("forward + backward - forward:", fwbw_flops - forward_flops)
# forward + backward - forward: 948736
```

The FLOPs for the forward pass look plausible for this kind of setup. The backward pass is usually around 2x that of the forward pass. In this case, however, it is multiple orders of magnitude smaller and thus probably an incorrect count. 

Is there any way to count the backward pass as well?

### Versions

I used Google Colab which currently runs on torch version "1.10.0+cu111"

cc @ilia-cher @robieta @chaekit @gdankel @bitfort @ngimel @orionr @nbcsm @guotuofeng @guyang3532 @gaoteng-git
Repository: pytorch
Issue: Implement aten::equal for sparse tensors
Labels: module: sparse,triaged,Stale

### 🚀 The feature, motivation and pitch

JIT serialization & freezing uses equality checks for things like common subexpression elimination (CSE).

Since `aten::equal` isn't implemented for sparse tensors, `sparseTensorA.equals(sparseTensorB)` fails, preventing CSE during freezing.

Currently, to get around this, sparse COO tensors are *not* converted to constants and inlined into the graph ([here](https://github.com/pytorch/pytorch/blob/c6bcfb152da93fc29e04c6dd32bfe5a311140711/torch/csrc/jit/passes/freeze_module.cpp#L542)). This could prevent some optimizations from being run.

repro:
```
import torch

x = torch.rand((3, 4)).to_sparse()
y = torch.rand((3, 4))
print(torch.equal(x, y))
```

It throws an `NotImplementedError`:

```
Traceback (most recent call last):
  File "/data/users/dberard/scripts/q.py", line 5, in <module>
    print(torch.equal(x, y))
NotImplementedError: Could not run 'aten::equal' with arguments from the 'SparseCPU' backend. This could be because the operator doesn't exist for this backend, or was omitted during the selective/custom build process (if using custom build). If you are a Facebook employee using PyTorch on mobile, please visit https://fburl.com/ptmfixes for possible resolutions. 'aten::equal' is only available for these backends: [CPU, QuantizedCPU, BackendSelect, Python, Named, Conjugate, Negative, ZeroTensor, ADInplaceOrView, AutogradOther, AutogradCPU, AutogradCUDA, AutogradXLA, AutogradLazy, AutogradXPU, AutogradMLC, AutogradHPU, AutogradNestedTensor, AutogradPrivateUse1, AutogradPrivateUse2, AutogradPrivateUse3, Tracer, UNKNOWN_TENSOR_TYPE_ID, Autocast, Batched, VmapMode, Functionalize].
...
```

cc @nikitaved @pearu @cpuhrsch @IvanYashchuk @eellison 

### Alternatives

_No response_

### Additional context

_No response_
Repository: flutter
Issue: Skeleton template should use Router instead of onGenerateRoute
Labels: framework,d: examples,f: routes,P2,team-framework,triaged-framework

We should add some app state logic and use Router instead of onGenerateRoute to showcase the best practices for deep linking.

cc @RedBrogdon
Repository: flutter
Issue: Skeleton template should have OS-level deep linking enabled
Labels: framework,P2,team-framework,triaged-framework

Specifically, we should make sure all of this is done by the skeleton template by default, with lots of comments documenting it:
   https://docs.flutter.dev/development/ui/navigation/deep-linking

cc @RedBrogdon
Repository: material-ui
Issue: Switch Component with unset capability 
Labels: new feature,component: switch

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Summary 💡

Add the ability to have a Switch with an unset value.  (maybe fancy select with 3 values only)
ON | UNSET | OFF
ENABLED | UNSET | DISABLED

### Examples 🌈

_No response_

### Motivation 🔦

Ability to unset a value of a Switch (without using a select with 3 values or a Slider)
Currently have an API that will accept "active" as false or true, but I want to be able to unset active to not pass the value in the API, and get back active and inactive profiles.
Repository: go
Issue: proposal: os/exec: better support for user namespaces
Labels: Proposal,Proposal-Hold

I have this scenario:

1. I want to start new process inside new user namespace (aka rootless container).
2. `unshare` syscall allows me to map `root` user only.
3. `podman` is able to map subids too by calling `newuidmap` and `newgidmap` (it is implemented here: https://github.com/containers/storage/tree/main/pkg/unshare/unshare_linux.go)
4. To make it work they implemented complex wrapper around `exec.Cmd` plus some C code to call `unshare` in the middle of the process, after setting full mapping set
5. For some reason calling `syscall.Unshare(syscall.CLONE_NEWUSER)` returns `invalid argument` error even if called from goroutine pinned to thread.

It would be nice to have more "goish" way to do it, like this:

```go
	cmd.SysProcAttr = &syscall.SysProcAttr{
		Cloneflags: syscall.CLONE_NEWUSER,
		UidMappings: []syscall.SysProcIDMap{
			{
				HostID:      1000,
				ContainerID: 0,
				Size:        1,
			},
			{
				HostID:      1,
				ContainerID: 100000,
				Size:        65536,
			},
		},
		GidMappings: []syscall.SysProcIDMap{
			{
				HostID:      1000,
				ContainerID: 0,
				Size:        1,
			},
			{
				HostID:      1,
				ContainerID: 100000,
				Size:        65536,
			},
		},
	}
```
Repository: rust
Issue: rustdoc: Add missing IDs to ID map
Labels: T-rustdoc,C-bug,A-rustdoc-ui

In `src/librustdoc/html/render/mod.rs`, the `print_entries` function generates `<h3 id="{}">...`. The id field comes from a parameter to `print_entries`, and needs to be unique with respect to other ids in the generated HTML. That means for each call site to print_entries, there is an id we need to add to init_id_map in src/librustdoc/html/markdown.rs.

Originally discussed at: [`structs` and friends](https://rust-lang.zulipchat.com/#narrow/stream/266220-rustdoc/topic/DOM.20id.20tidy.20check/near/264510234)
Repository: rust
Issue: rustdoc: "Namespace" user-written Markdown headings
Labels: T-rustdoc,C-enhancement,proposed-final-comment-period,disposition-merge,A-rustdoc-ui

Tracking issue for @jsha's idea mentioned [here](https://rust-lang.zulipchat.com/#narrow/stream/266220-rustdoc/topic/DOM.20id.20tidy.20check/near/264504935). What follows is @jsha's summary of the idea:

When markdown like `# Examples` is processed, it usually turns into something like `<a href="#examples" id="examples">`. This is useful so you can click on the heading and get a link that will take someone else to that precise part of the docs.

Since the markdown in rustdoc is user-generated, those anchor ids may conflict with Rustdoc's own anchor ids. They may also conflict with other markdown sections within the same doc page. For instance, see:

https://doc.rust-lang.org/nightly/std/string/struct.String.html#examples
https://doc.rust-lang.org/nightly/std/string/struct.String.html#examples-1
https://doc.rust-lang.org/nightly/std/string/struct.String.html#examples-2

Right now we disambiguate these ids by added a number at the end. However, it would be better to disambiguate them by namespacing. Specifically, each time we render markdown we should provide a "prefix", and all IDs in the generated HTML should start with that prefix. In general a convenient and sensible choice for this prefix would be the id of the immediately preceding heading. So the examples linked above might become `#top.examples`, `#method.new.examples`, and `#method.from_utf8.examples`.

This has three advantages:
 - It systematically removes most of the cases of id conflict.
 - It makes anchor links more meaningful when someone reads the URL.
 - It makes anchor links stable across revisions.

This is a 99% solution, not a 100% one. Users can author HTML directly in their markdown, for instance `<div id="foo">`. But we are okay with letting the conflicts happen in those rare cases.
Repository: rust
Issue: Typecheck error when using a equality-constrained GAT in a trait.
Labels: A-associated-items,GATs-triaged,S-bug-has-test,A-GATs

<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.
-->

In this code:

```rust
pub trait Functor {
    type With<T>;

    fn fmap<T, U>(this: Self::With<T>) -> Self::With<U>;
}

pub trait FunctorExt<T>: Sized {
    type Base: Functor<With<T> = Self>;

    fn fmap<U>(self) {
        let arg: <Self::Base as Functor>::With<T>;
        let ret: <Self::Base as Functor>::With<U>;

        arg = self;
        ret = <Self::Base as Functor>::fmap(arg);
    }
}
```

I would expect the code in `FunctorExt` to compile, as I'm constraining `Self::Base::With<T> = Self`, while `Self::Base::With<U>` should just be whatever `With<T>` is without any extra constraints.

But I'm getting this compiler error:

```text
error[E0308]: mismatched types
  --> src/case3.rs:15:15
   |
7  | / pub trait FunctorExt<T>: Sized {
8  | |     type Base: Functor<With<T> = Self>;
9  | |
10 | |     fn fmap<U>(self) {
...  |
15 | |         ret = <Self::Base as Functor>::fmap(arg);
   | |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected associated type, found type parameter `Self`
16 | |     }
17 | | }
   | |_- this type parameter
   |
   = note: expected associated type `<<Self as FunctorExt<T>>::Base as Functor>::With<U>`
               found type parameter `Self`
   = note: you might be missing a type parameter or trait bound

For more information about this error, try `rustc --explain E0308`.
error: could not compile `hkt` due to previous error
```

It seems to me as if the `Base: Functor<With<T> = Self>;` constraint causes rustc to think that _any_ `With<X>` should be the same type as `Self`, rather than just the one `With<T>` for the specific `T` in scope.

### Meta
<!--
If you're using the stable version of the compiler, you should also check if the
bug also exists in the beta or nightly versions.
-->

`rustc --version --verbose`:
```
rustc 1.58.0-nightly (495322d77 2021-11-08)
binary: rustc
commit-hash: 495322d776fd6f679cd8cd4ca02b8fa834da654b
commit-date: 2021-11-08
host: x86_64-unknown-linux-gnu
release: 1.58.0-nightly
LLVM version: 13.0.0
```
Repository: TypeScript
Issue: JSDoc type annotations on module.exports assignments not type checked
Labels: Suggestion,Domain: JSDoc,Experience Enhancement

<!--
  Please fill in each section completely. Thank you!
-->

## 🔍 Search Terms

```
jsdoc module.exports 
```

## ✅ Viability Checklist

<!--
   Suggestions that don't meet all these criteria are very, very unlikely to be accepted.
   We always recommend reviewing the TypeScript design goals before investing time writing
   a proposal for ideas outside the scope of the project.
-->
My suggestion meets these guidelines:

* [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [x] This wouldn't change the runtime behavior of existing JavaScript code
* [x] This could be implemented without emitting different JS based on the types of the expressions
* [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).


## ⭐ Suggestion

Adding a `@type` JSDoc annotation to `module.exports` should type check like it does in other contexts.

## 📃 Motivating Example

Currently, given the following `blah/some-type.ts`:

```typescript
export default interface SomeType {
  name: string,
  age: number
}
```

...this doesn't type check:

```javascript
/** @type {import('./blah/some-type').default} */
module.exports = {
  name: 0,
  age: 'forty-three'
};
```

...but this does, with some extra steps:

```javascript
/** @type {import('./blah/some-type').default} */
const obj = {
  name: 0,
  age: 'forty-three'
};

module.exports = obj;
```

This is similar to https://github.com/microsoft/TypeScript/issues/27327, but a simple thing like adding a `@type {string}` to `module.exports` _does_ work. An imported type does not.

## 💻 Use Cases

We have a CommonJS JS config file that we'd like to enable users to type check. The _expected_ way you'd think you'd add a type annotation to it doesn't work.
Repository: storybook
Issue: Error migrating from 6.3 to 6.4 or 6.5: undefined is not an object (evaluating 'element.options[VALUES]')
Labels: bug,vue

**Describe the bug**

Migrating from Storybook 6.3 to 6.4 or to 6.5-alpha throws `undefined is not an object (evaluating 'element.options[VALUES]')`

```
renderToDOM@http://localhost:3000/vendors~main.8721dd71.iframe.bundle.js:2:534629
tryCatch@http://localhost:3000/vendors~main.8721dd71.iframe.bundle.js:2:2154765
invoke@http://localhost:3000/vendors~main.8721dd71.iframe.bundle.js:2:2154392
asyncGeneratorStep@http://localhost:3000/vendors~main.8721dd71.iframe.bundle.js:2:405790
_next@http://localhost:3000/vendors~main.8721dd71.iframe.bundle.js:2:406110
@http://localhost:3000/vendors~main.8721dd71.iframe.bundle.js:2:406247
Promise@[native code]
@http://localhost:3000/vendors~main.8721dd71.iframe.bundle.js:2:406015
tryCatch@http://localhost:3000/vendors~main.8721dd71.iframe.bundle.js:2:2154765
invoke@http://localhost:3000/vendors~main.8721dd71.iframe.bundle.js:2:2154392
asyncGeneratorStep@http://localhost:3000/vendors~main.8721dd71.iframe.bundle.js:2:405790
_next@http://localhost:3000/vendors~main.8721dd71.iframe.bundle.js:2:406110
promiseReactionJob@[native code]
```

**System**
```
System:
    OS: macOS 11.6.1
    CPU: (8) x64 Intel(R) Core(TM) i7-8569U CPU @ 2.80GHz
  Binaries:
    Node: 12.18.3 - ~/.nodenv/versions/12.18.3/bin/node
    Yarn: 1.22.10 - ~/.nodenv/versions/12.18.3/bin/yarn
    npm: 6.14.6 - ~/.nodenv/versions/12.18.3/bin/npm
  Browsers:
    Safari: 15.1
  npmPackages:
    @storybook/addon-a11y: ^6.5.0-alpha.3 => 6.5.0-alpha.3 
    @storybook/addon-actions: ^6.5.0-alpha.3 => 6.5.0-alpha.3 
    @storybook/addon-docs: ^6.5.0-alpha.3 => 6.5.0-alpha.3 
    @storybook/addon-essentials: ^6.5.0-alpha.3 => 6.5.0-alpha.3 
    @storybook/addon-events: ^6.2.9 => 6.2.9 
    @storybook/addon-interactions: ^6.5.0-alpha.3 => 6.5.0-alpha.3 
    @storybook/addon-jest: ^6.4.9 => 6.4.9 
    @storybook/addon-links: ^6.5.0-alpha.3 => 6.5.0-alpha.3 
    @storybook/addon-queryparams: ^6.2.9 => 6.2.9 
    @storybook/addons: ^6.5.0-alpha.3 => 6.5.0-alpha.3 
    @storybook/jest: 0.0.5 => 0.0.5 
    @storybook/testing-library: 0.0.7 => 0.0.7 
    @storybook/vue: ^6.5.0-alpha.3 => 6.5.0-alpha.3 
```

**Additional context**
`./storybook/main.js`
```javascript
module.exports = {
  addons: [
    '@luigiminardim/storybook-addon-globals-controls',
    {
      name: '@storybook/addon-essentials',
      options: { backgrounds: false }
    },
    '@storybook/addon-events',
    'storybook-fixtures',
    '@storybook/addon-interactions',
    '@storybook/addon-a11y',
    '@storybook/addon-jest',
    '@storybook/addon-links',
    '@storybook/addon-queryparams',
    'storybook-addon-designs'
  ],
  core: {
    builder: 'webpack4',
  },
  features: {
    babelModeV7: false,
    interactionsDebugger: false,
    storyStoreV7: true
  },
  framework: '@storybook/vue',
  stories: ['../src/components/**/*.stories.@(js|mdx)']
}
```