sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: Animate changes to IndexedStack
Labels: c: new feature,framework,a: animation,P3,team-framework,triaged-framework

Hi.

## Use case

This is about two very useful widgets:
* [`AnimatedSwitcher`](https://api.flutter.dev/flutter/widgets/AnimatedSwitcher-class.html)
* [`IndexedStack`](https://api.flutter.dev/flutter/widgets/IndexedStack-class.html)

Intuitively, it seems they could be combined in order to preserve the state between two widgets while animating the transition from one to the other. However, the following code will not work as expected:

```dart
AnimatedSwitcher(
    transitionBuilder: AnimatedSwitcher.defaultTransitionBuilder,
    duration: const Duration(milliseconds: 500),
    child: IndexedStack(
        index: condition ? 1 : 0,
        children: [
            WidgetOne(),
            WidgetTwo(),
        ],
    ),
)
```

This does not work for obvious reason (assuming `AnimatedSwitcher` is rebuilt with a new `condition` value): the `IndexedStack` widget itself did not change, so there is no animation (while widgets are correctly replaced).


## Proposal

I would like to suggest the addition of a new parameter or some kind of workaround to facilitate the use of `AnimatedSwitcher` with `IndexedStack`. Unfortunately, I don't know what this workaround should look like.

This is related to this issue: https://github.com/flutter/flutter/issues/39398. It was closed for the reason that it is "related to organising of widgets". I would like to re-open it as a "feature request".

A [Stackoverflow question](https://stackoverflow.com/questions/57694249/animatedswitcher-with-indexedstack) has been open consequently. As a Flutter beginner, I'm not comfortable with the proposed answers as they require to completely re-implement `IndexedStack` and / or `Animation` which I find prone-to-error compared to simply combine `AnimatedSwitcher` with `IndexedStack` (that seemed so much more convenient!).

Is there a possibility to make these two widgets more "user-friendly" when they are used together?
Repository: rust
Issue: Please add `try_lock` to `Stdin`, `Stdout`, and `Stderror`
Labels: T-libs-api,C-feature-request

Currently, you can `lock` the three handles but you cannot `try_lock` them. It would be better if users had the option of using `try_lock`.
Repository: flutter
Issue: add darkMode as named constructor argument to CupertinoApp
Labels: c: new feature,framework,f: cupertino,P2,team-design,triaged-design

## Use case

as developer developing for iOS and Android, I want to be able to set a dark theme, which will, like MaterialApp already supports, automatically apply the dark theme.
Good example for what I want to do can be seen with the darkTheme argument when using MaterialApp

## Proposal

I have a code example of what I need for the CupertinoApp:

<img width="568" alt="Bildschirmfoto 2020-01-06 um 03 17 32" src="https://user-images.githubusercontent.com/55476303/71790939-507c2500-3033-11ea-9329-cd46b62a463d.png">
Repository: TypeScript
Issue: Refactor option: Convert Object <-> Map
Labels: Suggestion,Awaiting More Feedback

## Search Terms

Refactor Maps to Objects
Refactor Objects to Maps
Convert objects convert maps
<!-- List of keywords you searched for before creating this issue. Write them down here so that others can find this suggestion more easily -->

## Suggestion

I would like to see the ability to right click on a map or object and be able to quickly and easily change the format between an object literal and a Map definition. Would help a lot when prototyping new code.

```ts
const o = {
    a: 1,
    b: 2,
};
```

```ts
const o = new Map([
    ["a", 1],
    ["b", 2],
]);
```


<!-- A summary of what you'd like to see added or changed -->

## Use Cases

This is great when quickly prototyping new code and quickly typing the kind of object you want. If you decide a Map would be better suited for this use case after typing out an object, then you can easily just right click + refactor to `isObject ? "Map" : "Object"`. At the moment, the easiest way to do this in VSCode that I'm aware of is to multi-cursor all the lines and try to modify the format on each line simultaneously, then edit the first and last lines to start with `new Map([` and end with `[)`
It doesn't need to be SUPER sophisticated. The developer can easily change the Map type parameters, for example. It would just be nice to have a way to quickly convert between the two formats.
<!--
What do you want to use this for?
What shortcomings exist with current approaches?
-->

## Examples

<!-- Show how this would be used and what the behavior would be -->

## Checklist

My suggestion meets these guidelines:

* [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [x] This wouldn't change the runtime behavior of existing JavaScript code
* [x] This could be implemented without emitting different JS based on the types of the expressions
* [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).
Repository: pytorch
Issue: [Feature Request] reduce CUDA runtime size by selectively compiling PyTorch GPU kernels
Labels: high priority,module: binaries,module: build,module: cuda,triaged

## 🚀 Feature
<!-- .-->
pytorch massive initial memory overhead GPU,we need a way to control the memory and gpu memory during pytorch to cuda() function initialization.
## Motivation

<!-- -->
According to this [discussion](https://github.com/pytorch/pytorch/issues/12873),we kown that there is a way to [reduce pytorch's kernels memory and gpu memory will also be reduced.](https://github.com/pytorch/pytorch/issues/12873#issuecomment-482916237).massive initial memory overhead GPU  preventing us from happily using pytorch on devices with small memory like Jetson Nano.
## Pitch
control the memory and gpu memory during pytorch to cuda() function initialization.
<!--   -->



cc @ezyang @gchanan @zou3519 @bdhirsh @jbschlosser @anjali411 @Varal7 @seemethere @malfet @walterddr @ngimel
Repository: youtube-dl
Issue: "The Roku Channel" site support request
Labels: site-support-request,geo-restricted,account-needed

<!--

######################################################################
  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 2020.01.01. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Make sure that all provided video/audio/playlist URLs (if any) are alive and playable in a browser.
- Make sure that site you are requesting is not dedicated to copyright infringement, see https://yt-dl.org/copyright-infringement. youtube-dl does not support such sites. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
- Search the bugtracker for similar site support 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 new site support request
- [x] I've verified that I'm running youtube-dl version **2020.01.01**
- [x] I've checked that all provided URLs are alive and playable in a browser
- [x] I've checked that none of provided URLs violate any copyrights
- [x] I've searched the bugtracker for similar site support requests including closed ones


## Example URLs

<!--
Provide all kinds of example URLs support for which should be included. Replace following example URLs by yours.
-->
- Single video: https://therokuchannel.roku.com/watch/a1006dbbe7b15aacb2793a6148021475
- Single video: https://therokuchannel.roku.com/watch/fdfc814018d257bbae57882731ca911c
- Playlist: https://therokuchannel.roku.com/details/9d4a17177b2e5ac7a6c3174f005b9446/suddenly-susan/season-1


## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

The ROKU Channel allows for watching streamed media directly from the website.  The current implementation requires an account.  I'm using the --cookies feature to address authentication and it dose work except with the error: "ERROR: Unsupported URL: ..."  I'm using the single video URL for my purposes but a playlist URL is possible if parsing a TV Season page.
Repository: pytorch
Issue: Example cmakelists for custom cuda operator?
Labels: oncall: jit,triaged

I follow the tutorial to extend torchscript with a custom c++ operator. 
https://pytorch.org/tutorials/advanced/torch_script_custom_ops.html

But in our project, we have a custom cuda operator defined in a .cc, .cu, .cuh file.
The kernel function is defined in the .cu and .cuh file.
We call the kernel function and register custom torch operator in the .cc file.

Could anyone provide a sample cmakelists file to build a shared library for this cuda operator?


cc @suo
Repository: rust
Issue: Specialization works only if type annotation is provided
Labels: F-specialization

Playground link: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=a26a9e2af3acda5b9911458a6f54a72d


This trait implementation

```rust
impl<T, V, O, E> Validate<[T]> for V
where
    Self: Validate<T, Output = Result<O, E>>,
{
    type Output = Result<Vec<O>, E>;

    fn validate(&mut self, nodes: &[T]) -> Self::Output {
        nodes.iter().map(|node| self.validate(node)).collect()
    }
}
```

does not like a method defined as

```rust
impl Analyzer {
    /// Validates and store errors if required.
    pub fn check<T, O>(&mut self, node: &T) -> Option<O>
    where
        Self: Validate<T, Output = Result<O, Error>>,
    {
        let res: Result<O, _> = self.validate(node);
        match res {
            Ok(v) => Some(v),
            Err(..) => {
                // handle error
                None
            }
        }
    }
}
```

However, it works if type annotation is provided
```rust
fn main() {
    let mut a = Analyzer;
    let expr = Expr;
    // Uncomment this to see impl for [T] explodes
    // a.check(&expr);

    // This works without error
    a.check::<Expr, ()>(&expr);
}
```
Repository: flutter
Issue:  flutter analyze a specific file throws `not a directory` error
Labels: tool,a: quality,has reproducible steps,P3,found in release: 2.3,team-tool,triaged-tool

I want to analyze a specific file
`flutter analyze ./lib/main.dart`
but I got a error
`/lib/main.dart' is not a directory`
how can I analyze a specific file?
Repository: go
Issue: gccgo: implement plugin package
Labels: NeedsFix,FeatureRequest

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.12.2 gccgo (Debian 9.2.1-21) 9.2.1 20191130 linux/amd64
</pre>

### Does this issue reproduce with the latest release?


### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/zhsj/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/zhsj/go"
GOPROXY="https://proxy.golang.org"
GORACE=""
GOROOT="/usr"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/gcc/x86_64-linux-gnu/9"
GCCGO="/usr/bin/x86_64-linux-gnu-gccgo-9"
CC="x86_64-linux-gnu-gcc-9"
CXX="x86_64-linux-gnu-g++-9"
CGO_ENABLED="1"
GOMOD="/home/zhsj/go/src/github.com/containerd/containerd/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build814416476=/tmp/go-build -gno-record-gcc-switches -funwind-tables"
</pre></details>

### What did you do?

build containerd with gccgo

```
go-9 build -tags "no_btrfs no_cri" -v ./cmd/containerd
plugin/plugin_go18.go:24:2: cannot find package "plugin" in any of:
        /home/zhsj/go/src/github.com/containerd/containerd/vendor/plugin (vendor tree)
        /usr/src/plugin (from $GOROOT)
        /home/zhsj/go/src/plugin (from $GOPATH)
```
I'm not sure if it's distribution issue or upstream issue. I didn't see `plugin` in `/usr/lib/x86_64-linux-gnu/go/9/x86_64-linux-gnu/`. But I see `plugin` in https://github.com/golang/gofrontend/tree/master/libgo/go/plugin

Is `https://github.com/golang/gofrontend/blob/master/libgo/libgo-packages.txt` responsible for it? I didn't see `plugin` in it too.

### What did you expect to see?


### What did you see instead?
Repository: flutter
Issue: Build APK with local engine using multiple architectures
Labels: c: new feature,tool,engine,P3,team-engine,triaged-engine

I tried to build an APK with multiple architectures but failed. The --local-engine does not accept multiple values.

My scenario:
There's a crash issue https://github.com/flutter/flutter/issues/47804 that could be resolved by reverting a commit in the flutter engine, it's not fixed yet, so I have to use a local engine to build APKs. 
The APK should support arm, arm64, and x86_64. But currently the --local-engine only accepts one of them.
I think it should be possible to use all the local engines for building an APK. They are in the same parent folder. 
But it's out of my knowledge.

As an alternative, if there's a way to replace the engine for my local flutter, it's good with me.
Repository: godot
Issue: Godot create tilemap fill preview only when moving mouse
Labels: discussion,topic:editor,usability

**Godot version:**
3.2 beta 5

**OS/device including version:**
Ubuntu 19.10

**Issue description:**
Godot create fill preview of big tilemap with parts, but only when mouse is moving.

**Steps to reproduce:**
![jfile](https://user-images.githubusercontent.com/41945903/71807301-48d87280-306b-11ea-8689-cd3ef48b1ab9.gif)

**Minimal reproduction project:**
[GGG.zip](https://github.com/godotengine/godot/files/4025371/GGG.zip)
Repository: godot
Issue: [Bullet] Wrong physics when accelerating and braking using VehicleWheel
Labels: bug,confirmed,topic:physics,topic:3d

The spring physics of the vehicle wheel or body is wrong. When accelerating and braking, the vehicle tilts forward or backward. However this is done in the opposite direction from what is natural.
Using a simple setup with a vehicle body and 4 wheels and a static ground plane.

- When applying an engine force to the vehicle, the vehicle tilts forward. In real life the vehicle would tilt backwards.

- When braking the vehicle tilts backwards. In real life the vehicle would tilt forward.

Here is an example of a vehicle braking
![Capture](https://user-images.githubusercontent.com/48671787/71813295-8b08b080-3079-11ea-915f-b25609b1ebf5.PNG)
Repository: scrcpy
Issue: Feature request: APP_SWITCH with middle-click
Labels: feature request

I think, "APP_SWITCH" is more important than "HOME".
For example, if I want to drink beer and work with one hand, I need APP_SWITCH much more than HOME.

I would like to suggest a command line parameter for "APP_SWITCH with middle-click". (And keyboard for "HOME").

Currently I found one good (not bad) workaround for "APP_SWITCH using mouse".
From android settings I assigned "Recents" (APP_SWITCH) action to "double tap home". This way I have APP_SWITCH with "double middle-click".

I find it is a bit hard to do quick "double middle-click". Double left/right click is more easy. It depends of the mouse also. And android do not have setting to increase "double tap delay".
(It could be useful if I can slowly "double middle-click" BUT it is sent faster/shorter to device.)

Thanks!
Repository: pytorch
Issue: The dependency target "nccl_external" of target "gloo_cuda" does not exist.
Labels: oncall: distributed,module: build,triaged

## 🐛 Bug

Found this in my cmake log.
Is it expected?

```
#7 581.0 -- Configuring done
#7 581.8 CMake Warning (dev) at cmake/Dependencies.cmake:1068 (add_dependencies):
#7 581.8   Policy CMP0046 is not set: Error on non-existent dependency in
#7 581.8   add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
#7 581.8   Use the cmake_policy command to set the policy and suppress this warning.
#7 581.8 
#7 581.8   The dependency target "nccl_external" of target "gloo_cuda" does not exist.
#7 581.8 Call Stack (most recent call first):
#7 581.8   CMakeLists.txt:390 (include)
#7 581.8 This warning is for project developers.  Use -Wno-dev to suppress it.
#7 581.8 
```

## Environment

 - PyTorch Version (e.g., 1.0): master
 - OS (e.g., Linux): CentOS 7
 - How you installed PyTorch (`conda`, `pip`, source): source
 - Build command you used (if compiling from source): cmake+ninja+gcc-8
 - Python version: 3.6
 - CUDA/cuDNN version: 10.2

cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @xush6528
Repository: opencv
Issue: Any intention to add interoperability with DLPACK or mpi4py?
Labels: feature,RFC

Given OpenCV's amazing toolkit for image processing, its ability to run on the GPU, and the growing use of image processing for Deep Learning, I'm curious whether anyone has the intention of adding interoperability with [DLPACK](https://github.com/dmlc/dlpack)  or [mpi4py ](https://mpi4py.readthedocs.io/en/latest/) so we can pass arrays directly on the GPU?
Repository: TypeScript
Issue: Allow creating contantly typed Map which has immutable defined set of keys
Labels: Suggestion,Awaiting More Feedback

## Search Terms

map, const, es6

## Suggestion

Currently you can create objects and arrays with the `as const` assertion, which tells the compiler to, for example, type `["apple", "banana", "pear"]` as `["apple", "banana", "pear"]` rather than as `string[]`. This is useful for instances where the array is constant and you know you can rely on that.

Typing objects `as const` is useful for constant maps/dictionaries, however the better type to use in TypeScript for maps is, of course, `Map`. However, you can't type `Map as const`, which means you can never have a constant `Map` that disallows `set` and `delete` and also knows whether the result of `get` is undefined or not, rather than always making it return the type `x | undefined`.

*Note*: I know I can just use an object for this instead of a `Map`. But `Map` offers many benefits, such as speed and iterability, that objects don't. Also, `Map` is more explicit about what it is doing.

## Examples

Without this feature, I have to do one of the following:
```ts
const optionA: Map<string, string> = new Map([
  ["date", "YYYY-MM-DD"],
  ["datetime", "YYYY-MM-DD[T]HH:mm"],
  ["datetime-local", "YYYY-MM-DD[T]HH:mm"],
  ["month", "YYYY-MM"],
  ["time", "HH:mm"],
  ["week", "YYYY-[W]WW"]
]);

const weekFormat = optionA.get("week") as string; // Forced to use assertion and we still lose data
```
or
```ts
const optionB = {
  date: "YYYY-MM-DD",
  datetime: "YYYY-MM-DD[T]HH:mm",
  "datetime-local": "YYYY-MM-DD[T]HH:mm",
  month: "YYYY-MM",
  time: "HH:mm",
  week: "YYYY-[W]WW]
} as const; // Have to use object

const weekFormat = optionA.week;
```

With this feature, I could do:
```ts
const optionA = new Map([
  ["date", "YYYY-MM-DD"],
  ["datetime", "YYYY-MM-DD[T]HH:mm"],
  ["datetime-local", "YYYY-MM-DD[T]HH:mm"],
  ["month", "YYYY-MM"],
  ["time", "HH:mm"],
  ["week", "YYYY-[W]WW"]
]) as const;

const weekFormat = optionA.get("week"); // type: "YYYY-[W]WW"
optionA.delete("time"); // error
optionA.set("time", "hh:mm"); // error
```

## Checklist

My suggestion meets these guidelines:

* [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [x] This wouldn't change the runtime behavior of existing JavaScript code
* [x] This could be implemented without emitting different JS based on the types of the expressions
* [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).
Repository: rust
Issue: thread_id_value tracking issue
Labels: A-concurrency,T-libs-api,B-unstable,C-tracking-issue,Libs-Tracked,Libs-Small

This is the tracking issue for the `ThreadId::as_u64` method, which casts a thread ID to the underlying `u64`.

There are currently no known blockers to stabilization beyond making sure that the API indeed works for intended use cases.

Implemented originally in https://github.com/rust-lang/rust/pull/67566.
Repository: PowerToys
Issue: Grep for Windows
Labels: Idea-New PowerToy

It would be great if PowerToys can include a tool to grep files such as [GrepWin](https://tools.stefankueng.com/grepWin.html) having a context menu option to Grep files in the selected folders.