sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: neovim
Issue: Add all the filetypes extensions recognized by github
Labels: enhancement,needs:vim-patch

### Feature already in Vim?

probably not

### Feature description

from https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks#syntax-highlighting

> We use [Linguist](https://github.com/github/linguist) to perform language detection and to select [third-party grammars](https://github.com/github/linguist/blob/master/vendor/README.md) for syntax highlighting. You can find out which keywords are valid in [the languages YAML file](https://github.com/github/linguist/blob/master/lib/linguist/languages.yml).

So I took that file and piped into [yq](https://github.com/kislyuk/yq) to get a json representation that we can then use to compare against the current list https://github.com/neovim/neovim/blob/9e1ee9fb1d747facb6fa97a32dc5e22c7dfcb346/runtime/lua/vim/filetype.lua#L30-L32

here's the script
- [filetype_gen_missing-lua](https://gist.github.com/kylo252/c541f19752900afd83c3c32f0908b108#file-filetype_gen_missing-lua)

and the list of missing filetypes extensions I ended up with

- [missing.lua](https://gist.github.com/kylo252/c541f19752900afd83c3c32f0908b108#file-missing-lua)

The generated list obviously requires some further processing, but it shouldn't be too bad with some basic filtering rules _(note: I'm not suggesting adding the script itself)_.
Repository: pytorch
Issue: Allow specifying pickle module for torch.package
Labels: enhancement,oncall: package/deploy,imported

### 🚀 The feature, motivation and pitch

I'm working on a service that is to receive files created with `torch.package` to instantiate `torch.nn.Module`s created by a different service. Some of the modules use, somewhere in their structure, lambda functions and other constructs that are not supported by `pickle`, but are supported by the `dill` package.

Seeing as how the `torch.save` and `torch.load` functions both support specifying a `pickle_module` to use, I was wondering if it was possible to support specifying it when instantiating `torch.package.PackageExporter` and `torch.package.PackageImporter`, so I could take advantage of the dependency bundling they provide?

### Alternatives

I can use `torch.save` and `torch.load` with `dill` as the `pickle_module`, though that in and out of itself doesn't bundle any dependencies needed to instantiate the module later on, and so I'd need both services to have the classes and methods, and updates on one side won't be reflected on the other.

I could also copy the source code of `torch.package`, make the necessary adjustments to it so that it uses `dill`, and use that code instead, but I'd have to make sure it is up to date with any changes made in this repository, and again will need this code to exist in both services.

### Additional context

_No response_
Repository: flutter
Issue: Implementation of `EditableTextState._scheduleShowCaretOnScreen`
Labels: a: text input,framework,f: material design,c: proposal,team-design,triaged-design

Currently it's not possible to select more text than it's visible in a scrollable. Because the function is always trying to show a padded caret rect, which for selected text happens to be at the beginning of the selection. This is because `_FloatingCursorPainter.paint` skips painting for non-collapsed selection and updating the cashed caret rect is performed at the end of the painting via callback to `RenderEditable`. 

Visually there is no caret on non-collapsed selection, then what to show? Why should the beginning of the selection be treated as the caret position and not the end? Maybe the function should have another name and `EditableTextState._currentCaretRect` be updated to `null` . Or `_currentCaretRect` should be updated even for non-collapsed selection and placed at the extent of the selection.

Probably the simplest solution would be to add 
```dart
final Rect rectToReveal;
final TextSelection selection = textEditingValue.selection;
if (selection.isCollapsed) {
  rectToReveal = targetOffset.rect;
} else {
  final List<Rect> selectionBoxes = renderEditable.getBoxesForSelection(selection);
  rectToReveal = selection.baseOffset < selection.extentOffset ?
    selectionBoxes.last : selectionBoxes.first;
}
```
and change 
```dart
rect: caretPadding.inflateRect(targetOffset.rect)
```
to
```dart
rect: caretPadding.inflateRect(rectToReveal)
```

Also note there is another issue with scrolling while selecting text by dragging the mouse, but that has to do with the implementation of `TextSelectionGestureDetectorBuilder.onDragSelectionUpdate`.
Repository: TypeScript
Issue: Support to method decorator that change the method signature
Labels: Suggestion,Awaiting More Feedback

# Suggestion

As the title said, I just started using typescript and I want to have a `method` decorator that is able to change the method signature and have `tsc` knew about the new signature.


## 🔍 Search Terms

I have seen a lot of works around `class` decorators, like #4881 but nothing specifically on supporting the behavior I have described.


## ✅ Viability Checklist

<!--
   Suggestions that don't meet all these criteria are very, very unlikely to be accepted.
   We always recommend reviewing the TypeScript design goals before investing time writing
   a proposal for ideas outside the scope of the project.
-->
My suggestion meets these guidelines:

* [*] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [*] This wouldn't change the runtime behavior of existing JavaScript code
* [*] This could be implemented without emitting different JS based on the types of the expressions
* [*] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
* [ ] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).


## ⭐ Suggestion


If not for other things, I would like to understand if there is some way to set the types of `decorator`to signal the new decorated function signature.

## 📃 Motivating Example

As a minimal example, look at

```typescript
function decorator(_target: any, _propertyKey: string, descriptor: PropertyDescriptor): void {
    const method = descriptor.value;
    descriptor.value = function wrapper(a: number, b: number, c: number): void {
        // here you have access to a, b, c
        console.log(a, b, c);
        return method.call(this, a, b, c);
    }
}

class C {
    @decorator
    method(a: number, b: number): void {
        // here you have access to a, b
        console.log(a, b);
    }
}

new C().method(1, 2, 3); // here you pass a, b and c
```

`tsc` sasys that there is an error in the last line, because it doesn't "know" that `C.method` have a new signature, after applying the `decorator`.


## 💻 Use Cases

I'm implementing a simple method wrapper that add a parameter to do pre-checks on method invocation itself
Repository: go
Issue: x/tools/gopls: reference shadow warning should provide more context
Labels: NeedsInvestigation,gopls,Tools,Refactoring


### gopls version
at tip

### What did you do?
I try to rename a symbol


### What did you see ?

A message in a box saying 
`renaming this type "Limit" to "int" would shadow this reference to the type declared here`

The message is unhelpful, as there is no information about where in the code the mysterious problem occurs.
Repository: godot
Issue: Initializing a class instance derived from another class itself derived from Reference crashes the game on reaching the line count of the firstr class, but not always.
Labels: bug,topic:core,topic:gdscript,crash

### Godot version

3.4.4 stable, 3.4.2 stable, maybe others

### System information

windows 10, OpenGL ES 3.0 Renderer: NVIDIA GeForce GTX 1070/PCIe/SSE2

### Issue description

In the example project, class SellingWares derives from WaresDict, which itself derives from Reference. They are contained in class StationStats, itself derived from Reference. It contains two typed variables, 

`var buying_wares: BuyingWares = BuyingWares.new()`
`var selling_wares: SellingWares = SellingWares.new()`

Upon being instantiated, StationStats crashes with project with this in the console:

`ERROR: FATAL: Index p_index = 2 is out of bounds (((Vector<T> *)(this))->_cowdata.size() = 2).`
`at: operator[] (./core/vector.h:49)`

When going through it step by step, you can see that StationStats correctly initializes first variable (buying_wares), but hitches on second. In it, it initializes variables up to line number equal to line count of child class. SellingWares has two lines, and initialization of WaresDict it is derived from hitches on line 3. But, this happens only on initialization of second variable of StationStats, even though the same code is executed on the first variable.

### Steps to reproduce

Run the scene included, and watch the game quietly crash.

### Minimal reproduction project

[BugTest.zip](https://github.com/godotengine/godot/files/8763276/BugTest.zip)
Repository: go
Issue: cmd/go: test cache not invalidated when modifying testdata subdirectory
Labels: Unfortunate,NeedsInvestigation

<!--
Please answer these questions before submitting your issue. Thanks!
-->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.18.2 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/fhenneke/.cache/go-build"
GOENV="/home/fhenneke/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/fhenneke/go/pkg/mod"
GONOPROXY="code-intelligence.com/*"
GONOSUMDB="code-intelligence.com/*"
GOOS="linux"
GOPATH="/home/fhenneke/go"
GOPRIVATE="code-intelligence.com/*"
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.18.2"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/fhenneke/git/cifuzz/go.mod"
GOWORK=""
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-build2057125203=/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 go.dev/play is best.
-->

1. Have some test that accesses a directory `testdata` with test data that contains a subdirectory `subdir` that contains a file `foo`.
2. Run `go test ./...`.
3. Change `foo`.
4. Run `go test ./...`.

### What did you expect to see?

The test is rerun despite caching being enabled since a data dependency changed.

### What did you see instead?

The test is not run again.

### Root cause

The cache invalidation logic in [`test.go`](https://github.com/golang/go/blob/master/src/cmd/go/internal/test/test.go) lists all entries in `testdata` in
https://github.com/golang/go/blob/61fc5df6897544d8ecf8efd5b39648a6bd121ec8/src/cmd/go/internal/test/test.go#L1737 and then calls [hashWriteStat](https://github.com/golang/go/blob/61fc5df6897544d8ecf8efd5b39648a6bd121ec8/src/cmd/go/internal/test/test.go#L1782) on them (in this case, on `testdata/subdir`). This function records the results of a `stat`, including the mtime of the directory. But the mtime of a directory is not updated when any of the files it contains changes.

Instead, the logic could do a full recursive walk over the directory and collect the individual mtimes of the contents.
Repository: vscode
Issue: `$msCompile` problem matcher has issues with wrapped lines
Labels: bug,tasks

<!-- ⚠️⚠️ 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. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->

Duplicate: #85839, #127073.

Ran using terminals: `Git Bash`, `Command Prompt`, `Power Shell`. All the same.
Problem matcher: `$msCompile`

I don't have any terminal related settings in settings.json (except for default terminal).

Does this issue occur when all extensions are disabled?: Yes (even with disabled Omnisharp)

<!-- 🪓 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 directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 1.67.2
- OS Version: Win10 x64 build 19044.1706 (I'm not able to update to Win11)

Steps to reproduce are all the same as in duplicate issues:

1. Create a task outputting multiple long lines that will get wrapped in the terminal
2. Run the task with a limited space for the terminal
3. Observe the matched problems

![image](https://user-images.githubusercontent.com/45442278/170061529-6e3a5405-0d42-4972-92f7-d815818a5764.png)
![image](https://user-images.githubusercontent.com/45442278/170061578-9fb76875-8b04-4943-b676-fa66350feefc.png)

Any workarounds for now?
Repository: electron
Issue: [Bug]: Frameless browserview gets bigger size while it is set to fullscreen
Labels: platform/windows,bug :beetle:,bug/regression :leftwards_arrow_with_hook:,component/BrowserView,status/confirmed,24-x-y,25-x-y,26-x-y

### 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 bug report that matches the one I want to file, without success.

### Electron Version

18.3.0, 19.0.0, also in version 20.1, 21 ,22,23,24,25,26,27,28

### What operating system are you using?

Windows

### Operating System Version

Windows 11

### What arch are you using?

x64

### Last Known Working Electron version

17

### Expected Behavior

While you have a browser view with setAutoResize true , if you set the mainwindow or browser view to mazimize state. the browser view gets bigger size of the fullscreen res.
It is an old issue that has come back again. I re-post the old issue here 

https://github.com/electron/electron/issues/26306

### Actual Behavior

browserView should show correct size in fullscreen mode

### Testcase Gist URL

https://gist.github.com/pejman1/dbbf02f512f49943b936768c41c2444f

### Additional Information

_No response_

resizing the window to full screen by hand it shows correctly 
![Screen Shot 2022-05-26 at 10 55 40 AM](https://user-images.githubusercontent.com/11601344/170430531-7f29dd13-0696-4237-9ad0-c31b6556ad22.png)

using maximize button shrink the browserview incorrectly 

using maximize button 
![Screen Shot 2022-05-26 at 10 55 43 AM](https://user-images.githubusercontent.com/11601344/170430669-9aa36849-a0d3-441a-b10a-5d141cbfa38b.png)
Repository: PowerToys
Issue: [FancyZones] Set specific zone layouts to specific device orientation defaults.
Labels: Idea-Enhancement,Product-FancyZones,Needs-Triage

### Description of the new feature / enhancement

Whenever screen orientation is changed, zone layout should also change.
Ex: Landscape Default to Zone Layout 2 and Portrait Default to Zone Layout 1.

### Scenario when this would be used?

If a user using touch screen device such as Microsoft Surface changes orientation, windows assigned to zones become hard to interact.
Switching Zone Layout automatically on change in orientation would be great addition in FancyZones to improve user experience.

### Supporting information

_This is how I currently switch to zone layouts manually._
I have 2 Zone Layouts. ZL1 and ZL2.
I use ZL1 for Portrait and ZL2 for Landscape.
Whenever I switch device orientation, I have to manually switch to respective zone layouts by shortcut keys.

Using this approach, I found a bug. If this automatic zone layout switch feature gets integrated in FancyZones then this issue can also be added here in Issues section.

Here's what I found: _(Optional Issue/Bug for this feature)_
Consider Zone Layout got changed automatically after changing orientation, then the problem is which window goes in which zone?
So, there should be such option: 
**FancyZones > Window behaviour > During zone layout changes, move windows to their last known zone.** 👍 
which combines
1. During zone layout changes, windows assigned to a zone will match new size/positions. (I tried this but windows go to a zone number instead last known location) 👎
2. Move newly created windows to their last known zone. (This only works in newly created windows, and not when zone layout changes) 👎
Repository: transformers
Issue: [RFC] Scan & Gradient checkpointing in Flax
Labels: WIP

### Feature request

We should add scan and remat (gradient checkpointing) to the most important Flax/JAX models (BERT, GPT2, OPT, T5, BART, Wav2Vec2).

### Motivation

Scan allows for much faster compilation and memory savings and `remat` is the equivalent of `gradient_checkpointing` in PyTorch.

@sanchit-gandhi already uses both features in the Flax Seq2Seq Speech project - see: https://github.com/sanchit-gandhi/seq2seq-speech so it'd be quite trivial to get them working.

**Implementation details:**

Given that both `scan` and `remat` are not related to the model architecture, they should IMO **not** be in the model's config (We've done this mistake in PyTorch and don't want to repeat it here).

I would advocate for the following API:

```python
model = FlaxBertForMaskedLM.from_pretrained("bert-base-cased")
model.scan()  # or model.scan_enable()
model.unscan()  # or model.scan_disable()
```

and 

```python
model = FlaxBertForMaskedLM.from_pretrained("bert-base-cased")
model.gradient_checkpoint_enable()
model.gradient_checkpoint_disable()
```

As can be seen here: https://github.com/sanchit-gandhi/seq2seq-speech/blob/b28d0c25c8fad0f9ffa6707f91f7aba320d44a4b/models/modeling_flax_wav2vec2.py#L504

We'll need to re-initialize the `flax.linen.module` inside the model. However this should be fine since it just means that we do

```
self.module = self.module_class(config=config, dtype=dtype, use_scan=True, **kwargs)
 self. _is_scan_enabled = True
```

similar to this line: https://github.com/huggingface/transformers/blob/71e602725b90f63f404109bae9f72cbdf755477b/src/transformers/models/wav2vec2/modeling_flax_wav2vec2.py#L868

We can see along the PR how much logic can reside in `modeling_flax_utils.py` and how much would go into the specific models, *e.g.* `modeling_flax_wav2vec2.py`.

The same API / logic could be used for the `gradient_checkpointing`.

### Your contribution

Happy to give this implementation a shot with @sanchit-gandhi  and @patil-suraj .

Also would love to hear feedback from @borisdayma @marcvanzee about the API
Repository: material-ui
Issue: Autocomplete: Unable to use the arrows key to select a list item in Firefox + VoiceOver
Labels: accessibility,component: autocomplete

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Current behavior 😯

Unable to use the arrows key to select a list item in Firefox + VoiceOver

### Expected behavior 🤔

Be able to use the arrows key to select a list item in Firefox + VoiceOver

### Steps to reproduce 🕹

Steps:

1. Open https://mui.com/material-ui/react-autocomplete/#main-content in Firefox
2. Open VoiceOver
3. Use the tab key to focus on the autocomplete input
4. Use the arrow down key to select a list item

Video demo: https://www.youtube.com/watch?v=lfC0tkaTVVM

### Context 🔦

_No response_

### Your environment 🌎

<details>
  <summary>`npx @mui/envinfo`</summary>

```
  System:
    OS: macOS 12.3
  Browsers:
    Firefox: 100.0.2
```
</details>
Repository: rust
Issue: Tracking Issue for RFC 3216: "Allow using `for<'a>` syntax when declaring closures"
Labels: B-RFC-approved,T-lang,B-unstable,C-tracking-issue,S-tracking-needs-summary,T-types,F-closure_lifetime_binder

<!--
NOTE: For library features, please use the "Library Tracking Issue" template instead.

Thank you for creating a tracking issue! 📜 Tracking issues are for tracking a
feature from implementation to stabilisation. Make sure to include the relevant
RFC for the feature if it has one. Otherwise provide a short summary of the
feature and link any relevant PRs or issues, and remove any sections that are
not relevant to the feature.

Remember to add team labels to the tracking issue.
For a language team feature, this would e.g., be `T-lang`.
Such a feature should also be labeled with e.g., `F-my_feature`.
This label is used to associate issues (e.g., bugs and design questions) to the feature.
-->

This is a tracking issue for the RFC "Allow using `for<'a>` syntax when declaring closures" (rust-lang/rfcs#3216).
The feature gate for the issue is `#![feature(closure_lifetime_binder)]`.

### About tracking issues

Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however *not* meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.

### Steps
<!--
Include each step required to complete the feature. Typically this is a PR
implementing a feature, followed by a PR that stabilises the feature. However
for larger features an implementation could be broken up into multiple PRs.
-->

- [X] Implement the RFC  - implemented in https://github.com/rust-lang/rust/pull/98705
- [ ] Adjust documentation ([see instructions on rustc-dev-guide][doc-guide])
- [ ] Stabilization PR ([see instructions on rustc-dev-guide][stabilization-guide])

[stabilization-guide]: https://rustc-dev-guide.rust-lang.org/stabilization_guide.html#stabilization-pr
[doc-guide]: https://rustc-dev-guide.rust-lang.org/stabilization_guide.html#documentation-prs

### Unresolved Questions
<!--
Include any open questions that need to be answered before the feature can be
stabilised.
-->

None at this time

### Implementation history

* Initial implementation in https://github.com/rust-lang/rust/pull/98705

<!--
Include a list of all the PRs that were involved in implementing the feature.
-->


<!-- TRIAGEBOT_START -->

<!-- TRIAGEBOT_ASSIGN_START -->

<!-- TRIAGEBOT_ASSIGN_DATA_START$${"user":"WaffleLapkin"}$$TRIAGEBOT_ASSIGN_DATA_END -->

<!-- TRIAGEBOT_ASSIGN_END -->
<!-- TRIAGEBOT_END -->