sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: kubernetes
Issue: OpenAPI spec (swagger.json) integer type valid ranges not specified
Labels: sig/api-machinery,kind/feature,lifecycle/frozen,triage/accepted

In the generated [OpenAPI swagger.json](https://github.com/kubernetes/kubernetes/blob/master/api/openapi-spec/swagger.json), integer types such as `ContainerPort` have clearly documented valid ranges in the human-readable comments, but these are not actually specified in the API JSON using [the minimum/maximum/exclusiveMinimum/exclusiveMaximum](https://swagger.io/docs/specification/data-models/data-types/) keywords. This creates problems for statically-typed languages used to generate for the API because they cannot perform this type checking. They can't even make a choice as to whether to represent a given integer quantity as a "natural" or "unsigned" type or a signed one.

I assume the range information is available in some form within the API server that generates the swagger, so would it be possible to include it?
Repository: flutter
Issue: [Proposal] show pub discontinued packages
Labels: c: new feature,tool,c: proposal,P3,team-tool,triaged-tool

## Use case

When running `flutter pub upgrade`, I get following message at the end:
```
No dependencies changed.
1 package is discontinued.
3 packages have newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.
```

I know how to look for packages with newer versions incompatible with dependency constraints, but I wasn't able to find discontinued package.

## Proposal

Show discontinued packages when running `flutter pub outdated` or add command `flutter pub discontinued `
Repository: vscode
Issue: Render activating extensions in the Running Extensions List 
Labels: feature-request,extension-host

Extracted from https://github.com/microsoft/vscode/issues/119908#issuecomment-809205528
Repository: godot
Issue: Compressed file introduces unexpected new line.
Labels: bug,topic:core

### Godot version

v4.0.dev.custom_build [36de09757]

### System information

Windows 10

### Issue description

If I `store_string` in a compressed file a string which length is multiple 4096 and then read it back with `get_as_text`, I get the same string with a new line at the end (so the retrieved string is one character longer).

Note: I get a line feed (character 10), but I believe it is platform dependent. I'm testing on Windows 10.

I suspect that extra character is introduced at `get_as_text` https://github.com/godotengine/godot/blob/26f4848d013c5a234c2399717372ef72985cb655/core/core_bind.cpp#L1181 because it believe has not reached the end, and there would be another line to read. Which makes me think that `read_eof` is not being set correctly.

### Steps to reproduce

The following code reproduces the problem:

```
extends Node

func _ready():
	var random := RandomNumberGenerator.new(); random.randomize()
	var characters := ""
	for i in range(33, 127):
		if i == 34 or i == 92:
			continue

		characters += char(i)

	var input := ""
	for i in range(4096):
		input += characters[random.randi_range(0, len(characters) - 1)]

	var directory := Directory.new()
	directory.open("user://")
	directory.remove("user://savefile.sav")
	
	var saveGame := File.new()
	saveGame.open_compressed("user://savefile.sav", File.WRITE)
	saveGame.store_string(input)
	saveGame.close()
	
	var loadGame = File.new()
	if !loadGame.file_exists("user://savefile.sav"):
		print ("File not found! Aborting...")
		return false

	loadGame.open_compressed("user://savefile.sav", File.READ)
	var output := loadGame.get_as_text()
	if input != output:
		if output.begins_with(input):
			print("appended: ", Marshalls.utf8_to_base64(output.substr(input.length())))
		else:
			print("input: ", Marshalls.utf8_to_base64(input))
			print("output: ", Marshalls.utf8_to_base64(output))
	else:
		print("OK")
```

Note: In the code I used as input only printable not whitespace characters avoiding quotes (34) and backslash (92) so I could easily take the input and paste it as a string literal to reproduce a failing case. However, here I output base64 because the problem is a whitespace character added which might be easily missed.

### Minimal reproduction project

[compressed_file_test.zip](https://github.com/godotengine/godot/files/7302312/compressed_file_test.zip)
Repository: vscode
Issue: Add stronger checks to make sure an extension doesn't activate both locally and remotely
Labels: debt,extension-host

See https://github.com/microsoft/vscode/issues/128573#issuecomment-903514847
Repository: godot
Issue: Physics_Body2D.get_collision_exceptions() fails for freed objects
Labels: bug,topic:physics

### Godot version

3.3.4.stable.official

### System information

Windows 10, GLES 3

### Issue description

With add_collision_exception_with() you create a list of bodies with which a certain body should not collide.
After deleting one of the bodies in the list with queue_free() and then accessing the list with get_collision_exceptions(), an error occurs.


### Steps to reproduce

In _process() simply get_collision_exceptions() is called without processing the return value further.
As soon as you press RETURN, the only body in the list is deleted, and get_collision_exceptions() throws errors.

```gdscript
extends Node2D

onready var rig1 = $RigidBody2D
onready var rig2 = $RigidBody2D2


func _ready():
	rig1.add_collision_exception_with(rig2)


func _process(delta):
	var exceptions = rig1.get_collision_exceptions()


func _input(event):
	if event.is_action_pressed("ui_accept"):
		if is_instance_valid(rig2):
			rig2.queue_free()
```

### Minimal reproduction project

[Collision Exception Test.zip](https://github.com/godotengine/godot/files/7303081/Collision.Exception.Test.zip)
Repository: kubernetes
Issue: Orphaned pod found, but error not a directory occurred when trying to remove the volumes dir
Labels: kind/bug,priority/important-soon,sig/storage,needs-triage

#### What happened:

One of our nodes had a hard reboot. After this, the following message was occurring in the kubelet logs every 2 seconds:

```
Oct 07 12:46:32 k8s-master2-staging kubelet[7310]: E1007 12:46:32.359145    7310 kubelet_volumes.go:245] "There were many similar errors. Turn up verbosity to see them." err="orphaned pod \"1d4bfc07-3469-4eaa-992f-6d23c17f3aee\" found, but error not a directory occurred when trying to remove the volumes dir" numErrs=1
```

Indeed, the orphaned pod directory exists and contains 1 stale volume directory with a file in it (probably explaining the "not a directory" error):

```
sjors@k8s-master2-staging:~$ sudo ls -la /var/lib/kubelet/pods/1d4bfc07-3469-4eaa-992f-6d23c17f3aee/volumes/kubernetes.io~csi/pvc-13c81b28-4038-40d5-b6e8-4194e1d7be0e
total 12
drwxr-x--- 2 root root 4096 Oct  7 12:37 .
drwxr-x--- 3 root root 4096 Oct  2 19:37 ..
-rw-r--r-- 1 root root  270 Oct  7 12:37 vol_data.json
```

Deleting this file manually leads to immediate resolving of the Kubelet error 2 seconds later:

```
Oct 07 12:46:40 k8s-master2-staging kubelet[7310]: I1007 12:46:40.359957    7310 kubelet_volumes.go:160] "Cleaned up orphaned pod volumes dir" podUID=1d4bfc07-3469-4eaa-992f-6d23c17f3aee path="/var/lib/kubelet/pods/1d4bfc07-3469-4eaa-992f-6d23c17f3aee/volumes"
```

#### What you expected to happen:

I know that the Kubelet tries to clean up orphaned pod directories, and various issues have been fixed regarding this in the past, such as figuring out stale mounts and deleting old directories (#60987 for example).

However, it looks like when there are files present, it fails to remove the stale directory.

#### How to reproduce it (as minimally and precisely as possible):

I think, but have not attempted, it can be reproduced by these steps:

1. start a Pod with a mounted PVC
2. manually create a file inside a Pod's `volumes/kubernetes.io~csi/pvc-...` directory
3. hard-reboot the machine, so that the kubelet gets no chance to clean up the Pod directory, i.e. directory becomes orphaned
4. (If creating the file of step 2 was not possible before, it can also be done after the reboot, but before the kubelet comes up.)
5. observe error in the Kubelet logs.

#### Anything else we need to know?:

The CSI provider used is Hetzner Cloud (hcloud-csi-driver:1.6.0), I'm not sure if it's responsible for creating the file.

#### Environment:
- Kubernetes version (use `kubectl version`): 1.22.1
- Cloud provider or hardware configuration: bare-metal, 3 masters
- OS (e.g: `cat /etc/os-release`): Ubuntu 20.04.3 LTS
- Kernel (e.g. `uname -a`): 5.4.0-88-generic
- Install tools: kubeadm 1.22.1
Repository: pytorch
Issue: Latency issue with torch.sin
Labels: module: performance,triaged

## 🐛 Bug
I was comparing the execution latency of torch.sin and np.sin and found that torch's latency was magnitude more than np's.

## To Reproduce
Steps to reproduce the behavior:
```
import math
import numpy as np
import time
import torch
import torchaudio

torchtime, nptime = 0,0
lintorch = torch.linspace(0, 1, 40000)

for i in range(64):
    start = time.time()
    torchout =  torch.sin(lintorch * math.pi / 2 + math.pi / 2)
    torchtime+=(time.time()-start)

    start = time.time()
    npout =  np.sin(lintorch.numpy() * math.pi / 2 + math.pi / 2)
    nptime+=(time.time()-start)

print('torch took',torchtime)
print('np took',nptime)
```
> torch took 2.1211962699890137
> np took 0.02241802215576172

## Environment
torch                     1.9.0+cu111              pypi_0    pypi
torch-poly-lr-decay       0.0.1                    pypi_0    pypi
torchaudio                0.9.0                    pypi_0    pypi
torchmetrics              0.4.1                    pypi_0    pypi

Please copy and paste the output from our
PyTorch version: 1.9.0+cu111
Is debug build: False
CUDA used to build PyTorch: 11.1
ROCM used to build PyTorch: N/A

OS: Ubuntu 20.04.2 LTS (x86_64)
GCC version: (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Clang version: Could not collect
CMake version: version 3.21.3
Libc version: glibc-2.31

Python version: 3.8.11 (default, Aug  3 2021, 15:09:35)  [GCC 7.5.0] (64-bit runtime)
Python platform: Linux-5.11.0-27-generic-x86_64-with-glibc2.17
Is CUDA available: True
CUDA runtime version: Could not collect
GPU models and configuration:
GPU 0: RTX A6000
GPU 1: RTX A6000
GPU 2: RTX A6000
GPU 3: RTX A6000
GPU 4: RTX A6000
GPU 5: RTX A6000
GPU 6: RTX A6000
GPU 7: RTX A6000

Nvidia driver version: 460.91.03
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A

Versions of relevant libraries:
[pip3] mypy==0.910
[pip3] mypy-extensions==0.4.3
[pip3] numpy==1.21.1
[pip3] pytorch-lightning==1.3.5
[pip3] torch==1.9.0+cu111
[pip3] torch-poly-lr-decay==0.0.1
[pip3] torchaudio==0.9.0
[pip3] torchmetrics==0.4.1
[conda] mypy                      0.910                    pypi_0    pypi
[conda] mypy-extensions           0.4.3                    pypi_0    pypi
[conda] numpy                     1.21.1                   pypi_0    pypi
[conda] pytorch-lightning         1.3.5                    pypi_0    pypi
[conda] torch                     1.9.0+cu111              pypi_0    pypi
[conda] torch-poly-lr-decay       0.0.1                    pypi_0    pypi
[conda] torchaudio                0.9.0                    pypi_0    pypi
[conda] torchmetrics              0.4.1                    pypi_0    pypi

cc @VitalyFedyunin @ngimel
Repository: PowerToys
Issue: [PowerToys Run]: Available Search results are not announced by Narrator
Labels: Issue-Bug,Area-Accessibility,A11yE+D,A11ySev3,A11yWCAG

### Microsoft PowerToys version

0.45.0

### Running as admin

- [ ] Yes

### Area(s) with issue?

PowerToys Run

### Steps to reproduce

**Test Environment:**
OS: Windows 11 Version Dev (22468.1000)
App version: 0.45.0
App name: Power Toys
Screen Reader: Narrator

**Repro Steps:**
1. Launch 'PowerToys' application.
2. Navigate to 'PowerToys  Run' and activate it.
3. Turn on Narrator with 'CTRL + WIN + ENTER' keys.
4. Navigate to "Search this list" under plugins list and Search valid value, e.g. 'Calc'.
5. Observe the Narrator Announcement. 

**User Impact:**
Information, structure, and relationships conveyed through presentation can be programmatically determined or are available in text, it would be difficult for AT dependent users.

**Guideline Reference:**
https://www.w3.org/TR/WCAG21/#info-and-relationships

**Attachments:**
https://user-images.githubusercontent.com/91203131/136387491-271bad2a-7aac-4b6d-88cb-62e45eda48ba.mp4

### ✔️ Expected Behavior

The Narrator should announce the available search result and number of search results.

### ❌ Actual Behavior

Available Search results are not announced by Narrator, it remains silent when searching for results.

### Other Software

_No response_
Repository: opencv
Issue: ocl4dnn convolution - division by zero
Labels: bug,feature,incomplete,category: dnn,needs reproducer

I'm getting some weird crashes when running a simple Resnet model on a GTX 3080Ti in OPENCL backend.
The crash is a division by zero in:
https://github.com/opencv/opencv/blob/4dd3ab8f32bbd846fd7fb2520410f3a7ec5a974c/modules/dnn/src/ocl4dnn/src/ocl4dnn_conv_spatial.cpp#L190
`group_` is computed here
https://github.com/opencv/opencv/blob/4dd3ab8f32bbd846fd7fb2520410f3a7ec5a974c/modules/dnn/src/layers/convolution_layer.cpp#L1739
In my case `inputs[0].size[1]` equal 1 and `umat_blobs[0].size[1]` equals 64

It is going to be a little difficult to provide a simple program reproducing this but maybe someone can already spot an obvious bug.
It seems that it will only crash once, the next run will use the cached kernels and work fine (group_=1)
Repository: electron
Issue: [Feature Request]: Caret browsing from upstream Chromium
Labels: enhancement :sparkles:

### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/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

You can't enable Caret browsing with F7 in Electron like you can in Chromium based browsers.

### Proposed Solution

Add Caret Browsing to Electron and maybe the option for the app developer to opt-in or opt-out of Caret browsing toggling with F7.

### Alternatives Considered

I think Assistive Technology Software or Screen Readers can query through APIs (like AT-SPI2 on Linux) for the position, size and text content of each Control in the Application and draw on top of everything a cursor through an invisible click-through window or whatever hack.

### Additional Information

I failed to toggle Caret Browsing by pressing F7 in my Electron-based application, Electron version 14.0.1 on Arch Linux.
Repository: rust
Issue: Undefined reference to `getauxval` in function `init_have_lse_atomics`  when compiling to nightly `aarch64-unknown-linux-musl`
Labels: A-linkage,O-Arm,P-high,T-compiler,regression-from-stable-to-stable,O-musl,C-bug,A-linkers

<!--
Thank you for filing a regression report! 🐛 A regression is something that changed between versions of Rust but was not supposed to.

Please provide a short summary of the regression, along with any information you feel is relevant to replicate it.
-->

### Code

I received this pull request, which caught a regression for `aarch64-unknown-linux-musl` when compiling for nightly. The same process works for stable and beta. I don't have a machine that can easily compile to this platform, so I can't reduce it at the moment: https://github.com/XAMPPRocky/rasn/pull/49

### Version it worked on

<!--
Provide the most recent version this worked on, for example:

It most recently worked on: Rust 1.47
-->

It most recently worked on: Works on stable and beta `1.56.0-beta.4 (e6e620e1c 2021-10-04)`

- https://github.com/XAMPPRocky/rasn/pull/49/checks?check_run_id=3827011175

### Version with regression

<!--
Provide the version you are using that has the regression.
-->

`rustc --version --verbose`: 1.57.0-nightly (0eabf25b9 2021-10-06)

- https://github.com/XAMPPRocky/rasn/pull/49/checks?check_run_id=3827012571

<!--
Did the compiler crash? If so, please provide a backtrace.
-->

### Backtrace

```
= note: /rust/lib/rustlib/aarch64-unknown-linux-musl/lib/libcompiler_builtins-cbf6a032efba8222.rlib(cpu_model.o): In function `init_have_lse_atomics':
          /cargo/registry/src/github.com-1ecc6299db9ec823/compiler_builtins-0.1.49/./lib/builtins/cpu_model.c:786: undefined reference to `getauxval'
          collect2: error: ld returned 1 exit status
          
= help: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
= note: use the `-l` flag to specify native libraries to link
= note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname)
```

<!--
If you know when this regression occurred, please add a line like below, replacing `{channel}` with one of stable, beta, or nightly.

@rustbot modify labels: +regression-from-stable-to-nightly -regression-untriaged
-->
Repository: godot
Issue: Vulkan: Strange colors appear on start due to ReflectionProbes not being initialized correctly
Labels: bug,topic:rendering,topic:3d

### Godot version

4.0.dev.20211004.official.2e8cba0bd

### System information

NixOS 21.11.git.37cc619178fM, AMD RX 480, amdgpu, Vulkan

### Issue description

![Screenshot from 2021-10-03 22-55-14](https://user-images.githubusercontent.com/91113/136403141-c1caf71b-5da6-4887-89a0-1a6f93af25a3.png)

https://youtu.be/EcDbaj71MuE?t=7

Downstream issue: https://git.gieszer.link/unfa/liblast/issues/92

### Steps to reproduce

1. Download project
2. run ./Liblast\ Linux

### Minimal reproduction project

https://github.com/davidak/test/releases/download/0.1.0/Liblast.0.1.0.1-pre-alpha.zip
Repository: pytorch
Issue: Should the drop_last parameter of Dataloader be mutually exclusive with the batch samplers?
Labels: module: dataloader,triaged

`Dataloader` accepts a `drop_last` and a `sampler` parameter. Some samplers like `BatchSampler` and `DistributedSampler` also accept a `drop_last` parameter.

Should pytorch raise an error if one passes both a batch sampler and the `drop_last` parameter? e.g.:

```py
sampler = torch.utils.data.distributed.DistributedSampler(dataset, drop_last=False)
dataloader = DataLoader(dataset, sampler=sampler, drop_last=True)
```

It would make it clear which one takes precedence over the other. I think it's the `drop_last` of the sampler that matters, but this isn't documented and can be a bit confusing.


(Note: `shuffle` and `sampler` are mutually exclusive for all samplers, as expected)

cc @SsnL @VitalyFedyunin @ejguan @NivekT
Repository: godot
Issue: [3.4.beta6] Overwriting tscn doesn't replace, but instead loads 'replaced' into current
Labels: bug,topic:editor,needs testing

### Godot version

3.4.beta6.stable.mono.official

### System information

Windows 10

### Issue description

I imported a .glb from which i wanted to create a convex collider. I already had another one that i intended to replace with the new one. But using the 'save branch as scene' option and selecting 'overwrite existing', intead of replacing the existing file, godot loads that existing tscn into the currently open scene replacing the source, kind of working in reverse so to say, leaving the overwritten file untouched.

### Steps to reproduce

See this capture

https://user-images.githubusercontent.com/8841352/136408657-7c2bc724-1eac-4116-8ef4-8ec0afb63763.mp4

The lesser subdivided one is the previous shape. The newly created single convex sibling is intended to replace the old one on disk, but there the inverse happens.


### Minimal reproduction project

A project probably doesn't help much as it's about the actions taken.
Repository: go
Issue: x/tools/present: "new" markdown syntax turns all sections into HTML
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 devel go1.18-6f74ed06c5 Thu Oct 7 03:41:40 2021 +0000 linux/amd64

</pre>

### Does this issue reproduce with the latest release?
yes.
also with `x/tools@v0.1.7`


### 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/binet/.cache/go-build"
GOENV="/home/binet/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/binet/dev/go/gocode/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/binet/dev/go/gocode"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/home/binet/sdk/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/binet/sdk/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="devel go1.18-6f74ed06c5 Thu Oct 7 03:41:40 2021 +0000"
GCCGO="gccgo"
GOAMD64="v1"
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-build351486629=/tmp/go-build -gno-record-gcc-switches"

</pre></details>

### What did you do?

```go
	var r = os.Stdin
	var input = flag.Arg(0)
	doc, err := present.Parse(r, input, 0)
	if err != nil {
		log.Fatal(err)
	}
```


### What did you expect to see?

a `present.Doc` value with `Sections` filled with `Elem []present.Elem` fields of various `present.Xyz` types (`present.Text`, `present.List`, ...)



### What did you see instead?

when a `talk.slide` file is using the "new" Markdown syntax, all `Sections` have only one `Elem` of type `present.HTML`.

each slide of the full talk has already been rendered to `html` using the underlying markdown package (`yuin/goldmark`), by passing the expected `present.Xyz` structure.

my [sbinet/present-tex](https://github.com/sbinet/present-tex) command was using the "data model" of `present` to render it to `LaTeX+Beamer`.

couldn't `present.parseSections` be modified to translate a `goldmark` AST into the "old" `present` data model instead of eagerly rendering everything to `html` ?
Repository: kubernetes
Issue: kubelet does not restart static pods when apiserver is down
Labels: kind/bug,priority/backlog,sig/node,lifecycle/frozen,needs-triage

HandlePodCleanups is responsible for restarting static pods, but handle pod cleanups will not run until the apiserver reports in.  If the apiserver or any components it depends on is running as a static pod, it is possible for the static pod to never restart.

Reproduce:

1. Start a cluster
2. Run a static pod with a static UID on a node
3. Terminate the apiservers
4. Restart the kubelet of the node with the static pod
5. Change the configuration of the static pod on disk

Expect: static pod with static uid should restart

HandlePodCleanups should be able to SyncKnownPods to pod worker and restart static pods independent of whether the apiserver is running.

We are missing e2e tests that simulate down apiserver and stress static pods, which could have caught this.