sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: [in_app_purchase] Fatal Exception: java.lang.IllegalStateException Reply already submitted
Labels: c: crash,platform-android,p: in_app_purchase,package,a: production,P2,needs repro info,team-android,triaged-android

I've got an error through Crashlytics
with in_app_purchase: ^3.0.2

## Steps to Reproduce

I couldn't reproduce it locally but I guess it happens because of a race condition 
<details>
  <summary>Logs</summary>

```
Fatal Exception: java.lang.IllegalStateException: Reply already submitted
       at io.flutter.embedding.engine.dart.DartMessenger$Reply.reply(DartMessenger.java:35)
       at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.success(MethodChannel.java:14)
       at io.flutter.plugins.inapppurchase.MethodCallHandlerImpl$1.onSkuDetailsResponse(MethodCallHandlerImpl.java:30)
       at com.android.billingclient.api.zzac.run(zzac.java:36)
       at android.os.Handler.handleCallback(Handler.java:790)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loop(Looper.java:210)
       at android.app.ActivityThread.main(ActivityThread.java:7080)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:523)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:863)</summary>
```
</details>

<details>
<summary>Flutter version</summary>

```
Flutter 2.10.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 5464c5bac7 (3 weeks ago) • 2022-04-18 09:55:37 -0700
Engine • revision 57d3bac3dd
Tools • Dart 2.16.2 • DevTools 2.9.2

Running flutter doctor...
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.10.5, on Microsoft Windows [Version 10.0.19043.1645], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[√] Chrome - develop for the web
[!] Visual Studio - develop for Windows (Visual Studio Build Tools 2017 15.9.25)
    X Visual Studio 2019 or later is required.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 2020.3)
[√] VS Code (version 1.67.0)
[√] Connected device (3 available)
[√] HTTP Host Availability
```

</details>
Repository: transformers
Issue: Set Transformer
Labels: New model

### Model description

This issue proposes addition of the Set Transformer, a set2seq transformer for learning to order sets of items. 

## Short description of the model and link to the paper

The transformer is one of a family of models that implements permutation invariance in order to learn ordering relations. This particular implementation uses stacked attention blocks to achieve the invariance. Set transformers are good for a multitude of problems - the toy problem is the TSP, where vertices are ordered optimally, though the framing can also be applied to any sequence generation tasks where the sequence items are known ahead of time. See [this review](https://jair.org/index.php/jair/article/view/12839) for a description of the family of problems.

This particular transformer is the Set Transformer, presented in [Set Transformer: A Framework for Attention-based Permutation-Invariant Neural Networks](http://proceedings.mlr.press/v97/lee19d.html).

This isn't immediately designed for text or images or speech, but is a distinct transformer architecture that has been applied to text and image data.

## Link to the implementation if it is open-source

There's an official PyTorch implementation at [https://github.com/juho-lee/set_transformer](https://github.com/juho-lee/set_transformer)

We've already got this up & running as a baseline in an upcoming IJCAI paper

## Link to the model weights if they are available.

not immediately available, but we could work something out

### Open source status

- [x] The model implementation is available
- [ ] The model weights are available

### Provide useful links for the implementation

Me & a colleague can get this up onto HF, we have a running implementation and the reference implementation is both on github and licensed MIT. Reference implementation by @juho-lee (author) and @yoonholee.
Repository: flutter
Issue: [plugins/packages] Don't auto-publish for reverts
Labels: team,p: tooling,package,team-ecosystem,P2,triaged-ecosystem

We just had an unusual case where a massive PR (turning on some new lint settings) had to be reverted because it broke the tree. The `release` run for that revert actually published four plugins (example: https://pub.dev/packages/in_app_purchase_android/versions/0.2.2+3). Apparently they had missed being auto-published before, so the `release` step saw that there was a version change, saw that the version wasn't published, and published it. As a result:
- the releases were from the wrong hash, and potentially include code that wasn't supposed to be in that release, and
- those plugins have `NEXT` entries in their changelogs.

It's not a disaster, but we really shouldn't have published them in that case. Manual publishing of the missed versions would have been done from the correct hash, and not had these problems.

The auto-release tooling should be updated to recognize reverts and not publish them.
Repository: godot
Issue: Setting a default GUI theme still breaks the editor
Labels: bug,topic:editor,confirmed,topic:gui

### Godot version

v3.4.4.stable.official [419e713a2]

### System information

Windows 10, GLES3, GeForce GTX 1650

### Issue description

This [issue](https://github.com/godotengine/godot/issues/20123) was fixed according to this [message](https://github.com/godotengine/godot/issues/20123#issuecomment-569793857), but apparently it still persists.

This time however GUI elements appear to be scissored

![Colorpicker](https://user-images.githubusercontent.com/42402741/167703558-4530410b-f914-47d4-808d-1bf1d0027603.png)
Color picker

![Autocomplete](https://user-images.githubusercontent.com/42402741/167703711-1b137a40-f435-4241-a240-fef6eddc4b66.png)
Autocomplete (it's there, I can use keyboard to complete, but the list is effectively invisible)

### Steps to reproduce

1. New resource... > Theme
2. Open it in Theme editor
3. Manage Items... > Import Items > Select All > Import Selected
4. Save the theme
5. Project Settings > Gui > Theme > Custom Theme
6. Select the theme, press Save & Restart

### Minimal reproduction project

https://github.com/badunius/godot-theme-bug-repro
Repository: deno
Issue: Deno fmt performance issue on minified files with excessive nested assignments
Labels: bug,deno fmt

deno fmt seems to exhaust memory and not finish when used on certain files

to reproduce: (!careful this crashes my pc)
- wget https://github.com/github/copilot.vim/raw/release/dist/agent.js
- deno fmt agent.js

In contrast using https://esm.sh/js-beautify finish almost immediately 
```ts
await import("https://esm.sh/js-beautify").then(async (f)=>f.default.js_beautify(await fetch("https://github.com/github/copilot.vim/raw/release/copilot/dist/agent.js").then(t=>t.text())))
```
Repository: vscode
Issue: Allow drag-and-dropping text across panels of split editor (and possibly even to other applications)
Labels: feature-request,editor-drag-and-drop

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

Hi.

1. Split the editor in any way (horizontally, vertically…).
2. Select text.
3. Drag the selected text around.

**Expected:** Text is droppable in any panel of the split editor, with a result identical to what we get via “cut and paste”.
**Actual:** Text is only droppable in the very same panel it comes from (as shown by the fact that the dotted cursor thingy, showing where exactly the text will land if we release the mouse button, only accepts to appear there).

As a bonus, it would be convenient and intuitive to be able to drop the text in other applications as well. Typically, if I open both Geany and Mousepad, I can without issue drag and drop text between them. Similarly, I can drag text from Firefox into VS Code, but not the other way around (as far as I can tell).

https://user-images.githubusercontent.com/36635838/167706724-2794e4f4-1de9-42a1-9fb3-cb2f98c4c877.mp4

Note that around `0:12` in the video, the text even gets unexpectedly dropped at the end of the upper-right pane.

# Environment

Xubuntu 20.04

```
Version: 1.67.0
Commit: 57fd6d0195bb9b9d1b49f6da5db789060795de47
Date: 2022-05-04T12:08:42.978Z
Electron: 17.4.1
Chromium: 98.0.4758.141
Node.js: 16.13.0
V8: 9.8.177.13-electron.0
OS: Linux x64 5.13.0-40-generic
```
Repository: material-ui
Issue: [theme] Give same treatment to custom mixins as internal createMixins (as done with createTypography)
Labels: new feature,package: system

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Summary 💡

```js
export default function createMixins(breakpoints, spacing, mixins) {
  return {
    toolbar: {
      minHeight: 56,
      [`${breakpoints.up('xs')} and (orientation: landscape)`]: {
        minHeight: 48,
      },
      [breakpoints.up('sm')]: {
        minHeight: 64,
      },
    },
    ...(typeof mixins === 'function' ? mixins(breakpoints, spacing) : mixins),
  };
}
```
Update https://github.com/mui/material-ui/blob/master/packages/mui-material/src/styles/createMixins.js so that it forwards `createMixins` arguments to the "mixinsInput" if passed as a function to `createTheme`. Suggestion added above.

### Examples 🌈

https://github.com/mui/material-ui/blob/4eef029981b08c77a9c52d0b863e6b5ced279087/packages/mui-material/src/styles/createTypography.js#L32
`createTypography` is already set up in this this way.

### Motivation 🔦

For the same reason that the internal mui `createMixins` has access to breakpoints/spacing, I think that theme creators should have the same possibilities when creating custom mixins.

For example:
```js
const theme = createTheme({
  mixins: (breakpoints, spacing) => ({
    myCustomGuttersMixin: {
      paddingLeft: spacing(2),
      paddingRight: spacing(2),
      [breakpoints.up('sm')]: {
        paddingLeft: spacing(4),
        paddingRight: spacing(4),
      },
    }
  })
})
```
Repository: flutter
Issue: [flutter_tools] "ArgumentError: Invalid argument(s): attempt to read 1 bytes with only 0 bytes remaining in the reader"
Labels: c: crash,tool,P2,team-tool,triaged-tool

On beta/2.13.0-0.4.pre

Command: `flutter symbolize -d app.android-arm.symbols -d ./1652164200.json -o -deobfuscated.temp`

```
ArgumentError at Reader.readBytes at package:native_stack_traces/src/reader.dart-fd8ac2e7

Error: Invalid argument(s): attempt to read 1 bytes with only 0 bytes remaining in the reader
at Reader.readBytes(reader.dart:60)
at Reader.readByte(reader.dart:86)
at ElfHeader.fromReader(elf.dart:96)
at Elf.fromReader(elf.dart:1013)
at Dwarf.fromReader(dwarf.dart:1219)
at Dwarf.fromBytes(dwarf.dart:1228)
at _defaultTransformer(symbolize.dart:122)
at DwarfSymbolizationService.decode(symbolize.dart:178)
at SymbolizeCommand.runCommand(symbolize.dart:109)
at FlutterCommand.verifyThenRunCommand(flutter_command.dart:1342)
at <asynchronous gap>(async)
at FlutterCommand.run.<anonymous closure>(flutter_command.dart:1183)
at <asynchronous gap>(async)
at AppContext.run.<anonymous closure>(context.dart:150)
at <asynchronous gap>(async)
at CommandRunner.runCommand(command_runner.dart:209)
at <asynchronous gap>(async)
at FlutterCommandRunner.runCommand.<anonymous closure>(flutter_command_runner.dart:281)
at <asynchronous gap>(async)
at AppContext.run.<anonymous closure>(context.dart:150)
at <asynchronous gap>(async)
at FlutterCommandRunner.runCommand(flutter_command_runner.dart:229)
at <asynchronous gap>(async)
at run.<anonymous closure>.<anonymous closure>(runner.dart:62)
at <asynchronous gap>(async)
at AppContext.run.<anonymous closure>(context.dart:150)
at <asynchronous gap>(async)
at main(executable.dart:94)
at <asynchronous gap>(async)
```
Repository: flutter
Issue: [flutter_tools] tool crash "SentinelException at new _OutstandingRequest at package:vm_service/src/vm_service.dart"
Labels: c: crash,tool,P2,team-tool,triaged-tool

On beta/2.13.0-0.4.pre

Command: `flutter run -d linux`

```
Thread 0 main threadSentinelException: [Sentinel kind: Collected, valueAsString: <collected>] from reloadSources()
at new _OutstandingRequest(vm_service.dart:1734)
at VmService._call(vm_service.dart:2245)
at VmService.reloadSources(vm_service.dart:2100)
at _reloadDeviceSources(run_hot.dart:1185)
at <asynchronous gap>(async)
at _defaultReloadSourcesHelper(run_hot.dart:1124)
at <asynchronous gap>(async)
at HotRunner._reloadSources(run_hot.dart:906)
at <asynchronous gap>(async)
at HotRunner._hotReloadHelper(run_hot.dart:818)
at <asynchronous gap>(async)
at HotRunner.restart(run_hot.dart:720)
at <asynchronous gap>(async)
at TerminalHandler._commonTerminalInputHandler(resident_runner.dart:1632)
at <asynchronous gap>(async)
at TerminalHandler.processTerminalInput(resident_runner.dart:1685)
at <asynchronous gap>(async)
```
Repository: rust
Issue: Should `repr(transparent)` require *inhabited* 1-ZSTs?
Labels: T-lang,A-repr

https://github.com/rust-lang/unsafe-code-guidelines/issues/337 pointed out that the following code compiles:

```rust
enum Never {}

#[repr(transparent)]
struct Foo(u32, Never);
```
<https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=67b6fd93f899912b2aec43b4cf362f31>

Does that make sense?  Should we change the rule here, either retroactively or in a new edition?
Repository: vscode
Issue: Increase max height for the hover widget?
Labels: feature-request,editor-hover

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->

Im using the extension: [gutter-preview](https://github.com/kisstkondoros/gutter-preview)

The extension creates a widget when you hover over a path containing a picture:

![image](https://user-images.githubusercontent.com/73500606/167723202-c93fbb85-837c-422a-a791-2b7302aaa969.png)

The extension supports specifying the `widget` width/height, however, looks like `vscode` (?) limits the maximum width/height of the widget and displays a scrollbar.

Would like to ask how can I increase these values? my goal is to display the entire picture and not a cropped window with scrollbars.
Repository: pytorch
Issue: [RFC] Allow device override during Tensor unpickling without torch.load
Labels: module: pickle,module: serialization,triaged,enhancement

### 🚀 The feature, motivation and pitch

Enable the behavior of `map_location` argument of `torch.load` when unpickling a tensor directly.

This is a recurring problem with torch.distributed and its reliance on pickle. Currently object collectives(1) that send around tensors produce undefined behavior as tensor can potentially surface on the wrong device or on an invalid device.

To address this we should offer a context manager that overrides the device tensors are placed at:
```python
data: BytesIO = ....
pickle.dump(torch.rand(1, device="cuda:0", data))

data.seek(0)

with pickle_device_override("cuda:1"):
   t = pickle.load(data)
   assert str(x.device) =="cuda:1"
```

(1) https://pytorch.org/docs/stable/distributed.html#torch.distributed.broadcast_object_list

### Alternatives

Tensors could use python 3.8 support for OOB buffers: https://docs.python.org/3/library/pickle.html#out-of-band-buffers

This is a much more desirable approach as users that need special care for tensor location during pickling and unpickling could do it with custom Picklers without PT having to introduce a new special purpose hook.

One nice property of this alternative is that it would allow object collectives / rpc to send tensors around without copying them to the CPU first.

### Additional context

This is a known issue for PTD: https://github.com/pytorch/pytorch/issues/76865

cc @mruberry
Repository: TypeScript
Issue: Experiment with a flattened the control flow graph representation
Labels: Suggestion,In Discussion,Domain: Performance,Experimentation Needed

The control flow graph is represented through ordinary objects; but you could likely encode it an `Array` of indexes, `Node`s, and `Array`s. Every `FlowNode` could be "flattened" into this encoding, and I've been wondering if this could help at all with locality when traversing the control flow graph, along with memory usage.

In place of referring to a `FlowNode`, a `Node` could store a reference to the array containing a control-flow encoding, and an index (or alternatively, it could store just the index and grab the array from some ancestor node). At that index would be today's `FlowFlags`, and immediately preceding it (*earlier* in the buffer) would be the remaining contents of the node. In other words, ever `FlowNode` would be encoded in reverse.

This would

* allow the buffer to grow as the graph is constructed
* make it trivial to grab the antecedent of each flow node
* allow us to avoid jumping between `FlowNode`s
* allow us to avoid storing antecedent pointers
* allow us to possibly reuse a given flow buffer across binding
* allow us to possibly specialize cases of `FlowLabel`s when a `FlowLabel` only contains `< N` elements (saving memory from the overhead of an allocated array

At the cost of

* complexity - there's not a great way to abstract this out. At best, I can imagine using an `enum` to encode offsets as a replacement for property accesses
* additional work/storage because `Node`s now have to find their flow buffer.

It's unclear how much you'd get out of this. If we saw nice wins, I think we'd consider adopting this, but it would absolutely not improve our code cleanliness.
Repository: go
Issue: x/tools/gopls: migrate to jsonrpc2_v2
Labels: gopls,Tools

The new version of the jsonrpc2 package (authored by @ianthehat) has improved APIs and shutdown semantics. @bcmills has also recently worked on improving its concurrency model.

This issue tracks work to do the necessary refactoring to migrate to the new APIs.
Repository: vscode
Issue: [less] The each function has incorrect linting inside a keyframes at-rule
Labels: bug,css-less-scss

Issue Type: <b>Bug</b>

The LESS linter raises false positive errors regarding the `each` function when used inside an `@keyframes` at-rule. Example:
```less
@steps: 0%, 50%, 100%;

@keyframes foo {
  each(@steps, {
//    ^ "{ expected"
    @{value} {
//           ^ "} expected"
      width: @value;
    }
//  ^ "at-rule or selector expected"
  });
} // <- "at-rule or selector expected"
```
There is nothing wrong with the example above - it transpiles into
```css
@keyframes foo {
  0% {
    width: 0%;
  }
  50% {
    width: 50%;
  }
  100% {
    width: 100%;
  }
}
```

VS Code version: Code 1.64.2 (f80445acd5a3dadef24aa209168452a3d97cc326, 2022-02-09T22:02:28.252Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i5-4440 CPU @ 3.10GHz (4 x 3093)|
|GPU Status|2d_canvas: enabled<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>oop_rasterization: enabled<br>opengl: enabled_on<br>rasterization: enabled<br>skia_renderer: enabled_on<br>video_decode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled|
|Load (avg)|undefined|
|Memory (System)|7.94GB (2.50GB free)|
|Process Argv|C:\\Users\\REDACTED --crash-reporter-id b1616fa4-2d33-455f-9b3a-0973b302cc16|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (10)</summary>

Extension|Author (truncated)|Version
---|---|---
vscode-cylc|cyl|1.0.3
gitlens|eam|12.0.6
git-graph|mhu|1.30.0
easy-less|mrc|1.7.3
python|ms-|2022.4.1
vscode-pylance|ms-|2022.4.3
jupyter|ms-|2022.1.1301854968
jupyter-keymap|ms-|1.0.0
jupyter-renderers|ms-|1.0.6
remote-wsl|ms-|0.64.2

(1 theme extensions excluded)

</details><details>
<summary>A/B Experiments</summary>

```
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyl392:30443607
pythontb:30283811
pythonvspyt551:30345470
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscoreces:30445986
pythondataviewer:30285071
vscod805:30301674
pythonvspyt200:30340761
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
vsc1dst:30438360
pythonvs932:30410667
wslgetstarted:30449410
pythonvsnew555:30457759
vscscmwlcmt:30465135
cppdebug:30475216
vsclangdf:30486550

```

</details>

<!-- generated by issue reporter -->
Repository: flutter
Issue: Text selection highlight should be greyed out when window loses focus
Labels: a: text input,framework,a: desktop,good first issue,P2,team-text-input,triaged-text-input

When a Flutter window loses focus on desktop, the text selection highlight color should be grey. This is the behavior on macOS, and also on Web (tested on Chrome), and most likely other desktop platforms as well.

## Steps to Reproduce

1. Open a Flutter App with a text field.
2. Type in text field and select some text.
3. Open a native application with text input/selection.
4. Type some text in the new window.
5. Select some text in native app
6. Switch focus from native app to flutter app, and back and forth to see the selection highlight color change depending on focus. It only changes on the native app, not the flutter app.

Flutter App on the left (Actual), MacOS Notes App on the right (Expected).

https://user-images.githubusercontent.com/948037/167739336-6bc355e2-6e35-4a54-b024-419199e68c50.mov

<details>
<summary>Code sample</summary>

```dart
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        useMaterial3: true,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: const Center(
        child: TextField(),
      ),
    );
  }
}
```

</details>
Repository: flutter
Issue: [web] Review `unsafe_html` lints
Labels: platform-web,package,P2,team-web,triaged-web

During a sync of lint rules between plugins and flutter (framework), [here](https://github.com/flutter/plugins/pull/5695), a bunch of code was marked with `//ignore: unsafe_html`.

Audit the usages of `//ignore: unsafe_html` and fix them.