sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: godot
Issue: Inherited scene removal or replacement scripts, scripts are still executed.
Labels: bug,discussion,topic:core,confirmed

### Godot version

3.x,4.0 dev

### System information

windows 10 

### Issue description
![image](https://user-images.githubusercontent.com/14800320/131473640-fdd6827f-4781-4a33-b88b-68a48bb6f7b4.png)

Inherited scene removal or replacement scripts, scripts are still executed.
I don't know if it's a bug or a godot feature.

继承场景移除或更换脚本,脚本仍然被执行了.
我不知道,这是BUG还是Godot特性.

### Steps to reproduce

1.Create scene A
2.Add a script to scene A and write the code in '_init'
3.Create inheritance scene B. Inherit scene A
4.Remove the script from scene B
5.Run scene B, the code in '_init' is executed

1.创建场景A
2.给场景A添加脚本,并且在'_init'中写入代码
3.创建继承场景B.继承场景A
4.场景B移除脚本
5.运行场景B, '_init'中的代码被执行了

### Minimal reproduction project

[test.zip](https://github.com/godotengine/godot/files/7082509/test.zip)
Repository: flutter
Issue: [shared_preferences] [windows,linux] Data can be corrupted due to lack of atomic file writes
Labels: platform-windows,platform-linux,p: shared_preferences,package,a: desktop,team-ecosystem,P2,triaged-ecosystem

```
 SharedPreferences _preferences = await SharedPreferences.getInstance();
```

This code simply fails with an error if config file is broken. Maybe it's good to clear preferences file if it contains an error. I do not know why the preferences file breaks but since i've published my app, there were some users, who reported this issue. 

Platform where i faced this issue: Windows.

Flutter version: 2.2.3 from stable channel.

I have no idea why but file becomes something like this
![image](https://user-images.githubusercontent.com/63228361/131477681-073e5295-0cf8-4b43-8fbb-56b986ba5326.png)
Repository: flutter
Issue: [bug] InkWell makes the page of PageView auto KeepAlive
Labels: framework,f: material design,has reproducible steps,found in release: 2.2,found in release: 2.6,team-design,triaged-design

Hello dev:

As title, `InkWell` makes the page of `PageView` auto `KeepAlive`,  thanks.


https://github.com/flutter/flutter/blob/33403bd28ee09632d4a08f82d0ed0d8b2490d3c8/packages/flutter/lib/src/material/ink_well.dart#L833
Repository: transformers
Issue: Dependency parsing head for pretrained models
Labels: Feature request

# 🚀 Feature request

Add a new classification head for pretrained models, for dependency parsing.

## Motivation

Current heads, such as `AutoModelForTokenClassification`, does not work well for finetuning a pretrained model for dependency parsing. [There are now such heads available](https://openreview.net/pdf?id=Hk95PK9le), so adding such would make it a lot easier to finetune models for such tasks. A `PyTorch` implementation of that paper (and others) can be found [in this repo](https://github.com/yzhangcs/parser).

## Your contribution

I could assist with a PR, but for now I'd like to start the discussion to see if this is something that the HF team and others would be interested in.
Repository: TypeScript
Issue: Deprecated property could be marked as strikethrough
Labels: Suggestion,In Discussion

# Suggestion

<!--
  Please fill in each section completely. Thank you!
-->

## 🔍 Search Terms

<!--
  💡 Did you know? TypeScript has over 2,000 open suggestions!
  🔎 Please search thoroughly before logging new feature requests as most common ideas already have a proposal in progress.
  The "Common Feature Requests" section of the FAQ lists many popular requests: https://github.com/Microsoft/TypeScript/wiki/FAQ#common-feature-requests

  Replace the text below:
-->

deprecated strike

## ✅ 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:

* [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [x] This wouldn't change the runtime behavior of existing JavaScript code
* [x] 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, new syntax sugar for JS, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).


## ⭐ Suggestion

<!-- A summary of what you'd like to see added or changed -->

## 📃 Motivating Example

```
type X = {
    /** @deprecated */
    x: string
}

function fn (v: X) {}

fn({ x: 'test' })
```

https://www.typescriptlang.org/play?#code/C4TwDgpgBAGlC8UDeAoK6oHoBU2oAEATCMAJwgGMBDYCQqbTNDADwC4oBnYUgSwDsA5igC+KFADMArvwrBeAe35QJygBQA3DjACUycWMn81SKOygByWtwtQROoA

The `x` part of  `x: 'test'` could be marked as strikethrough (~~x~~).

## 💻 Use Cases

People that copy-paste code will never figure out that the property has been deprecated unless they hover the property which is very unlikely. Strikethrough would immediately indicate that the copy-pasted code contains a deprecated property.
Repository: pytorch
Issue: Incubation of Graphical Representation in TF2 of HParams
Labels: module: tensorboard,oncall: visualization

## 🚀 Feature
 Incubation of graphs in HParams of TF2 

## Motivation
The issue or request of the feature addition has been tapered at [How to add graphs to hparams in tensorboard?](https://discuss.pytorch.org/t/how-to-add-graphs-to-hparams-in-tensorboard/109349) on [PyTorch](https://discuss.pytorch.org).

However, the use of add_hparams along with add_scalar widely known in the applications of Machine Learning and Deep Learning, although the generation of the event file by the add_hparams is independent of add_scalar and tensorboard log can't be used intuitively, that is against the coherence of one file per experiment.

## Pitch

**_Already Implemented_**

```
        torch._C._log_api_usage_once("tensorboard.logging.add_hparams")
        if type(hparam_dict) is not dict or type(metric_dict) is not dict:
            raise TypeError('hparam_dict and metric_dict should be dictionary.')
        exp, ssi, sei = hparams(hparam_dict, metric_dict, hparam_domain_discrete)

        if not run_name:
            run_name = str(time.time())
        logdir = os.path.join(self._get_file_writer().get_logdir(), run_name)
        with SummaryWriter(log_dir=logdir) as w_hp:
            w_hp.file_writer.add_summary(exp)
            w_hp.file_writer.add_summary(ssi)
            w_hp.file_writer.add_summary(sei)
            for k, v in metric_dict.items():
                w_hp.add_scalar(k, v)
```

**_Proposed Model_**

```
def add_hparams(self, hparam_dict, metric_dict, hparam_domain_discrete=None, run_name=None):
  torch._C._log_api_usage_once("tensorboard.logging.add_hparams")
  exp, ssi, sei = hparams(hparam_dict, metric_dict, hparam_domain_discrete)
  self.file_writer.add_summary(exp)
  self.file_writer.add_summary(ssi)
  self.file_writer.add_summary(sei)
  for x, y in metric_dict.items():
    if y is not None:
      self.add_scalar(x, y)
```
```
from torch.utils.tensorboard import SummaryWriter
for i in range(5):
  save_metrics = {'train/acc': None, 'train/loss': None}
  writer = SummaryWriter(f'runs/{i}')
  for step in range(50):
    writer.add_scalar('train/acc', 10*i+step, step)
    writer.add_scalar('train/loss', 10*i - step, step)
    writer.add_hparams({'lr': 0.1*i, 'bsize': i}, save_metrics)
    writer.close()

```
### Comparison to Previous Model

1. Manageable user-interface with the availability of add_scalar keys.
2. Independent from generation of conglomerate event files of exclusive parameters.
3. Scalars graphs can be embedded with HParams.
Repository: pytorch
Issue: Using Cloudpickle for pickling jitted functions
Labels: oncall: jit

Could we use Cloudpickle for pickling jitted functions? Would that work?
Repository: rust
Issue: No way to get compile-time info from the type of local.
Labels: T-compiler,C-feature-request

```rust
const fn bla<T>(_: &T) -> usize { type_name::<T>().len() }

fn z(_: &'static [usize]) {}

fn f() {
    let x = read_integer_or_whatever();
    z(&[bla(&x)]); // This line is expanded from a macro, e.g. something like `format_args!()`
}
```

This doesn't work. There's no way to express here that the *value* of `x` is entirely irrelevant, and that `bla` only cares about the type of the argument.

If we had a magic `PhantomData::of(x)` that would work in const contexts regardless of whether `x` itself is const, we could do things like this:

```rust
impl<T> PhantomData<T> {
    #[lang = "magic"]
    const fn of(_: &T) -> Self { Self }
}

const fn bla<T>(_: PhantomData<T>) -> usize { type_name::<T>().len() }

fn z(_: &'static [usize]) {}

fn f() {
    let x = read_integer_or_whatever();
    z(&[bla(PhantomData::of(&x))]);
}
```
Repository: flutter
Issue: [camera] Orientation issues for the camera and the taken file
Labels: platform-ios,p: camera,package,has reproducible steps,P2,found in release: 2.6,team-ios,triaged-ios

After 0.9.0 there are a lot of orientation issues have been solved, but we still got a few.

## Steps to Reproduce

1. Run the example of the camera plugin.
2. Lock the *Auto rotate* for the device.
3. Take a new photo.
4. (Optional) Run [the example of the `wechat_camera_picker` plugin](https://github.com/fluttercandies/flutter_wechat_camera_picker) which is more clear about what happened.

## Issues

- [ ] Unable to get the orientation during the rotation if the *Auto rotate* is locked in the system.
- [ ] Unable to get the orientation of the captured file.
- [ ] Preview is rotated with orientations even if the device is not support for those orientations on iOS.

### 🔘  Unable to get the orientation during the rotation if the *Auto rotate* is locked in the system.

We don't have the orientation stream exposed at present. `_deviceOrientationSubscription` is a private `StreamSubscription`.

### 🔘  Unable to get the orientation during the rotation if the *Auto rotate* is locked in the system.

Below screenshots are all taken with landscape:

| Capture with rotated | Capture with rotated | Preview after captured |
| ---- | ---- | ---- |
| ![image](https://user-images.githubusercontent.com/15884415/131508390-97356b42-f886-421a-a47e-da1f6c7be9cc.png) | ![image](https://user-images.githubusercontent.com/15884415/131508492-fc6aa7de-cc48-473c-9ba9-69c9c873d26b.png) | ![image](https://user-images.githubusercontent.com/15884415/131508539-c792d797-ca65-4939-97ae-2516efab3657.png) |

### 🔘  Preview is rotated with orientations even if the device is not support for those orientations on iOS

Orientations allowed by default are [portraitUp, landscapeLeft, landscapeRight]. When we trying to make the same behavior of rotations, iOS's preview was rotated even if the orientation (here is portraitDown) is not supported to rotated to. See the video for how they behave differently.

https://user-images.githubusercontent.com/15884415/131636196-aa7961e5-fc09-48aa-a564-7dc9edc65aae.mp4
Repository: flutter
Issue: Bug: Custom Markdown InlineSyntax extension inconsistently breaks paragraphs [Web]
Labels: platform-web,package,has reproducible steps,P2,found in release: 2.2,p: flutter_markdown,found in release: 2.6,team-web,triaged-web

The bug is either within markdown/dart or flutter_markdown, not sure exactly which. No errors, just rendered incorrectly.

## Steps to Reproduce
1. Make an extension to add a custom markdown step by step using [this guide](https://developer.school/custom-markdown-inlinesyntax-with-flutter/).

2. Instead of just a few lines of text have a full paragraph. Insert the new custom markdown symbols somewhere within paragraph.
3. Observe the paragraph continuity disrupted - it will be cut into three paragraphs instead.
4. Move the custom part within .md into the paragraphs end.
5. Observe that the custom part is displayed in the newline instead of continuation.
6. Strip down paragraph to be just a few words, with a short custom-marked string in the end.
7. Observe the correct display.

## Minimal bug example
1. Clone reproduction repo: https://github.com/Darth-Carrotpie/flutter_markdown_bug
2. Run code via "flutter run -d chrome --web-renderer html"
3. Grab and drag the side the of your chrome window to change window and observe how paragraph is rendered.

**Expected results:** There is just a single paragraph with a highlighted text in the center.

**Actual results:** Paragraph is broken into multiple pieces, depending on it's width.

4. Switch up example string *markdownData1* in main.dart with *markdownData2*, then hit R for hot reload and observe the single paragraph cut in three pieces.
Repository: godot
Issue: Win+D combination make screen clear if "2D" + "expand" window strech mode set in project settings
Labels: bug,platform:windows,topic:core,topic:rendering,needs testing

### Godot version

3.3.3.stable

### System information

GLES 2.0 project, Windows

### Issue description

Issue in topic's name.

In my project Camera2D show nothing on the screen, then I press Win+D combination and then expand window back.

It works in Debug and Realise builds and in Godot 3.3 it works at the same way.

However, if you have separate CanvasLayer, all nodes under will be showed. Further research show (and I find it accidentally) what actions breaks somithing inside Camera2D (more likely) or root CanvasLayer, becouse $Camera2D.get_camera_screen_center() returns vector with "-1.#IND" in y parameter.

UPD: Camera should be with enabled smoothing.

Here a project what represents this issue:

### Minimal reproduction project

[New.zip](https://github.com/godotengine/godot/files/7084773/New.zip)
Repository: vscode
Issue: Auto Detect in language picker does nothing for untitled new files
Labels: feature-request,languages-guessing

- open a new untitled file
- open the language picker
- select the Auto Detect option => no effect (not surprisingly)

Suggest to either not show the option in this context or to show a notification that guides users how to use Auto Detection, e.g., pls enter some lines first etc...

![image](https://user-images.githubusercontent.com/172399/131538136-b6f09815-96cf-46b5-a81a-56711ed90f7d.png)
Repository: rust
Issue: Tracking Issue for `slice_swap_unchecked`
Labels: T-libs-api,C-tracking-issue

Feature gate: `#![feature(slice_swap_unchecked)]`

This is a tracking issue for `slice::swap_unchecked`, an unsafe version of `slice::swap` that does not do bounds checking.

### Public API

```rust
impl<T> [T] {
    pub const unsafe fn swap_unchecked(&mut self, a: usize, b: usize);
}
```

### Steps / History

- [x] Implementation: #88540
- [x] Revert implementation of `slice::swap`: https://github.com/rust-lang/rust/pull/94342.
- [ ] Final comment period (FCP)
- [ ] Stabilization PR

### Unresolved Questions

- None yet.
Repository: pytorch
Issue: FR: Record results of OpInfo reference tests and detect when numerics of an operator change
Labels: feature,module: tests,triaged

This would help identify the extent of changes to the operator set and require engineers appreciate the scope and impact of their change before committing it. 

cc @mruberry @VitalyFedyunin @walterddr
Repository: go
Issue: x/pkgsite: support viewing a module at a specific git commit
Labels: NeedsInvestigation,FeatureRequest,pkgsite

As far as I can tell, pkgsite supports viewing a package at three versions via `https://pkg.go.dev/some-module@some-version`:

* The default, `@latest`
* `@master`, which works on git as the "latest development" branch of many git repos
* Specific Go module versions, like `@v1.2.3` or `v3.4.0-0.dev.0.20210826165642-ec61336f424e`

`go list -m some-module@some-version` supports all three, plus any version known to the VCS repository. For example:

```
$ go list -m mvdan.cc/sh/v3@ec61336f4 # short git commit
mvdan.cc/sh/v3 v3.4.0-0.dev.0.20210826165642-ec61336f424e
$ go list -m mvdan.cc/sh/v3@fuzz-corpus # git branch
mvdan.cc/sh/v3 v3.4.0-0.dev.0.20210523164001-ed686c72b3ae
```

I'm running with the default GOPROXY and an empty GOPRIVATE, and it seems like these simply go via proxy.golang.org:

* https://proxy.golang.org/mvdan.cc/sh/v3/@v/fuzz-corpus.info
* https://proxy.golang.org/mvdan.cc/sh/v3/@v/ec61336f4.info

The feature request for arbitrary branches is already at https://github.com/golang/go/issues/46914. This issue is about the other scenario: specific commits from the VCS. The main difference with branches is that, by definition, branches are a moving target. Specific commits are more like tags: they should generally be treated as immutable once published.

My particular use case today is similar to arbitrary branches; imagine I've pushed a new feature to a feature branch in the upstream git repo, and I want to check that pkgsite renders it well and the docs make sense. I might also want to share the link as part of a PR to allow easier review.

Right now I can do it manually via this monstrosity of a hack:

```sh
$ firefox "https://pkg.go.dev/github.com/ipld/go-ipld-prime@$(go list -m -f {{.Version}} github.com/ipld/go-ipld-prime@eba8e5653ba2e418866c0c51b292e7bd4e9c080b)"
```

Essentially, using `go list -m` to turn a git commit into the Go pseudo-version, then using that as the version suffix in the pkgsite URL.

It would be much better UX if pkgsite did this for me, just like `go list -m` does, and especially seeing how the proxy server already has the support.
Repository: pytorch
Issue: torch.empty_like not taking None as layout?
Labels: module: docs,triaged,module: tensor creation

## 🐛 Bug

torch.empty_like not taking None as layout. 

## To Reproduce

```
import torch
B = 10
T = 12
a = torch.zeros(B, T)
b = torch.empty_like(a) #works
c = torch.empty_like(b, layout=None) #error out
```

c will error out with the following msg:
```
empty_like(): argument 'layout' must be torch.layout, not NoneType
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-15-b1c4cb719cd9> in <module>
      4 a = torch.zeros(B, T)
      5 b = torch.empty_like(a)
----> 6 c = torch.empty_like(b, layout=None)
TypeError: empty_like(): argument 'layout' must be torch.layout, not NoneType
```

## Expected behavior
On the pytorch doc, we have layout default to None (https://pytorch.org/docs/master/generated/torch.empty_like.html#torch.empty_like) which is counter-intuitive.

## Environment

Pytorch master


## Additional context
N/A

cc @brianjo @mruberry @gchanan @rgommers @heitorschueroff
Repository: PowerToys
Issue: [Suggestion][FancyZones] Additional hotkey "win + shift + numpad" for quick window resizing
Labels: Idea-Enhancement,FancyZones-Layouts,Product-FancyZones

### Description of the new feature / enhancement

- An window size increase/decrease will follow by where the mouse is.
- (win shift +) for increasing; (win shift -) for decreasing. User can change/disable hotkey in PowerToys Settings under FancyZones tab.


### Scenario when this would be used?

I need the flexibility of where the mouse is.
It's quicker than using a fixed layout.
It take 1-4 time press hotkey to make smallest layout to be fullscreen.

### Supporting information

![image](https://user-images.githubusercontent.com/77535212/131562995-982edcac-8cd0-4922-8b1c-28cf55f039cf.png)
Repository: PowerToys
Issue: PowerToys Run: Allow user to change the sort order
Labels: Idea-Enhancement,Product-PowerToys Run

### Description of the new feature / enhancement

PowerToys Run: Allow user to change the sort order base on their preference and workspace. 

For example, I enable the following plugins: Program, Windows Walker, and Windows System Commands. I would like Windows Walker to display on the top of the list, follow by Program and finally Windows System Commands.

You can add another column next the Enable or Disable column in the plugin list.

### Scenario when this would be used?

When I have several open windows of the same application, it is must faster to search and see the result on the list. Currently, the default sort behavior is to show the Program and then Windows Walker below it.

### Supporting information

_No response_
Repository: vscode
Issue: Recommend renderers extension when working with .ipynb files
Labels: feature-request,web,notebook-output

<!-- ⚠️⚠️ 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. -->
## TL;DR
Recommend the output renderers extension to the user when they open an .ipynb file.

## Overview
The Jupyter team intends to separate notebook renderers into their own web-enabled extension. This extension aims to support more output-rendering scenarios when users are viewing/editing notebooks in VS Code web.

Users must install the extension from the marketplace if they wish to view the supported renderers. This is an extra step for users to take once they've navigated to the web client and requires context-switching from their notebook file, to the extension marketplace, and back to their notebook. Users must be aware of which extension to install to render the output, and search for said extension in the marketplace.

To avoid the cognitive load of having to know which extension to download and context-switching from their notebook to the marketplace, we're suggesting that users get recommended the renderer extension after opening an .ipynb file. VS Code already includes the logic to correctly render the notebook (i.e., cells and some output instead of raw JSON). The idea would be that the detection logic used to render the notebook would also serve as the logic to show a toast notification recommending the renderers extension for the user to install.

This concept of recommending extensions based on the .ipynb file being opened can be extended to include other Jupyter/Notebook-compatible extensions down the line (e.g., Jupyter, Pyodide).
Repository: pytorch
Issue: GradGrad of max_pool2d fails with empty batch dimension
Labels: module: autograd,module: nn,triaged

## 🐛 Bug / 🚀  feature

Not sure if this is intended behavior or not, adding because it showed up when making the OpInfo for max_pool2d. 

> cannot reshape tensor of 0 elements into shape [0, 32, -1] because the unspecified dimension size -1 can be any value and is ambiguous

## To Reproduce

Add 0 batch dimension to max_pool2d inputs in OpInfos and run `test_fn_gradgrad_nn_functional_max_pool2d_cpu_float64`

cc @ezyang @albanD @zou3519 @gqchen @pearu @nikitaved @soulitzer @Lezcano @Varal7 @mruberry @jbschlosser who suggested I add 0 batch dimension..

Note: I'm still landing the max_pool2d opinfo... not yet on master https://github.com/pytorch/pytorch/pull/63530