sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: react-native
Issue: Setting the value of a controlled TextInput breaks when autocorrect suggestion present
Labels: Platform: iOS,Issue: Author Provided Repro,Component: TextInput,Bug

<!--
  Please provide a clear and concise description of what the bug is.
  Include screenshots if needed.
  Please test using the latest React Native release to make sure your issue has not already been fixed: http://facebook.github.io/react-native/docs/upgrading.html
-->

On iOS, something wonky happens when the value of a `TextInput` is programmatically modified (via `setState` and the `value` property of said `TextInput`) and an autocorrect suggestion is present.

The value of the text input ends up being set to the combination of the autocorrect suggestion and the programmatic value. ~This only happens when `multiline={true}`. When `multiline={false}`, all is fine.~

This seems only to be reproducible on iOS. ~I was not able to reproduce on the Snack iOS simulator.~ This can be reproduced using the software keyboard in the Snack iOS simulator with `multiline={true}`. The Snack iOS simulator does not reproduce with `multiline={false}`, but this does reproduce on a device.

React Native version: 0.59-0.76
<!--
  Run `react-native info` in your terminal and copy the results here.
-->

## Steps To Reproduce

1. Start the reproducer: https://snack.expo.dev/@mhoran/trusting-peanut
2. Type "Yo mh" and wait for the auto-correct suggestion of "my"
3. Click "Bananas!"
5. Notice that the value set programmatically will become a combination of the autocorrect value and the programmatic value.

<!--
 Issues without reproduction steps or code are likely to stall.
-->

Describe what you expected to happen:

I expected the value to be set to "Yo mhoran".

Snack, code example, screenshot, or link to a repository:

https://snack.expo.dev/@mhoran/trusting-peanut

<!--
  Please provide a Snack (https://snack.expo.io/), a link to a repository on GitHub, or
  provide a minimal code example that reproduces the problem.
  You may provide a screenshot of the application if you think it is relevant to your bug report. 
  Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve.	  --	
-->
Repository: godot
Issue: FileSystem panel loses focus after Renaming or Duplicating files
Labels: bug,topic:editor,confirmed,usability

**Godot version:**
3.2.alpha 35944aebdeb4c3b5869aaeedaaded02397b7ce92
**OS/device including version:**
5.3.7.arch1-1
**Issue description:**
Deleting, renaming or duplicating a file in the FileSystem panel opens a prompt window. If you close this window while deleting a file (either by confirming the deletion or cancelling it) the FileSystem panel regains focus. This doesn't happen when duplicating or renaming a file. **edit:** [and it would be nice if it did.](https://github.com/godotengine/godot/issues/33126#issuecomment-547577403)
**Steps to reproduce:**
1. Select a file in the FileSystem panel
2. Duplicate the file either by right-click -> Duplicate or the shortcut Ctrl+D
3. Type a new name and press Return(Enter) to confirm
Repository: kubernetes
Issue: for every huge page resource, we need to remove it from allocatable memory when Updating Node Allocatable limit across pods
Labels: kind/bug,sig/node,triage/accepted

<!-- Please use this template while reporting a bug and provide as much info as possible. Not doing so may result in your bug not being addressed in a timely manner. Thanks!

If the matter is security related, please disclose it privately via https://kubernetes.io/security/
-->


**What happened**:
In the code below, we remove huge page resource from allocatable memory when updating node status, but we doesn't  remove huge page resource from allocatable memory when Updating Node Allocatable limit across pods

we remove huge page resource from allocatable memory when updating node status.
		allocatableReservation := nodeAllocatableReservationFunc()
		for k, v := range node.Status.Capacity {
			value := *(v.Copy())
			if res, exists := allocatableReservation[k]; exists {
				value.Sub(res)
			}
			if value.Sign() < 0 {
				// Negative Allocatable resources don't make sense.
				value.Set(0)
			}
			node.Status.Allocatable[k] = value
		}
		// for every huge page reservation, we need to remove it from allocatable memory
		for k, v := range node.Status.Capacity {
			if v1helper.IsHugePageResourceName(k) {
				allocatableMemory := node.Status.Allocatable[v1.ResourceMemory]
				value := *(v.Copy())
				allocatableMemory.Sub(value)
				if allocatableMemory.Sign() < 0 {
					// Negative Allocatable resources don't make sense.
					allocatableMemory.Set(0)
				}
				node.Status.Allocatable[v1.ResourceMemory] = allocatableMemory
			}
		}

we doesn't  remove huge page resource from allocatable memory when Updating Node Allocatable limit across pods.
// getNodeAllocatableAbsolute returns the absolute value of Node Allocatable which is primarily useful for enforcement.
// Note that not all resources that are available on the node are included in the returned list of resources.
// Returns a ResourceList.
func (cm *containerManagerImpl) getNodeAllocatableAbsolute() v1.ResourceList {
	result := make(v1.ResourceList)
	for k, v := range cm.capacity {
		value := *(v.Copy())
		if cm.NodeConfig.SystemReserved != nil {
			value.Sub(cm.NodeConfig.SystemReserved[k])
		}
		if cm.NodeConfig.KubeReserved != nil {
			value.Sub(cm.NodeConfig.KubeReserved[k])
		}
		if value.Sign() < 0 {
			// Negative Allocatable resources don't make sense.
			value.Set(0)
		}
		result[k] = value
	}
	return result

}

**What you expected to happen**:
we should  remove huge page resource from allocatable memory when Updating Node Allocatable limit across pods.

**How to reproduce it (as minimally and precisely as possible)**:

**Anything else we need to know?**:

**Environment**:
- Kubernetes version (use `kubectl version`):
  k8s 1.13.0
Repository: scrcpy
Issue: Mirror as second screen
Labels: feature request,multiscreen

Hi, Developers.
The latest scrcpy is working really fast and I am really thanks for that.

Is it possible the mirrored screen in PC to act as second screen rather than exact copy of phone screen?

I mean something like Miracast where some feature will be enabled when Android device connected to Miracast device. The example of apps is like VLC where phone screen become a remote control when connected to miracast device and show the movie on the second screen. The other is Google Presentation where phone screen become presenter display and the second screen shows the actual presentation.

Best regards,
Ryan
Repository: rust
Issue: Replacing sentences for references by a Bibliography section for keywords
Labels: C-enhancement,T-libs-api,A-docs

In the stdlib, at the end of each keyword description, authors add a small sentence with links to reference material.
Here are the six first ones appearing in the keyword file:

https://github.com/rust-lang/rust/blob/9733b0f122db7eb7662799b164bc02b0f54cb84a/src/libstd/keyword_docs.rs#L26

https://github.com/rust-lang/rust/blob/9733b0f122db7eb7662799b164bc02b0f54cb84a/src/libstd/keyword_docs.rs#L150

https://github.com/rust-lang/rust/blob/9733b0f122db7eb7662799b164bc02b0f54cb84a/src/libstd/keyword_docs.rs#L293

https://github.com/rust-lang/rust/blob/9733b0f122db7eb7662799b164bc02b0f54cb84a/src/libstd/keyword_docs.rs#L336

https://github.com/rust-lang/rust/blob/9733b0f122db7eb7662799b164bc02b0f54cb84a/src/libstd/keyword_docs.rs#L411

https://github.com/rust-lang/rust/blob/9733b0f122db7eb7662799b164bc02b0f54cb84a/src/libstd/keyword_docs.rs#L486


Beside the fact that they are inconsistent ("for more information", "for more details", "more details on", "see", "take a look", "check", "can be seen at"), the style itself feels heavy and goes against publishing standards. References are typically listed either in a "Reference list" or a "Bibliography".
See https://intranet.birmingham.ac.uk/as/libraryservices/library/referencing/icite/harvard/referencelist.aspx.

The two advantages of adopting this style immediately obvious:
* consistent style, not only between keywords, but with sites widely used such as Wikipedia
* reduce cognitive load for athors, trying to make up a small sentence to introduce references, especially when wanting to quote more than one.

I propose that we use a "Bibliography" section and use it for bot references and additional material pertinant to the subject.

Here's an example of an existing page, in its current version:
![current](https://user-images.githubusercontent.com/3446051/67650609-46d39400-f903-11e9-99c7-a278efeda62a.png)

Replacing the "For more information..." sentence with a Blbliography section:
![with_bibliography](https://user-images.githubusercontent.com/3446051/67650608-463afd80-f903-11e9-9204-b1fab5909df2.png)

Comments will be appreciated.
Repository: neovim
Issue: improve Vimscript <=> Lua interface: v:lua
Labels: enhancement,vimscript,lua,options

`luaeval()` and `:lua` are clunky.  In Lua we have  `vim.fn`, which allows calling a Vimscript function.  There should be a similar thing for calling a Lua function from Vimscript.  

# ✅ Idea 1: `v:lua` (done: #11338)

Add a `lua` member to the Vim `v:` namespace, which acts like a list of all Lua global variables and functions.

    let rv = v:lua['foo'](arg1, arg2, ...)

- Allows Lua functions to be used directly by options like `tagfunc`, `operatorfunc`, `:help :command-complete`, etc.
- Example: `:set tagfunc=v:lua.foo`
- Example: `:command Foo -complete=custom,v:lua.complete_stuff ...`


# Idea 2: Lua _expression strings_

Vim 8.1 introduced `:h literal-Dict` which adds the `#{}` syntax. Similarly we could add a new syntax like `#()` for inline Lua expressions in Vimscript. Example:

    :echo #(return foo() and "ok" or "something else")

# Idea 3: Assignment with `=#` 

- Introduce `=#` for both `:let` and `:set` single-line assignment:
  ```
  set foldtext=#FoldText()
  let &foldtext=#FoldText()
  ```
- Note different semantics: `let` is evaluated on assignment, `set` is stored as a string and evaluated later.
- See also https://github.com/neovim/neovim/pull/23471#issuecomment-1537079979
  > these Vim patches improve the performance of calling a simple function:
  > * [vim/vim@87b4e5c](https://github.com/vim/vim/commit/87b4e5c5db9d1cfd6f2e79656e1a6cff3c69d15f)
  > * [vim/vim@a4e0b97](https://github.com/vim/vim/commit/a4e0b9785e409e9e660171cea76dfcc5fdafad9b)


# Idea 4: `:let` assignment from Lua heredoc

Vim 8.1 introduced  `help :let=<<` which acts like a "heredoc" for assigning multiline strings:

```vim
let text =<< trim END
  line1
  line2
  line3
END
```

Using a similar approach as the `trim` special case, we could have a `lua` special case which assigns the result of a Lua block:

```vim
let text =<< lua END
  local foo = 42
  return 42
END
```
Repository: pytorch
Issue: 'import torch` fails with Illegal instruction
Labels: module: build,triaged

While trying to create a FreeBSD port for ```PyTorch```.

The port builds, but crashes with ```Illegal instruction```: https://people.freebsd.org/~yuri/py-pytorch.shar

Not sure where to go from here.
Repository: opencv
Issue: cvtColor perf test and Haar face detector failed with OpenCV.js+simd
Labels: bug,category: javascript (js)

<!--
If you have a question rather than reporting a bug please go to http://answers.opencv.org where you get much faster responses.
If you need further assistance please read [How To Contribute](https://github.com/opencv/opencv/wiki/How_to_contribute).

Please:

* Read the documentation to test with the latest developer build.
* Check if other person has already created the same issue to avoid duplicates. You can comment on it if there already is an issue.
* Try to be as detailed as possible in your report.
* Report only one problem per created issue.


This is a template helping you to create an issue which can be processed as quickly as possible. This is the bug reporting section for the OpenCV library.
-->

##### System information (version)
<!-- Example
- OpenCV => 3.1
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2015
-->

- OpenCV => OpenCV master
- Operating System / Platform => Ubuntu 16.04
- Compiler => Emscripten: 1.39.0, LLVM upstream backend


##### Detailed description
```
Test Time: 2019/10/24
```
```
Test Environment:
  OS: Ubuntu 16.04
  Emscripten: 1.39.0, LLVM upstream backend
  Browser: Chrome, Version 79.0.3941.4 (Official Build) dev (64-bit)
  Hardware: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz with 12 logical cores
```

In my test, cvtColor with param `YUV2BGR` made chrome crash with OpenCV.js+simd.
And the same situation came to haar face detector, too.
<!-- your description -->
Repository: flutter
Issue: Scoped WidgetBindings
Labels: c: new feature,framework,P3,team-framework,triaged-framework

## Use case

I started developing a tool named [device_preview](https://github.com/aloisdeniel/flutter_device_preview) which simulates various devices and render them as widgets.

To achieve this, a `MediaQuery` instance is inserted in the `onGenerateRoute` method of the user's app widget. The simulated locale should also be inserted by the user.

It would be a lot more convenient to override the `WidgetBindings` instance for this user's wrapped app. This way media query, locale and even system events could be simulated gracefully. Unfortunately this instance is a global instance, and I can't have a specific instance for the wrapped widget.

## Proposal

An ideal solution would be that instead of using `WidgetBindings.instance`, an inherited widget would allow to override the instance. If no inherited widget is present in the tree, then the default instance is used.

```dart
final preview = DeviceFrame(
   child: 
  WidgetBindingsProvider(
      widgetBindings: MyCustomWidgetBindings(),
      child: MaterialApp(...),
  ),
);
Repository: vscode
Issue: Add custom QuickPick highlighting
Labels: feature-request,api,quick-pick

It would be nice to have a bit more control over highlighting in QuickPick. I'm using QuickPick as a search field using regex and the existing fuzzy matching doesn't make sense in this context. I'd like to be able to provide my own highlights for the detail field and avoid highlighting elsewhere, although for completion I think it makes sense to allow custom highlighting on all three fields.

The API could be similar to the proposed highlighted `TreeItemLabel` in #61482 for backward compatibility. A more general `HighlightedString` could be a good fit across the board. The implementation can then skip the fuzzy matching if the label type is `HighlightedString` and apply the highlights in there.

I feel that this would complement #77297 nicely and make for a more versatile QuickPick API.
Repository: vscode
Issue: Expose QuickPick.matchOnLabel publicly
Labels: feature-request,api,quick-pick

`matchOnLabel` already exists as an internal API. It makes sense to apply it externally too. It could maintain the same semantics and would allow users to have a better control over the display of quickpick results. This was already suggested in https://github.com/microsoft/vscode/issues/73904#issuecomment-506662578.
Repository: terminal
Issue: Add keybinding command to kill current process
Labels: Area-UserInterface,Product-Terminal,Issue-Task

# Description of the new feature/enhancement
> I'm copying this feature from ConEmu.

In Python development on Windows, if you run an `asyncio` loop then Python can't be stopped using regular `KeyboardInterrupt Exception`. This leaves me forced to have to close the current tab and open new one. In ConEmu this is resolved by the ability to bind keys combination to command that results in killing current `PID`, like:
![image](https://user-images.githubusercontent.com/316734/67683312-991bc000-f9aa-11e9-8ca0-bafa39217b2f.png)


# Proposed technical implementation details (optional)
Terminal should be able to detect current running process in the current tab and gets its `PID` and offer the user the ability to force stop it using low-level Windows commands. Resulting in the process running to be killed, but the shell used to start the process kept alive and back in focus for the user to continue using the current tab using the current shell.
Repository: pytorch
Issue: RPC couldn't match torch.ones with requires_grad=True
Labels: high priority,triage review,oncall: distributed,module: internals,triaged,better-engineering,module: rpc

## 🐛 Bug

I was trying to use `rpc.remote` to create a tensor with `requires_grad=True`, but hit the following error:

```
Couldn't match schema: aten::ones(int[] size, *, int? dtype=None, int? layout=None, Device? device=None, bool? pin_memory=None) -> (Tensor) to args: ((3, 3),) and kwar
gs: {'requires_grad': True}, reason: Unknown keyword argument 'requires_grad' for operator 'aten::ones'. Schema: aten::ones(int[] size, *, int? dtype=None, int? layout
=None, Device? device=None, bool? pin_memory=None) -> (Tensor)
```

### To Reproduce

```python
rpc.remote(dst, torch.ones, args=((3, 3),), kwargs={"requires_grad":True})
```

### Work Around

Wrap `torch.ones` into a user function can pass that user function to remote, e.g.,

```python
def _torch_ones(sizes, requires_grad=False):
    return torch.ones(sizes, requires_grad=requires_grad)

rpc.remote(dst, _torch_ones, args=((2, 2), ), kwargs={"requires_grad":True})
```


cc @ezyang @gchanan @zou3519 @bdhirsh @bhosmer @smessmer @ljk53 @ailzhang @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @gqchen @aazzolini @rohan-varma @jjlilley @osalpekar @jiayisuse @agolynski @SciPioneer @H-Huang @mrzzd @xush6528
Repository: pytorch
Issue: [CUDA-MEMCHECK] TestTorchDeviceTypeCUDA.test_pin_memory_from_constructor_cuda fails
Labels: module: cuda,triaged

Run `cuda-memcheck` with unit test `TestTorchDeviceTypeCUDA.test_pin_memory_from_constructor_cuda` in `test_torch.py` gives the following error:

```
========= CUDA-MEMCHECK
========= Program hit cudaErrorInvalidValue (error 1) due to "invalid argument" on CUDA API call to cudaPointerGetAttributes. 
=========     Saved host backtrace up to driver entry point at error
=========     Host Frame:/usr/lib/x86_64-linux-gnu/libcuda.so.1 [0x38c7b3]
=========     Host Frame:/usr/local/cuda/lib64/libcudart.so.10.1 (cudaPointerGetAttributes + 0x1a9) [0x428b9]
=========     Host Frame:/home/xgao/anaconda3/lib/python3.7/site-packages/torch/lib/libtorch.so [0x5b779b9]
=========     Host Frame:/home/xgao/anaconda3/lib/python3.7/site-packages/torch/lib/libtorch.so [0x39d6e1d]
=========     Host Frame:/home/xgao/anaconda3/lib/python3.7/site-packages/torch/lib/libtorch.so [0x551dc70]
=========     Host Frame:/home/xgao/anaconda3/lib/python3.7/site-packages/torch/lib/libtorch_python.so [0x3c2924]
=========     Host Frame:/home/xgao/anaconda3/lib/python3.7/site-packages/torch/lib/libtorch_python.so [0x37d1b4]
```

cc: @ngimel @mruberry 

See also: https://github.com/pytorch/pytorch/issues/26052
Repository: pytorch
Issue: torch.from_file not documented
Labels: module: docs,triaged

## 📚 Documentation

The torch.from_file function is not documented. Only the [torch.Storage.from_file](https://pytorch.org/docs/stable/storage.html#torch.FloatStorage.from_file) is documented, but it's not clear how to create a Tensor from that function. Specifically, it requires knowing that you can construct a Tensor from a storage using the constructor `torch.Tensor(storage)`. That constructor is no longer documented.
Repository: vscode
Issue: [folding] Improve #region support: make it look like Visual Studio IDE
Labels: feature-request,editor-folding

<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->
The current VSCode region folding is OK (eg. in C# or JS), but it would be very nice to have a viewlet kinda like VS IDE to regions, so this request is purely visual.

![imagen](https://user-images.githubusercontent.com/36938997/67703405-fa2aa000-f978-11e9-92fd-fe3e8bb3a272.png)

Something like the image above ⬆ is what I'm talking about.

To be clearer: The name of the region wraps into that "commentary style"-like box, and on hover we have a peek of the code written in the region.
Repository: storybook
Issue: addon-jest test total and time total overlap "Todo" text on small screens.
Labels: bug,feature request,good first issue,help wanted,addon: jest



**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to 'https://storybookjs.now.sh/official-storybook/?path=/story/addons-jest--with-tests'
in a narrow width browser.
2. Click on the Tests panel.
3. Scroll down to see the tests panel.
4. See the total number of tests and total time covering up the "Todo" text.

**Expected behavior**
The text does not overlap.

**Screenshots**
If applicable, add screenshots to help explain your problem.
![Screen Shot 2019-10-28 at 1 55 41 PM](https://user-images.githubusercontent.com/2117593/67704061-ceb0b100-f98a-11e9-8114-a58cb10f5a61.png)
**Code snippets**
If applicable, add code samples to help explain your problem.

**System:**
Please paste the results of `npx -p @storybook/cli@next sb info` here.
```
System:
    OS: macOS Mojave 10.14.6
    CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
  Binaries:
    Node: 10.16.3 - /usr/local/bin/node
    npm: 6.12.0 - /usr/local/bin/npm
  Browsers:
    Chrome: 77.0.3865.90
    Firefox: 69.0.2
    Safari: 12.1.2
  npmPackages:
    @storybook/addon-a11y: ^5.2.5 => 5.2.5
    @storybook/addon-actions: ^5.2.5 => 5.2.5
    @storybook/addon-docs: ^5.2.5 => 5.2.5
    @storybook/addon-jest: ^5.2.5 => 5.2.5
    @storybook/addon-knobs: ^5.2.5 => 5.2.5
    @storybook/addon-links: ^5.2.5 => 5.2.5
    @storybook/addons: ^5.2.5 => 5.2.5
    @storybook/react: ^5.2.5 => 5.2.5
    @storybook/theming: ^5.2.5 => 5.2.5

```
**Additional context**
I looked into this a little bit and discovered that the Accessibility addon has solved this issue by dropping down the "highlight results" checkbox to the next line. The total tests and total time for for the addon-jest is absolutely positioned and seems to be setup a bit differently than that addon.
Repository: TypeScript
Issue: No IntelliSense for generic literal types
Labels: Suggestion,Experience Enhancement

From https://github.com/microsoft/vscode/issues/83375

<!-- 🚨 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:**  typescript@3.8.0-dev.20191026

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:**
- suggest / completions
- intellisense
- generic

**Repo**
For the typescript:

```ts
function test<T extends "x" | "y">() {}

test<''>
```

1. Trigger intellisense inside the quotes in `test<''>`

**Expected behavior:**
Suggestions for `x` and `y` returned. 

**Actual behavior:**
No suggestions returned