sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: vscode
Issue: SCM - API: Finalize `SourceControl.selected`
Labels: api,scm,under-discussion,api-proposal

First is here:
https://github.com/microsoft/vscode/blob/9b564ad40db4a07b2cdc13a9e5a994ad8381222f/src/vs/vscode.proposed.d.ts#L689-L737

Second is here:
https://github.com/microsoft/vscode/blob/9b564ad40db4a07b2cdc13a9e5a994ad8381222f/src/vs/vscode.proposed.d.ts#L740-L755
Repository: transformers
Issue: Summarization length not controlled by max_length, min_length
Labels: WIP

I am using the pertained ctrlsum-cnndm model from transformers. I noticed that summarization text length is not exactly controlled by max_length, min_length arguments of model.generate(). Not sure why. It appears that empty spaces are included, but not sure. Please help. Thanks.

```
text1="The tower is 324 metres (1,063 ft) tall, about the same height as an 81-storey building, and the tallest structure in Paris. Its base is square, measuring 125 metres (410 ft) on each side. During its construction, the Eiffel Tower surpassed the Washington Monument to become the tallest man-made structure in the world, a title it held for 41 years until the Chrysler Building in New York City was finished in 1930. It was the first structure to reach a height of 300 metres. Due to the addition of a broadcasting aerial at the top of the tower in 1957, it is now taller than the Chrysler Building by 5.2 metres (17 ft). Excluding transmitters, the Eiffel Tower is the second tallest free-standing structure in France after the Millau Viaduct."

from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("hyunwoongko/ctrlsum-cnndm")
model = AutoModelForSeq2SeqLM.from_pretrained("hyunwoongko/ctrlsum-cnndm")

inputs = tokenizer.encode(text1, return_tensors="pt", max_length=1024)#16
outputs = model.generate(inputs, max_length=100, min_length=50, num_beams=5, early_stopping=True)
print(tokenizer.decode(outputs[0]))
```

Results:
max_length=100, min_length=50, actually 36 words
`
 The Eiffel Tower is 324 metres (1,063 ft) tall, about the same height as an 81-storey building. It is the tallest structure in Paris and the second tallest free-standing structure in France after the Millau Viaduct.

`


max_length=200, min_length=100, actually 83 words
`
 The Eiffel Tower is 324 metres (1,063 ft) tall, about the same height as an 81-storey building, and the tallest structure in Paris. It was the tallest man-made structure in the world for 41 years until the Chrysler Building in New York City was finished in 1930. It is the second tallest free-standing structure in France after the Millau Viaduct, which measures 125 metres (410 ft) on each side. The tower is now taller than the Chrysler building by 5.2 metres (17 ft)

`
Repository: go
Issue: x/crypto/ocsp: Verify ProducedAt, ThisUpdate, and NextUpdate against cert validity window
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.15.8 linux/amd64
</pre>

### Does this issue reproduce with the latest release?
Almost certainly. I don't see anything in https://github.com/golang/crypto/blob/master/ocsp/ocsp.go that would change the situation.

### 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/twifkak/.cache/go-build"
GOENV="/home/twifkak/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/twifkak/.go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/twifkak/.go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/lib/go-1.15"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go-1.15/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
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 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build079748278=/tmp/go-build -gno-record-gcc-switches"
</pre></details>

### What did you do?
https://play.golang.org/p/oV4dSUSHMt9

`ocsp.ParseResponse()` does not validate that the response's `ProducedAt` is within the `NotBefore`/`NotAfter` range of the provided `cert.

`ocsp.ParseResponseForCert()`, if given an OCSP response with multiple SingleResponses, does not necessarily pick the one with the correct `ProducedAt` per the same logic.

### What did you expect to see?
```
&ocsp.Response{Status:2, ...
panic: no response matching the supplied certificate
```

### What did you see instead?
```
&ocsp.Response{Status:0, ...
&ocsp.Response{Status:0, ...
```
Repository: tensorflow
Issue: tf.io.gfile.walk broken on Windows
Labels: stat:awaiting tensorflower,type:bug,comp:ops

It seems that the path isn't split correctly. Filenames come with an extra `\` prefix. Minimal reproducible example:

```python3
import os
import tensorflow as tf


tf.io.gfile.makedirs("ram://folder")
with tf.io.gfile.GFile("ram://folder/file.txt", mode="w") as f:
    f.write("data")

for root, _, filenames in tf.io.gfile.walk("ram://folder"):
    for filename in filenames:
        assert tf.io.gfile.exists(os.path.join(root, filename))
```

This passes on *nix but not on Windows. Here is a quick CI run in GitHub actions showing this: https://github.com/adriangb/tensorflow-test/actions/runs/688190284

ccing @mihaimaruseac @bhack
Repository: flutter
Issue: flutter doctor CLI points to "Devices and Simulators" window when attempting to debug
Labels: tool,t: xcode,P3,team-tool,triaged-tool

See message below; the Flutter CLI is pointing me to check the "Devices and Simulators" window -- but I've no idea which window that is? Something in Xcode? Elsewhere? I was smart enough to think to run `flutter devices`, which gave me a better error; I suspect that should be the one that `flutter doctor` offers

```
 ~> flutter doctor -v
[✓] Flutter (Channel master, 2.1.0-13.0.pre.281, on macOS 11.3 20E5217a darwin-x64, locale en-US)
    • Flutter version 2.1.0-13.0.pre.281 at /Users/timsneath/flutter
    • Framework revision dfc134dd9a (43 minutes ago), 2021-03-25 15:43:44 -0700
    • Engine revision b5e15d055d
    • Dart version 2.13.0 (build 2.13.0-162.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/timsneath/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.4, Build version 12D4e
    • CocoaPods version 1.10.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] VS Code (version 1.54.3)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.20.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 11.3 20E5217a darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 89.0.4389.90
    ! Error: Errors were encountered while preparing your device for development. Please check the
      Devices and Simulators Window.  (code -1)

• No issues found!

 ~> flutter devices
3 connected devices:

Tim's iPhone 11 (mobile) • 00008030-00090DD40160802E • ios            • iOS 14.4.1
macOS (desktop)          • macos                     • darwin-x64     • macOS 11.3 20E5217a
darwin-x64
Chrome (web)             • chrome                    • web-javascript • Google Chrome 89.0.4389.90

• Error: Tim's iPhone 11 is busy: Preparing Tim's iPhone 11 for development. Xcode will continue
  when Tim's iPhone 11 is finished. (code -10)
```
Repository: scrcpy
Issue: Recording stops intermittently.
Labels: todo

**Environment**
 - OS: [Windows10]
 - scrcpy version: [1.16 and 1.17]
 - device model:Galaxy Note5
 - Android version: [7.0]

**Describe the bug**
Recording stops intermittently.

Option used
--serial udid
--no-control
--window-title window_title
--record C:/Log/test.mp4
--max-size 800
--encoder OMX.google.h264.encoder

```
ERROR: Could not record packet
ERROR: Could not send packet to recorder
ERROR: Could not process frame
INFO: Finishing recording...
ERROR: Recording failed to C:/Log/test.mp4
WARN: Device disconnected
```
Repository: godot
Issue: Adding a new line after a commented out line ignores indentation
Labels: bug,topic:editor

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:**
<!-- Specify commit hash if using non-official build. -->
3.2.3

**OS/device including version:**
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->
Linux

**Issue description:**
<!-- What happened, and what was expected. -->
happened:


https://user-images.githubusercontent.com/16458555/112558231-1346b300-8df0-11eb-9c8a-b9f63452903f.mp4



expected:


https://user-images.githubusercontent.com/16458555/112558236-15a90d00-8df0-11eb-83bc-f72005f66801.mp4




**Steps to reproduce:**
1. Create a script
2. Create a function with some code (one line is enough) and comment it (`Control+K`)
3. Press `Enter` or `Control+Enter` to add a new line (right after the commented out one)
As you can see, indentation level is not taken into account, but it should.
As a result you need to hit `Tab` key to keep indentation

This is a bit annoying, especially when you have multiple levels of indentation (and have to press `Tab` several times)


**Minimal reproduction project:**
<!-- A small Godot project which reproduces the issue. Drag and drop a zip archive to upload it. -->
Repository: pytorch
Issue: [Feature request] Add batched matrix support for torch.diag
Labels: triaged,enhancement,module: numpy,module: batching,module: linear algebra

## 🚀 Feature

Let `torch.diag` support batched matrix, e.g. tensors with >= 3 dimensions. Currently, `torch.diag` only supports a 1d or 2d tensor. See https://github.com/pytorch/pytorch/blob/53596cdb7359116e8c8ae18ffef06f2677ad1296/aten/src/ATen/native/cuda/TriangularOps.cu#L151-L155

## Motivation

Many pytorch linear algebra operators support batched operations. It would be nice that `torch.diag` also supports that.


cc @jianyuh @nikitaved @pearu @mruberry @heitorschueroff @walterddr @IvanYashchuk @rgommers @kshitij12345
Repository: opencv
Issue: hello, i have the same problem, but i have another code
Labels: category: gpu/cuda (contrib)

hello, i have the same problem, but i have another code
there i have testing opencv cuda

import cv2
from cv2 import cuda

img = cv2.imread("image.jpg", cv2.IMREAD_GRAYSCALE)
src = cv2.cuda_GpuMat()
src.upload(img)


clahe = cv2.cuda.createCLAHE(clipLimit=5.0, tileGridSize=(8, 8))
dst = clahe.apply(src, cv2.cuda_Stream.Null())
result = dst.download()
cv2.imshow("result", result)
cv2.waitKey(0)



error
dst = clahe.apply(src, cv2.cuda_Stream.Null())
cv2.error: OpenCV(4.4.0) E:/CUDA/opencv_contrib-4.4.0/modules/cudaimgproc/src/cuda/clahe.cu:398: error: (-217:Gpu API call) invalid configuration argument in function 'clahe::transform'

_Originally posted by @potemkin413 in https://github.com/opencv/opencv/issues/19160#issuecomment-764984261_
Repository: go
Issue: Gerrit: can't push code because of the location
Labels: NeedsInvestigation

### What did you do?
$ git push https://go.googlesource.com/go  HEAD:refs/for/master
remote: PERMISSION_DENIED: The caller does not have permission
remote: [type.googleapis.com/google.rpc.LocalizedMessage]
remote: locale: "en-US"
remote: message: "go.googlesource.com is not available from your location."
remote:
remote: [type.googleapis.com/google.rpc.RequestInfo]
remote: request_id: "dc7bf1e761f54a5a9d692005f88dfd7e"
fatal: unable to access 'https://go.googlesource.com/go/': The requested URL returned error: 403

China’s IP seems to be blocked, but our export IP is Singapore. Is the Singapore IP also blocked?
Repository: neovim
Issue: window or buffer local hlsearch
Labels: enhancement

I know that I can run a search in vim using `/`. I prefer having search highlighting turned on, but if I have a two splits with different files open, and I search for a term in one, they get highlighted as if I ran the same search or substitution in both. The same thing occurs with tabs as well.
This looks really wonky with certain plugins like `coc-explorer`:
![image](https://user-images.githubusercontent.com/95201/112572699-eff81580-8da7-11eb-80a6-6aa1442cf960.png)

I wonder if a window or buffer local version of it could be implemented... I am not sure if this might imply window/buffer local searches as well, but maybe that would be a good thing?
Repository: go
Issue: proxy.golang.org: let storage.googleapis.com/proxy-golang-org-prod return responses with 'Access-Control-Allow-Origin: *'
Labels: NeedsInvestigation,FeatureRequest,proxy.golang.org

Apparently https://proxy.golang.org/ now returns responses with `Access-Control-Allow-Origin: *`, which is awesome. However, the storage server (https://storage.googleapis.com/proxy-golang-org-prod/...) for zip files does not.

I'd be happy if the storage server could return responses with `Access-Control-Allow-Origin: *`, so that we could create our own playground where Go tool chain works on browsers completely. Actually, I have succeeded to create a Go toolchain compiled in Wasm (https://github.com/hajimehoshi/asobiba, https://storage.googleapis.com/soko-dot-hajimehoshi-dot-org/asobiba/index.html) and now I'm now using a third party's GOPROXY instead.
Repository: pytorch
Issue: torch.sqrt for negative values should either return complex tensors or clearly throw a domain error/warning
Labels: triaged,module: complex,module: numpy

There are three possible courses of action here:
1. Throw a warning like numpy and continue returning nan
2. Throw a domain error like `math.sqrt`
3. Return a complex tensor like cmath

```
>>> np.sqrt(np.array([-1]))
<stdin>:1: RuntimeWarning: invalid value encountered in sqrt
array([nan])
>>> math.sqrt(-1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: math domain error
>>> torch.sqrt(torch.tensor(-1))
tensor(nan)
>>> cmath.sqrt(-1)
1j
```

cc @ezyang @anjali411 @dylanbespalko @mruberry @rgommers @heitorschueroff
Repository: storybook
Issue: Composition: Option to load external storybook minimized
Labels: feature request,help wanted,composition

I've already [asked](https://github.com/storybookjs/storybook/discussions/14089) about this feature, but it seems, right now there is no option for that.
I want to add several external storybooks and it's not very convenient to scroll through llooooong list of every stories grom every storybooks.

<img src="https://user-images.githubusercontent.com/8345600/112463642-8eb64f00-8d73-11eb-9ae6-ffa58466bba5.png" width="300">

<img src="https://user-images.githubusercontent.com/8345600/112464091-20be5780-8d74-11eb-8322-2068d71a49ce.png" width="300">



```
refs: {
   name: {
      title,
      url,
      minimized: true  // add this option to refs. By default it's false
   }
}
```

_Originally posted by @tim-mukhin in https://github.com/storybookjs/storybook/discussions/14335_
Repository: vscode
Issue: profile.allowCompactBoolean does not work with jsx
Labels: bug,upstream,emmet,upstream-issue-linked

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
```
Version: 1.54.3
Commit: 2b9aebd5354a3629c3aba0a5f5df49f43d6689f8
Date: 2021-03-15T11:57:12.728Z (1 wk ago)
Electron: 11.3.0
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: 8.7.220.31-electron.0
OS: Darwin x64 20.3.0
```

### Steps to Reproduce
1. Click *Disable All Installed Extensions* in extensions tab.
2. *Reload window*
3. Add `"emmet.preferences": {"profile.allowCompactBoolean": true}` to settings.json.
4. Cmd+N (New untitled file)
4. *Change Language Mode* - `javascriptreact`
5. Type `div[a. b.]<tab>`

### Expected behavior
```
<div a b></div>
```

### Actual behavior
```
<div a="" b=""></div>
```

### Additional context
If language mode is html, vscode shows expected behavior.

I tried the following setting but nothing changed.
```
  "emmet.syntaxProfiles": {
    "javascript": {
      "compact_bool": true,
      "profile.allowCompactBoolean": true,
      "allowCompactBoolean": true,
    },
    "javascriptreact": {
      "compact_bool": true,
      "profile.allowCompactBoolean": true,
      "allowCompactBoolean": true,
    }
  }
```

<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported direct to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
Repository: pytorch
Issue: [nnc] computeAt and index flatten broken in presence of if statements
Labels: NNC

I don't have a handle on exactly what's broken, but #54756 is just a mess.  It's basically a 2-stage compute expression to that implements a padded 1d conv.  Other 2d reductions work OK with computeAt, so I'm thinking this has something to do with broken handling of ifThenElse in a mutator.
Repository: neovim
Issue: Treesitter: 'query_gc, tree_gc, treecursor_gc, etc' are never called (aka memory leaks)
Labels: bug,treesitter

- `nvim --version`: latest master

### Steps to reproduce using `nvim -u NORC`

In `src/nvim/lua/treesitter.c`, add logging messages to each of the various `__gc` methods for treesitter userdata: `tree_gc, query_gc, parser_gc, treecursor_gc, querycursor_gc`.
Then, run

```
NVIM_LOG_FILE=log build/bin/nvim src/nvim/eval.c
:bw
:lua collectgarbage('collect')
:e log
```

### Actual behaviour

None of the logging messages show up, indicating that none of the treesitter machinery has been garbage collected.


I believe that garbage collection is not being called because there are some dangling references to these items from C code - mostly from `nvim_buf_attach` or `set_decoration_provider`. For example, `tree_gc` and `parser_gc` were not being called because we did not free the nvim_buf_attach functions entirely: making the following modification to `buffer_updates.c` fixes this issue for those two functions:

```
--- a/src/nvim/buffer_updates.c
+++ b/src/nvim/buffer_updates.c
@@ -410,4 +410,7 @@ static void free_update_callbacks(BufUpdateCallbacks cb)
 {
   api_free_luaref(cb.on_lines);
   api_free_luaref(cb.on_changedtick);
+  api_free_luaref(cb.on_bytes);
+  api_free_luaref(cb.on_detach);
+  api_free_luaref(cb.on_reload);
 }
```

However, for some reason, I can't seem to ever get `query_gc, treeecursor_gc, querycursor_gc` to be called at all, meaning that  a ton of memory allocated for lua userdata is never freed. Reloading `eval.c` several times already brings up neovim memory usage to around 10% of my system's memory.

I'll need to investigate this issue further, but I would appreciate some help in this - I've been trying to fix this for a while now and I'm still stuck. Alternatively, it's possible that this isn't actually a problem at all and the leaks are coming from elsewhere.

@bfredl
Repository: godot
Issue: When Engine crashes, some project data is not persistent
Labels: topic:editor

**Godot version:**
3.2.3.stable.mono.official

**OS/device including version:**
Win10, GeForce GTX 1050/PCIe/SSE2, GLES3

**Issue description:**
When Godot crashes, if the project is open in another editor, then after opening the crashed editor anew, the following happens:
- Latest changes to .gd files and assets are retained, as they should
- Latest changes to .tscn files arenot retained, and they are immediately overwritten by the old version that is in the other editor window
- Latest changes to project settings files are reverted, either to their state before the crash or to their state in the other editor - not sure which
- Version Control set up is forgotten and needs to be set up again

**Steps to reproduce:**
1. Start Godot editor (referred as Window 1) and load your project
2. Start another Godot editor (referred as Window 2) and load your project
3. From now on, don't touch Window 2
4. In Window 1, make changes to scenes and project settings, and set up version control 
5. Keep working until Window 1 crashes
6. Start Window 1 again and load your project
7. Observe: scenes and project settings are reverted to their state in Window 2 (but not gdscript file), and version control is closed

**Minimal reproduction project:**
Any project, and two instances of Godot editor running
Repository: vscode
Issue: Color picker glitch in CSS when use Emmet cheats
Labels: polish,emmet,under-discussion

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
- VS Code Version: 1.55.0 Insider 6ebe2a1
- OS Version: Windows 10 20H2 Build 19042.572

Steps to Reproduce:

**Glitch case**

![2](https://user-images.githubusercontent.com/17777237/112606775-232abb00-8e21-11eb-9bf2-34adab289641.gif)

------------

**Normal case**

![3](https://user-images.githubusercontent.com/17777237/112606818-2625ab80-8e21-11eb-9f9a-ed3365a5a231.gif)


<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported direct to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->