sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: [proposal] provide layout widget that enforces minimum height
Labels: c: new feature,framework,c: proposal,P3,team-framework,triaged-framework

I see many widgets meant to make its child as big as it wants, like `Expanded`, `Flexible`, `BoxConstraints.expand()`, `SizedBox.expand`, but many times I want to set a widget to be as small as possible, analog to Android's `wrap_content`.

Sometimes I get rendering Exceptions because the framework can't calculate the size of a widget, as when using `Row` and `Column` together, as explained [here](https://flutter.dev/docs/development/ui/layout/box-constraints#flex). The solution presented is always to use `Expanded`, but what if I don't want that content to expand? What if I want it as small as it can be without clipping anything? 

The solution is usually to use multiple `Expanded` and `Spacer` with different `flex` parameters, but still this isn't perfect as negotiating `flex` values isn't what we always want, as the `Spacer` will not vanish if the screen gets smaller, it will try to maintain it's proportionality, forcing my widget to get smaller.

Maybe I am missing something about the way the framework works, so then this would be lack of tutorials, or maybe the Framework is missing a `ShrinkWrap` widget (as this is a property of some widgets already) or something with a similar name, that will size the wrapped widget to be as small as it can be.

Example of a problem that could benefit from this [here](https://stackoverflow.com/questions/59294421/how-to-make-a-widget-to-be-as-small-as-it-can-wrap-content-in-android), as I couldn't find how to solve this, even with `IntrinsicHeight`.
Repository: terminal
Issue: Epic: Search v2
Labels: Area-UserInterface,Area-TerminalControl,Product-Terminal,Issue-Scenario

# Description of the new feature/enhancement
###### [Original Issue: #605] [Original Spec: #3299] [Initial PR: #3590]

Terminal text search has already realizes single tab case sensitive/insensitive forward/backward search. In phase 2, we are considering these new features:

* [x] Add "Find" button in dropdown menu to trigger search. Now the search dialog is launched by key bindings, we may need to consider binding the dialog to a button in dropdown menu for mouse only operations. 
  - sorta in #13055. Close enough.
* [x] High-light while you type. Emphasizing all the matches in the buffer with an outline or selection with another color. This provides a clearer view of the searched text. 
  - [x] #7561 Feature Request: Highlight all finding 
* [x] #6319 No results notification (or reveal number of results)
  - in #14045
* [x] #7695 next/previous search key bindings
* [x] #8307 Selected text should populate search box 
* [x] #8274 Add capability to insert matched hit 
* [x] #1527 Display "find" matches in the scrollbar, #8631 
  - in #14045
* [x] Pressing next/previous match keybindings should move to the next needle, even if the dialog is closed. (Maybe it should auto display the dialog)
  - Mentioned in #8522 and #8588 
* [x] It'd be cool if there was a shadow underneath the search dialog, like there is for the command palette. 
  - Mentioned in https://github.com/microsoft/terminal/pull/11105#issuecomment-911929402
  - Fixed in #12913
* [x] Regular expression (regex) match. This is a useful search pattern and is implemented in some editors. 
  - first proto in #9228 
  - Will be effortless after #15858 merges
  - merged in #17316, in 1.22
* [ ] Add size handle. Some text editors let the user resize the search box, and there is a size handle on the left side of the search box. This helps user when they search for long text.
* [ ] #5314 Fuzzy Search 
  - Go look at #16586 
* [x] #4407
* [ ] Search from all tabs. In phase one search are limited within one Terminal window. However, the community also requests search from all tabs. This may require a big change to the search algorithm. 
  * [x] Depends on #997 by all accounts
* [ ] Search history. Sometimes users would do the same search for several times, thus, storing the search history is useful.

Also related, from #5001:

> * [ ] Add a setting to configure the regex used to detect patterns
> * [ ] Allow "hyperlink" matching for arbitrary patterns and adding custom handlers #8849
>   - Theoretically, this could supersede #7562 
>   - Should be self-consistent with #8294
> * [ ] Control the styling of hyperlinks - attributes used for autodetected hyperlinks, and then different attributes for hovered ones #8294
Repository: pytorch
Issue: [JIT] tensor(device=...) and tensor.to(device = ...) does not work properly in traced functions and modules
Labels: oncall: jit,triaged

## 🐛 Bug

tensor.to(device) function results in fixed destination device when being traced by torch.jit.trace.
It seems very similar to #13969 which is reported to be closed 1 year ago, but it still fails to work.

## To Reproduce

```
def x(a):
    b = torch.tensor((1.,), device=a.device)
    return a+b
y = torch.jit.trace(x, torch.randn(1))
z = y(torch.tensor((2.,), device='cuda'))
```
results in error
```
expected device cuda:0 but got device cpu
```
The same error arises if `b` is initialized in another way:
```
b = torch.tensor((1.,)).to(device=a.device)
```
If is caused by fact that target device is fixed as a literal constant, equal to device of the sample, in a script file, and hence a.device is ignored when the script is played:
```
y.save(...) ->

op_version_set = 1
class PlaceholderModule(Module):
  __parameters__ = []
  training : bool
  def forward(self: __torch__.PlaceholderModule,
    a: Tensor) -> Tensor:
    _0 = torch.to(CONSTANTS.c0, torch.device("cpu"), 6, False, False)
    b = torch.to(torch.detach(_0), dtype=6, layout=0, device=torch.device("cpu"), pin_memory=False, non_blocking=False, copy=False)
    return torch.add(a, b, alpha=1)
```

## Expected behavior

device parameter is handled when script is running.

## Environment

Collecting environment information...
PyTorch version: 1.3.0a0+de394b6
Is debug build: No
CUDA used to build PyTorch: 10.0

OS: Microsoft Windows 10 Pro
GCC version: Could not collect
CMake version: version 3.12.2

Python version: 3.6
Is CUDA available: Yes
CUDA runtime version: 10.0.130
GPU models and configuration: GPU 0: GeForce GTX 1080 Ti
Nvidia driver version: 411.31
cuDNN version: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin\cudnn64_7.dll

Versions of relevant libraries:
[pip3] numpy==1.17.2
[pip3] pytorch-ignite==0.2.0
[pip3] pytorch-toolbelt==0.2.1
[pip3] segmentation-models-pytorch==0.0.2
[pip3] torch==1.3.0a0+de394b6
[pip3] torchvision==0.4.1a0+d94043a
[conda] blas                      1.0                         mkl  
[conda] cuda92                    1.0                           0    pytorch
[conda] mkl                       2019.0                    <pip>
[conda] mkl                       2019.0                      118  
[conda] mkl-include               2019.0                    <pip>
[conda] mkl-include               2019.0                      118  
[conda] mkl_fft                   1.0.6            py36hdbbee80_0  
[conda] mkl_random                1.0.1            py36h9258bd6_0  
[conda] pytorch-ignite            0.2.0                     <pip>
[conda] pytorch-toolbelt          0.2.1                     <pip>
[conda] segmentation-models-pytorch 0.0.2                     <pip>
[conda] torch                     1.3.0a0+de394b6           <pip>
[conda] torchvision               0.4.0                     <pip>
[conda] torchvision               0.4.1a0+d94043a           <pip>

cc @suo
Repository: godot
Issue: MouseMode.Confined locks the mouse when the game starts with its window unfocused
Labels: bug,usability,topic:input

**Version:** Godot 3.2 beta 1

When you start the game while, for example, browsing the web with Chrome, the game starts unfocused; still, the game locks the mouse and you get to focus the window and unfocus again to unlock it.

Input.SetMouseMode(Input.MouseMode.Confined) is in an object's _Ready() in the first scene, if that matters.
Repository: TypeScript
Issue: compilerOptions:outDir is warning if set to null inside VSCode
Labels: Bug

**TypeScript Version:**  3.7.2
**Search Terms:**
Unset outDir in extended tsconfig
outDir null
outDir Type
**Code**

```
{
	"extends": "./tsconfig",
	"compilerOptions": {
//...
		"outDir": null,
	}
}
```

**Expected behavior:**
No warning inside VSCode.

**Actual behavior:**
```
{
	"resource": "/home/jogo/dev/boomsaas/tsconfig.single.json",
	"owner": "_generated_diagnostic_collection_name_#0",
	"severity": 4,
	"message": "Incorrect type. Expected \"string\".",
	"startLineNumber": 6,
	"startColumn": 13,
	"endLineNumber": 6,
	"endColumn": 17
}
```
I want to unset the outDir configuration inside my extended config to have the transpiled files next to their source files. Adding a string like "" would instead make them appear in the root folder though. Null seems to work fine.
Repository: flutter
Issue: [Web] Icon is not rendered using the right font during widget tests on web
Labels: a: tests,framework,platform-web,P2,team-web,triaged-web

Discrepancy found in newly enabled screenshot tests for web in PR #46820

Web:
![z_bottom_navigation_bar shifting_transition 2](https://user-images.githubusercontent.com/1267593/70672770-1dfa2a80-1c35-11ea-8f3c-e4a193cc09b2.png)

Flutter tester:
![z_bottom_navigation_bar shifting_transition 2 png o](https://user-images.githubusercontent.com/1267593/70672771-1e92c100-1c35-11ea-9b29-deb001f4539d.png)

Tests: Multiple, but here's one: test/material/bottom_navigation_bar_test.dart
Repository: flutter
Issue: [Web] Inverting colors doesn't work on Web
Labels: a: tests,framework,platform-web,P2,team-web,triaged-web

Discrepancy found in newly enabled screenshot tests for web in PR #46820

Web:
![z_invert_colors_test 0](https://user-images.githubusercontent.com/1267593/70673255-ca88dc00-1c36-11ea-9942-8dffb1ef7fd6.png)

Flutter tester:
![z_invert_colors_test 0 png o](https://user-images.githubusercontent.com/1267593/70673256-ca88dc00-1c36-11ea-977b-4f22da47f880.png)

Test: test/widgets/invert_colors_test.dart
Repository: flutter
Issue: [Web] ListWheelScrollView works incorrectly on Web
Labels: framework,f: material design,platform-web,P2,team-web,triaged-web

Discrepancy found in newly enabled screenshot tests for web in PR #46820

First test:
Web:
![z_list_wheel_scroll_view center_child magnified](https://user-images.githubusercontent.com/1267593/70673343-1fc4ed80-1c37-11ea-9022-288d48afb7ea.png)

Flutter tester:
![z_list_wheel_scroll_view center_child magnified png o](https://user-images.githubusercontent.com/1267593/70673344-1fc4ed80-1c37-11ea-9760-54a2a60ede58.png)

Second test:
Web:
![z_list_wheel_scroll_view curved_wheel left](https://user-images.githubusercontent.com/1267593/70673345-1fc4ed80-1c37-11ea-96f5-5d1dea969481.png)

Flutter tester:
![z_list_wheel_scroll_view curved_wheel left png o](https://user-images.githubusercontent.com/1267593/70673346-1fc4ed80-1c37-11ea-82ce-a31105bad342.png)

Test: test/widgets/list_wheel_scroll_view_test.dart
Repository: react
Issue: Input nodes leaked by the browser retain React fibers
Labels: Type: Needs Investigation

**Do you want to request a *feature* or report a *bug*?**

🐛 

**What is the current behavior?**

Browsers retain references to inputs in their undo stacks, which in turn retain React fibers (including `memoizedProps`)

See https://bugs.chromium.org/p/chromium/issues/detail?id=1029189

**If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your JSFiddle (https://jsfiddle.net/Luktwrdm/) or CodeSandbox (https://codesandbox.io/s/new) example below:**

https://jsfiddle.net/altxg/nzu6ab5e/3/

**What is the expected behavior?**

Although the leak originates from the browser, it might be helpful if React detached internal fiber references from input and contenteditable nodes on unmount

**Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?**

All versions of React as far as I know.
I can reproduce the leak on Chrome and Firefox on Mac

---

Potentially related issues:
https://github.com/facebook/react/issues/12692
https://github.com/facebook/react/issues/16087
Repository: kubernetes
Issue: Better protect secrets from common application vulnerabilities that expose the filesystem
Labels: priority/backlog,sig/storage,kind/feature,sig/auth,lifecycle/frozen

We've done a lot with secrets to meet rigid applications where they are. Is there anything we can do to optionally give flexible applications better security? Can we do better than directly mounting secrets onto the filesystem? Ideally filesystem information leaks (e.g. directory traversal bugs) wouldn’t result in secrets lost to bad guys. 

Options discussed in sig-auth:

* kubelet encrypts secret files and stores the encryption key in an xattr. Filesystem traversals rarely grant attackers access to extended file attributes.  Would this work for sandboxed runtimes? What do we do on windows?
* kubelet encrypts secret files and stores the encryption key in an environment variable. We've occasionally had environment variable leaks, but by storing secret encryption keys in environment variables, we force an attacker to gain access to the intersection of the process environment and the filesystem. This wouldn't help when an attacker has full read access to the filesystem (due to /proc/self/env).
* kubelet or pod unmounts secrets when the container is ready. Many secrets need to be read during initialization and never again. This would help in those circumstances but also precludes rotation.

/sig auth
/sig storage
/kind feature
Repository: go
Issue: html/template: incorrectly escapes urls with fragments
Labels: NeedsInvestigation

<!-- Please answer these questions before submitting your issue. Thanks! -->

### What version of Go are you using (`go version`)?

<pre>
1.13.5
</pre>

### Does this issue reproduce with the latest release?

yes (can reproduce it on go playground)

### What did you do?

<!--
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
-->

The code contains URL used by Kibana (eleastic search plugin which uses RISON for URLs)

https://play.golang.org/p/7-WnsX9FgKk
```go
package main

import (
	"fmt"
	"html/template"
	"net/url"
	"os"
)

func main() {
	testUrl := "https://host.com/_plugin/kibana/app/kibana#/discover?_g=(refreshInterval:(pause:!t,value:0),time:(from:now-15m,mode:quick,to:now))&_a=(columns:!(_source),index:'745526c0-a366-11e9-ada4-f767130ae0b4',interval:auto,query:(language:lucene,query:'app:\"app\" AND proc:\"web\" AND environment:\"staging\"'),sort:!('@timestamp',desc))"
	parsedUrl, err := url.Parse(testUrl)
	if err != nil {
		panic(err)
	}
	tmpl, err := template.New("name").Parse(`<a href="{{.}}">link</a>`)
	if err != nil {
		panic(err)
	}
	fmt.Println(testUrl)
	fmt.Println(parsedUrl)
	tmpl.Execute(os.Stdout, parsedUrl)
}
```

### What did you expect to see?

I expected to see the original URL since the fragments should be escaped so:
`https://host.com/_plugin/kibana/app/kibana#/discover?_g=(refreshInterval:(pause:!t,value:0),time:(from:now-15m,mode:quick,to:now))&_a=(columns:!(_source),index:'745526c0-a366-11e9-ada4-f767130ae0b4',interval:auto,query:(language:lucene,query:'app:"app" AND proc:"web" AND environment:"staging"'),sort:!('@timestamp',desc))`

URL as escaped by net.url package is also acceptable (Kibana seems to be able to handle it):

`https://host.com/_plugin/kibana/app/kibana#/discover?_g=(refreshInterval:(pause:!t,value:0),time:(from:now-15m,mode:quick,to:now))&_a=(columns:!(_source),index:%27745526c0-a366-11e9-ada4-f767130ae0b4%27,interval:auto,query:(language:lucene,query:%27app:%22app%22%20AND%20proc:%22web%22%20AND%20environment:%22staging%22%27),sort:!(%27@timestamp%27,desc))`

### What did you see instead?

The URL that is invalid and has wrong parts escaped:

`<a href="https://host.com/_plugin/kibana/app/kibana#/discover?_g=%28refreshInterval:%28pause:!t,value:0%29,time:%28from:now-15m,mode:quick,to:now%29%29&amp;_a=%28columns:!%28_source%29,index:%27745526c0-a366-11e9-ada4-f767130ae0b4%27,interval:auto,query:%28language:lucene,query:%27app:%22app%22%20AND%20proc:%22web%22%20AND%20environment:%22staging%22%27%29,sort:!%28%27@timestamp%27,desc%29%29">link</a>`

If this is indeed a bug any workaround I can apply right now to make the template do the right thing?
Repository: pytorch
Issue: torch::nn::functional::interpolate crash
Labels: module: cpp,triaged

## 🐛 Bug

<!-- A clear and concise description of what the bug is. -->

## To Reproduce
I'm sharing a minor error. 
Steps to reproduce the behavior:

```c++
/*
images[index] is C * H * W  : 3 *480*640  2D Image tensor
When calling interpolation, unknowexception occurs if the data type is not Kfloat.
*/
images[index] = F::interpolate(images[index], F::InterpolateFuncOptions().scale_factor({ scale_factor }).mode(torch::kLinear).align_corners(false));
images[index] = normalizeChannels(images[index]);

/*
If change data type, it works normally
img_tensor = img_tensor.toType(at::kFloat);		
*/
```


<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->

## Expected behavior

<!-- A clear and concise description of what you expected to happen. -->

## Environment

Please copy and paste the output from our
[environment collection script](https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py)
(or fill out the checklist below manually).

You can get the script and run it with:
```
wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py
```

 - PyTorch Version (e.g., 1.0): Libtorch Nightly build date : 19.11.22
 - OS (e.g., Linux): Windows 10
 - How you installed PyTorch (`conda`, `pip`, source):
 - Build command you used (if compiling from source):
 - Python version:
 - CUDA/cuDNN version: 10.2 , 7.5
 - GPU models and configuration: 2080TI
 - Any other relevant information:

## Additional context

<!-- Add any other context about the problem here. -->


cc @yf225
Repository: PowerToys
Issue: [FancyZones] Zone always on top
Labels: Idea-Enhancement,FancyZones-Editor,Product-FancyZones

# Summary of the new feature/enhancement
Currently I have 3 zones one is console zone however the other zones overlay on top of it hiding the zone.


as you can see the console is over the browser

![image](https://user-images.githubusercontent.com/49510009/70693972-387ce400-1cc7-11ea-9a31-7be24af17a53.png)

but as soon as i click the browser the console is sent behind the browser

![image](https://user-images.githubusercontent.com/49510009/70694085-74b04480-1cc7-11ea-8411-722107888268.png)


A setting on zone creation to have always on top would be a massive help
 

<!-- 
A clear and concise description of what the problem is that the new feature would solve.
Describe why and how a user would use this new functionality (if applicable).
-->

# Proposed technical implementation details (optional)

<!-- 
A clear and concise description of what you want to happen.
-->
Repository: flutter
Issue: Document old Android embedding's FlutterView migration
Labels: platform-android,engine,d: api docs,a: existing-apps,customer: crowd,P3,team-android,triaged-android

The new FlutterView class has not enough document. 
https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects
The replacements for the methods removed from old FlutterView should be mentioned.
Thanks.
Repository: youtube-dl
Issue: Request for ruv.is support
Labels: request

<!--

######################################################################
  WARNING!
  IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################

-->


## Checklist

<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl:
- First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2019.11.28. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Search the bugtracker for similar feature requests: http://yt-dl.org/search-issues. DO NOT post duplicates.
- Finally, put x into all relevant boxes (like this [x])
-->

- [X] I'm reporting a feature request
- [X] I've verified that I'm running youtube-dl version **2019.11.28**
- [ ] I've searched the bugtracker for similar feature requests including closed ones


## Description

<!--
Provide an explanation of your issue in an arbitrary form. Please make sure the description is worded well enough to be understood, see https://github.com/ytdl-org/youtube-dl#is-the-description-of-the-issue-itself-sufficient. Provide any additional information, suggested solution and as much context and examples as possible.
-->

www.ruv.is is icelandic tv, they have a "play channel" with direct link https://www.ruv.is/sjonvarp/

is it possible to do support for this website?
Repository: vue
Issue: slot fallback content is always rendered even when not used
Labels: improvement,has workaround

### Version
2.6.10

### Reproduction link
[https://codesandbox.io/s/vue-test-default-slot-always-exec-syuny](https://codesandbox.io/s/vue-test-default-slot-always-exec-syuny)







### Steps to reproduce
when computed props or method  declared in slot fallback , looks like this: 

```
// XXX component

<slot>
       no render, but always run {{p}}, {{print()}} <Func/> 
</slot>

// use it 
<XXX>
 actual replaced content 
</XXX>
```


### What is expected?
computed and method not  invoked , because they can't  render 

### What is actually happening?
computed is invoked once change.
method is invoked once render .

<!-- generated by vue-issues. DO NOT REMOVE -->
Repository: angular
Issue: [Animations]: Animating from current style, not initial one
Labels: type: bug/fix,area: animations,freq2: medium,state: confirmed,P3

-
Repository: go
Issue: math/big: big.Int JSON marshalling to/from string
Labels: NeedsInvestigation

`big.Int` by design marshalls / unmarshalls to a number in JSON but for actual BIG numbers this ends up with a mess in other languages, specially javascript ...

Now `encoding/json` has a `,string` struct tag to flag a field to be quoted as a string instead but it's restricted only for `strings, floats, integers, and booleans can be quoted.` atm.  
If this could also be applied to `big.Int` then we'd have a good solution for BIG numbers without breaking the existing functionality at all!

related; https://github.com/golang/go/issues/28154  
and there's probably many more people running into this issue...
Repository: flutter
Issue: Code coverage does not include const values
Labels: a: tests,engine,dependency: dart,P2,team-engine,triaged-engine

Here is sample code, I found that static const InfoWindow noText = InfoWindow(); was not execute while run the test unit. so the code coverage could not reach to 100%, pull request was reject. Currently, I am just change the static const instance to function, if you have any idea, please tell me, thank you!
```dart
//test class example
 class InfoWindow {
      const InfoWindow({
         this.title,
         this.snippet,
         this.anchor = const Offset(0.5, 0.0),
         this.onTap,
    }); 
    static const InfoWindow noText =  InfoWindow(); 
    
     //test unit
    test('notext infowindow', (){
    expect(noText.title, "");
    });
```