sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: [BE][Docs][FSDP] Clarify microbatching support and tradeoffs
Labels: oncall: distributed,triaged,better-engineering,module: fsdp

### 📚 The doc issue

We should have some documentation on how to use microbatching with FSDP (+ DDP), see additional discussion in https://github.com/pytorch/pytorch/pull/73535

### Suggest a potential alternative/fix

_No response_

cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @SciPioneer @H-Huang
Repository: flutter
Issue: [in_app_purchase] IOS Incomplete documentation for product types
Labels: platform-ios,d: api docs,p: in_app_purchase,package,P2,team-ios,triaged-ios

## Use case

An issue I'm facing stems from the documentation not explicitly stating whether IOS non-renewing subscriptions are consumable or non-consumable. It would be beneficial to **clearly** know which product types should call the method nonConsumable when purchased via the plugin in_app_purchase. 

## Proposal
Please update the documentation to define whether a IOS product type is consumable or non-consumable.
Repository: rust
Issue: pass-by-value bool summation optimizes poorly
Labels: I-slow,T-compiler,C-bug,C-optimization

While optimizing a hot loop in an application which counts the number of `true` values in an sequence of `bool`s, I came up against some very unexpected differences between how functions which take `bool`s by-value and by-reference get optimized.

Here is a minimal godbolt link showing the issue: https://godbolt.org/z/e98Grvoeo

The godbolt contains two tabs, each containing a variant of:

```rust
pub struct T(u64);

impl T {
    pub fn add(&mut self, v: bool) {
        self.0 += v as u64;
    }

    pub fn add_all(&mut self, values: &[bool]) {
        values.iter().for_each(|&o| self.add(o));
    }
}
```

where the `v` arg of `add` is either by reference or by value. The by-reference version of `add_all` optimizes significantly better.  The vectorized portion (by-val on left, by-ref on right):

![image](https://user-images.githubusercontent.com/160242/158084853-65c2cb71-d392-45dd-a605-48f8c7cdde20.png)

Even the unvectorized remainder loop is simpler (by-val on left, by-ref on right):

![image](https://user-images.githubusercontent.com/160242/158084701-fedd2eb7-bd90-4dfb-868c-2f8bf95a15cf.png)

Here are a couple other versions of this same issue, at various stages of simplification from the actual application:

https://godbolt.org/z/d3hKvd1Mn
https://godbolt.org/z/9coEzax4T
Repository: material-ui
Issue: [docs] Improve access to the API docs from the demo pages
Labels: docs,discussion,scope: docs-infra

### Motivation

This proposal is all about the speed of navigation. What would make traversing through the docs easier? Besides improving the search experience, which we did a few months ago, merging the demo page with the component API page sounds like a good idea in this direction. For me, personally, having them separated breaks my navigation flow a bit. Additionally, the Component API folder on the side nav is sorted alphabetically whereas the Component folder is not (sorted through a specific order), which frequently gets me confused.

I also think that having everything under the same "umbrella" would facilitate learning components that are made out of several smaller ones — Text Field might be the most illustrative of this. 

### How this could look

Here's the first design to kick this off.

<img width="700" src="https://user-images.githubusercontent.com/67129314/158085629-63080b86-571b-4fd0-accf-132b68d5c29c.jpg" alt="Lightmode" />

<img width="700" src="https://user-images.githubusercontent.com/67129314/158085521-e667cc7b-fa06-4883-99ce-697cf816d8c5.jpg" alt="Darkmode" />

### Down sides 

Is there any we should consider and bring to light? What would we lose or run the risk of making worse if we moved forward with this? I can't see anything right now. I remember we talked about that not even from an SEO standpoint this would be bad. So, what else?

### Related issue

The look & feel of the API table: #34085.

---

cc @mui/maintainers
Repository: react-native
Issue: [Android] Tapping selectable text inside a ScrollView can cause the ScrollView to jump to the top under some circumstances
Labels: Platform: Android,Component: ScrollView,Needs: Triage :mag:,Never gets stale

### Description

After selectable text inside a ScrollView has been touched in a way that neither creates a selection nor scrolls the ScrollView, certain interactions cause the ScrollView to scroll to the top.  
(I'm not sure exactly what set of events are necessary to trigger the jump, but I have a text unloading algorithm that consistently causes it. The issue may be specific to large or nested `Text`s, and may have to do with content changing as the result of a scroll event? Changing the content of the text in a `setInterval` didn't seem to be enough to cause it, so I just copied the unloading algorithm out of my codebase.)

As a workaround, updating the `key` prop on the selectable text component seems to clear the glitched state.

### Version

0.67.3 (originally observed on 0.64.1)

### Output of `npx react-native info`

```
info Fetching system and libraries information...
System:
    OS: Windows 10 10.0.22000
    CPU: (12) x64 Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
    Memory: 3.72 GB / 15.76 GB
  Binaries:
    Node: 17.7.1 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 8.5.2 - C:\Program Files\nodejs\npm.CMD
    Watchman: Not Found
  SDKs:
    Android SDK: Not Found
    Windows SDK: Not Found
  IDEs:
    Android Studio: Not Found
    Visual Studio: 16.10.31402.337 (Visual Studio Community 2019), 15.9.28307.1033 (Visual Studio Community 2017)
  Languages:
    Java: 1.8.0_282 - C:\Program Files\OpenJDK\openjdk-8u282-b08\bin\javac.EXE
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2
    react-native: 0.67.3 => 0.67.3
    react-native-windows: Not Found
  npmGlobalPackages:
    *react-native*: Not Found
```

### Steps to reproduce

1. Run the Snack below on an Android device (Snack's provided one or your own).
2. Scroll up and down; observe that scrolling works as expected.
3. Tap on the text without starting a selection or scrolling. (Tapping to cancel a selection works.)
4. Try scrolling again; observe that the scroll jumps to the top now.

### Snack, code example, screenshot, or link to a repository

https://snack.expo.dev/b2Vgmc_4L
Set `USE_WORKAROUND` to true to see the workaround in action (this breaks the ability to actually select text, but if you need to use this in production, you can use <https://github.com/artemiswkearney/react-native-selectable-text> to add an `onSelectionStart` handler where you cancel running the workaround)
Repository: pytorch
Issue: [Android Studio] DefaultCPUAllocator: not enough memory: you tried to allocate 280166432 bytes
Labels: module: memory usage,triaged,module: android

### 🐛 Describe the bug

The following error occurs when analyzing photos on Android.
```
  withContext(Dispatchers.Default) {
            try {
                async {
                    val inputTensor = preparingInput(bitmap)
                    val outputTensor = runInference(module = module, inputTensor = inputTensor)
                    scores = outputTensor?.dataAsFloatArray

                    for (index in scores!!.indices) {
                        Log.d("TAG", "outputTensor :  ${scores!![index]}")
                    }
                }.await()
                _analysisImageResponse.postValue(scores?.let { outputResultComparison(it) })

            } catch (e: Exception) {
                    if (analysisImageResponse.value == null) _analysisImageResponse.postValue(10)
                    else _analysisImageResponse.postValue(null)
                    Log.d("TAG", "imageAnalysisError : $e")
            }

        }
```
Catch shows that they were caught and bytes were overflowing.
```
    private suspend fun runInference(module: Module?, inputTensor: Tensor) =
        module?.forward(IValue.from(inputTensor))?.toTensor()
```

## Log
```
    com.facebook.jni.CppException: [enforce fail at CPUAllocator.cpp:79] data. DefaultCPUAllocator: not enough memory: you tried to allocate 280166432 bytes.
      
      debug_handle:-1
      
    (no backtrace available)
```

### Versions

Android Studio
```
Android Studio Bumblebee | 2021.1.1
```
Pytorch Mobile 
```
implementation 'org.pytorch:pytorch_android_lite:1.9.0'
implementation "org.pytorch:pytorch_android_torchvision:1.9.0"
```
Repository: react
Issue: React 18  Whether to support keepalive？
Labels: Type: Discussion,React 18

Vue officially supports the keepalive method, and it works well
https://vuejs.org/guide/built-ins/keep-alive.html
Repository: vscode
Issue: SCM - Keyboard shortcut for going to next changed file
Labels: feature-request,scm

<!-- ⚠️⚠️ 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. -->
When I'm reviewing the changed files in the Git panel, I had to use mouse to navigate between files, can we add a key shortcut for this?
![GIF 2022-3-14 11-09-30](https://user-images.githubusercontent.com/13391795/158098441-3fe131c5-7dea-475a-b526-49319d22fb16.gif)
Repository: neovim
Issue: symlink on windows unable to launch due to library linking 
Labels: bug,build,platform:windows,has:plan,dependencies

### Neovim version (nvim -v)

NVIM v0.6.1

### Vim (not Nvim) behaves the same?

not sure

### Operating system/version

windows 11

### Terminal name/version

windows terminal

### $TERM environment variable

NA

### Installation

zip

### How to reproduce the issue

From a command prompt
```
mklink <desired location>\nvim.exe <folder>\Neovim\bin\nvim.exe
```
then try to launch nvim via the symlink.



### Expected behavior

I'd expect the libraries to be found relative to the source directory. 

### Actual behavior

Basically all the libraries dll cannot be found when attempting to launch `nvim.exe`


This is frustrating for use cases where we want a central binary location, unfortunately we cannot symlink neovim due to the current bug report.
Repository: godot
Issue: body_test_motion not reporting initial contact
Labels: bug,topic:physics

### Godot version

4.0.alpha3.official.256069eaf

### System information

Manjaro Linux

### Issue description

If a body is intersected, PhysicsServer2D.body_test_motion may report a different collider that the body isn't intersecting.
I suspect this ensures more consistent sliding behavior within CharacterBody2D.move_and_slide. But I think it's unfit for the scope of this function, making it unreliable for tests.

### Steps to reproduce

1. Position a body where it overlaps Collider A.
2. Position Collider B where it _would_ overlap the body after it was ejected from Collider A.
3. Write a script identifying which collider is reported by body_test_motion.
4. Observe as Collider B is reported first, although it did not initially overlap the body, whereas Collider A did. Note that subsequent reports are inconsistent.
(Or, open the minimal reproduction project, inspect the scene, then run & observe the console output.)

### Minimal reproduction project

[minimalrepro.zip](https://github.com/godotengine/godot/files/8241944/minimalrepro.zip)
Repository: godot
Issue: Android export on Google Play crash report: `UnsatisfiedLinkError` for `libgodot_android.so`
Labels: bug,platform:android,topic:porting

### Godot version

3.4.3

### System information

MacOS 12.1, Mac Pro, GLES2

### Issue description

I just released game on Google play which is exported from Godot. In order to support low end device, I choose to support GLES2. It does work on my Android phone and passes the alpha test on Google play console but got crashes from Google play console statistics.
Here is the crash log and device information:
```
java.lang.UnsatisfiedLinkError: 
  at java.lang.Runtime.loadLibrary0 (Runtime.java:1067)
  at java.lang.Runtime.loadLibrary0 (Runtime.java:1007)
  at java.lang.System.loadLibrary (System.java:1667)
  at org.godotengine.godot.GodotLib.<clinit> (GodotLib.java:45)
  at org.godotengine.godot.Godot.initializeGodot (Godot.java:563)
  at org.godotengine.godot.Godot.onCreate (Godot.java:716)
  at androidx.fragment.app.Fragment.performCreate (Fragment.java:2949)
  at androidx.fragment.app.FragmentStateManager.create (FragmentStateManager.java:475)
  at androidx.fragment.app.FragmentStateManager.moveToExpectedState (FragmentStateManager.java:278)
  at androidx.fragment.app.FragmentManager.executeOpsTogether (FragmentManager.java:2189)
  at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute (FragmentManager.java:2100)
  at androidx.fragment.app.FragmentManager.execSingleAction (FragmentManager.java:1971)
  at androidx.fragment.app.BackStackRecord.commitNowAllowingStateLoss (BackStackRecord.java:311)
  at org.godotengine.godot.FullScreenGodotApp.onCreate (FullScreenGodotApp.java:72)
  at com.godot.game.GodotApp.onCreate (GodotApp.java:45)
```

Device infos: Lenovo Tab M10 (HD), TB-X505X
ABI: arm64-v8a, armeabi-v7a, armeabi
Device size: 800x1280
DPI: 160 (mdpi)
Android version: API28, API 29
OpenGL ES version: 3.2
GPU: Qualcomm Adreno 504 (320 Mhz)

### Steps to reproduce

Export as aab from Godot support GLES2.
Upload to Google play store.
Get crash log on the Google play console.

### Minimal reproduction project

_No response_
Repository: create-react-app
Issue: (node:23640) 'onAfterSetupMiddleware' 'onBeforeSetupMiddleware'
Labels: needs triage,issue: bug report

After an update of the package react-scripts from version 3.0.1 to 5.0.0, I receive the next 2 warnings:
(node:23640) [DEP_WEBPACK_DEV_SERVER_ON_AFTER_SETUP_MIDDLEWARE] DeprecationWarning: 'onAfterSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.
(Use node --trace-deprecation ... to show where the warning was created)
(node:23640) [DEP_WEBPACK_DEV_SERVER_ON_BEFORE_SETUP_MIDDLEWARE] DeprecationWarning: 'onBeforeSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.

The previous version of package.json includes the next dependencies:
"dependencies": {
"@material-ui/core": "^4.9.7",
"@material-ui/icons": "^4.9.1",
"@material-ui/lab": "^4.0.0-alpha.46",
"@reach/router": "^1.3.4",
"amazon-cognito-auth-js": "^1.3.3",
"amazon-cognito-identity-js": "^5.2.7",
"aws-sdk": "^2.1089.0",
"axios": "^0.26.1",
"bluebird": "^3.7.2",
"bootstrap": "^5.1.3",
"connected-react-router": "^6.9.2",
"dotenv": "^16.0.0",
"es6-promise": "^4.2.8",
"express": "^4.17.3",
"file-saver": "^2.0.5",
"file-system": "^2.2.2",
"file-type": "^17.1.1",
"fs": "0.0.1-security",
"isomorphic-fetch": "^3.0.0",
"jszip": "^3.7.1",
"jszip-utils": "^0.1.0",
"jwt-decode": "^3.1.2",
"multiparty": "^4.2.3",
"query-string": "^7.1.1",
"react": "^16.13.1",
"react-bootstrap": "^2.2.0",
"react-datepicker": "^4.7.0",
"react-dom": "^16.13.1",
"react-dropzone": "^12.0.4",
"react-idle-timer": "^4.6.4",
"react-loading-overlay": "^1.0.1",
"react-redux": "^7.2.6",
"react-router-dom": "^5.1.2",
"react-scripts": "3.0.1",
"react-toastify": "^8.2.0",
"redux": "^4.1.2",
"redux-thunk": "^2.4.1",
"secure-ls": "^1.2.6",
"universal-cookie": "^4.0.4"
},

and only update the line: "react-scripts": "3.0.1", to "react-scripts": "5.0.0",

React version:

Steps To Reproduce
"react-scripts": "3.0.1",
"react-scripts": "5.0.0",
Link to code example:

The current behavior
Warnings

The expected behavior
No Warnings
Repository: ant-design
Issue: [Input.Group] compact模式下样式控制的问题
Labels: help wanted,Inactive

- [x] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.

### Reproduction link
[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/antd-reproduction-template-forked-x1tlcj?file=/index.css)

### Steps to reproduce
鼠标移入左边或者右边输入框时观察中间border颜色变化

### What is expected?
鼠标移入时border同时变蓝且移出时同时消失

### What is actually happening?
中间的border消失和其他不同步，且右边input框border会先变灰在消失

| Environment | Info |
|---|---|
| antd | 4.19.2 |
| React | 17.0.2 |
| System | windows |
| Browser | chrome |


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: TypeScript
Issue: No narrowing on assert.strictEqual()
Labels: Suggestion,Awaiting More Feedback

# Bug Report

`assert.strictEqual(a, b)` and `assert.equal(a, b)` does not result in typescript narrowing like `assert(a === b)`

### 🔎 Search Terms

assert, assert.equal, equal, narrowing

### 🕗 Version & Regression Information

Always (I assume)

Original feature implemented in https://github.com/Microsoft/TypeScript/pull/8010

- This is the behavior in every version I tried, and I reviewed the FAQ for entries about equal

### ⏯ Playground Link

https://www.typescriptlang.org/play?#code/JYWwDg9gTgLgBAbzgZxlYBjeBDZdfICmscAvnAGZQQhwDkBxMdAUCzAJ5iFwCCcAXkQs4ouJ24AuetlZi4AO2kKAriABGxFqTYSeAIUHD5e6XXVyxyaanQKA5traEAHpBIUVCrMAgLKAIwAFC5w0vwAPnD6AJTGYoywIQB0eoICQgx0MSJiGH7IEAA2hMlFEPYpCnFwAPS1cADyANJOLK7u8J7eML7+FABMIWF8cFGx8aKJMMm2mDAAogCOKthFKXoANDLZuaL5CoUlZRVVcfVwAGK8AJIAMtIACtTcsBz0CnRwACYQhHgKCDwVzAVBwPziLg8OiRaJ0ZJwZ4QV6cD5fX7-RRAuAgsEQtJ0fTwpxAA

### 💻 Code

```
import { strict as assert } from 'assert'

type A = {
    type: 'a'
    n: number
}

type B = {
    type: 'b'
    s: string
}

export function f1(x : A | B) {
    assert(x.type === 'a')
    console.log(x.n)  // OK
}

export function f2(x : A | B) {
    assert.strictEqual(x.type, 'a')
    console.log(x.n) // FAIL: Property 'n' does not exist on type 'A | B'. Property 'n' does not exist on type 'B'.
}
```

### 🙁 Actual behavior

No typescript narrowing in function `f2()`

### 🙂 Expected behavior

Typescript narrowing in function `f2()` since it is equavalent to `f1()`
Repository: PowerToys
Issue: Keyboard shortcut causes Ctrl key to act stuck
Labels: Issue-Bug,Product-Keyboard Shortcut Manager,Status-In progress,Priority-1

### Microsoft PowerToys version

0.56.2

### Running as admin

- [ ] Yes

### Area(s) with issue?

Keyboard Manager

### Steps to reproduce

Create a keyboard manager shortcut "Ctrl + any key" (specifically "Ctrl", not "Ctrl (Right)" or "Ctrl (Left)"), then trigger this shortcut using right ctrl.

### ✔️ Expected Behavior

The trigger to work with either left ctrl or right ctrl

### ❌ Actual Behavior

The shortcut worked as expected, but afterward the computer behaved as if the ctrl key was still being held. This behavior continued until left ctrl was pressed and released. The issue only occurred when the shortcut was triggered using right ctrl.

I was able to reproduce this on another computer, the only difference being that right ctrl had to be pressed to correct the issue instead of left ctrl.

### Other Software

_No response_
Repository: vscode
Issue: Allow setting font weights or semibold/thin/heavy... in fontStyle in tokenColors
Labels: feature-request,tokenization

<!-- ⚠️⚠️ 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. -->
Allow setting font weights or semibold/thin/heavy... in fontStyle in tokenColors. Related to [#28457](https://github.com/microsoft/vscode/issues/28457)
Repository: flutter
Issue: [IOS] When the flutter creates the flutterviewcontroller through initwithengine, the external keyboard does not respond
Labels: a: text input,platform-ios,engine,P2,team-ios,triaged-ios

【IOS】When the flutter creates the flutterviewcontroller through initwithengine, the external keyboard does not respond. We found that the flutterviewcontroller is created through initwithengine ， _engineneedslaunch is yes, addinternalplugins will not be called, resulting in the keyboardmanager being nil, and the response chain will no longer pass events down.
flutter version:2.5.0
Repository: flutter
Issue: [IOS] Long press delete key on physical keyboard does not delete textfield characters in continuation
Labels: a: text input,platform-ios,framework,f: material design,a: fidelity,has reproducible steps,P2,found in release: 2.10,found in release: 2.13,team-text-input,triaged-text-input

【IOS】Long press the button and the external keyboard does not respond to continuous input
Repository: vscode
Issue: getWordAtPosition not correct in JSON for long string values
Labels: languages-basic,under-discussion,editor-textbuffer

getWordAtPosition has an optimization to only look 15 characters before offset to figure out what the current word is (see #95319).

This results in wrong words in case of JSON. The [JSON word rule](https://github.com/microsoft/vscode/blob/main/extensions/json/language-configuration.json#L18) is special as it (basically) says a word can start with `"` and end with `"`: `/"[^"]*"?/`

To reproduce:

- Have a JSON file with a long string value:
```json
    {
	"extensionTips": {
		"ms-dotnettools.csharp": "{**/*.cs,**/project.json,**/global.json,**/*.csproj,**/*.cshtml,**/*.sln,**/appsettings.json}"
        }
   }
```
- set a breakpoint in [getWordAtText](https://github.com/microsoft/vscode/blob/main/src/vs/editor/common/core/wordHelper.ts#L80)

- type a character (e.g. comma) at the end of the line with the long string value

`getWordAtText` thinks the current word is `",`. If it had looked further ahead, it would have seen that it is not in a word.
Repository: tauri
Issue: [feat] Prevent device from sleeping
Labels: type: feature request

### Describe the problem

Prevent the device from going to sleep.

### Describe the solution you'd like

Electron has a pretty decent API: https://www.electronjs.org/docs/latest/api/power-save-blocker

This includes the ability to enable and disable this mode dynamically at runtime.

Note that there are two modes:

1. Prevent the device from entering sleep mode (audio, downloads etc)
2. Prevent the monitor from turning off/screen saver (presentations, videos etc)

### Alternatives considered

_No response_

### Additional context

There's already an issue for Electron feature parity: https://github.com/tauri-apps/tauri/issues/544

I'm creating this FR so you know that there's at least one Tauri user who actually needs this :) Happy to contribute myself once I can break out the time.

(I happen to need type 1 above)