sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: material-ui
Issue: [Tabs] Reduce complexity for using a basic tabs
Labels: docs,component: tabs

Hi All,

I was looking at the Tabs demo here - in an attempt to rapidly create a simple ReactJS web page with a tabbed navigation structure.
https://codesandbox.io/s/cbn97?file=/demo.js
which is hyperlinked from
https://material-ui.com/components/tabs/

I found it incredibly hard to comprehend what is the bare minimum code that I need to write to get a simple Tab system up and running.

# Comparing with Bootstrap
Look at the Bootstrap tabs here as an comparative example:
https://react-bootstrap.github.io/components/tabs/
Just 11 lines of Bootstrap Tab as opposed to 50 lines of Material UI tab

You can have complex demos. But, the starter demo should be as simple as possible.

Thank you,
Sau
Repository: terminal
Issue: Extension: Ask for parameter for profile
Labels: Issue-Feature,Area-Extensibility,Product-Terminal

# Description of the new feature/enhancement

I often have the need for multiple, but similar tabs. For example, an SSH terminal to various servers. Currently, afaik, I must create a new profile for each that specifies the specific server I want to connect to. This is not generally practical, as I have a large number of servers and may need to connect to any of them at any time. Currently I have to edit the profile entry in the config file with the new server name--thankfully that is read immediately so I can then use that profile, but this is still cumbersome.

# Proposed technical implementation details (optional)

I would like to be able to specify a variable name in a profile that would request the value when I open that profile. For example, current a static entry for an ssh profile would be:

"commandline": "ssh user@servername"

It would be useful to be able to have a parameter so the value were requested from the user:

"commandline": "ssh user@%Server name%"

or multiple parameters:

"commandline": "ssh %user%@%Server name%"

When this profile is activated wt would ask the user for each parameter. This way I could have one profile that could handle whatever machine I want to connect to. Every time I open a new tab using this profile it would ask for the parameters to use in that tab. In my first example it would raise a dialog requesting Server name where I would enter the name of the server I want to connect to. In the second example it would also ask for the user. Of course this could be used for any purpose or other value.

I further suggest that if the same parameter name is used more than once it would only ask once, but use that for each reference. This would allow, for example, to use that parameter in the tab name:

"name": "SSS (%Server name%)",
"commandline": "ssh user@%Server name%"

In this example wt would ask for the value of "Server name" once, then use it in the tab title as well as the connection.
Repository: pytorch
Issue: [doc] Error "You've reached a dead end" when opening torch.__config__ in the docs
Labels: module: docs,triaged,module: doc infra

## 📚 Documentation

When I open `torch.__config__`'s page in the docs (tested on master and 1.7), this is what I get:
 

![dead-end](https://user-images.githubusercontent.com/47462742/99743436-f9a9fd80-2ad5-11eb-9618-d8fda876fcae.PNG)

[Link](https://github.com/pytorch/pytorch/blob/master/docs/source/__config__.rst) to the .rst file.



cc @ezyang @zou3519 @jlin27 @mruberry
Repository: godot
Issue: Godot freezes due to print statements in thread within an EditorPlugin
Labels: bug,topic:editor,confirmed,crash,topic:gui

**Godot version:**
v3.2.3.stable.official

**OS/device including version:**
OS: Solus x86_64 (Kernel 5.6.19-159.current)
CPU: Intel i5-7400


**Issue description:**
Printing repeatedly in a thread (started within the editor) will freeze godot.
The following error is printed in an endless scroll to the terminal if godot was started from the command line:
```
ERROR: _process_line: Index line = 0 is out of bounds (l.offset_caches.size() = 0).
   At: scene/gui/rich_text_label.cpp:170.
```

**Steps to reproduce:**
Start a thread repeatedly that prints to the output. The **output tab must be open** for godot to freeze after enough lines were printed. It never happens on the first run of the thread, but at one of the following runs.


**Minimal reproduction project:**
The project contains a small plugin that can freeze the engine. Steps to use this project:

1. Open the output tab
2. Press the "CRASH" button at the top right corner of the editor
3. Wait till you can press it again, then go back to step 2

Project zip: [bug.zip](https://github.com/godotengine/godot/files/5570670/bug.zip)
Bug file: `./addons/freezer/CrashButton.gd` (thread method in line 40)
Repository: godot
Issue: Unexpected results from LineEdit method add_color_region when using symbols
Labels: bug,topic:gui

Godot version:
3.2.3

OS/device including version:
Windows10 64bits

Issue description:

`add_color_region("+"," ",Color.green)` Works properly
`add_color_region("-"," ",Color.red)`  Doesn't stop highlighting even pass the space character
 

Swapping their positions in the script will get the inverted result 

`add_color_region("-"," ",Color.red)`  Works properly
`add_color_region("+"," ",Color.green)` now "+" doesn't work 

![TextEdit Bug1](https://user-images.githubusercontent.com/72952945/99748934-cc614d80-2add-11eb-9354-59f80844a5ed.png)

It seems like the second assignment of add_color_region is not properly setting the end string

also `add_keyword_color `doesn't seem to work with symbols at all I don't know if this is intended since the documentation says it'll take a string. I wanted to set the symbols colors independently

![TextEdit Bug2](https://user-images.githubusercontent.com/72952945/99748917-c2d7e580-2add-11eb-846f-952091b0417a.png)


**Edit:**
Using a letter as the beginning of a region won't work but it will as the end of a region.
Sometimes when using symbols the region won't get colourized if the starting character doesn't have anything before it, like another character or an space, new lines don't count, but other times it seems to be line independent. That was a bad explanation check the project for clarification.

[TextEdit Bug.zip](https://github.com/godotengine/godot/files/5578147/TextEdit.Bug.zip)
Repository: flutter
Issue: Implement smooth transitioning between different scrolling speeds
Labels: c: new feature,framework,a: animation,f: scrolling,c: proposal,P3,team-framework,triaged-framework

## Use case

When the speed of scrolling of a scrollable widget is controlled programatically it appears that it cannot be adjusted without stopping and restarting at the desired speed. This is normally done calling the animateTo(...) method again with a new value of the duration. 
Unfortunately this results in the scrolling speed at the point of transition from faster to slower or the other way around not being smooth, or in other words, scrolling at the point of acceleration or deceleration becomes jerky.  

## Proposal

Implement a method on a ScrollController class that would allow users to specify new Duration, Cubic (Curves) and a time interval it takes from accelerate/decelerate from v1 to v2 that would be used to transition from the current scrolling speed to the new speed.
Repository: pytorch
Issue: pytorch is not linked with support for cuda devices
Labels: module: build,module: cuda,triaged

## ❓ Questions and Help
I make .cpp with libtorch1.6.0 and cuda101. But when I run the program， it shows that "pytorch is not linked with support for cuda devices" . what should I do to solve it？Here is my cmakelist.txt:
`cmake_minimum_required(VERSION 2.4.5)
project("MC")
SET(CMAKE_PREFIX_PATH "/data/MY/libs/libtorch1.6.0_cuda101")
find_package(Torch 1.4.0 REQUIRED)
SET(OpenCV_DIR "/data/MY/libs/opencv3.4.1/share/OpenCV")
find_package(OpenCV 3.4.1 REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
include_directories(${TORCH_INCLUDE_DIRS})
link_directories(/data/MY/libs/cuda-10.1/lib64)

aux_source_directory(./src SRCS)
include_directories(include)
add_executable(MC ${SRCS})
target_link_libraries(MC "${TORCH_LIBRARIES}")
target_link_libraries(MC "${OpenCV_LIBS}")
set_property(TARGET MC PROPERTY CXX_STANDARD 14)`


cc @malfet @seemethere @walterddr @ngimel
Repository: storybook
Issue: 6.1: Module resolution with baseUrl
Labels: feature request,has workaround,typescript

**Describe the bug**
Upgrading to 6.1 failed to compile `Module not found: Error: Can't resolve 'components/**/**'` when using baseUrl with typescript, also fails using alias with typescript. It obviously 

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Additional context**
I think storybook should use the project supplied tsconfig/jsconfig and maybe merge alongside any overrides, if its possible to probably do merging at this step `info => Removing existing JavaScript and TypeScript rules.` instead of removing, this would potentially make it more flexible to any environment
Repository: opencv
Issue: Should KalmanFilter be copied?
Labels: category: video

##### System information (version)
<!-- Example
- OpenCV => 4.0
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2017
-->

##### Detailed description

KalmanFilter class is Shallow Copy at present, but I think it should be a Deep Copy.

Mat type in class member is Shallow Copy default. Use default copy-constructors, will have data impact.
Repository: PowerToys
Issue: Put windows into a "Presenter" or other mode based on your selected preferences
Labels: Idea-New PowerToy

## 📝 Description of requested feature

As someone who presents a lot from home now, I have a very consistent physical setup with a ultrawide display in front of me and a SB3 to the right of me as my secondary monitor. For presentations that means I am swapping my surface book from its native high resolution and 200% scaling to 1920x1080 at 125%. I also often go into do not disturb mode, turn off my clock, etc.

I do this ALL the time now such as when getting ready for a conference (practice) or during the real live event stream. I then have to undo this configuration each time to go back to "normal" setup, its really time consuming and annoying.

It would be great if we had a PowerToys feature that would let me save a "default" configuration and then create alternative layout configurations for my displays and various taskbar and related settings that I could swap to/from with a few clicks.

---

If you'd like to see this feature implemented, add a 👍 reaction to this post.
Repository: flutter
Issue: [State Restoration] Bottom Sheet
Labels: framework,f: material design,a: state restoration,team-design,triaged-design

To show a bottom sheet, one needs to call `Scaffold.of(context).showBottomSheet`, which takes a builder for the content to display when the bottom sheet is displayed. AFAICT, there's no straightforward way for users to make the bottom sheet state restorable and we may need to provide this support directly in the `Scaffold` widget.

First discovered trying to make the [Flutter Gallery's bottom sheet demo](https://github.com/flutter/gallery/blob/master/lib/demos/material/bottom_sheet_demo.dart#L166) state restorable.
Repository: PowerToys
Issue: Map a Windows global shortcut to a shortcut for a particular application
Labels: Idea-New PowerToy

Map a keyboard chord from the Windows level to a chord for a specific program.

As an example. map "WIN+Ctrl+E" to send a "Ctrl+N" to Outlook. This would allow me from any context to open a new email window.

This would replace my current procedure of first starting PowerToys launcher, typing "< outlook", selecting the proper outlook window, and then typing "Ctrl+N". Or use the mouse to bring Outlook to the front from the taskbar, and then typing "Ctrl+N".

---

If you'd like to see this feature implemented, add a 👍 reaction to this post.
Repository: create-react-app
Issue: error to create project in react
Labels: stale

The directory react-app contains files that could conflict: package.json
Either try using a new directory name, or remove the files listed above
Repository: neovim
Issue: After first ui attach event, modifications to g:clipboard won't register
Labels: bug

version: `NVIM v0.5.0-828-g0a95549d6`

If the ui attaches first (and nvim finds another provider, say tmux), later :checkhealth reports FVimClipboardProvider because it sees the current `g:clipboard`, but nvim actually isn't using it.

Can be worked around with:

1. Do not attach the UI until the initial `let g:clipboard ... ` command returns; and:
2. Do not hard-code client channel in `g:clipboard` -- instead, capture the channel variable with a lambda. Say `"+": lines, regs -> rpcrequest(g:fvim_channel, lines, regs)`. So later attached clients can modify the variable to redirect the clipboard.
Repository: create-react-app
Issue: Typescript 4.1: Redundant console output
Labels: needs triage,issue: bug report

running `react-scripts build` will always result in the same information printed to the console - despite the change already being applied to the `tsconfig.json`.

```
$ yarn build
yarn run v1.22.0
$ react-scripts build
The following changes are being made to your tsconfig.json file:
  - compilerOptions.jsx must be react-jsx (to support the new JSX transform in React 17)
```

**tsconfig.json**
```json
{
  "compilerOptions": {
    "target": "es5",
    "lib": [
      "dom",
      "dom.iterable",
      "esnext"
    ],
    "allowJs": true,
    "skipLibCheck": true,
    "esModuleInterop": true,
    "allowSyntheticDefaultImports": true,
    "strict": true,
    "forceConsistentCasingInFileNames": true,
    "noFallthroughCasesInSwitch": true,
    "module": "esnext",
    "moduleResolution": "node",
    "resolveJsonModule": true,
    "isolatedModules": true,
    "noEmit": true,
    "jsx": "react-jsx"
  },
  "include": [
    "src"
  ]
}
```

```
 "react-scripts": "4.0.0"
```
Repository: create-react-app
Issue: Don't lock Jest minor & patch versions
Labels: stale,needs triage,issue: bug report

### Describe the bug

I upgraded jest to v26.6.3 and turns out react-scripts is expecting specific jest version down to patch version - 26.6.0

I would appreciate if we could lock it down only to major version - 26.x.x or if there is any strong reason to 26.6.x
But I expect that any minor and patch versions shouldn't introduce anything breaking.

current setup greatly limits our dependency patching abilities.
Repository: rust
Issue: Compiler suggests type conversion on LHS of assignment
Labels: T-compiler,C-bug,A-suggestion-diagnostics

```rust
fn main() {
    let mut foo: u16 = 0;
    
    foo = Some(0u32).unwrap();
}
```

([Playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=2c8725c87e4820a453fb93a92037299f))

Errors:

```
   Compiling playground v0.0.1 (/playground)
error[E0308]: mismatched types
 --> src/main.rs:4:11
  |
4 |     foo = Some(0u32).unwrap();
  |           ^^^^^^^^^^^^^^^^^^^ expected `u16`, found `u32`
  |
help: you can convert `foo` from `u16` to `u32`, matching the type of `Some(0u32).unwrap()`
  |
4 |     u32::from(foo) = Some(0u32).unwrap();
  |     ^^^^^^^^^^^^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.
error: could not compile `playground`

To learn more, run the command again with --verbose.

```

Thank you for Rust! It's a great language! :heart:
Repository: vscode
Issue: [html] move mdn link to the right
Labels: feature-request,html

It would make it so much easier if you could move the MDN Reference link to the right when the mouse hover over an element's properties.  

I keep accidentally clicking on the link instead of the property.  It's happening too many times.  Please move the link to the right.
Repository: ant-design
Issue: [Form.Item] when isRenderProps && (shouldUpdate || dependencies) && hasName === true, unable to render the contents of the Item correctly
Labels: 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.

### Reproduction link
[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/antd-reproduction-template-forked-kt57i)

### Steps to reproduce
Open the link above

打开重现链接就可以看到

### What is expected?
can render Item children, or can tell me why the (isRenderProps && (shouldUpdate || dependencies) && hasName === true) judge conditions is not in source code

能正确渲染renderProps，或者是否能解释下，出于什么考虑不支持isRenderProps && (shouldUpdate || dependencies) && hasName === true这个条件分支。

### What is actually happening?
can not render Item children

无法正常渲染

| Environment | Info |
|---|---|
| antd | 4.5.4 |
| React | 16.13.1 |
| System | Windons 10 |
| Browser | 87.0.4280.66 |

---
因为有这个需求，虽然按照官方文档外面包一个item可以实现。主要就是想知道是出于什么考虑不支持isRenderProps && (shouldUpdate || dependencies) && hasName === true这个条件分支, 如果这个issue不符合要求就算了。


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: create-react-app
Issue: appTsConfig.compilerOptions[option] = value  <-------  Error after install typescript react project  when i npm start please help
Labels: stale,needs triage

I did use npx create-react-app my-app --template typescript to create react typescript project 
then i npm start it show the error  appTsConfig.compilerOptions[option] = value 
I have tried alot of times to create new one but its showing same error
Repository: godot
Issue: iOS SKPaymentTransactionStateFailed not generating a purchase failed event
Labels: bug,platform:ios,topic:porting

**Godot version:**
3.2.3


**OS/device including version:**
iOS 12.4, Xcode 11.3


**Issue description:**
When a transaction fails because of an itunes login error xcode debug  is showing `status transaction failed!`
Per `in_app_store.mm` I would expect an event.error to show in console but this is never happening 

``` func _process(_delta):
	while payment.get_pending_event_count() > 0:
		var event = payment.pop_pending_event()
#		print("EVENT KEYS: ",event.keys())
		
		if event.type == "purchase":
			if event.result == "ok":
				print("PURCHASE EVENT, OK: ", event.product_id)
				ios_purchases_updated( str(event.product_id)) 
				payment.finish_transaction(event.product_id)
				Events.emit_signal("working")
			else:
				print("PURCHASE EVENT, ERROR: ",event.error)
```
Repository: create-react-app
Issue: Support to pre-render and standard template for use
Labels: issue: proposal,needs triage

### Is your proposal related to a problem?

<!--
  Provide a clear and concise description of what the problem is.
  For example, "I'm always frustrated when..."
-->

With my development team we saw CRA as the fastest option to lift a configured project without redoing the wheel, we are building an eccommerce from the client side until we run into the SEO problem. While Google indicates that its bots today can read JavaScript, social media OpenGrahp or structured product data does not.

The above, since the HTML is generated in the virual DOM, it is not processed. We had to look at pre-render options to generate static HTML.

### Describe the solution you'd like

<!--
  Provide a clear and concise description of what you want to happen.
-->

I would like there to be a standard setting in the CRA project to be able to generate static HTML in certain parts of the code, privileging the meta tags or creating an additional template with some solution to this problem.

### Describe alternatives you've considered

<!--
  Let us know about other solutions you've tried or researched.
-->

In the first instance, it would be to use some of the options that are already described in the CRA [documentation](https://create-react-app.dev/docs/pre-rendering-into-static-html-files/) and it would be a great plus to have a standard template to do it.

Another thing that occurs to me is to generate a process underneath based on a function that if it is exported in a directory, a pre-render of the HTML code is made only to that section, always thinking about meta tags, something similar to what it does Nextjs.
Repository: vscode
Issue: [html] HTML line wrapping on paste occurs before auto-indenting
Labels: bug,html

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->
<!-- Also please test using the latest insiders build to make sure your issue has not already been fixed: https://code.visualstudio.com/insiders/ -->

<!-- Use Help > Report Issue to prefill these. -->
- VSCode Version: 1.51.1
- OS Version: Windows 10 build 19042

Steps to Reproduce:

1. Open/create a HTML file
2. Ensure that setting "HTML: wrap line length" is turned on (not equal to 0) and "HTML: Format" is enabled.
3. Go back to HTML file and nest some tags. Eg. &lt;div>&lt;div>&lt;div>&lt;/div>&lt;/div>&lt;/div>. (more is better)
4. Copy a long paragraph of text (like lorem ipsum...) and paste it inside the very inner tag.

What happens:
VS Code wraps the long line as if the text was pasted on the root level of the document (so intended not to be indented) but then the lines are shifted right which causes the formatter to split them again when formatter is run next time (eg. on save).

What should happen:
VS Code indents each wrapped line before making the next wrap so that the newlines are places in correct places and no wrapping will occur on next formatting.

<!-- Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes

Code after being wrapped, shifted right and wrapped again:
![Code after being formatted twice](https://user-images.githubusercontent.com/26907199/99800682-04e04600-2b35-11eb-8d6e-3ce18da4093b.png)
Repository: pytorch
Issue: Provide torchscript support for staticmethods for classes derived from Enum
Labels: oncall: jit

## 🚀 Feature

Currently, Enum classes and staticmethods are torchscript supported separately, but it seems like when together is not.
Below code is not working:

```python
import torch
from enum import Enum
from typing import Optional


class Modes(Enum):
    NEAREST = 0
    BILINEAR = 1
    
    @staticmethod
    def from_int(i: int) -> "Modes":
        return Modes.NEAREST


def func(x: torch.Tensor, resample: Optional[int] = None) -> torch.Tensor:

    mode = Modes.from_int(resample)
    
    if mode == Modes.NEAREST:
        return x + 1
    elif mode == Modes.BILINEAR:
        return x + 2
    else:
        return x

if __name__ == "__main__":
 
    s_from_int = torch.jit.script(Modes.from_int)

    s_func = torch.jit.script(func)
    y = s_func(torch.rand(3, 4), Modes.NEAREST)

```
>  Enum<__torch__.Modes>' has no attribute 'from_int'


cc @gmagogsfm @t-vi
Repository: flutter
Issue: [Docs] Update theme_data.dart docs to explain what the default values are
Labels: framework,f: material design,d: api docs,P2,team-design,triaged-design

The default values are not explained in `ThemeData`. For example:
https://api.flutter.dev/flutter/material/ThemeData/dividerTheme.html

We probably need a sweeping change here that makes it clear what the default value of these ThemeData properties is.