sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: go
Issue: path/filepath: Glob fails and hangs on Windows when using character ranges
Labels: OS-Windows,NeedsInvestigation

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.16.4 windows/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
set GO111MODULE=on
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\...\AppData\Local\go-build
set GOENV=C:\Users\...\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=c:\...\Go-Modules\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=c:\Ignazio\Personale\Go-Modules
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=c:\...\Go\go1.16.4
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=c:\...\Go\go1.16.4\pkg\tool\windows_amd64
set GOVERSION=go1.16.4
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=C:\...\Go-Modules\src\...\go.mod
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\...\AppData\Local\Temp\go-build3528342390=/tmp/go-build -gno-record-gcc-switches
</pre></details>

### What did you do?

I am trying to get case insensitive results for `filepath.Glob()` on Windows. To do so, I'm transforming each letter in a character range for uppercase and lowercase. See https://github.com/golang/go/issues/5441.


### What did you expect to see?

The same results as when using pattern exactly matching an existing file.



### What did you see instead?

`\\server\share\filename.ext` and `c:\dir\filename.ext` are existing files.

``filepath.Glob(`c:\dir\filename.ext`)`` correctly returns one result.

``filepath.Glob(`[Cc]:\[Dd][Ii][Rr]\[fF][iI][lL][eE][nN][aA][mM][eE].[eE][xX][tT]`)`` returns no result, while it should return one result. 

``filepath.Glob(`C:\[Dd][Ii][Rr]\[fF][iI][lL][eE][nN][aA][mM][eE].[eE][xX][tT]`)`` correctly returns one result.

``filepath.Glob(`\\server\share\filename.ext`)`` correctly returns one result.

``filepath.Glob(`\\[sS][eE][rR][vV][eE][rR]\[sS][hH][aA][rR][eE]\[fF][iI][lL][eE][nN][aA][mM][eE].[eE][xX][tT]`)`` returns no result, while it should return one result. 

``filepath.Glob(`\\server\share\[fF][iI][lL][eE][nN][aA][mM][eE].[eE][xX][tT]`)`` correctly returns one result.

``filepath.Glob(`\\server\[sS][hH][aA][rR][eE]\[fF][iI][lL][eE][nN][aA][mM][eE].[eE][xX][tT]`)`` hangs, and it should not.
Repository: youtube-dl
Issue: Add support for vix.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.05.16. 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.05.16**
- [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://www.vix.com/tv/watch/telenovelas/baby-sister/1/1
- Single video: https://www.vix.com/tv/watch/telenovelas/baby-sister/1/1
- Playlist: No playlists option


## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

WRITE DESCRIPTION HERE
No account needed, all videos are free to watch.
Repository: godot
Issue: Access Violation Exception in wintab_WTOpen(...)
Labels: bug,platform:windows,topic:input,crash

**Godot version:**
Using tag: 3.3.1-stable, commit 4da4277dc9ff253ec9b23af1355d6f8bcefff5ca

**OS/device including version:**
Windows 10 20H2 (OS Build 19042.985)
Huion Tablet driver v14.8.166.1482
Huion Table Model GT-133

**Issue description:**
Occasionally, the Huion driver freaks out and I get a sigsegv deep inside the Huion wintab32.dll replacement.  Unfortunately, this outright crashes Godot before it can do anything, even display output on the screen (since it occurs before the hWnd is shown) or write to the Godot console (in debug builds).

sigsegv occurs in platform/windows/os_windows.cpp at line 3705 (at commit 4da4277dc9ff253ec9b23af1355d6f8bcefff5ca) on the wintab_WTOpen() call.

![image](https://user-images.githubusercontent.com/648339/119319388-0273bb80-bc40-11eb-9ca1-9de7c1e57e51.png)

**Steps to reproduce:**

This problem is VERY intermittent and rare, but it does occur once every 20-30 days for me when developing a Godot game.

Now that I know what is happening, I can stop it from occurring by either rebooting or by power-cycling the tablet.

**Minimal reproduction project:**
N/A

**The Good, The Bad, And The Ugly**

I know this crash isn't Godot's fault.  It's a sigsegv.  Godot couldn't handle it if wanted to (without complicated signal handling which I dunno would even work on all the platforms that Godot supports).  So I don't see a way to actually prevent it from occurring.

Now that brings me to my next point:  What if I have a customer/client who has Godot and has this issue?  Even knowing that this is a problem is hard because it occurs before logging/window creation, inside of main.cpp::Main::setup().  There's the option `--table_driver=<name>` and the project setting `display/window/tablet_driver`.  But it doesn't support a "none" or "don't care" as far as I can tell.

What I propose is we add a don't-care option which will skip tablet driver initialization (the call to set_current_tablet_driver() that occurs in main.cpp) so that this can at least be used as a debugging option in the field for weird unexpected crashes in Godot.

I'm willing to write a pull request for this but before I do I want to make sure this is the Godot Way, and if not, how should it be handled?
Repository: pytorch
Issue: [bug] torch.topk sometimes supports `float16` and sometimes doesn't
Labels: triaged,enhancement,module: half,module: sorting and selection

```python
>>> import torch
>>> x = torch.zeros((), dtype=torch.float16)
>>> x.topk(1)
torch.return_types.topk(
values=tensor(0., dtype=torch.float16),
indices=tensor(0))
>>> x = torch.zeros((1, 2,), dtype=torch.float16)
>>> x.topk(1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: "topk_cpu" not implemented for 'Half'
```



cc @heitorschueroff
Repository: godot
Issue: Invalid pointer is shown in editor as Null
Labels: bug,topic:editor,confirmed

<!-- 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. -->
Godot 3.3.1-stable

**OS/device including version:**
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->
MacOSX 10.15.7 (19H2)

**Issue description:**
<!-- What happened, and what was expected. -->
Some time my nodes has pointers to the another nodes which are removed already. So they have invalid pointers. When editor stops with exception on any operation with this pointer it shows the message: `Attempt to call function 'bla-bla-bla' on base 'null instance' on a null instance`.
If I hover the variable by mouse cursor it shows that this pointer is Null:
![Снимок экрана 2021-05-24 в 12 14 08](https://user-images.githubusercontent.com/1177068/119325507-9b7af480-bc89-11eb-8d62-0016386fce6e.png)
But actually it is not Null but it is invalid. So it may be useful to check in debugger if any local variables (or node's properties) are invalid.

**Steps to reproduce:**
1) make a variable with pointer to any node
2) remove and free this node
3) try to perform any operation on the removed node
4) get the crash: `Attempt to call function in base 'null instance' on a null instance.`
5) hover the variable by mouse cursor and see that debugger considers this variable as Null.

**Minimal reproduction project:**
<!-- A small Godot project which reproduces the issue. Drag and drop a zip archive to upload it. -->
Repository: youtube-dl
Issue: [For YouTube] Incorrect Thumbnail URLs being fetched sometimes.
Labels: duplicate

<!--

######################################################################
  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.05.16. 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 all URLs and arguments with special characters are properly quoted or escaped as explained in http://yt-dl.org/escape.
- Search the bugtracker for similar issues: 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 broken site support
- [x] I've verified that I'm running youtube-dl version **2021.05.16**
- [x] I've checked that all provided URLs are alive and playable in a browser
- [x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
- [x] I've searched the bugtracker for similar issues including closed ones


## Verbose log


```
[debug] Command-line args: ['--cookies', 'cookies.txt', '--verbose', '--merge-output-format', 'mp4', '--write-thumbnail', '--embed-thumbnail', '--output', '[%(upload_date)s] %(title)s (%(id)s).%(ext)s', '--', 'https://www.youtube.com/watch?v=ACV-i-b10io']
[debug] Encodings: locale cp65001, fs mbcs, out cp65001, pref cp65001
[debug] youtube-dl version 2021.05.16
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.18362
[debug] exe versions: ffmpeg 2021-03-09-git-c35e456f54-full_build-www.gyan.dev, ffprobe 2021-03-09-git-c35e456f54-full_build-www.gyan.dev
[debug] Proxy map: {}
[debug] Default format spec: bestvideo+bestaudio/best
WARNING: Unable to download thumbnail "https://i.ytimg.com/vi/ACV-i-b10io/maxresdefault.jpg?v=6039625b": HTTP Error 404: Not Found
```


## Description


While trying to download certain YouTube videos, Youtube-DL fetches the wrong URL and won't download any thumbnail at all. In the example from the log above, the URL for the thumbnail is: http://i3.ytimg.com/vi/ACV-i-b10io/maxresdefault.jpg

It seems this only occurs with thumbnails on URLs beginning with i3.ytimg.com/vi/xxxxxxxxxxxxx
Repository: vscode
Issue: Components that offer to open an editor should specify the `override` that makes most sense
Labels: debt,ux,workbench-editor-resolver

This is a follow up from https://github.com/microsoft/vscode/issues/124122 (cc @andreamah) and my review from https://github.com/microsoft/vscode/pull/124394.

In https://github.com/microsoft/vscode/issues/124122 the issue at hand is that a UI piece in VSCode provides support to open editors (in this case the Outline view). If the user has configured the default editor to be an editor that is different from what the UI piece is intending to open, you get the wrong editor opening based on the user action.

I see that https://github.com/microsoft/vscode/pull/124194 tries to resolve this by teaching the outline view which `override` to use via probing on the `viewType` property (which only exists on notebooks and custom editors currently). I think there are 2 issues to follow up:

**Outline**
The outline view works with outline providers that can return the outline for the given active editor. Currently I see 2:
* `notebookOutline`
* `documentSymbolsOutline`

Both implement a method `reveal` which is called when you click on an entry in the outline (and I think even when you use breadcrumbs too). I think a better fix for https://github.com/microsoft/vscode/issues/124122 would be to:
* explicitly pass in the right `viewType` for [`notebookOutline#reveal`](https://github.com/microsoft/vscode/blob/7ea5b137eaf1771e3fa2c7b569b2fca880db12b8/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.ts#L541-L541) implementation based on the editor
* enforce to use a text editor in [`documentSymbolsOutline#reveal`](https://github.com/microsoft/vscode/blob/3b87c36e2dc5a9a6f61fd11daca1e9316474ebdc/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsOutline.ts#L211-L211)

I think fixing the former is straight forward because it looks like the `notebookOutline` is always constructed over a notebook editor where the view type is known.

For the latter: we have a service called [`ICodeEditorService`](https://github.com/microsoft/vscode/blob/5c4663baadf575b10b548c437fdf10c9afb7d21f/src/vs/workbench/services/editor/browser/codeEditorService.ts#L18-L18) and the intent is:
* it is the service that most components use that operate within the monaco code editor (e.g. find references, goto definition)
* it should always result in a text editor opening, never be overridden

As such, I would think that in the code editor service we need to either pass `EditorOverride.DISABLED` or the identifier of the default text editor.

**Other UI Components (e.g. search, problems, custom views?)**
I can reproduce the issue for outlines easily with other UI components that allow to open editors, e.g. for search:

![recording](https://user-images.githubusercontent.com/900690/119335012-0f1e0100-bc8c-11eb-9b16-671c32ab86e5.gif)

There are probably a lot more places where the user can trigger an editor to open. I think for UI components that operate on text (e.g. search, problems), we need to make sure that the resulting editor is text based.
Repository: TypeScript
Issue: "Remove braces from arrow function": comment inside parentheses is lost
Labels: Bug,Help Wanted,Domain: Refactorings

# Bug Report

<!--
  Please fill in each section completely. Thank you!
-->

### 🔎 Search Terms

<!--
  What search terms did you use when trying to find an existing bug report?
  List them here so people in the future can find this one more easily.
-->

vs code quick fix code action source

### 🕗 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 refactorings

### ⏯ Playground Link

N/A

### 💻 Code

<!-- Please post the relevant code sample here as well-->
```ts
const fn = () => {
    return (
        // foo
        1
    );
};
```

1. Run refactoring "Remove braces from arrow function"

### 🙁 Actual behavior

```ts
const fn = () => (
    1
);
```

### 🙂 Expected behavior

```ts
const fn = () => (
    // foo
    1
);
```
Repository: TypeScript
Issue: "Move to new file" removes line separators
Labels: Bug,Domain: Refactorings

# Bug Report

<!--
  Please fill in each section completely. Thank you!
-->

### 🔎 Search Terms

<!--
  What search terms did you use when trying to find an existing bug report?
  List them here so people in the future can find this one more easily.
-->

empty new line format refactor quick fix vs code

Similar to https://github.com/microsoft/TypeScript/issues/27294

### 🕗 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 refactorings

### ⏯ Playground Link

N/A

### 💻 Code

<!-- Please post the relevant code sample here as well-->
```ts
const f = 1;

const g = 1;

export const result = f + g;
```

1. Highlight both `const f` and `const g` and run "move to new file"

### 🙁 Actual behavior

New module:

```ts
export const f = 1;
export const g = 1;
```

### 🙂 Expected behavior

New module:

```ts
export const f = 1;

export const g = 1;
```
Repository: excalidraw
Issue: Arrow not drawn on correct position when moving linked element
Labels: bug

Arrow not drawn on correct position when moving linked element

![Screenshot 2021-05-24 at 14 30 17](https://user-images.githubusercontent.com/356014/119348007-996e6100-bc9c-11eb-86c0-56d6864833ac.png)

![Screenshot 2021-05-24 at 14 27 22](https://user-images.githubusercontent.com/356014/119347802-4e544e00-bc9c-11eb-93b1-0d6f65eaf3e5.png)

The png export shows the arrow at the correct position. 
![image](https://user-images.githubusercontent.com/356014/119347960-852a6400-bc9c-11eb-9357-5f25d56e41c4.png)

Example: https://excalidraw.com/#json=6182680924258304,jVToHsvJ6j84aATTIHLeQQ
Repository: ant-design
Issue: table selectedRowKeys设置选中后，进行搜索，选中的条数未变化
Labels: Inactive

- [x] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.

### Reproduction link
[https://preview.pro.ant.design/list/table-list?primaryColor=%231890ff&fixSiderbar=true&colorWeak=false&pwa=false](https://preview.pro.ant.design/list/table-list?primaryColor=%231890ff&fixSiderbar=true&colorWeak=false&pwa=false)
https://codesandbox.io/s/antd-reproduction-template-forked-nkqib

### Steps to reproduce
1. 选中表格当前页
2. 搜索1


### What is expected?
以目前筛选后剩余选择项为准

### What is actually happening?
还是选择10项

| Environment | Info |
|---|---|
| antd | 4.15.6 |
| React | 17 |
| System | macos 11.2.3 |
| Browser | chrome 90 |


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: go
Issue: x/net/html/charset: DetermineEncoding returns encoding.Nop and "utf-8" as name
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.13 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/d.fedorova/.cache/go-build"
GOENV="/home/d.fedorova/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/d.fedorova/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/lib/golang"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/golang/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/d.fedorova/mailapi/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-build166701564=/tmp/go-build -gno-record-gcc-switches"
</pre></details>

### What did you do?
I called DetermineEncoding for a utf8 invalid string that has invalid bytes after first 1024 bytes.
https://play.golang.org/p/M0LeleRdj16

### What did you expect to see?
I expect encoding returned by DetermineEncoding to decode my content into valid utf8 string even if certain == false  (with replacement characters if needed).
I expected https://pkg.go.dev/golang.org/x/text/encoding/unicode#UTF8 to be returned with utf-8 name.
It seems wrong to me to return encoding.Nop if we only checked prefix of all content.
https://github.com/golang/net/blob/master/html/charset/charset.go#L98
```
if hasHighBit && utf8.Valid(content) {
    return encoding.Nop, "utf-8", false
}
```


### What did you see instead?
encoding.Nop is returned with name utf-8 (https://pkg.go.dev/golang.org/x/text@v0.3.5/encoding#Nop)
And NewDecoder did not return valid utf8 string
Repository: create-react-app
Issue: CRA v4 not setting up eslint fully when using --scripts-version with local react-scrtips version
Labels: needs triage,issue: bug report

I have been developing my own react-scrtips version. After I generate the React app using it from my file system with the --scripts-version option, I get this error:

```
Failed to load config "react-app" to extend from.
Referenced from: /Users/leventerozsenich/WORK_SPACE/custom-cra/test/package.json
```
I have tried using the original react-scrtips the same way and the result is the same.

How to reproduce it:

- install node v14.17.0 and npm 6.14.13
- install create-react-app
- clone create-react-app repo
- next to the cloned repo run `npx create-react-app test --scripts-version file:./create-react-app/packages/react-scripts`
- run the application created under test/

Using --scripts-version as an NPM package works without an issue.