sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: deno
Issue: Support externally backed ArrayBuffers for ops
Labels: feat,deno_core

`WebGPU` has functionality to map GPU buffers into CPU memory so it can be modified by JS, and then unmapping that buffer back to the GPU. To do this in Deno, we currently do two mem copies, and we don't detach the ArrayBuffer after unmapping like the spec requires. We should fix this.

### How to fix

The most straightforward way to do this, is to somehow let ops create externally backed array buffers. Because ops can neither recieve or return arbitrary `v8::Value`'s we need an alternative solution to expose externally backed array buffers:

We add two new direct core bindings, and one new `core` resource table entry:

`ExternalArrayBufferResource`, which contains some form of `u8` slice.

`Deno.core.mapExternalArrayBuffer` takes a resource id of a `ExternalArrayBufferResource`, consumes that resource, and returns a `ArrayBuffer` that is backed by the data in the `ExternalArrayBufferResource`.

`Deno.core.unmapExternalArrayBuffer` takes a `ArrayBuffer` that was created by `mapExternalArrayBuffer`, detaches the underlying bytes from the `ArrayBuffer`, stores this underlying buffer in a new `ExternalArrayBufferResource`, and returns the rid to that resource.

We could then allocate a `ExternalArrayBufferResource` with the data from wgpu when a buffer is mapped from gpu -> cpu, and then unmap from the `ExternalArrayBufferResource` when we are done.

### Questions

What does `ExternalArrayBufferResource` store? A `Vec<u8>`? A raw pointer + length (unsafe)? A `Box<[u8]>`? wgpu returns a raw pointer + length, which can be trivially converted into a `&mut [u8]` using `std::slice::from_raw_parts_mut`.
Repository: vscode
Issue: Display mixed line endings explicitly in status bar as "LF (mixed)" or "CRLF (mixed)"
Labels: feature-request,editor-textbuffer

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->
When opening a file with mixed line endings, vscode is still showing it as `LF` or `CRLF` in the status bar.
After saving, it fixes it, but I think it should show, for example, `LF (mixed)` (maybe with squiggle or :warning: icon) until the file is modified.
This is important so that you know the file still has mixed EOLs, and you might want to fix that.

To reproduce: `printf "lf\ncrlf\r\ncr\rnone" > mixed-eol.txt && code mixed-eol.txt`
If you open this file in Notepad++ and enable visible EOL, you can see it has mixed endings.

(Posted from https://github.com/microsoft/vscode/issues/12223#issuecomment-391511403 as separate issue.)
Repository: flutter
Issue: Add a test after every shard to make sure we're not leaving the git workspace in a modified state after running tests
Labels: a: tests,team,team-infra,P3,c: tech-debt,triaged-infra

We should do this on LUCI.

This https://github.com/flutter/flutter/pull/77100/files shows what it would look like for Cirrus (where we could do it as well, if we do it on LUCI, but we shouldn't only do it on Cirrus).
Repository: TypeScript
Issue: Chinese enum value quick access is not correct
Labels: Bug

*TS Template added by @mjbvz*

**TypeScript Version**: 4.3.0-dev.20210315

**Search Terms**
- hover
- IntelliSense
- escape

---

Issue Type: <b>Bug</b>

Quick access could not shown enum chinese value correct.

**QuickAccess**
![image](https://user-images.githubusercontent.com/27878293/110881976-35363500-831c-11eb-835d-d42e4c2dce83.png)

**And Find Definition**
![image](https://user-images.githubusercontent.com/27878293/110881883-0c15a480-831c-11eb-8181-ade71108497f.png)

VS Code version: Code 1.54.2 (fd6f3bce6709b121a895d042d343d71f317d74e7, 2021-03-11T00:56:09.783Z)
OS version: Darwin x64 20.3.0

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz (8 x 2300)|
|GPU Status|2d_canvas: enabled<br>gpu_compositing: enabled<br>metal: disabled_off<br>multiple_raster_threads: enabled_on<br>oop_rasterization: enabled<br>opengl: enabled_on<br>protected_video_decode: unavailable_off<br>rasterization: enabled<br>skia_renderer: disabled_off_ok<br>video_decode: enabled<br>webgl: enabled<br>webgl2: enabled|
|Load (avg)|3, 3, 3|
|Memory (System)|8.00GB (0.02GB free)|
|Process Argv|--crash-reporter-id a1f70ba4-4233-4f2c-8767-de2aa46a45cd|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (49)</summary>

Extension|Author (truncated)|Version
---|---|---
better-comments|aar|2.1.0
project-manager|ale|12.0.1
line-jumper|ale|0.1.0
amvim|aui|1.32.0
vscode-intelephense-client|bme|1.6.3
path-intellisense|chr|2.3.0
gitignore|cod|0.6.0
vscode-svgviewer|css|2.0.0
vue-peek|dar|1.0.2
dart-code|Dar|3.20.1
flutter|Dar|3.20.0
vscode-eslint|dba|2.1.17
githistory|don|0.6.15
gitlens|eam|11.3.0
EditorConfig|Edi|0.16.4
vsc-material-theme|Equ|33.2.0
vsc-material-theme-icons|equ|1.2.2
prettier-vscode|esb|5.9.2
vscode-diff|fab|1.4.0
code-runner|for|0.11.3
gc-excelviewer|Gra|3.0.41
todo-tree|Gru|0.0.204
beautify|Hoo|1.5.0
rest-client|hum|0.24.4
sql-language-server|joe|0.12.0
vscode-insertdatestring|jsy|2.3.0
vscode-line-history|lih|0.2.0
git-graph|mhu|1.29.0
fluent-icons|mig|0.0.7
dotenv|mik|1.0.1
vscode-language-pack-zh-hans|MS-|1.54.2
python|ms-|2021.2.636928669
jupyter|ms-|2021.3.619093157
sublime-keybindings|ms-|4.0.7
debugger-for-chrome|msj|4.12.12
color-highlight|nau|2.3.0
vetur|oct|0.33.1
material-icon-theme|PKi|4.5.0
polacode|pnp|0.3.4
datetime|rid|2.0.3
partial-diff|ryu|1.4.1
guides|spy|0.9.3
autoimport|ste|1.5.3
language-stylus|sys|1.11.0
open-in-browser|tec|2.0.0
vscode-todo-highlight|way|1.0.4
better-align|wwm|1.1.6
markdown-all-in-one|yzh|3.4.0
material-theme|zhu|3.9.15

(6 theme extensions excluded)

</details><details>
<summary>A/B Experiments</summary>

```
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256859
pythonvsdeb440:30248342
pythonvsded773:30248341
vstes627cf:30244335
pythonvspyt875:30259475
pythontb:30265425
vspre833cf:30267465

```

</details>

<!-- generated by issue reporter -->
Repository: flutter
Issue: [proposal] Provide a way to change the animation duration of SearchDelegate
Labels: framework,f: material design,c: proposal,team-design,triaged-design

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Use case

<!--
     Please tell us the problem you are running into that led to you wanting
     a new feature.

     Is your feature request related to a problem? Please give a clear and
     concise description of what the problem is.

     Describe the alternative solutions you've considered. Is there a package
     on pub.dev/flutter that already solves this?
-->

## Proposal

<!--
     Briefly but precisely describe what you would like Flutter to be able to do.

     Consider attaching images showing what you are imagining.

     Does this have to be provided by Flutter directly, or can it be provided
     by a package on pub.dev/flutter? If so, maybe consider implementing and
     publishing such a package rather than filing a bug.
-->
Repository: kubernetes
Issue: sig-testing: support auto-tag and auto-bump for test images
Labels: sig/testing,lifecycle/frozen,needs-triage

I forget how this works but technically we can't use 2.30 until it's been promoted. Usually there's a followup PR that updates test/images/manifest once promotion has occurred. Is that the more appropriate PR to make this change?

The two-step image promotion dance and fixed/hardcoded version approach used by e2e test images could really stand to be revisited. Not suggesting we try to do it in v1.21 just more thinking out loud. Auto-tagging with date+gitsha is an approach that's worked well for other images in this project AFAIK.

_Originally posted by @spiffxp in https://github.com/kubernetes/kubernetes/pull/99860#discussion_r594784152_
Repository: go
Issue: os: Seek suceeds for directories where it should error
Labels: NeedsInvestigation

<!--
Please answer these questions before submitting your issue. Thanks!
For questions please use one of our forums: https://github.com/golang/go/wiki/Questions
-->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.16.2 linux/amd64
</pre>

### Does this issue reproduce with the latest release?

Yes with tip.

### 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/tom/.cache/go-build"
GOENV="/home/tom/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/tom/go/pkg/mod"
GONOPROXY=...
GONOSUMDB=...
GOOS="linux"
GOPATH="/home/tom/go"
GOPRIVATE=...
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/home/tom/sdk/go1.16.2"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/tom/sdk/go1.16.2/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.16.2"
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-build14584737=/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.
-->

I was looking through the os directory reading source code and I noticed that `Seek`s EISDIR error condition is broken.

`Seek` checks if the os-specific `seek` method succeeded for a file that has a `dirinfo`:

https://github.com/golang/go/blob/f02a26bed0f21de7aeef7a60cf62dac2e3dab737/src/os/file.go#L239-L241

Unfortunately the `seek` method always clears `dirinfo` (#35767 and #37161):

https://github.com/golang/go/blob/78f90152364d68268a14b2907ae26379f314baf4/src/os/file_unix.go#L269-L274

This script should reproduce the error when run locally:

https://play.golang.org/p/brgpk5je9tP

As an aside: I'm not sure this is the best way handle `Seek`-ing a directory, it will only trigger if `readdir` was previously called and, on Linux at least, only after the seek has actually succeeded.

### What did you expect to see?

`Seek` returned a `syscall.EISDIR` error.

### What did you see instead?

`Seek` returned without error.
Repository: rust
Issue: Compilation fails with "overflow evaluating the requirement" when an unrelated impl for a reference is present
Labels: A-diagnostics,A-trait-system,T-compiler,C-bug,D-confusing,fixed-by-next-solver

Consider the following code:

```rust
struct Wrapper<T>(T);
impl<'a, T> IntoIterator for &'a Wrapper<T> where &'a T: IntoIterator {
    type Item = <&'a T as IntoIterator>::Item;
    type IntoIter = <&'a T as IntoIterator>::IntoIter;
    fn into_iter(self) -> Self::IntoIter {
        self.0.into_iter()
    }
}

pub fn foobar<'a, T>(it: &'a T) where &'a T: IntoIterator, T: 'a {}

fn main() {
    foobar(&vec![0_u8]);
}
```

[Playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=c865fd582f078c6d3b078b172c25b1f7)

Trying to compile it results in the following error:

```
error[E0275]: overflow evaluating the requirement `&_: IntoIterator`
  --> src/main.rs:13:5
   |
10 | pub fn foobar<'a, T>(it: &'a T) where &'a T: IntoIterator, T: 'a {}
   |                                              ------------ required by this bound in `foobar`
...
13 |     foobar(&vec![0_u8]);
   |     ^^^^^^
   |
   = help: consider adding a `#![recursion_limit="256"]` attribute to your crate (`playground`)
   = note: required because of the requirements on the impl of `IntoIterator` for `&Wrapper<_>`
   = note: 127 redundant requirements hidden
   = note: required because of the requirements on the impl of `IntoIterator` for `&Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<Wrapper<_>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>`
```

If you comment out the `IntoIterator` impl or the call to `foobar` then it compiles successfully.

Might be related to https://github.com/rust-lang/rust/issues/80542, https://github.com/rust-lang/rust/issues/78982 and possibly others.

### Meta

Affected versions:
  * 1.52.0-nightly (2021-03-14 d6eaea1c8860adb5302d)
  * 1.50.0-stable
  * 1.0.0-stable
Repository: kubernetes
Issue: pod config readinessprobe, if kubelet restart,  pod temporarily report containerNotReady，this may lead to service not available
Labels: priority/important-soon,sig/network,area/kubelet,sig/node,kind/feature,lifecycle/frozen,triage/accepted

<!-- Please use this template while reporting a bug and provide as much info as possible. Not doing so may result in your bug not being addressed in a timely manner. Thanks!

If the matter is security related, please disclose it privately via https://kubernetes.io/security/
-->


#### What happened:

pod config readinessprobe, if kubelet restart,  pod temporarily report containerNotReady，this may lead to service not available

#### What you expected to happen:

pod status not changed

#### How to reproduce it (as minimally and precisely as possible):

1. create a pod with readinessprobe, and wait for pod ready
2. restart kubelet, use kubectl watch pods

#### Anything else we need to know?:

when kubelet generateAPIPodStatus, will check probe cached status and worker state.
```golang
			var ready bool
			if c.State.Running == nil {
				ready = false
			} else if result, ok := m.readinessManager.Get(kubecontainer.ParseContainerID(c.ContainerID)); ok {
				ready = result == results.Success
			} else {
				// The check whether there is a probe which hasn't run yet.
				_, exists := m.getWorker(podUID, c.Name, readiness)
				ready = !exists
			}
			podStatus.ContainerStatuses[i].Ready = ready
```
when restart kubelet, probe cached status is not exist, now use worker exist value to set container ready status. This may lead a ready container to report  as not ready


```golang
      if w.containerID.String() != c.ContainerID {
		if !w.containerID.IsEmpty() {
			w.resultsManager.Remove(w.containerID)
		}
		w.containerID = kubecontainer.ParseContainerID(c.ContainerID)
		w.resultsManager.Set(w.containerID, w.initialValue, w.pod)
		// We've got a new container; resume probing.
		w.onHold = false
	}

```
and also during first probe, worker's containerID is not Exist, so worker will use initialValue to set result as first time.
it also lead to report container  as not ready


#### Environment:
- Kubernetes version (use `kubectl version`): 1.19.8
- Cloud provider or hardware configuration: HuaweiCloud
- OS (e.g: `cat /etc/os-release`): CentOS 7.6
- Kernel (e.g. `uname -a`): 3.10
- Install tools:
- Network plugin and version (if this is a network-related bug):
- Others:
Repository: flutter
Issue: Flutter Web : Cannot read property 'Symbol(dartx.postMessage)' of null.
Labels: engine,platform-web,has reproducible steps,P3,found in release: 2.0,team-web,triaged-web

I am having a HtmlElementView which will have Html content to render it, so when i open it first time its works fine as expected when i go back and open again its showing error.Here i have attached the reproducing example repo https://github.com/ThalapathySiva/flutter_html_reproducing_repo which will have two buttons on home page first click any one of those it will open the html render screen and it will work first time just go back and click the button again it will throw error without rendering and if you go back and refresh the whole window and tapped the button again it works this is the scenario by the way the contentwindow is getting null thats the issue.How can we handle this case. Thank you




Error : 

TypeError: Cannot read property 'Symbol(dartx.postMessage)' of null
    at http://localhost:55601/dart_sdk.js:33443:33
    at internalCallback (http://localhost:55601/dart_sdk.js:25104:11)
Repository: vscode
Issue: [themes] use both English and UI language to search color theme names
Labels: feature-request,themes

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->

Some months ago, after typing `Ctrl+P`, `theme` and `Enter`, the list of color themes was in English, and I'm able to search in English. But recently I noticed that VS Code with Chinese UI will list Chinese names of color themes if possible, and use their English names as fallback.

This change prevents me from switching color theme by typing `dark` or `light`. As a result, I have to press `ArrowDown` quite a few times to select the default dark/light theme (when currently in light/dark), or type `深色`/`浅色` using a Chinese IME before activating the first suggestion.

Therefore, I suggest that VS Code should always search both names in the UI language and those in English for typed queries. This would be very helpful and then I can switch between the default dark & light themes without much thinking.
Repository: youtube-dl
Issue: site support request for https://pangzitv.com/
Labels: site-support-request

<!--

######################################################################
  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:
- First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2021.03.14. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Make sure that all provided video/audio/playlist URLs (if any) are alive and playable in a browser.
- Make sure that site you are requesting is not dedicated to copyright infringement, see https://yt-dl.org/copyright-infringement. youtube-dl does not support such sites. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
- Search the bugtracker for similar site support requests: http://yt-dl.org/search-issues. DO NOT post duplicates.
- Finally, put x into all relevant boxes (like this [x])
-->

- [x] I'm reporting a new site support request
- [x] I've verified that I'm running youtube-dl version **2021.03.14**
- [x] I've checked that all provided URLs are alive and playable in a browser
- [x] I've checked that none of provided URLs violate any copyrights
- [x] I've searched the bugtracker for similar site support requests including closed ones


## Example URLs

<!--
Provide all kinds of example URLs support for which should be included. Replace following example URLs by yours.
-->

- Single video: https://pangzitv.com/vod-play-id-80620-src-1-num-5.html


## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

Under MacOS v10.15, the following command was used when trying the download but failed. The error message is attached below. 

youtube-dl "https://pangzitv.com/vod-play-id-80620-src-1-num-5.html" --recode-video mp4 -k --merge-output-format mp4 -f bestvideo+bestaudio
[generic] vod-play-id-80620-src-1-num-5: Requesting header
WARNING: Falling back on generic information extractor.
[generic] vod-play-id-80620-src-1-num-5: Downloading webpage
[generic] vod-play-id-80620-src-1-num-5: Extracting information
ERROR: Unsupported URL: https://pangzitv.com/vod-play-id-80620-src-1-num-5.