sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: go
Issue: mime: FormatMediaType does not quote filename
Labels: NeedsInvestigation

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.16.4 linux/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="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/user/.cache/go-build"
GOENV="/home/user/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/user/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/user"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/home/user/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/user/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.16"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/user/src/golang/go/src/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 -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build4138403793=/tmp/go-build -gno-record-gcc-switches"
</pre></details>

### What did you do?

https://play.golang.org/p/yEHPZvGjTbN

Based on rfc2616 section 19.5.1 (https://datatracker.ietf.org/doc/html/rfc2616#section-19.5.1):

> content-disposition = "Content-Disposition" ":"
disposition-type *( ";" disposition-parm )
        disposition-type = "attachment" | disp-extension-token
        disposition-parm = filename-parm | disp-extension-parm
        filename-parm = "filename" "=" quoted-string
        disp-extension-token = token
        disp-extension-parm = token "=" ( token | quoted-string )
An example is
        Content-Disposition: attachment; filename="fname.ext"


https://datatracker.ietf.org/doc/html/rfc2616#section-19.5.1

### What did you expect to see?
```
attachment; filename="file.txt"
```
### What did you see instead?
```
attachment; filename=file.txt
```
Repository: angular
Issue: Equivalent to react controlled-component
Labels: feature,area: forms,core: change detection,feature: under consideration

# Feature Request
In React, the state be the “single source of truth” in [controlled components](https://reactjs.org/docs/forms.html#controlled-components)

but there is no equivalent feature in angular


### Relevant Package
`@angular/form`

### Description

DEMO 1:

- in React

   https://stackblitz.com/edit/react-ts-kyqxmj?file=index.tsx

   type something in the `input`, and the input value won't change, the state be the single source of truth

- in Angular

   https://stackblitz.com/edit/angular-ivy-sazmxc?file=src%2Fapp%2Fapp.component.ts

   type something in the `input`, and the input will change, the state won't be the single source of truth


DEMO 2:

- in React

  `click` -> `response` -> `true`

  the view is always keeping the same as the state

  https://stackblitz.com/edit/react-ts-zaolxq?file=index.tsx


- in Angular

  `click` -> `true(the checkbox's inner state has changed and not matched with the outer state)` -> `server response` -> `update the inner state to false`

  the view is not follow the state when you click it.

  https://stackblitz.com/edit/angular-ivy-99wkuf?file=src%2Fapp%2Fapp.component.ts





### Describe the solution you'd like

support changing the form components to use controlled mode or not controlled mode

adding an option to ngModelOptions to support this feature

such as `[ngModelOptions]={controlled: true}`

ref #5184
Repository: flutter
Issue: Datatable : Sort on multiple colmuns at the same time
Labels: c: new feature,framework,f: material design,c: proposal,P3,team-design,triaged-design

It could be great to be able to sort on multiple column at the same time like with Vuetify : https://vuetifyjs.com/en/components/data-tables/#multi-sort
Repository: go
Issue: x/pkgsite: go-source meta tag information is not automatically updated if it changes for an existing module version
Labels: NeedsInvestigation,pkgsite

<!--
Please answer these questions before submitting your issue. Thanks!
-->
 
### What is the URL of the page with the issue?
 
 https://pkg.go.dev/golang.design/x/clipboard
 
### What is your user agent?
 
<!-- 
You can find your user agent here:
https://www.whatismybrowser.com/detect/what-is-my-user-agent
-->
 
 Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36
 
### Screenshot
 
<!--
Please paste a screenshot of the page.
-->
 
![image](https://user-images.githubusercontent.com/5498964/118489712-72081900-b71d-11eb-88d0-a8dc146509ba.png) 
 
### What did you do?
 
<!--
If possible, provide a recipe for reproducing the error.
-->
 
The vanity URL returned an incorrect address previously, the newly released version cannot be updated to the sum db and the document page failed to synchronize with a newly released version (0.4.6).
 
### What did you expect to see?
 
All released versions are shown and can be fetched via go get
 
### What did you see instead?

v0.4.5 and v0.4.6 are not showing on the pkgsite, and go get failed on 0.4.5
Repository: godot
Issue: Invisible Meshlib/Tilemap Models
Labels: bug,topic:rendering,topic:3d

**Godot version:**
3.3 Stable "Latest"

**OS/device including version:**
GTX 1660
GLES3


**Issue description:**
While working on my game I have noticed that some random tiles like floor/walls/deco were missing from my map
then it has turned out that they were just invisible for some odd reasons and had to place something on them or next to them to update their visibility "Something like in Minecraft"

Example in link below
https://i.imgur.com/hckWSTn.gifv


**Steps to reproduce:**
This occurs randomly when loading project/map Idk which one exactly

**Minimal reproduction project:**
Any project will work with it as long as its using Tilemap
Repository: terminal
Issue: Tabs display the close tab shortcut as Ctrl+F4, even though that's not bound by default. They should display what the actual keybinding is instead.
Labels: Help Wanted,Issue-Bug,Area-UserInterface,Product-Terminal,Priority-3

_maintainer note: blocked on upstream https://github.com/microsoft/microsoft-ui-xaml/issues/4930_

----

### Windows Terminal version (or Windows build number)

windows terminal version: 1.7.1033.0

### Other Software

_No response_

### Steps to reproduce

1. open terminal
2. hover the mouse over the cross 

there is no reference to the ctrl + f4 key in settings.json

### Expected Behavior


ctrl+shift+w everywhere

### Actual Behavior

![изображение](https://user-images.githubusercontent.com/59787538/118495712-a85d8c80-b74d-11eb-92c4-a63169160059.png)
Repository: pytorch
Issue: torch.cuda.amp.autocast nan values when model.eval()
Labels: needs reproduction,triaged,module: amp (automated mixed precision)

Hi there,

I seem to have an issue with training on mixed precision with torch.cuda.amp.autocast, during training loop i.e. when net.train() the network outputs is valid, however, changing the mode to net.eval() causes some of the data samples to produce NaN values when ran through net.forward(). This issue is not present on every epoch, however, it is present for most of the training. I checked if there is an issue with the datasets by running validation/test loaders during training and by running train loader during evaluation. It seems that the issue is only present when the model is set to eval(), during train() everything seems to be absolutely fine. 

Greatly appreciate any advice on how to solve this issue and what can be causing it.

Cheers

cc @mcarilli @ptrblck
Repository: TypeScript
Issue: keyof on generics arbitrarily returns `string` rather than the inferred values depending on the generic
Labels: Bug

# Bug Report

### 🔎 Search Terms

keyof generic string

### 🕗 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 it

### ⏯ Playground Link

[Playground link with relevant code](https://www.typescriptlang.org/play?ts=4.3.0-beta#code/KYDwDg9gTgLgBDAnmYcCSNgFs4F44DeAUHHAIZQDmAzgPwBccASsAMbQAmAPNTFAJYA7SgBo4vAcIB8AbiIBfOUVCRYCZKgBCZasADKKVnmZtOPPkNGEScfpizVGGbAG0AunPmyiy8NHgAZgCugqww-BCCcJTAgsACrABiIWERglwGbHCgmIIc1HDaupmsUgAU1IaMJQCUjADWwIgQAXAl1qRQwDBBUFEE8uQFZIKInj7sgrxwAIJzc4wABtQQWMAA0k2LxjFxCcmh4ZFlxKQra5uIjKektvaOcC43t+RUDwMiNqTyYs+3FDRrl8XnBBGQ1ksAhAIItPiC4D9gfI3HCEZ95DU5EA)

### 💻 Code

<!-- Please post the relevant code sample here as well-->
```ts
export type Item = {
  args?: Record<string, string>;
};

export type BaseSpec = Record<string, {
  items: Item[];
}>;

export function genericFunction<Spec extends BaseSpec>(spec: Spec): keyof Spec {
  return {} as any;
}

const AAAAA: `someKey` = genericFunction({
  someKey: {
    items: [{
      args: {},
    }, {
      args: {
        name: `foo`,
      },
    }],
  },
});
```

### 🙁 Actual behavior

```
Type 'string' is not assignable to type '"someKey"'.
```

### 🙂 Expected behavior

No errors

### 💻 Additional Information

Weirdly, it seems to work if all `args` objects that are specified have **exactly** the same content. Removing an `arg` object seems to work, and it works as well if we add `name: "foo"` into the first `arg` object (or remove it from the second one).
Repository: pytorch
Issue: In Android, the memory used by the tensor or model cannot be recycled. Is there any way to solve it?
Labels: triaged,module: android,oncall: mobile

## I hope platform can provide an api to recycle  recycle the memory of a model or tensor in Android


On Android, when I apply the model to images of different sizes, I need to create a new tensor each time, and then pass the tensor to the forward method (the tutorial provides a way to reuse tensor memory, but It seems that it can only be used on pictures of the same size). But every time a new call is made, the native memory used by the last tensor or model in Android will not be recycled. When called multiple times, the memory will keep increasing. This will cause serious problems in actual use and may cause the APP to crash. Just like the picture below, this is the official  [Android  Object detection demo.](https://github.com/pytorch/android-demo-app/tree/master/ObjectDetection) ，device is xiaomi11。When I click detect multiple times, the native memory occupied is Keep increasing，it was not recycled.
![Screenshot_2021-05-17-23-08-56-759_org pytorch de](https://user-images.githubusercontent.com/13100498/118511874-e619df80-b764-11eb-9c99-6c12d067a277.jpg)
This is the demo's  interface。Detection Btn in it。
![QQ截图20210517213608](https://user-images.githubusercontent.com/13100498/118511099-2c227380-b764-11eb-933d-ddb69b7edd2b.png)
This is the memory Occupancy In app cpature  By Android Studio。The dark blue part is the native memory mainly occupied by the model or tensor。You can see the jump in memory usage, because I clicked the detect button many times to call the detection method for same picture.

I did not find an API for memory recovery in pytorch_android and pytorch_android_torchvision. Is there an API or method that I haven't found that can realize memory recovery? Or you can provide such an API in the future. Thanks！
Repository: pytorch
Issue: [DOC] Add info about differentiability of functions
Labels: module: docs,triaged,enhancement

## 📚 Documentation

In order to know if a pytorch function e.g. `torch.mode` (https://pytorch.org/docs/stable/generated/torch.mode.html) can be integrated into the graph of a network it would be really helpful if there would be an indicator about differentiablitly.

Open for discussion of this idea :-) 

cc @brianjo @mruberry
Repository: pytorch
Issue: fx OpInfo tests don't work with nn.functional test names
Labels: triaged,module: fx

## 🐛 Bug

@Chillee @jamesr66a 

see: https://github.com/pytorch/pytorch/blob/master/test/test_fx.py#L2605

cc @ezyang
Repository: flutter
Issue: Additional Dart SDK -> Engine roll presubmit checks
Labels: team,engine,dependency: dart,P3,team-engine,triaged-engine

A manual roll of the Dart SDK into the Engine should be from the Dart SDK dev branch, and not the master branch. When there is a roll from the master branch by mistake, the subsequent roll from the dev branch can look a bit odd: https://github.com/flutter/engine/pull/26192.

This is an issue to track adding additional pre-submit checks to the Dart SDK -> Engine roll. In particular, to avoid the above issue, we could check that old Dart SDK hash is an ancestor of the new Dart SDK hash.

FYI @a-siva
Repository: go
Issue: x/tools/cmd/stringer: error message is less clear than that of go build when there's a build error due to multiple package names in same directory
Labels: NeedsInvestigation,Tools

<!--
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 linux/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="/home/user/.cache/go-build"
GOENV="/home/user/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/user/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/user/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.16.4"
GCCGO="gccgo"
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 -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build3225948580=/tmp/go-build -gno-record-gcc-switches"



</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.
-->
Hi!
I was changing my project's structure. In my `enums` directory I have files with `//go:generate stringer` directives. At some point, I forgot to change package name in a file copied from somewhere else. I've tried to run `go generate` and and got stuck:
```console
stringer: no value for constant type2s1
file2.go:3: running "stringer": exit status 1
```

#### Example

there are two files in package, but with another `package` names
the `go build .` returns:
```console
found packages package1 (file1.go) and package2 (file2.go) in /home/user/test/
```

but `go generate` returns something strange:
```console
stringer: no value for constant type2s1
file2.go:3: running "stringer": exit status 1
```

<details><summary>file1.go</summary>

```golang
package package1

//go:generate stringer -linecomment -type type1

type type1 byte

const (
	type1s1 type1 = iota
	type1s2
)
```

</details>

<details><summary>file2.go</summary>

```golang
package package2

//go:generate stringer -linecomment -type type2

type type2 byte

const (
	type2s1 type2 = iota
	type2s2
)
```

</details> 

### What did you expect to see?

`go generate` should report understandable message when build errors found


### What did you see instead?
```console
stringer: no value for constant type2s1
file2.go:3: running "stringer": exit status 1

```
Repository: go
Issue: go/types,cmd/compile/internal/types2: shared type expressions are evaluated once per variable
Labels: NeedsDecision,FeatureRequest,compiler/runtime

If a VarDecl has an explicit type expression, it will get evaluated once for each declared variable. So if you have a VarDecl like `var x, y interface { M() }` you end up with two different `*types2.Interface` objects.

I ran into this because I wanted to map all `types2.Type` objects (that appeared in source) back to some syntactic element, so my initial approach was to just walk the AST looking for type expressions and then using `Info.Types[expr].Type` to get the `types2.Type` object and insert them into a `map[types2.Type]syntax.Expr` map.

However, this approach missed some types, because of VarDecls with multiple variables and an explicit type expression.

I don't think this is strictly a violation of the types2 API (you're supposed to use types2.Identical), but I think it would be nice and less surprising if there was a 1:1 correspondance.

I assume this also affects go/types.

/cc @griesemer @findleyr
Repository: material-ui
Issue: Remove space before asterisk or make FormLabel asterisk value customisable
Labels: design: material,component: text field

- [x] I have searched the [issues](https://github.com/mui-org/material-ui/issues) of this repository and believe that this is not a duplicate.

Possibly related to https://github.com/mui-org/material-ui/issues/22538

## Summary 💡

Currently when a `<TextField />` has `required={true}` an asterisk is automatically added to the child FormLabel behind the scenes. This is the desired outcome and is great, but, I have noticed that an `&nbsp;` is also added along with the asterisk resulting in something like this
`First Name *`

My team and I would like to keep the asterisk but not the `&nbsp;` to give a final result of
`First Name*`

I've searched the docs and cannot find a way to change this.

Also looking at the Material Design documentation it appears that having a space before the asterisk is not desired so perhaps this needs updating? https://material.io/components/text-fields#anatomy

Thanks in advance on any advice about what could be done to resolve this.
Repository: rust
Issue: Is this difference in lifetime elision for `impl Trait` arguments between async and non-async function intended?
Labels: A-lifetimes,A-impl-trait,A-async-await,AsyncAwait-Triaged

This compiles:

```rust
async fn foo(_: impl Iterator<Item = &u32>) {}
```

But this doesn't:

```rust
fn foo(_: impl Iterator<Item = &u32>) {}
```

```
error[E0106]: missing lifetime specifier
 --> src/lib.rs:1:32
  |
1 | fn foo(_: impl Iterator<Item = &u32>) {}
  |                                ^ expected named lifetime parameter
  |
help: consider introducing a named lifetime parameter
  |
1 | fn foo<'a>(_: impl Iterator<Item = &'a u32>) {}
  |       ^^^^                         ^^^
```

This difference strikes me as very odd. Is this intended? If so, why? 

This is formulated as a question, but if I had to guess, I would classify this as oversight or bug -- that's why I created an issue instead of askig in the forum.

<sub>(originally asked [here](https://stackoverflow.com/q/67469559/2408867))</sub>
Repository: rust
Issue: rustdoc: render problems for re-exported implementors
Labels: T-rustdoc,C-bug,A-cross-crate-reexports,A-rustdoc-ui

On both stable and nightly, the "Implementors" section of a trait page incorrectly renders re-exported types. For instance, on https://doc.rust-lang.org/std/marker/trait.Sync.html, there are two entries for `LinkedList`.

### std::collections::LinkedList

![image](https://user-images.githubusercontent.com/220205/118538726-6c9dd500-b703-11eb-91e4-4ec02b144830.png)

### alloc::collections::LinkedList

![image](https://user-images.githubusercontent.com/220205/118538854-8e975780-b703-11eb-984d-973c32e4fbdb.png)

These are different in the way they are displayed: for instance, the `where` clause is displayed differently even though these are the same type. Also, the `alloc` version is missing its `[src]` link.

Looking at the HTML, the `alloc` version looks like this (I included some of the HTML of the previous, correct element for comparison):

<img width=400 src="https://user-images.githubusercontent.com/220205/118539050-cc947b80-b703-11eb-9a89-c182640df322.png">

Some issues here:

 - There's no need for a table layout
 - This should have `id=impl-Sync-51`
 - There's a `<code>` tag inside another `<code>` tag, which is unnecessary.
Repository: next.js
Issue: router.asPath includes hash fragment on client side
Labels: bug,Navigation,linear: next

### What version of Next.js are you using?

10.0.9

### What version of Node.js are you using?

14.15.4

### What browser are you using?

n/a

### What operating system are you using?

n/a

### How are you deploying your application?

n/a

### Describe the Bug

I have found that `router.asPath` contains the current hash fragment, if there is one, such as `/my-page/#my-subheading`.

This was unexpected to me. [The docs](https://nextjs.org/docs/api-reference/next/router#router-object) mention that it includes the query string if there is one, but it doesn't say anything about the hash fragment.

Hash fragments never make it to the server side, and I'd expect the same behaviour from the router both client and server side, so it being included in this field feels to me like a bug.

### Expected Behavior

`router.asPath` does not include a hash fragment.

### To Reproduce

1. Make a component which uses `const router = useRouter()`.
2. Have it output in some way `router.asPath`.
3. Navigate to this page with a fragment as part of the URL.
Repository: flutter
Issue: Document errors returned by ImagePicker.getImage()
Labels: d: api docs,a: quality,p: image_picker,package,team-ecosystem,P2,triaged-ecosystem

# Use case

I'm writing an app that allows users to upload photos.  When the user taps the "Add Photo" button, the app calls [`ImagePicker.getImage`](https://pub.dev/documentation/image_picker/latest/image_picker/ImagePicker/getImage.html).  The `image_picker` library requests permission to get an image.  The user can cancel the add operation and they can also refuse permission.  If the user refuses the permission and then taps the "Add Photo" button again, the app must detect the permission problem and present a screen to the user instructing them how to re-enable permissions and accomplish their goal.  To do this, the app **must differentiate between the user cancelling and refusing permission**.

## Proposal

Describe clearly what `getImage` returns or throws in the various situations when it cannot return a non-null `PickedFile`.  For example:
- Returns `null` when the user cancelled the operation.
- Throws `image_picker.CameraPermissionDenied` when the user denies the app access to the camera.
- Throws `image_picker.ImageAccessDenied` when the user denies the app access to an image.
- Throws `image_picker.OtherError` when another type of error occurs.  For example, if the app has permission but gets an error reading the camera or reading the picked file.

Every API user must know how to handle errors.  The `image_picker` documentation is missing this crucial information and is therefore incomplete.

Example code is also incomplete when it does not show how to handle errors.