sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: react-native
Issue: Persist user preferences of React DevTools when debugging with Flipper
Labels: DX,Tool: Flipper,Never gets stale

## Description

When I am debugging my React Native app using the React DevTools in Flipper, I like to change the settings/preferences available, in particular the component filter to remove components I don't care about so I can locate the component I'm after more easily.

However, when the app is being reloaded, the values of the filter (amongst other preferences such as theme colours) aren't being persisted like they do when you use the same tool in the browser (say Chrome). This is a minor inconvenience as I'd like to not have to set the filters up again each time the app reloads.

Apparently this is a known problem due to the lack of a synchronous persistent storage API available on React Native from this conversation I started with @mweststrate @bvaughn @rickhanlonii on [this Twitter thread](https://twitter.com/brian_d_vaughn/status/1301116708309139456), and I've been encouraged to raise this issue officially so it can be properly tracked and see if others are interested in this feature/solving it etc!

## React Native version:
```
System:
    OS: macOS 10.15.6
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 33.91 MB / 16.00 GB
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 10.20.1 - /usr/local/bin/node
    Yarn: 1.22.4 - /usr/local/bin/yarn
    npm: 6.14.5 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 13.7, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
    Android SDK:
      API Levels: 27, 28, 29
      Build Tools: 28.0.3, 29.0.3
      System Images: android-22 | Google APIs Intel x86 Atom, android-28 | Intel x86 Atom_64, android-28 | Google Play Intel x86 Atom, android-29 | Google APIs Intel x86 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: 3.6 AI-192.7142.36.36.6392135
    Xcode: 11.7/11E801a - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_252 - /usr/bin/javac
    Python: 2.7.16 - /usr/bin/python
  npmPackages:
    @react-native-community/cli: Not Found
    react: 16.11.0 => 16.11.0 
    react-native: 0.62.2 => 0.62.2 
  npmGlobalPackages:
    *react-native*: Not Found
```

## Steps To Reproduce
Start the Metro bundler and the iOS/Android simulator following the [standard Environment Setup](https://reactnative.dev/docs/environment-setup) instructions. Then:

1. Open Flipper and go to React DevTools. Update the user preference by clicking the settings cog.
2. Refresh the app

## Expected Results
The user preference persists between app refreshes.
Repository: TypeScript
Issue: ?? and ??= behave differently when they shouldn't
Labels: Bug,Help Wanted,Effort: Moderate

<!-- 🚨 STOP 🚨 STOP 🚨 STOP 🚨

Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common "Bugs" That Aren't Bugs section!

Please help us by doing the following steps before logging an issue:
  * Search: https://github.com/Microsoft/TypeScript/search?type=Issues
  * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ

Please fill in the *entire* template below.
-->

<!--
Please try to reproduce the issue with the latest published version. It may have already been fixed.
For npm: `typescript@next`
This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly
-->
**TypeScript Version:**  4.0.2,  Nightly (2020-9-2)

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:**
Nullish coalescing operator
Nullish never
Coalescing never
Nullish coalescing assignment

**Code**
According to this [post](https://devblogs.microsoft.com/typescript/announcing-typescript-4-0-beta/#short-circuiting-assignment-operators) usage of `??` and `??=` should be equivalent in the sample code below:
```typescript
const values: { a?: string[] } = { };

delete values.a;
(values.a ?? (values.a = [])).push("hello"); // error
values.a = undefined;
(values.a ?? (values.a = [])).push("hello"); // error

delete values.a;
(values.a ??= []).push("hello");
values.a = undefined;
(values.a ??= []).push("hello");
```

**Expected behavior:**
Examples with `??` and `??=` should compile and behave similarly.

**Actual behavior:**
Examples with `??` do not compile (Argument of type 'string' is not assignable to parameter of type 'never'.(2345))

**Playground Link:** 
[link](https://www.typescriptlang.org/play?ts=4.1.0-insiders.20200902&ssl=6&ssc=1&pln=5&pc=1#code/MYewdgzgLgBAbgQwDYFcCmEBcMDeMED820ATgJZgDmA2gLowC+MAvLowNwBQnAJmkmihp4ydBAB0CLgApEqDJJgECMWaIUIWMOgEod4gA4oIAC2kAiE-yQhzO9jAD0jmFAjSATAGYALAFYdTjkxRVYUMD4AMwo0HhlgjSUVNXkJTVZdfSNTCyskGzsHZ1d3b39A3n5BYQS0+PU0pIzaLOMzS2tbeyCG0JhwqJi4zhSQzWVm1pyO-K6uIA)

**Related Issues:** 
Didn't find anything similar
Repository: PowerToys
Issue: [Run] Customizable icons for search results
Labels: Idea-Enhancement,Product-PowerToys Run

📝 The choice to customize icons for PowerToys Run

What is the expected behavior of the proposed feature?  

-- A feature, where we are able to customize our own icons for each application rather than the once given by Microsoft or any 
    other developer.

What is the scenario this would be used?

-- To make it a cleaner and better-looking search engine. 

![Screenshot (1559)](https://user-images.githubusercontent.com/67862114/92031894-61279b00-ed7a-11ea-9041-77bfe1541e4e.png)

If you'd like to see this feature implemented, add a 👍 reaction to this post.
Repository: three.js
Issue: Wrong animation duration/offsets with FBXLoader
Labels: Loaders

##### Description of the problem

I have a FBX file with multiple animations created with Maya.
The animations are created on a single timeline and exorted with the Game Exporter - that's the only way I found to pack multiple animations in a single file.
![image](https://user-images.githubusercontent.com/9975455/92031933-abece700-ed69-11ea-9ad4-9837d95bb721.png)

The animations are messed up with three .js and the duration is wrong. They work great with Windows 3D Viewer.
The reason is when loading, times do not necessarily begin at zero.

At this debug point : https://github.com/mrdoob/three.js/blob/ff48de58e216bc72abb4085a080c5acb66f2f584/examples/jsm/loaders/FBXLoader.js#L2685
Here is the track content :
![image](https://user-images.githubusercontent.com/9975455/92032551-a80d9480-ed6a-11ea-9d5a-0a63cba3d333.png)

And the AnimationClip duration is always calculated from offset 0
https://github.com/mrdoob/three.js/blob/cd41804aa436bb2cfd79797c04985f75c4c63e63/src/animation/AnimationClip.js#L403

In relation to https://github.com/mrdoob/three.js/issues/14894 but to me this is not a feature suggestion, it's a bug with the loader. I'm not sure what the exact clean solution should be.

##### Three.js version

- [ ] Dev
- [X] r120
- [ ] ...

##### Browser

- [x] All of them
- [ ] Chrome
- [ ] Firefox
- [ ] Internet Explorer

##### OS

- [x] All of them
- [ ] Windows
- [ ] macOS
- [ ] Linux
- [ ] Android
- [ ] iOS

##### Hardware Requirements (graphics card, VR Device, ...)
Repository: flutter
Issue: [Navigation Rail] Default animation should be fastOutSlowIn (standardEasing) and 250millis
Labels: framework,a: animation,f: material design,c: proposal,team-design,triaged-design

Currently: easeInOut and 200millis.
It should be: fastOutSlowIn and 250millis.

Perhaps the curve and duration should be configurable parameters on the `NavigationRail` too.
Repository: svelte
Issue: Audio Element Bindings Working Unreliably in Firefox
Labels: stale-bot

**Describe the bug**
When (1) Server-side rendering and (2) Browsing in firefox, Svelte fails to set bindings for values that are initialized to a value on page reload.

For instance, with code like

```
<audio ... bind:duration={myDuration} />
```

if `myDuration` is initialized to 0, then it will remain zero indefinitely.

**Logs**
N/A

**To Reproduce**

A repo reproducing this issue is here: https://github.com/qstearns/audio-event-repro

I used sapper to get SSR to work easily, but I suspect this is a svelte issue.

To run follow the readme or:

1. npm i && npm run dev
2. Navigate to localhost:3000 in Firefox
3. Reload the page and observe the value is set to 0.

**Expected behavior**
I expected the value to be set to the value of the audio clip.

**Stacktraces**

N/A

**Information about your Svelte project:**
- Your browser and the version: Firefox 79.0

- Your operating system: Manjaro Linux 20.1

- Svelte version: 3.17.3

- Rollup

**Severity**
This bug is just annoying because I can always initialize my values to undefined and adjust my application code, but a fix would make me happy.

**Additional context**

May be related to #3524, which I have also noticed a regression on.
Repository: pytorch
Issue: [jit] Better type refinement for class attributes which are class types
Labels: oncall: jit,weeks,months,TSRootCause:TypeRefinement,TSUsability

Reported internally but seen this several times, our type refinement works for container types, but not for class attributes, this is pretty UX disruptive as the user need to assign it to local variable and then do the type refinement


```
class MyClass: 
    weight: Optional[torch.Tensor]

    def func(self):
         if self.weight is not None:
             blah
```
This doesn't work, because torch script cannot work on optional class members. We have to do:
```
class MyClass: 
    weight: Optional[torch.Tensor]

    def func(self):
         weight = self.weight
         if weight is not None:
             blah
```

cc @gmagogsfm
Repository: create-react-app
Issue: Add support for enabling Jest automock without ejecting
Labels: issue: proposal,needs triage

### Describe the solution you'd like

<!--
  Provide a clear and concise description of what you want to happen.
-->

It would be great to be able to enable `automock` in the `jest` configuration for our application's `package.json`.

```
  "jest": {
    "automock": true,
    /* ... */
  }
```

Currently, this results in the following console output for `yarn test`:
```console
yarn test
yarn run v1.22.4
$ react-scripts test --coverage

Out of the box, Create React App only supports overriding these Jest options:

  • clearMocks
  • collectCoverageFrom
  • coveragePathIgnorePatterns
  • coverageReporters
  • coverageThreshold
  • displayName
  • extraGlobals
  • globalSetup
  • globalTeardown
  • moduleNameMapper
  • resetMocks
  • resetModules
  • restoreMocks
  • snapshotSerializers
  • transform
  • transformIgnorePatterns
  • watchPathIgnorePatterns.

These options in your package.json Jest configuration are not currently supported by Create React App:

  • automock

If you wish to override other Jest options, you need to eject from the default setup. You can do so by running npm run eject but remember that this is a one-way operation. You may also file an issue with Create React App to discuss supporting more options out of the box.
```

### Describe alternatives you've considered

1. We have considered ejecting but would rather not because we want to remain open to benefiting from future releases of `create-react-app`.
2. We are currently manually mocking modules for unit tests, which adds an unfortunate amount of extra overhead/boilerplate to our test suite.
Repository: angular
Issue: Angular SwPush subscription refresh
Labels: type: bug/fix,area: service-worker,state: confirmed,P3

# 🚀 feature request

### Relevant Package
 This feature request is for @angular/service-worker


### Description
Using Angular's SwPush, we are looking for:
1) A way to refresh old or expired web push subscriptions. The standard explains how the browser is expected to do this automatically (https://www.w3.org/TR/push-api/#subscription-refreshes) and fire a "pushsubscriptionchange" event, but I am under the impression this event cannot be handled through Angular's SwPush after going through ngsw-worker.js (I might be wrong?). 
2) Once a subscription refresh is made, we need to handle it by updating the subscription on the app server so that new notifications are delivered to the new subscription instead of the expired one.

This has to happen in the service worker, since users may not run the app for a while.


### Describe the solution you'd like
Is it possible for the Angular service worker to take care of automatic subscription refresh and optionally post the old and new subscriptions to an endpoint that is specified in ngsw-config.json?


### Describe alternatives you've considered
1) Ignoring the problem of expired subscriptions => but our use case requires a high degree of reliability in delivering push notifications when the user is expecting them.
2) Modifying the source of ngsw-worker.js => but it seems too hacky for a fairly standard requirement.
3) Use the application code to do the refresh the subscription every time the user runs the app => users may not run the app in a while.

Best wishes,
Repository: flutter
Issue: Expose access to iOS's 'preferredScreenEdgesDeferringSystemGestures'
Labels: c: new feature,platform-ios,framework,f: cupertino,f: gestures,c: proposal,team-design,triaged-design

I show a modal tray at the bottom of my app, and I want users to be able to swipe down to dismiss it. On iOS, this triggers the OS to pull the whole app down as part of iOS's "reachability" feature.

iOS exposes a way to prefer in-app gestures over system gestures: [preferredScreenEdgesDeferringSystemGestures](https://developer.apple.com/documentation/uikit/uiviewcontroller/2887512-preferredscreenedgesdeferringsys). It would be very useful if Flutter could somehow expose this in a way that we can programmatically set the screen edges that should be de-prioritized  for system gestures.
Repository: electron
Issue: BrowserWindow.getContentSize() does not behave the same as expected
Labels: platform/windows,bug :beetle:,status/confirmed,component/BrowserWindow,10-x-y,has-repro-gist,12-x-y

<!--  As an open source project with a dedicated but small maintainer team, it can sometimes take a long time for issues to be addressed so please be patient and we will get back to you as soon as we can.
-->

### Preflight Checklist
<!-- Please ensure you've completed the following steps by replacing [ ] with [x]-->

* [x] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/master/CONTRIBUTING.md) for this project.
* [x] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md) that this project adheres to.
* [x] I have searched the issue tracker for an issue that matches the one I want to file, without success.

### Issue Details

* **Electron Version:** 
  * 10.1.0
* **Operating System:**
  * windows 10
* **Last Known Working Electron version:** 
  * 9.0.x

In some cases,I need to change the height of the windwo and keep the width the same.
when I use 
```
let win = BrowserWindow.getAllWindows()[0]
let size = win.getContentSize() //or let size = win.getSize()
win.setSize(Math.floor(size[0]),1000)
```
then width will excatly +1 when I call these code
(in another case,the height will excatly +1 also)

It looks the getContentSize always get 1px more then window.

Even though I can simply -1 after I get the size of the window,I still want kown why

### Expected Behavior
window.getContentSize() should return the excat px of the window

### Actual Behavior
window.getContentSize() get 1px more on both width and height

### To Reproduce

<!--
For bugs that can be encapsulated in a small experiment, you can use Electron Fiddle (https://github.com/electron/fiddle) to publish your example to a GitHub Gist and link it your bug report.
-->

<!--
If Fiddle is insufficient to produce an example, please provide an example REPOSITORY that can be cloned and run. You can fork electron-quick-start (https://github.com/electron/electron-quick-start) and include a link to the branch with your changes.
-->

<!--
If you provide a URL, please list the commands required to clone/setup/run your repo e.g.
```sh
$ git clone $YOUR_URL -b $BRANCH
$ npm install
$ npm start || electron .
```
-->

### Screenshots
![image](https://user-images.githubusercontent.com/52130356/92067367-ada0c400-edd6-11ea-839e-f8e6ed9ef105.png)
![image](https://user-images.githubusercontent.com/52130356/92067395-c0b39400-edd6-11ea-93c9-be08d95645cc.png)


### Additional Information
getSize() will behave the same as getContentSize()
Repository: ant-design
Issue: Drag nodes between trees and tables
Labels: 💡 Feature Request,Inactive

- [ ] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.

### What problem does this feature solve?
Is there any ways to drag and drop nodes between two trees in different components

### What does the proposed API look like?
No propositions


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: vscode
Issue: [json] Format selection doesn't fix indentation
Labels: feature-request,json

* have the JSON snippet below
* select the 2nd line
* run "Format Selection"
* :bug: the indentation isn't fixed


```json
{
"foobar": true,
    "bazz": false
}
```

_Originally posted by @misolori in https://github.com/microsoft/vscode/issues/105800#issuecomment-685804555_
Repository: vscode
Issue: Workbench hover: a lot of whitespace in this case
Labels: bug,workbench-hover

I am using web and just saw this hover which appeared very large:

![image](https://user-images.githubusercontent.com/900690/92086690-cefbb300-edca-11ea-9fd1-63d71f45b0d3.png)
Repository: rust
Issue: Memory overflow when compiling
Labels: T-compiler,I-compilemem,C-bug,E-needs-mcve

When compiling this code the compiler starts using more and more memory trill it gets terminated by signal: 15, SIGTERM: termination signal
That's the best minimal code I could come up with...

### Code

```Rust
use actix_web::{web, App, HttpServer, Responder};
use mongodb::Client;

async fn get(
    client: web::Data<Client>,
) -> impl Responder {
        let _ = client
            .clone()
            .database("123")
            .collection("456")
            .find(None, None)
            .await;
    String::new()
}

#[actix_rt::main]
async fn main() -> std::io::Result<()> {
    let client = Client::with_uri_str(&"path").await.unwrap();

    // Start http server
    HttpServer::new(move || {
        //   let auth = HttpAuthentication::bearer(validator);

        App::new()
            .data(client.clone())
            .route("/", web::get().to(get))})
    .bind("127.0.0.1:8000")?
    .run()
    .await
}
```
[reduced.zip](https://github.com/rust-lang/rust/files/5167039/reduced.zip)


### 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.47.0-nightly (7e6d6e5f5 2020-08-16)
binary: rustc
commit-hash: 7e6d6e5f535321c2223f044caba16f97b825009c
commit-date: 2020-08-16
host: x86_64-unknown-linux-gnu
release: 1.47.0-nightly
LLVM version: 10.0

rustc 1.46.0 (04488afe3 2020-08-24)
binary: rustc
commit-hash: 04488afe34512aa4c33566eb16d8c912a3ae04f9
commit-date: 2020-08-24
host: x86_64-unknown-linux-gnu
release: 1.46.0
LLVM version: 10.0
```

### Error output

```
No special output.
```

<!--
Include a backtrace in the code block by setting `RUST_BACKTRACE=1` in your
environment. E.g. `RUST_BACKTRACE=1 cargo build`.
-->
<details><summary><strong>Backtrace</strong></summary>
<p>

```
no backtrace
```

</p>
</details>
Repository: pytorch
Issue: Item seems to affect the backward process of DataParallel
Labels: module: cuda,triaged,module: data parallel

PyTorch :1.5.0
model : resnet50

Background:
I currently have two test environments, one is a physical machine with 8 gpus, and the other is a 4 gpus Docker on this physical machine.
Run the 4 gpus resnet50 model (using DataParallel) in these two environments. The code of the train part is as follows:
```
model.train()
for iters in range(1, train_interval + 1):
    data, target = train_dataloader.next()
    output = model(data)
    loss = loss_function(output, target)
    optimizer.zero_grad()
    loss.backward()
    optimizer.step()
    prec1, prec5 = accuracy(output, target, topk=(1, 5))
    Top1_err += 1 - prec1.item() / interval
    Top5_err += 1 - prec5.item() / interval
```

It is found that the training speed of running 4 gpus on a physical machine is 0.33 s/step, but the speed of running 4 gpus on Docker is 0.26 s/step. The speed difference between the two has reached more than 20%. After analysis, the main difference between the two is Reverse the gradient and parameter update, and find
After removing the item function, the speeds of the two are: physical machine: 0.274 s/step Docker: 0.264 s/step

Doubt:
1. Why does the item function cause such a big difference in training speed between the two?
2. It seems that the item function affects the process of reverse gradient calculation and parameter update?

cc @ngimel
Repository: rust
Issue: [ER] Cargo features fix suggestions
Labels: A-diagnostics,T-compiler,C-feature-request

Please tell me if I have to move this diagnostic Enhancement Request elsewhere (into the the Cargo stuff).

In a new Cargo project I create in vec_test\src\main.rs:
```rust
use tinyvec::*;

fn main() {
    let mut v = TinyVec::<[u8; 15]>::new();
}
```

It doesn't compile and it doesn't explain how to fix the problem:

```rust
...\vec_test>cargo run
    Updating crates.io index
   Compiling tinyvec v1.0.0
   Compiling vec_test v0.1.0 (...\vec_test)
error[E0433]: failed to resolve: use of undeclared type or module `TinyVec`
 --> src\main.rs:4:17
  |
4 |     let mut v = TinyVec::<[u8; 15]>::new();
  |                 ^^^^^^^ use of undeclared type or module `TinyVec`

warning: unused import: `tinyvec::*`
 --> src\main.rs:1:5
  |
1 | use tinyvec::*;
  |     ^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

error: aborting due to previous error; 1 warning emitted

For more information about this error, try `rustc --explain E0433`.
error: could not compile `vec_test`.

To learn more, run the command again with --verbose.
```

What I'd like: it to explain that this error is caused by Cargo features and I'd also like it to suggest how to fix it, replacing this line of Cargo.toml:

```
tinyvec = "1.0.0"
```
With:
```
tinyvec = { version = "1.0.0", features=["alloc"] }
```
Good error messages with good fixing suggestions could save lot of time to lot of people.
Repository: PowerToys
Issue: updating: check for the newer version after clicking the toast
Labels: Issue-Bug,Area-Setup/Install,Cost-Large

<!--
**Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**.
Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue.
-->

## 📝 Provide detailed reproduction steps (if any)

if we don't click 'update' button on the notification right away, and then another version is released in the mean time, we need to update to it, instead of using now outdated-one.