sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: PowerToys
Issue: Support SVGZ for preview and thumbnail
Labels: Idea-Enhancement,Product-File Explorer

## 📝 Provide a description of the new feature

_What is the expected behavior of the proposed feature?  What is the scenario this would be used?_

Currently only non-compressed SVG files are being displayed on the preview panel and on the file thumbnail. Please add support for the compressed version SVGZ, as it's the format I used to store my SVG files to reduce the size. I was using SvgSee formerly, and I uninstalled it when I discovered PowerToys, but if no support for SVGZ is added I guess I'l have to go with SvgSee again.

Thanks and regards.

---

If you'd like to see this feature implemented, add a 👍 reaction to this post.
Repository: flutter
Issue: Regression in device lab metrics for flutter_repo_batch
Labels: engine,c: performance,dependency: dart,perf: speed,team: benchmark,P2,team-engine,triaged-engine

https://flutter-flutter-perf.skia.org/e/?begin=1604242084&end=1604571480&keys=X3a8d39b49bc8119825b0b6aeb766da91&requestType=0&xbaroffset=22352

Affects the following metrics:

flutter_repo_batch MatrixUtils_persp_transformPoint_iteration bench_update_many_child_layers.html.drawFrameDuration.average bench_update_many_child_layers.html.totalUiFrame.average flutter_repo_batch_minimum flutter_repo_watchflutter_repo_watch_minimum flutter_repo_watch_maximum

Looks like it may be engine roll https://github.com/flutter/flutter/pull/69709.
Repository: flutter
Issue: Refactor external_view_embedder related tests out of shell_unittests.cc
Labels: engine,a: platform-views,P2,team-engine,triaged-engine

shell_unittests.cc includes some tests that are testing external_view_embedder.
Although these tests do need to have the shell set up to work, it would be nice and clean to separate those tests out to a different file so the tests are more organized. 

Suggestion: external_view_embedder_shell_unittests.cc
Repository: godot
Issue: SpinBox does not receive "focus_entered" Event 
Labels: bug,topic:gui

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:**
v3.2.3.stable.official

**Issue description:**
While trying to implement the Inspector UI in gdscript I was unable to listen for the SpinBox focus to set the focus effect to the whole line accordingly.

This is also the case for the ScrollBar.

**Steps to reproduce:**
Create a SpinBox and listen to the `focus_entered` Event

**Minimal reproduction project:**
<!-- A small Godot project which reproduces the issue. Drag and drop a zip archive to upload it. -->
[FocusEvent.zip](https://github.com/godotengine/godot/files/5495876/FocusEvent.zip)
Repository: PowerToys
Issue: [FZ Editor] Adjust zone size/position via context menu
Labels: Idea-Enhancement,FancyZones-Editor,Product-FancyZones,Planning-Consideration

## 📝 Provide a description of the new feature

When in the FancyZones Editor, I would like to see a right-click context menu with options as noted below:

_What is the expected behavior of the proposed feature?  What is the scenario this would be used?_

Right-click Context Menu:
- **Center Horizontally** - the zone would center on the horizontal axis
- **Center Vertically** - the zone would center on the vertical axis
- **Size to Screen Height** - the zone height would size to the screen height
- **Size to Screen Width** - the zone width would size to the screen width
- **Custom** - with input boxes for Width and Height

---

Thanks!

If you'd like to see this feature implemented, add a 👍 reaction to this post.
Repository: flutter
Issue: flake in long running web tests
Labels: platform-web,P2,c: flake,team-web,triaged-web

```
Running "flutter pub get" in flutter_gallery...                    865ms
Launching test_driver/transitions_perf_e2e.dart on Web Server in release mode...
Compiling test_driver/transitions_perf_e2e.dart for the Web...        50.9s
test_driver/transitions_perf_e2e.dart is being served at http://localhost:42655
The web-server device requires the Dart Debug Chrome extension for debugging. Consider using the Chrome or Edge devices for an improved development workflow.
Application finished.
Unable to start WebDriver Session for Flutter for Web testing. 
Make sure you have the correct WebDriver Server running at 4444. 
Make sure the WebDriver Server matches option --browser-name. 
UnknownException (13): unknown error: version info not in JSON
  (Driver info: chromedriver=84.0.4147.30 (48b3e868b4cc0aa7e8149519690b6f6949e110a8-refs/branch-heads/4147@{#310}),platform=Linux 4.9.0-11-amd64 x86_64)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ERROR: Last command exited with 1 (expected: zero).
```

Only seen once so far

https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket.appspot.com/8864451977885742576/+/steps/run_test.dart_for_web_long_running_tests_shard_and_subshard_2_last/0/stdout
Repository: flutter
Issue: ExternalViewEmbedder should be solely owned by Rasterizer
Labels: team,engine,P2,team-engine,triaged-engine

Currently this component is shared among:

1. Surface
2. PlatformViews
3. Rasterizer

"1" will be removed by: https://github.com/flutter/engine/pull/22272. We need to remove "2" and then we should be able to make rasterizer be the sole owner.

See: https://github.com/flutter/engine/pull/22214#pullrequestreview-521022822 and https://github.com/flutter/engine/pull/22214#issuecomment-722552371 for more context.
Repository: flutter
Issue: Material text selection menu overflow slot
Labels: framework,f: material design,P2,team-design,triaged-design

This is just a cleanup of private code that I noticed we (I) should do.  It shouldn't affect performance or end users.

In Cupertino's text selection menu code, it utilizes a slick RenderObjectWidget that has custom slots for special widgets like the next/previous buttons, in addition to the normal children slots.  Material's text selection menu code just has one big list of children, and its overflow button is appended to the end of that.  This is hacky and error prone, so the Material code should be updated to take an approach similar to Cupertino.

Cupertino's nice RenderObjectWidget with custom slots: https://github.com/flutter/flutter/blob/24c62662309b403c422a0a67a110b1534a2c9fb5/packages/flutter/lib/src/cupertino/text_selection.dart#L697

Material's RenderObjectWidget with a hacked children list: https://github.com/flutter/flutter/blob/24c62662309b403c422a0a67a110b1534a2c9fb5/packages/flutter/lib/src/material/text_selection.dart#L366
Repository: storybook
Issue: Add toolbar to --docs mode
Labels: feature request,help wanted,ui,addon: docs

**Is your feature request related to a problem? Please describe**
I want to be able to write docs that use controls. But this adds a lot of sub-menus to components in the sidebar navigation in storybook.

**Describe the solution you'd like**
A way to write docs pages where ArgsTable can use controls. But without adding an extra story to the sidebar.

**Describe alternatives you've considered**
Running the storybook with the "--docs" flag was the closest thing I could find for this use case. But that hides the "Notes" tab.

**Are you able to assist to bring the feature to reality?**
no

**Additional context**
Another workaround is setting canvas to hidden in `preview.js`. That hides the unnecessary "Canvas" tab which is pointless if you only want to read Docs. But the sidebar sub-menus for component variants still remain visible in this method which is a bit annoying. I really don't want a separate expanded sidebar entry for any component variant.

**Live example**
I either want to


* Add controls to the ArgsTable in [this page](https://hazel-ui.github.io/hazel-ui/?path=/story/foundation-typography--page) written with `.mdx` without adding an extra story to the sidebar nav [[Source](https://github.com/hazel-ui/hazel-ui/blob/main/src/package/foundation/Typography/stories/Typography.stories.mdx)]
  or
* Hide the sub-menu items for component variants from the side navigation in [this page](https://hazel-ui.github.io/hazel-ui/?path=/docs/atoms-button--primary) written in `.tsx` but without hiding the "Notes" tab [[Source](https://github.com/hazel-ui/hazel-ui/blob/main/src/package/components/Button/stories/Button.stories.tsx)]

The second option is preferred because in the first option we're actually removing stories that we'd usually want Chromatic to analyze for UI changes.

Possibly related: #9209
Repository: rust
Issue: Incorrect hints for E0401
Labels: T-compiler,C-bug,A-suggestion-diagnostics

Errors for [E0401](https://doc.rust-lang.org/stable/error-index.html#E0401) supply incorrect or otherwise lacking hints in many cases.  Some examples follow.  All exploration was done via the playground stable channel v1.47.0.

#### Example 1
[Inner `fn`](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=c1b0186c0449e04d76934c254654524d)
```rust
fn outer<T>() {
    fn inner<U: T>() {}
}
```
Result:
```
help: try using a local generic parameter instead: `inner<U: T<T>`
```

The angle brackets aren't balanced.

#### Example 2
[Inner `type`](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=904f09a8daaa0c4e2150256bb0477b4b)
```rust
fn outer<T>() {
    type V = Option<T>;
}
```
Result:
```
1 | fn outer<T>() {
  |    ----- - type parameter from outer function
  |    |
  |    try adding a local generic parameter in this method instead
```

Isn't it telling me to add what is already there?  (It's possible I just don't understand this message.  However see the next example.)  The error is the same for inner `struct`s.

[Inner `struct` following inner `fn`](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=54dbed2e3c111a461a3d7432d750b1d0)
#### Example 3
```rust
fn outer<T>() {
    fn inner<U: T>() {}
    struct W { X: T }
}
```
Result:
```
1 | fn outer<T>() {
  |          - type parameter from outer function
2 |     fn inner<U: T>() {}
  |        ----- try adding a local generic parameter in this method instead
```

Now it's suggesting I add to the sibling `fn`, and not the containing `fn`.  (The error is the same for inner `type`s.)

#### Example 4
[Inner `type` following _commented out_ inner `fn`](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=fa47125bc6fbdd4e169c19ffa595d38f)
```rust
fn outer<T>() {
//  fn inner<U: T>() {}
    type V = Option<T>;
}
```
Result:
```
1 | fn outer<T>() {
  |          - type parameter from outer function
2 | //  fn inner<U: T>() {}
  |        ----- try adding a local generic parameter in this method instead
```

And now it's telling me to add a parameter to a _commented out_ function!
Repository: transformers
Issue: Adding kNN language modeling and Machine Translation
Labels: New model,Feature request

# 🌟 Adding the kNN-LM and kNN-MT models

## Model description

The kNN [Language Model](https://arxiv.org/pdf/1911.00172.pdf) and [Machine Translation](https://arxiv.org/pdf/2010.00710.pdf) leverage additional data at test time by looking up examples in the data store that are similar to the test example and using them to inform the prediction. This leads to decreased perplexity for language modeling and increased BLEU for MT.

Ideally, we'd have a general KNNDecoder class which can use any model in the library along with a [🤗datasets](https://github.com/huggingface/datasets) data store, similarly to what RAG does currently.

## Open source status

* [x] the model implementation is available: for kNN-LM, an implementation using Fairseq and FAISS can be found [here](https://github.com/urvashik/knnlm)
* [x] the model weights are available: the methods use pre-trained models which are already in the library, [GPT-2](https://huggingface.co/gpt2) and the [Facebook WMT'19 models](https://huggingface.co/facebook/wmt19-de-en)
* [x] who are the authors: first author @urvashik
Repository: godot
Issue: Darker textures on Android devices with Mali graphics when using Mipmaps (GLES3 only)
Labels: bug,platform:android,topic:rendering,confirmed,topic:thirdparty

**Godot version:**
 v3.2.4.beta.custom_build.d3ffff3ad


**OS/device including version:**
Likely any Android device with Mali graphics. Tested on:
- Samsung Galaxy A8 (Mali G71), A51 (Mali G72 MP3)
- Huawei Honor 10 (Mali G72 MP12)
- Huawei P30 lite (Mali G51 MP4)
- Motorola OneAction (Mali G72 MP3)
(all devices running Android 10 or 9)


**Issue description:**
Textures imported with Mipmaps setting turned ON appear darker than the same textures on a device with non-Mali graphics.
Turning Mipmaps off makes textures appear identical across all Android devices despite model or vendor.
The renderer used is GLES 3.

**Steps to reproduce:**
- Run the project included on an Android device with Mali graphics. Note that the texture that is using Mipmaps is considerably darker.
![android_mipmaps_Mali](https://user-images.githubusercontent.com/68538263/98307163-33f3a500-1fd6-11eb-9db3-46e912100940.jpg)

- Run the same project on an Android device with Adreno or PowerVR graphics. Note that both textures have identical colors.
![android_mipmaps_Adreno](https://user-images.githubusercontent.com/68538263/98307171-3bb34980-1fd6-11eb-95d0-ccd64f81c922.jpg)


**Minimal reproduction project:**
[Mali mipmaps issue.zip](https://github.com/godotengine/godot/files/5497917/Mali.mipmaps.issue.zip)
Repository: flutter
Issue: [animations] OpenContainer does not support state restoration
Labels: package,p: animations,team-ecosystem,P3,a: state restoration,triaged-ecosystem

Currently, OpenContainer pushes a new route, but does not support state restoration APIs. On a related note, the OpenContainer needs to support starting from the "open" state, since that's necessary for state restoration to work correctly.

See https://github.com/flutter/flutter/issues/62916 for parent issue containing remaining state restoration work
Repository: pytorch
Issue: Reciprocal and reciprocal square root instructions are too inaccurate on ARM64
Labels: triaged,module: correctness (silent),module: arm

This happens because `vrecpeq_f32 ` used in
https://github.com/pytorch/pytorch/blob/c2d4a5b137ca5903e713a83c4a3c48849a5a61a3/aten/src/ATen/cpu/vec256/vec256_float_neon.h#L446-L450
does not do actual division, but simply runs a few steps of Newton's method, which results to a pretty bad results as following code demonstrates:
```
#include <arm_neon.h>
#include <math.h>
#include <stdio.h>
void main(void) {
	float data_in[4] = {1., 2., 3., 4.};
	float data_out[4];
	float32x4_t input = vld1q_f32(data_in);
	float32x4_t out = vrecpeq_f32(input);
	vst1q_f32(data_out, out);
	for(int i = 0; i < 4; ++i) {
		float res = 1. / data_in[i];
		printf("%d: 1./%f = %f neon out %f err %e\n", i, data_in[i], res, data_out[i], fabs(data_out[i] - res));
	}
}
```

which would output the following:
```
0: 1./1.000000 = 1.000000 neon out 0.998047 err 1.953125e-03
1: 1./2.000000 = 0.500000 neon out 0.499023 err 9.765625e-04
2: 1./3.000000 = 0.333333 neon out 0.333008 err 3.255308e-04
3: 1./4.000000 = 0.250000 neon out 0.249512 err 4.882812e-04
```

Those results can be improved by using one or more refinement steps
```
out = vmulq_f32(vrecpsq_f32(input, out), out);
```
Repository: create-react-app
Issue: tsconf and "jsx": "react-jsxdev"
Labels: issue: proposal,needs triage

### Is your proposal related to a problem?

Some options for Typescript you want for production and some for development. The one that will need support soon is "jsx": "react-jsxdev" compiler option for React 17. You want "react-jsx" for production though.

### Describe the solution you'd like

One solution is to look for tsconfig.dev.json and use that in development if it exists.

Second solution is to set these values directly and ignore whatever jsx directive is in tsconf.json

### Additional context

[Typescript 4.1 RC announcement](https://devblogs.microsoft.com/typescript/announcing-typescript-4-1-rc/)
Repository: pytorch
Issue: [fx] scripting a model with tensor list as input fails
Labels: triaged,module: fx

Running a scripted symbolically traced model that expects tensor list as input fails.
It works on the symbolically traced model
 
Repro
```py
class M(torch.nn.Module):
    def __init__(self):
        super().__init__()
    def forward(self, x):
        # type: (List[Tensor]) -> Tensor
        return x[0] + x[1]

m = M().eval()
input = [torch.rand(3, 3, dtype=torch.float), torch.rand(3, 3, dtype=torch.float)]
m(input)

traced = torch.fx.symbolic_trace(m)
script = torch.jit.script(traced)
traced(input) # works
script(input)
```

Throws the error
```
Traceback (most recent call last):
  File "examples/scripts/test_fx.py", line 57, in <module>
    script(input)
  File "/home/supriyar/local/miniconda3/envs/pytorch/lib/python3.7/site-packages/torch/nn/modules/module.py", line 744, in _call_impl
    result = self.forward(*input, **kwargs)
RuntimeError: forward() Expected a value of type 'Tensor (inferred)' for argument 'x' but instead found type 'list'.
Inferred 'x' to be of type 'Tensor' because it was not annotated with an explicit type.
Position: 1
Value: [tensor([[0.7001, 0.1083, 0.5039],
        [0.8313, 0.5919, 0.7486],
        [0.4022, 0.0909, 0.0835]]), tensor([[0.7651, 0.9900, 0.5516],
        [0.8685, 0.1888, 0.5661],
        [0.4313, 0.1694, 0.5259]])]
Declaration: forward(__torch__.torch.fx.graph_module.GraphModuleImpl self, Tensor x) -> (Tensor)
Cast error details: Unable to cast Python instance to C++ type (compile in debug mode for details)
```

cc @ezyang @SherlockNoMad @3l1
Repository: deno
Issue: [Suggestion] Function to get v8 heap information
Labels: suggestion,debugger

The suggestion is to get the heap information from v8, this would behave slightly similar to NodeJS api. https://nodejs.org/api/v8.html#v8_v8_getheapsnapshot  . 

It would be good to have
 - [ ] `Deno.getHeapSpaceStatistics()`
 - [ ] `Deno.getHeapSnapshot()`
 - [ ] `Deno.getHeapStatistics()`
 - [ ] `Deno.getHeapCodeStatistics()`

Ideally, for now, it would be very useful to have: `Deno.getHeapSnapshot`

Optionally, you could put the 4 mentioned API's together in a v8 object such as `Deno.v8` : `Deno.v8.getHeapSpaceStatistics`
Repository: flutter
Issue: iOS platform views throws thread checker error on hot restart with local unopt engine
Labels: platform-ios,waiting for customer response,engine,a: platform-views,P2,c: fatal crash,team-ios,triaged-ios

Error: (This is all the information that shows, couldn't get an engine stack trace)
```
[VERBOSE-2:thread_checker.h(61)] IsCreationThreadCurrent expected thread: '`\M^BU\^A' actual thread:'io.flutter.1.raster'
[VERBOSE-3:weak_ptr.h(122)] Check failed: (checker_.checker).IsCreationThreadCurrent().
```

device: iPhone 7 simulator, iOS 13.3

Steps to reproduce
1. Build local engine with "ios_debug_sim_unopt"
2. Run an app with platform views. For example: the example app in https://github.com/flutter/plugins/tree/master/packages/webview_flutter
3. After app loads, hit R to **hot restart**, see crash with above error message.

Confirmed that it is also crashing on devices.
Repository: TypeScript
Issue: Add typed return for Object.defineProperties
Labels: Suggestion,Awaiting More Feedback

## Search Terms

`Object.defineProperties` `typed`

## Suggestion

const newObject = Object.defineProperties(o, map);

## Use Cases

Creating extensions of certain properties while still being able to type-check them


## Examples

````js
/** @type {NodeList} */
const nodeListObject = Object.defineProperties(/** @type {Node[]} */ ([]), {
    item: {
      enumerable: false,
      /** @param {number} [index] */
      value: function item(index) { return this[index]; },
    },
  });
````


## Checklist

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
* [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).

The current type I'm using is the following:

````ts
interface ObjectConstructor {
  defineProperties<T1, T2 = PropertyDescriptorMap>(o: T1, properties: T2 & ThisType<T1>): T1 & {
        [K in keyof T2]: (
          T2[K]['get'] extends Function ? ReturnType<T2[K]['get']> :
          T2[K]['set'] extends Function ? Parameters<T2[K]['set']>[0] :
          T2[K]['value'] extends undefined ? any : T2[K]['value']
        )
      };
}
````

It seems alright but I would love to get some feedback. Currently, I'm targeting against `.get()` first, then `.set(arg0)` and finally `.value`.

See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperties
Repository: godot
Issue: KinematicBody2D doesn't collide with group of one way collision bodies
Labels: bug,topic:physics

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:**
<!-- Specify commit hash if using non-official build. -->
3.2.3

**OS/device including version:**
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->
Windows 10

**Issue description:**
<!-- What happened, and what was expected. -->
A KinematicBody2D enters the corner of a one way collision static body and doesn't register as a collision, which allows it to go through another one way collision static body that it will usually collide with.

![phase](https://user-images.githubusercontent.com/1882199/98318374-7bfdd200-1fac-11eb-9b7f-d76a24994d8d.gif)

It's expected to hit the right-most one way collision static body, as shown when the left one is disabled.

![collision](https://user-images.githubusercontent.com/1882199/98318410-9172fc00-1fac-11eb-9816-cacbc7b55ba5.gif)

**Steps to reproduce:**

Run the test project.

**Minimal reproduction project:**
<!-- A small Godot project which reproduces the issue. Drag and drop a zip archive to upload it. -->
[test_move_one_way_diagonal_phase.zip](https://github.com/godotengine/godot/files/5498546/test_move_one_way_diagonal_phase.zip)