sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: Remove `flutter.gradle` `shouldConfigureFlutterTask` hack
Labels: platform-android,P3,team-android,triaged-android

As expressed in `flutter.gradle`,

```
    /**
     * In AGP 4.0, the Android linter task depends on the JAR tasks that generate `libapp.so`.
     * When building APKs, this causes an issue where building release requires the debug JAR,
     * but Gradle won't build debug.
     *
     * To workaround this issue, only configure the JAR task that is required given the task
     * from the command line.
     *
     * The AGP team said that this issue is fixed in Gradle 7.0, which isn't released at the
     * time of adding this code. Once released, this can be removed. However, after updating to
     * AGP/Gradle 7.2.0/7.5, removing this hack still causes build failures. Futher
     * investigation necessary to remove this.
     *
     * Tested cases:
     * * `./gradlew assembleRelease`
     * * `./gradlew app:assembleRelease.`
     * * `./gradlew assemble{flavorName}Release`
     * * `./gradlew app:assemble{flavorName}Release`
     * * `./gradlew assemble.`
     * * `./gradlew app:assemble.`
     * * `./gradlew bundle.`
     * * `./gradlew bundleRelease.`
     * * `./gradlew app:bundleRelease.`
     *
     * Related issues:
     * https://issuetracker.google.com/issues/158060799
     * https://issuetracker.google.com/issues/158753935
     */
```

However, removing this hack on AGP 7.2.0 still causes build failures.
Repository: deno
Issue: Provide `deno check` as runtime API
Labels: suggestion

[`Deno.emit`](https://doc.deno.land/deno/unstable@v1.21.3/~/Deno.emit) has [come](https://github.com/denoland/deno/pull/8799) and [gone](https://github.com/denoland/deno/pull/14463), and plenty of [suggestions can be found pointing toward using `esbuild`](https://github.com/denoland/deno/issues?q=is%3Aissue+esbuild) to _transpile_ TypeScript source code at runtime, but there is now a lack of a runtime API for type-checking.

Previously, with `Deno.emit`, [type-related diagnostics](https://doc.deno.land/deno/unstable@v1.21.3/~/Deno.Diagnostic) were available for determining if transpiled source code had type-related problems. Now, there is no way to know if the transpiled source is unsound from a type system perspective.

It would be very useful for Deno to provide runtime API access to its type-checking functionality and diagnostics. It's not possible to use `tsc` or tools in its ecosystem for this purpose (primarily because Deno's import specifier syntax is incompatible).

I believe this should be provided directly from the runtime on the `Deno` namespace (instead of as an external module like [`https://github.com/denoland/deno_emit`](https://github.com/denoland/deno_emit)) because the modified version of the compiler that is needed for this task is already so tightly-integrated. Deno saliently advertises TypeScript integration as one of its core features ([home page](https://deno.land/), [introduction in the manual](https://deno.land/manual@v1.25.0/introduction), etc.). I find it unexpected for such a platform not to provide TypeScript runtime integration.

Related:
  - https://github.com/denoland/deno/issues/1739
  - https://github.com/denoland/deno/issues/10731
  - Query for potentially-related open issues: [`check typescript api`](https://github.com/denoland/deno/issues?q=is%3Aissue+is%3Aopen+check+typescript+api)
Repository: transformers
Issue: Support output_scores in XLA TF generate
Labels: WIP

### Feature request

Support output_scores in XLA TF generate.

### Motivation

The scores would be critical and widely used in generation models for downstream applications. It is a confidence score for downstream thresholding or ranking. But it is not yet supported for XLA TF generate. 

### Your contribution

N/A
Repository: material-ui
Issue: [Select] "required" state is not being recognized by screen readers (mac voiceover)
Labels: accessibility,component: select

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Current behavior 😯

Since the active focused element is button and we are missing `required` attribute on it screen readers (mac voiceover) is not recognizing that the "select" field is required.

Notice that we are missing "required" state on `MuiSelect-select` button.
<img width="609" alt="Screen Shot 2022-08-15 at 3 41 33 PM" src="https://user-images.githubusercontent.com/80129148/184715133-7c73cf09-0c12-4bfc-a7db-9a285161b7e1.png">

To fix this we need to add the following
```
 SelectDisplayProps: {
     'aria-required': props?.required
}
```


### Expected behavior 🤔

"required" or "aria-required" to be set appropriately when we set `required` prop on "Select"

```
<TextField select required />

or 

<Select required />
```
Repository: deno
Issue: `Deno.stdin.close()` should end `Deno.stdin.read()` promises
Labels: bug,help wanted

The following snippet illustrates what I am referring to:
```ts
const buffer = new Uint8Array(1024)
const promise = Deno.stdin.read(buffer)

setTimeout(() => { Deno.stdin.close() })
await promise
```

this snippet will hang indefinitely even though the stdin resource has been closed. For the most part, this does not matter, but when used along with `setRaw`, then it becomes an issue:
```ts
const buffer = new Uint8Array(1024)
Deno.setRaw(Deno.stdin.rid, true)
const promise = Deno.stdin.read(buffer)

setTimeout(() => {
  Deno.setRaw(Deno.stdin.rid, false)
  Deno.stdin.close()
})
await promise
```
this will give the following error:
```
error: Uncaught (in promise) Busy: Resource is unavailable because it is in use by a promise
  Deno.setRaw(reader.rid, false);
       ^
    at Object.opSync (deno:core/01_core.js:170:12)
    at Object.setRaw (deno:runtime/js/40_tty.js:21:10)
```

and attempting to setRaw after closing stdin gives the following error:
```
error: Uncaught (in promise) BadResource: Bad resource ID
  Deno.setRaw(reader.rid, false);
       ^
    at Object.opSync (deno:core/01_core.js:170:12)
    at Object.setRaw (deno:runtime/js/40_tty.js:21:10)
```

so effectively there isnt a great way to close stdin here besides waiting for user input and _then_ closing the reader
Repository: vscode
Issue: WebAssembly is not defined
Labels: bug,error-telemetry,tokenization,grammar,edge

```javascript
ReferenceError: WebAssembly is not defined
at z in https://main.vscode-cdn.net/stable/6d9b74a70ca9c7733b29f0456fd8195364076dda/node_modules/vscode-oniguruma/release/main.js:1:7821
at Object.n [as default] in https://main.vscode-cdn.net/stable/6d9b74a70ca9c7733b29f0456fd8195364076dda/node_modules/vscode-oniguruma/release/main.js:1:6044
at <anonymous> in https://main.vscode-cdn.net/stable/6d9b74a70ca9c7733b29f0456fd8195364076dda/node_modules/vscode-oniguruma/release/main.js:1:4636
at n.loadWASM in https://main.vscode-cdn.net/stable/6d9b74a70ca9c7733b29f0456fd8195364076dda/node_modules/vscode-oniguruma/release/main.js:1:4868
at k._doGetVSCodeOniguruma in src/vs/workbench/services/textMate/browser/abstractTextMateService.ts:410:25
at async Promise.all (index 1)
at async k._getOrCreateGrammarFactory in src/vs/workbench/services/textMate/browser/abstractTextMateService.ts:229:45
at async Object.createTokenizationSupport in src/vs/workbench/services/textMate/browser/abstractTextMateService.ts:264:29
at async R._create in src/vs/editor/common/tokenizationRegistry.ts:146:17
at async A.getOrCreate in src/vs/editor/common/tokenizationRegistry.ts:72:3
```
[Go to Errors Site](https://vscode-errors.azurewebsites.net/card?ch=6d9b74a70ca9c7733b29f0456fd8195364076dda&bH=44419790-f2cd-f6be-c7f1-761a379300fc)
Repository: godot
Issue: With stdout and stderr disabled, compiled .exe still outputs a new line to the console
Labels: platform:windows,discussion,topic:porting,documentation,topic:export

### Godot version

3.5.stable.official.991bb6ac7

### System information

Windows 10, OpenGL ES 2.0 Renderer: GeForce GTX 760 (192-bit)/PCIe/SSE2

### Issue description

I'm trying to make an app that would normally be started from the command line and I don't want it to show anything on the console, so I disabled stdout and stderr. 

When I export the project (Release mode) and run the produced executable from the command line, it still prints a new line at the next prompt, making it look like the program is still running (after you've closed it) and as if it is waiting for you to press Enter (actually it isn't, you could type a new command at that cursor position, but this is strange).

![console](https://user-images.githubusercontent.com/165285/184724448-a5fff993-cdf2-4cb2-8ae4-39867ee6aab9.jpg)


### Steps to reproduce

Create a new project
In Project Settings, check Disable stdout and Disable stderr
Choose a Control node
Save the scene and set as default
Export for Windows Desktop (Release)
Start the .exe from the command line

### Minimal reproduction project

_No response_
Repository: vscode
Issue: SCM file decorations are misaligned or different sizes
Labels: bug,polish,scm

<!-- ⚠️⚠️ 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. -->
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 directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 1.71-insider
- OS Version: Windows 11

Steps to Reproduce:

1. In a repo, create, delete, and modify some files
2. Open the SCM view
3. :bug: the M/U/D decorations appear to be different sizes and do not seem to be aligned
<img width="69" alt="image" src="https://user-images.githubusercontent.com/30305945/184730947-85ae8d99-1a66-4d4c-a676-3bcb1a6c9d09.png">
Repository: pytorch
Issue: `Frozen` module for transfer learning.
Labels: module: nn,triaged,needs design

### 🚀 The feature, motivation and pitch

"Freezing" a model to stop gradient propagation and parameter updates is a common step in transfer learning. The [tutorial on transfer learning](https://pytorch.org/tutorials/beginner/transfer_learning_tutorial.html#convnet-as-fixed-feature-extractor) currently suggests setting `requires_grad = False` for all parameters of the feature extractor and removing the parameters from the set of parameters passed to the optimizer. What would be your thoughts on adding a `Frozen` module that achieves the same task as a one-liner? Proposed implementation below.

```python
class Frozen(torch.nn.Module):
    def __init__(self, frozen_module):
        super().__init__()
        self.frozen_module = frozen_module

    def forward(self, *args, **kwargs):
        with torch.no_grad():
            return self.frozen_module(*args, **kwargs)

    def parameters(self, recurse: bool = True) -> typing.Iterator[th.nn.Parameter]:
        return
        yield

    def named_parameters(self, prefix: str = '', recurse: bool = True) \
            -> typing.Iterator[tuple[str, th.nn.Parameter]]:
        return
        yield
```

Usage example: 

```python
resnet18 = torchvision.models.resnet18(pretrained=True)
extractor = Frozen(resnet18)  # Stops all gradients and parameter lookups.
```

As a side-effect, this would allow gradients to propagate if there are multiple paths from loss to parameters, e.g., in multi-objective optimization. Calling `extractor` would not propagate gradients. Calling `resnet18` directly would propagate gradients.

### Alternatives

_No response_

### Additional context

_No response_

cc @albanD @mruberry @jbschlosser @walterddr @kshitij12345 @saketh-are
Repository: flutter
Issue: Add the option to block scaling to the center of the screen in Flutter interactive viewer
Labels: c: new feature,framework,c: proposal,P3,team-framework,triaged-framework

## Use case

When you want the scale to apply to the center of the screen only.

## Proposal

You can add a new propertie called centerScale that comes by default in false, if turn to true it'll center all the scale applied to the child of the interactive viewer.

# What I want vs what I can do :P

## What I want

https://user-images.githubusercontent.com/49735945/184781085-5b8a4d38-909b-4ba8-af67-bde5aba57334.mp4

## What I can do

https://user-images.githubusercontent.com/49735945/184781175-1b0896dc-45ac-4ac6-a57f-d0e5816119bc.mp4
Repository: transformers
Issue: Add TF VideoMAE
Labels: WIP

### Feature request

Add the [VideoMAE](https://huggingface.co/docs/transformers/main/en/model_doc/videomae) model in TensorFlow.

### Motivation

There's an evident scarcity of SoTA and easy-to-use video models in TensorFlow. I believe having VideoMAE in TensorFlow would greatly benefit the community. 

### Your contribution

I am willing to contribute the model. Please assign it to me. 

@amyeroberts possible to assign this to me?
Repository: pytorch
Issue: `torch.pinverse` produces wrong output!
Labels: module: docs,triaged,module: linear algebra

### 🐛 Describe the bug

`torch.pinverse` produces wrong output for a 3*3 tensor! 
According to the [documentation](https://pytorch.org/docs/stable/generated/torch.pinverse.html), `torch.pinverse` is an alias for [`torch.linalg.pinv()`](https://pytorch.org/docs/stable/generated/torch.linalg.pinv.html#torch.linalg.pinv), and computes the pseudoinverse (Moore-Penrose inverse) of a matrix. Algebraically, the output of `torch.pinverse(A)`, denoted as `Apinv`, should satisfy:
`A  Apinv A = A`
However, for this input `A`, `torch.pinverse(A)` fails to generate correct result:
```
import torch
A  = torch.tensor([[0.0, 1.0, -1.0], [1.0, -1.0, 0.0], [-1.0, 1.0, 0.0]])
Apinv = torch.pinverse(A)
print(A @ Apinv @ A)
print(torch.dist(A @ Apinv @ A, A))
```
Outputs:
```
tensor([[ 0.0000e+00,  1.0000e+00, -1.0000e+00],
        [ 0.0000e+00, -2.9802e-08,  2.9802e-08],
        [ 0.0000e+00,  2.9802e-08, -2.9802e-08]])
tensor(2.)
```
On the other hand, `torch.linalg.pinv` and `numpy.linalg.pinv` can generate correct pseudo inverse given the same input matrix `A`.
```
import torch
A  = torch.tensor([[0.0, 1.0, -1.0], [1.0, -1.0, 0.0], [-1.0, 1.0, 0.0]])
Apinv2 = torch.linalg.pinv(A)
print(A @ Apinv2 @ A)
print(torch.dist(A @ Apinv2 @ A, A))


import numpy as np
Apinv_np = np.linalg.pinv(A)
print(A @ Apinv_np @ A)
print(torch.dist(A @ Apinv_np @ A, A))
```
Outputs
```
tensor([[-1.4901e-07,  1.0000e+00, -1.0000e+00],
        [ 1.0000e+00, -1.0000e+00,  2.9802e-08],
        [-1.0000e+00,  1.0000e+00, -2.9802e-08]])
tensor(5.5516e-07)
tensor([[ 8.9407e-08,  1.0000e+00, -1.0000e+00],
        [ 1.0000e+00, -1.0000e+00, -2.9802e-08],
        [-1.0000e+00,  1.0000e+00,  2.9802e-08]])
tensor(2.8430e-07)
```

### Versions

torch 1.12.1

cc @svekars @holly1238 @jianyuh @nikitaved @pearu @mruberry @walterddr @IvanYashchuk @xwang233 @Lezcano
Repository: godot
Issue: AtlasTexture region position is not used in a CanvasTexture diffuse texture
Labels: bug,topic:rendering,topic:2d

### Godot version

4.0

### System information

MX Linux (latest), Nvidia GTX 1660S, Vulkan

### Issue description

If I use a AtlasTexture object as a diffuse texture in a CanvasTexture object, the region position values are not used but the width and height are.



### Steps to reproduce

1) Create an AtlasTexture and set texture atlas and region
2) Create a Sprite2D node
3) Create a CanvasTexture object as the texture for the Sprite2D node
4) Use the AtlasTexture object previously created (Step 1) as the diffuse texture of the CanvasTexture object


### Minimal reproduction project

_No response_
Repository: neovim
Issue: Sign to add culhl highlight group but for line number.
Labels: enhancement,column

### Feature already in Vim?

No

### Feature description

Allow `sign_define()` to provide new highlight group for line number when the cursor is on the same line as the sign and **'cursorline'** is enabled.
Repository: godot
Issue: VScode+Godot mono  The debugging window blinks back 
Labels: topic:editor,needs testing,topic:dotnet

### Godot version

3.4.2

### System information

windows11

### Issue description

When using VScode to debug with breakpoints, click Play in Editor and the program will run, but the breakpoint will not work and the debug window will disappear


使用VScode加断点调试时，点击 play in Editor 程序可以运行，但是断点无效，并且调试窗口消失 新建项目也会如此
![image](https://user-images.githubusercontent.com/58435618/184822752-2e0d8ff5-f8d0-42fb-8483-a966378ba197.png)


### Steps to reproduce

//

### Minimal reproduction project

_No response_
Repository: flutter
Issue: [Flutter 3] TextStyle foreground doesn't render properly
Labels: c: regression,engine,dependency: skia,a: typography,c: rendering,has reproducible steps,P2,found in release: 3.0,found in release: 3.1,team-engine,triaged-engine


The foreground for textstyle was working as expected earlier but now the words are not shown properly, the lines are merging into each other in flutter 3.

Flutter 2.5:
![image](https://user-images.githubusercontent.com/90178033/184828187-59da10ce-2af7-4a02-b691-6800346bf7f3.png)


Flutter 3.0.5:
![image](https://user-images.githubusercontent.com/90178033/184828284-9932371f-61d6-41aa-8536-c16e7248a55f.png)

Code:
```
 Text(
                      "Website",
                        style: GoogleFonts.montserrat(
                            fontSize: 70,
                            fontWeight: FontWeight.w600,
                            foreground: Paint()
                              ..style = PaintingStyle.stroke
                              ..strokeWidth = 2
                              ..color = Colors.red),
                      ),
```


Flutter Doctor:
```
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.0.5, on Microsoft Windows [Version 10.0.22000.856], locale en-IN)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Professional 2019 16.11.15)
[√] Android Studio (version 2021.2)
[√] VS Code, 64-bit edition (version 1.70.0-insider)
[√] Connected device (3 available)
[√] HTTP Host Availability
```
Repository: flutter
Issue: Add Option to Stepper to keep content of already completed steps visible
Labels: c: new feature,framework,f: material design,c: proposal,P3,team-design,triaged-design

**Use Case:**
In our Application we used the Stepper in the vertical layout and wanted to keep the contents of already completed steps visible, so you can see all the Steps you completed while scrolling up/down without having to reopen each step again.

**Proposed Change**
Add an Option to enable that. For our purpose i've copied and modified the Stepper class and then replaced the "widget.currentStep == index;" in the _isCurrent()  function to "widget.currentStep >= index;".  After that all i had to do was to hide the Continue/Cancel buttons for the already completed steps.



As i searched for this Issue i've come across multiple other People who also faced this issue so i wanted to propose to add this feature to the Stepper class!
Repository: rust
Issue: rustc does not detect incorrect (generic) enum structure and overflow its stack instead
Labels: I-crash,A-codegen,C-bug,S-bug-has-test

<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.
-->

I tried this code:

```rust
enum Foo<T: 'static> {
    Value(T),
    Recursive(&'static Foo<Option<T>>),
}

fn main() {
    let _x = Foo::Value(());
}
```

I expected to see this happen: *rustc refuses to compile this enum and tell me this (definition) does not work*

Instead, this happened: *rustc overflows its stack and the compile process ends abruptly*

### Meta
<!--
If you're using the stable version of the compiler, you should also check if the
bug also exists in the beta or nightly versions.
-->

`rustc --version --verbose`:
```
rustc 1.65.0-nightly (40336865f 2022-08-15)
binary: rustc
commit-hash: 40336865fe7d4a01139a3336639c6971647e885c
commit-date: 2022-08-15
host: x86_64-pc-windows-msvc
release: 1.65.0-nightly
LLVM version: 15.0.0
```

<!--
Include a backtrace in the code block by setting `RUST_BACKTRACE=1` in your
environment. E.g. `RUST_BACKTRACE=1 cargo build`.
-->
<details><summary>Backtrace</summary>
<p>

```
thread 'rustc' has overflowed its stack
warning: `whlist` (bin "whlist") generated 9 warnings
error: could not compile `whlist`; 9 warnings emitted

Caused by:
  process didn't exit successfully: `rustc --crate-name whlist --edition=2021 src\main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C metadata=0d4447f233920318 --out-dir C:\Users\raida\CLionProjects\whlist\target\debug\deps -C incremental=C:\Users\raida\CLionProjects\whlist\target\debug\incremental -L dependency=C:\Users\raida\CLionProjects\whlist\target\debug\deps` (exit code: 0xc00000fd, STATUS_STACK_OVERFLOW)
```

</p>
</details>
Repository: flutter
Issue: > Task :image_picker_android:testDebugUnitTest FAILED
Labels: platform-android,p: image_picker,package,has reproducible steps,P3,found in release: 3.0,found in release: 3.1,team-android,triaged-android

Hello,

I am trying to run a android gradlew build by hand, but the image_picker plugin cannot pass the debug tests.

The following tests fail. I am also adding the report for the failures produced by the build command. You can view it in the html file.

```
io.flutter.plugins.imagepicker.ImageResizerTest > onResizeImageIfNeeded_WhenQualityIsNotNull_ShoulResize_ReturnResizedFile FAILED
    java.lang.RuntimeException at ImageResizerTest.java:50
        Caused by: java.io.FileNotFoundException at ImageResizerTest.java:50

io.flutter.plugins.imagepicker.ImageResizerTest > onResizeImageIfNeeded_WhenQualityIsNull_ShoultNotResize_ReturnTheUnscaledFile PASSED

io.flutter.plugins.imagepicker.ImageResizerTest > onResizeImageIfNeeded_WhenWidthIsNotNull_ShoulResize_ReturnResizedFile FAILED
    java.lang.RuntimeException at ImageResizerTest.java:56
        Caused by: java.io.FileNotFoundException at ImageResizerTest.java:56

io.flutter.plugins.imagepicker.ImageResizerTest > onResizeImageIfNeeded_WhenHeightIsNotNull_ShoulResize_ReturnResizedFile FAILED
    java.lang.RuntimeException at ImageResizerTest.java:62
        Caused by: java.io.FileNotFoundException at ImageResizerTest.java:62

io.flutter.plugins.imagepicker.ImageResizerTest > onResizeImageIfNeeded_WhenParentDirectoryDoesNotExists_ShouldNotCrash FAILED
    java.lang.RuntimeException at ImageResizerTest.java:70
        Caused by: java.io.FileNotFoundException at ImageResizerTest.java:70
```
[testDebugUnitTest.zip](https://github.com/flutter/flutter/files/9349685/testDebugUnitTest.zip)