sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: Make the Dart VM startup tag be configurable. It is hardcoded to "AppStartup" right now.
Labels: team,framework,engine,P3,team-engine,triaged-engine

This can be enforced when https://github.com/flutter/engine/pull/27646 rolls to fw.
Repository: pytorch
Issue: [FR] Support for non-Parameter, non-Buffer objects in state_dict
Labels: module: nn,triaged,enhancement

## 🚀 Feature
Support adding arbitrary things to a module's `state_dict`. Currently, serialization of a module is tied to what is stored in its `state_dict`, and there is no public API for storing arbitrary things in the `state_dict`. This limits control over what is serialized.

### Use Cases
1. Serialize arbitrary objects within a module (flags, integers, etc.)
    * See #51471
2. Define "buffers" that are serialized but don't take part in device moves / floating pointing dtype conversions (e.g. `to()`, `cuda()`, etc.)
    * No current way to do this; serialization can be turned off for buffers by marking them as non-persistent, but they cannot be left out of device moves / floating point dtype conversions
    * Equivalent to allowing non-Parameter, non-buffer Tensors in `state_dict`
3. Support custom Tensor types within modules (e.g. `DiagTensor`, `ShardedTensor`, etc.)
    * Part of the solution is to allow custom Tensor types to be serialized
    * Full solution would allow custom Tensor types to act as Parameters for use in optimization (likely a separate discussion)

### Possible solutions
One possible solution is to add `state_dict` hooks to the public API. Currently we have `_register_state_dict_hook()` / `_register_load_state_dict_pre_hook()`, which are limited since they do not receive the module instance itself. More direct mechanisms should be considered as well.

cc @albanD @mruberry @jbschlosser
Repository: storybook
Issue: Storybook with Web Components breaks if you ever install webpack and will never run again after removing it
Labels: question / support,configuration babel / webpack,web-components

**Describe the bug**
In a freshly created directory, if you `npm init` and then `npx sb init`, you can get Storybook to run. As soon as you `npm i -D webpack` and run `npm run storybook`, storybook no longer works, even if you remove `webpack` from your package.json and remove all node_modules and reinstall. 

**To Reproduce**
Run the following commands:

```
mkdir project
cd project
npm init
npx sb init
npm i -D lit-html
npm run storybook
// Choose the configuration for Web Components
// After installing, storybook runs fine
npm i -D webpack
npm run storybook
// Errors galore
vim package.json
// Remove webpack from your devDependencies
rm -rf node_modules
npm i
npm run storybook
// Errors galore and you can't ever run storybook again.
```

**System**
```
Environment Info:

  System:
    OS: Linux 5.4 Ubuntu 20.04.2 LTS (Focal Fossa)
    CPU: (8) x64 Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
  Binaries:
    Node: 12.16.2 - ~/.nvm/versions/node/v12.16.2/bin/node
    npm: 6.14.4 - ~/.nvm/versions/node/v12.16.2/bin/npm
  Browsers:
    Chrome: 91.0.4472.77
    Firefox: 90.0
  npmPackages:
    @storybook/addon-actions: ^6.3.5 => 6.3.5 
    @storybook/addon-essentials: ^6.3.5 => 6.3.5 
    @storybook/addon-links: ^6.3.5 => 6.3.5 
    @storybook/web-components: ^6.3.5 => 6.3.5 
```

**Additional context**
After installing `webpack` and even removing it, you can no longer run `npm run storybook` as there will always be lots of errors.

I also tried running `npx webpack config` which built the file and that still results in the same errors.
Repository: electron
Issue: [Feature Request]: Integrate the OS specific 'Certificate' dialog into Electron's dialog module
Labels: enhancement :sparkles:

### 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.

### Problem Description

### Use case 1: Display details of self-signed or invalid server certificates.

Our client connects to a backend API which identifies itself with server host certificates and optionally also self-signed certificates.  
In case of receiving an invalid or a self-signed certificate (not yet stored in the trusted root certificate store), the client is triggered via the `app.on('certificate-error', ..)` event.  
Our client now must show a warning view about the unsecure connection (similar to the views which the browser do present in the same situation).  
In order to jugde the situation, the user needs to view the details of the certificate, so that he can do either of:  
- Accept the risk and proceed
- Deny (closes the application)
- Import the certificate (via dialog.showCertificateTrustDialog(...))

### Use case 2: Display details of client certificates in case of mutual authentication

In case of mutual authentication, the `app.on('select-client-certificate', ..)`  reports the possible client certificates the client might use for authentication.  
Clients (the various browsers) typically do show these certificates in a small list. The list shows basics such as the subject name and the issuer of the certificate. Still one might need to see the details of a certificate in order to choose one.




### Proposed Solution

Integration of the 'Certificate dialog of the various OS's into the dialog module: 
`dialog.showCertificate(certificate: Certificate)`  
`dialog.showCertificateSync(certificate: Certificate)`  

Certificate dialog on Win10:

![image](https://user-images.githubusercontent.com/87860728/126829515-8a28f908-cbaf-48bf-a85f-825871bc2acd.png)




### Alternatives Considered

None.  
I believe, that possible solutions with NodeJS addon's are workarounds.  And I did not find any existing add-on supporting the need.  
However, I am new to these two frameworks. 
Any suggestion or alternative is appreciated highly.

### Additional Information

None
Repository: three.js
Issue: Material.fromMaterial
Labels: Enhancement

**Is your feature request related to a problem? Please describe.**

Having mobile / XR development in mind (ie. cases when hardware tends to not be the most powerful), it is sometimes useful to convert `MeshStandardMaterial` to something comparable, but a bit lighter (ex. `MeshLambertMaterial`)

Doing it this way:

```js
const cheaperMaterial = new MeshPhongMaterial({ ...originalStandardMaterial });
```

may likely lead to [100k logs per second](https://github.com/mrdoob/three.js/issues/19822), since some properties of complex materials are not there in phong/lambert.

**Describe the solution you'd like**

On the `Material` prototype, we may consider adding a `Material.fromMaterial(m)` helper (similar to [Array.from](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from)) - that converts one material to another, taking into consideration props / optimisation / unnecessary texture disposal (ex. roughness maps when going from PBR materials.)

Having it on the prototype as a static method would allow to easily create material alternatives:

```js
const cheaperMaterial = MeshPhongMaterial.fromMaterial(originalPBRMaterial);
```

**Describe alternatives you've considered**

Usually you'd just do it by hand ([example](https://github.com/mjurczyk/three-default-cube/blob/develop/utils/materials.js#L3)) and hope the materials in three don't change over time and you didn't forget to dispose / remove something that should have been disposed / removed. Since materials and their props are strictly bound to three, it may be nice to have an util built-in three to convert between material types.
Repository: flutter
Issue: Building Flutter Engine with coverage enabled fails on Mac
Labels: engine,P2,team-engine,triaged-engine

Steps to reproduce:

```
./flutter/tools/gn --no-lto --unoptimized --coverage
ninja -C out/host_debug_unopt
```

...

```
FAILED: client_wrapper_unittests
../../buildtools/mac-x64/clang/bin/clang++ -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -mmacosx-version-min=10.11.0 -arch x86_64 -nostdlib++ -stdlib=libc++ -Wl,-search_paths_first -L. -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/../../.. -Wl,-pie -fprofile-instr-generate -fcoverage-mapping -Xlinker -rpath -Xlinker @executable_path/Frameworks -o ./client_wrapper_unittests -Wl,-filelist,./client_wrapper_unittests.rsp  -ldl -lpthread -framework Foundation
Undefined symbols for architecture x86_64:
  "_lprofGetHostName", referenced from:
      _parseAndSetFilename in libclang_rt.profile_osx.a(InstrProfilingFile.c.o)
ld: symbol(s) not found for architecture x86_64
```

cc @chinmaygarde
Repository: TypeScript
Issue: Quick fix to declare overridden method on base class
Labels: Suggestion,Awaiting More Feedback

From https://github.com/microsoft/vscode/issues/129130#issuecomment-885409056

# Suggestion

Add a new quick fix on a subclass that tried to override a non-existent method to add that method to the base class.

For example, starting with:

```ts
class Base {

}

class Sub extends Base {
	override foo() {}
}
```

The quick fix would generate:

```ts
class Base {
	foo() {
		throw new Error("Not implemented");
	}
}

class Sub extends Base {
	override foo() {}
}
```

## 🔍 Search Terms
- Override 
- quick fix
-  code action
Repository: angular
Issue: Rearchitect Router so it's more modular
Labels: feature,refactoring,area: router,feature: under consideration

### Which @angular/* package(s) are relevant/releated to the feature request?

router

### Description

The Angular router's current architecture is problematic for a couple big reasons:

* It is not extensible. Developers cannot easily extend or change the Router's functionality to support features that would be useful to their applications. Instead, these features have to be built in to the core Router code and exposed through some endpoint (i.e. `RouteReuseStrategy`, some option on `ExtraOptions` which is used as an switch in the internal code, etc.)
* It is not tree shakeable. Due to its non-modular nature, almost all features (lazy loading, guards, resolvers) are generally baked in to the Router's internals unless explicitly configurable through a `Strategy` that can provide a `no-op` implementation. Simple applications that do not use these features still incur the bundle size cost.


### Proposed solution

Because of the above two problems, we're often quite limited on what features we can implement. The router should be rearchitected with the following goals in mind:

* Tree-shakeability
* More configurable features, such as
    * #24187
    * #40577
    * #10556 / #24956
    * #16416
    * Configurable browser history management, for example
        * Ability to use the upcoming [App History API](https://github.com/WICG/app-history)
        * #42915
        * Ability to fix issues like #13586 without having to wait for the baked-in fix
* General ability to use @angular/router to build custom routing solutions, which will likely require exposing more of the router internals such as:
  *  #38951
  * #25630 / #24069

### Alternatives considered

N/A
Repository: rust
Issue: Tracking Issue for `#[track_caller]` on closures
Labels: A-closures,T-lang,C-tracking-issue,F-track_caller,S-tracking-ready-to-stabilize

<!--
NOTE: For library features, please use the "Library Tracking Issue" template instead.

Thank you for creating a tracking issue! 📜 Tracking issues are for tracking a
feature from implementation to stabilisation. Make sure to include the relevant
RFC for the feature if it has one. Otherwise provide a short summary of the
feature and link any relevant PRs or issues, and remove any sections that are
not relevant to the feature.

Remember to add team labels to the tracking issue.
For a language team feature, this would e.g., be `T-lang`.
Such a feature should also be labeled with e.g., `F-my_feature`.
This label is used to associate issues (e.g., bugs and design questions) to the feature.
-->

This is a tracking issue for the RFC "XXX" (rust-lang/rfcs#NNN).
The feature gate for the issue is `#![feature(closure_track_caller)]`.

### About tracking issues

Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however *not* meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.

### Steps
<!--
Include each step required to complete the feature. Typically this is a PR
implementing a feature, followed by a PR that stabilises the feature. However
for larger features an implementation could be broken up into multiple PRs.
-->

- [x] Implement the RFC
- [ ] Adjust documentation ([see instructions on rustc-dev-guide][doc-guide])
- [ ] Stabilization PR ([see instructions on rustc-dev-guide][stabilization-guide])

[stabilization-guide]: https://rustc-dev-guide.rust-lang.org/stabilization_guide.html#stabilization-pr
[doc-guide]: https://rustc-dev-guide.rust-lang.org/stabilization_guide.html#documentation-prs

### Unresolved Questions
<!--
Include any open questions that need to be answered before the feature can be
stabilised.
-->

XXX --- list all the "unresolved questions" found in the RFC to ensure they are
not forgotten

* Should `async {}`, etc support track caller on their lowered closures?

### Implementation history
* Initial implementation in https://github.com/rust-lang/rust/pull/87064
Repository: pytorch
Issue: Dedupe code in functional optim classes
Labels: module: bootcamp,triaged,better-engineering,pt_distributed_rampup,module: ddp

https://github.com/pytorch/pytorch/pull/61678 added a method `step_param` to `_FunctionalOptimizer` to do per-parameter gradient step, but the class also has a general `step` method that operates on the entire set of parameters.

Contingent on efficiency, we should refactor the latter to use `step_param` to reduce code duplication. This applies for future `step_param` implementations in other functional optimizers as well.
Repository: PowerToys
Issue: Feature request: Fancyzones personalize colour, fonts, zone nicknames for distinguishability
Labels: Idea-Enhancement,Product-FancyZones

Hi, I'm using the fancy zone feature and it's been great. My only problem is that I have a 2 layer layout, and it can take a while to get the right zone due to my cluttered layout. If possible it would be great if I can nickname each zone (e.g. 1,2,a,b,left,right,centre etc); colour each zone differently; use different fonts to label each zone, so that they are easier to distinguish.
thanks!
Repository: flutter
Issue: Further improvements to the fast reassemble codepath
Labels: framework,P3,team-framework,triaged-framework

Currently the fastReassemble codepath involves setting some global state and having that influence how various layers perform the reassemble step. If I understand the code correctly, the goal is to just rebuild specific classes of widgets. It seems like we should be able to do that by having more fine-grained APIs at the lower levels to trigger just the bits of hot reload that we want (e.g. resetting the error count, but not redoing layout), and then we can avoid having any of the global state.

see https://github.com/flutter/flutter/pull/84363

cc @jonahwilliams
Repository: godot
Issue: Mesh Faces are out of order when Transparency is on
Labels: bug,topic:rendering,topic:3d

### Godot version

3.3.2

### System information

MacOS 11.3.1, M1, GLES3

### Issue description

When the “transparent” flag is turned on in a material and “Cull Mode” is disabled, the meshes faces are out of order.

<img width="909" alt="Screen Shot 2021-07-23 at 9 14 09 PM" src="https://user-images.githubusercontent.com/87885710/126855287-67006e29-31d7-41da-bb82-2cd144be5410.png">


### Steps to reproduce

Create a mesh and a material, add a texture and set the “Transparent” flag to true, also you will need to set “Cull Mode” to disable.

### Minimal reproduction project

[BugReport.zip](https://github.com/godotengine/godot/files/6871809/BugReport.zip)
Repository: pytorch
Issue: Tensor subclassing does not support bool input
Labels: triaged,module: boolean tensor,module: tensor creation

As title

# Code
```python
class xtensor(torch.Tensor):
    pass

# This is fine
a = torch.randn(3,3)
xtensor(a)

# This raises exception
x = (a == a)
xtensor(x)
```

The exception looks like
```python
TypeError: expected TensorOptions(dtype=float, device=cpu, layout=Strided, requires_grad=false (default), pinned_memory=false (default), memory_format=(nullopt)) (got TensorOptions(dtype=bool, device=cpu, layout=Strided, requires_grad=false (default), pinned_memory=false (default), memory_format=(nullopt)))
```

cc @gchanan @mruberry
Repository: youtube-dl
Issue: How to make "--write-pages" dump files with different names?
Labels: question

<!--

######################################################################
  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 youtube-dl:
- Look through the README (http://yt-dl.org/readme) and FAQ (http://yt-dl.org/faq) for similar questions
- Search the bugtracker for similar questions: http://yt-dl.org/search-issues
- Finally, put x into all relevant boxes (like this [x])
-->

- [x] I'm asking a question
- [x] I've looked through the README and FAQ for similar questions
- [x] I've searched the bugtracker for similar questions including closed ones


## Question

<!--
Ask your question in an arbitrary form. Please make sure it's worded well enough to be understood, see https://github.com/ytdl-org/youtube-dl#is-the-description-of-the-issue-itself-sufficient.
-->

I want to download the intermediary pages to file using the command `youtube-dl.exe https://www.youtube.com/user/CHANNEL/videos --skip-download --write-pages`. It does work, but if a channel has more than 1 page it will save all pages in the same file, overwriting the previous page. I also tried the python package, but I couldn't find the options to write the pages there. An example of the output I am getting when I run the command above is:

```
[youtube:tab] CHANNEL_NAME: Downloading webpage
[youtube:tab] Saving request to CHANNEL_NAME_https_-_www.youtube.com_user_CHANNEL_NAME_videos.dump
[download] Downloading playlist: CHANNEL_NAME - Videos
[youtube:tab] Downloading page 1
[youtube:tab] Saving request to None_https_-_www.youtube.com_youtubei_v1_browsekey=RANDOM_STRING.dump
[youtube:tab] Downloading page 2
[youtube:tab] Saving request to None_https_-_www.youtube.com_youtubei_v1_browsekey=RANDOM_STRING.dump
[youtube:tab] Downloading page 3
[youtube:tab] Saving request to None_https_-_www.youtube.com_youtubei_v1_browsekey=RANDOM_STRING.dump
```
I've changed the browsekey to `RANDOM_STRING` for simplicity, but all files have the same name. It seems they are being saved as expected, but as soon as it gets to the next page, it overwrites the previous one.

Is there a way to keep all of these pages?
Repository: godot
Issue: Toggling method list alphabetical sorting unhides theme editor
Labels: bug,topic:editor

### Godot version

3.3.2, 3.4.beta1, 3.x (6d58ea6), 4.0.dev (9ac27b5)

### System information

macOS 11.4

### Issue description

Clicking "Toggle alphabetical sorting of the method list" button in script editor unhides the theme editor.

### Steps to reproduce

1. Create a User Interface scene.
2. Create a script for the root node.
3. Create a new Theme for the root node and click to open the theme editor.
4. Switch to the script editor by clicking the top buttons, so that you get both theme editor and script editor.
5. Click "Theme" on the bottom bar to hide the theme editor.
6. Click "Toggle alphabetical sorting of the method list".
7. Wait for a few seconds, the theme editor pops up.

### Minimal reproduction project

_No response_
Repository: go
Issue: x/net/icmp: PacketConn.ReadFrom on an unprivileged PacketConn on darwin returns the entire IP packet
Labels: NeedsInvestigation

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.16.6 openbsd/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="auto"
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/stuart/.cache/go-build"
GOENV="/home/stuart/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="openbsd"
GOINSECURE=""
GOMODCACHE="/home/stuart/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="openbsd"
GOPATH="/home/stuart/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/home/stuart/.goroot"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/stuart/.goroot/pkg/tool/openbsd_amd64"
GOVCS=""
GOVERSION="go1.16.6"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="0"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build1897681582=/tmp/go-build -gno-record-gcc-switches"
</pre></details>

### What did you do?
https://play.golang.org/p/oNQqxusHBf1

The program sends a ping first with a privileged socket and then with an unprivileged socket.


### What did you expect to see?
I expect to see the returned ICMP payloads to be fairly similar.  On Linux, they are.
Linux:
```
2021/07/24 10:43:11 [udp4] Read 8 bytes: 0000ba9700274541
2021/07/24 10:43:11 [ip4:icmp] Read 8 bytes: 000000d37f967f96
```



### What did you see instead?
The read from the unprivileged socket on Darwin included the IP header before the ICMP header.
Darwin:
```
2021/07/24 12:43:43 [udp4] Read 28 bytes: 45600800000000007001269d080808080a0209d30000fcff01800180
2021/07/24 12:43:43 [ip4:icmp] Read 8 bytes: 0000c75e9c509c50
```

This seems due to the check in https://cs.opensource.google/go/x/net/+/853a4619:icmp/endpoint.go;l=54 which (apparently) doesn't apply to unprivileged sockets.
Repository: flutter
Issue: [in_app_purchase] Support introductory price
Labels: c: new feature,p: in_app_purchase,package,c: proposal,team-ecosystem,P3,triaged-ecosystem

## Use case
Both Google Play and App Store have support for introductory price.
It would be great to get introductory price values in ProductDetails object to allow showing this offer in the UI of the app.