sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: PowerToys
Issue: [PowerRename] Insert String in Position x
Labels: Issue-Docs,Product-PowerRename

Would be nice to have a option to insert a string on Position x from start / end because at the moment its imposible? to make a prefix / suffix on all files of a directory?

there is a other request to have variables to be set / used for renaming - maybe this could be used to insert a string on a free position too.

For example:
Search-Field:
{Var1}{OriginalFilename}
Replace:
{Var1}="xxxx"

Or
Search-Field:
{OriginalFilename|-5}{Var1}{DateTime}

And have a nice "Tagging-List like" GUI with default Variables like Filename, FileCreationDate, FileChangeDate, Exif... etc.
Repository: rust
Issue: Compiler error wrongly suggests to borrow
Labels: A-diagnostics,T-compiler,C-bug

We noticed that if a `HashMap<&str, T>` is instanced and a get is performed using `String` as a key, the rust compiler suggests to use a reference `&String` instead, but that solution won't compile.

For example, given this code
```rust
use std::collections::HashMap;

fn main() {
    let mut m: HashMap<&str, u32> = HashMap::new();
    let s: String = "hello".to_owned();
    m.get(s);
}
```

The compiler will print this error

```
6 |     m.get(s);
  |           ^
  |           |
  |           expected reference, found struct `std::string::String`
  |           help: consider borrowing here: `&s`
  |
```

and if that change is applied the error becomes

```
  |
6 |     m.get(&s);
  |       ^^^ the trait `std::borrow::Borrow<std::string::String>` is not implemented for `&str`
```

This is happening with rustc 1.42.0 on the playground.

Edit: sorry I submitted the issue by mistake while incomplete :P
Repository: rust
Issue: Statics don't support alignments larger than the page size
Labels: O-linux,P-high,T-compiler,O-windows-gnu,O-windows-msvc,I-unsound,A-target-specs,C-bug,E-needs-investigation,A-align

Example code:
```rust
#[repr(align(0x100000))]
struct Aligned(u8);

static X: Aligned = Aligned(0);

fn main() {
    let x = Aligned(0);
    println!("{:#x}", &x as *const _ as usize);
    println!("{:#x}", &X as *const _ as usize);
    println!("{:#x}", Box::into_raw(Box::new(Aligned(0))) as usize);
}
```

Output:

```
0x7ffec8000000
0x55c9b2596000
0x7f2879f00000
```

I am not sure about other platforms, but in the case of Linux this happens because the [ELF loader](https://github.com/torvalds/linux/blob/master/fs/binfmt_elf.c) in the kernel ignores the `p_align` field of the ELF program headers and assumes page-alignment instead.
Repository: tensorflow
Issue: TF saved model Assertion Error ( Called a function referencing variables which have been deleted )
Labels: type:bug,comp:apis,TF 2.11

I am facing an issue . When returning a ```tf.saved_model.load``` object inside a function and then try to use it, it is not working. 

I am having a file ```sample.py``` 
```
#### sample.py

import tensorflow as tf
def load_model(model_dir):

    # Load Model
    loaded = tf.saved_model.load(model_dir)
    model = loaded.signatures['serving_default']
    print("Model Loaded")
    return model

```

When I am executing ```main.py```

```
from sample import load_model

model_dir = 'som_path of a saved model'
model1 = load_model(model_dir)
```

If I print model.variables I am getting following error

```
AssertionError: Called a function referencing variables which have been deleted. This likely means that function-local variables were created and not referenced elsewhere in the program. This is generally a mistake; consider storing variables in an object attribute on first call.

```

But. If load the model with same code inside the function, but not using the function it works fine

```
#### main.py
loaded = tf.saved_model.load(model_dir)
model = loaded.signatures['serving_default']
```
If I print model.variables, its working as expected.
Repository: excalidraw
Issue: Compress before sending over network
Labels: enhancement,collaboration

Because we are encrypting all the data, we can’t use the browser provided compression to reduce the size of the payloads.

Here are some findings from a quick survey:

Chrome starts to ship gzip compression in 80. https://twitter.com/addyosmani/status/1228989899686260736?s=21 This is great because a lot of our traffic comes from 80. Unfortunately not sure how other browsers are going to decompress if they don’t support it...

We can encode the data in a canvas and use save / load from png to read it. https://t.co/luzCR4g29H?amp=1 This is a good hack, I wonder how performance is.

We can use a Rust-compiled version of various encoding/decoding libraries to wasm. Apparently the speed is great but the current wasm build is 150kb with 3 compressions techniques. We should just pick one to hopefully reduce the build size. https://github.com/drbh/wasm-flate

Not sure which one we should go to but at least we have options
Repository: rust
Issue: Failure to unify concrete type with associated type
Labels: A-associated-items,T-compiler,C-bug,A-coercions

<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.
-->

I tried [this code](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=d2e06fa09bf3b1123cc6e62e1a31c595):

```rust
trait Refable<'a> {
    type Ref;
}

impl<'a, R: 'a> Refable<'a> for R {
    type Ref = &'a R;
}

trait GetRef<F> {
    fn get_ref<'a>(&'a self) -> <F as Refable<'a>>::Ref
    where
        F: 'a + Refable<'a>;
}

struct Foo;

struct Bar {
    foo: Foo,
}

impl<R: GetRef<Bar>> GetRef<Foo> for R {
    fn get_ref<'a>(&'a self) -> <Foo as Refable<'a>>::Ref
    where
        Foo: 'a + Refable<'a>,
    {
        // Doesn't compile
        &self.get_ref().foo

        // Compiles
        // fn get<'a>(r: <Bar as Refable<'a>>::Ref) -> <Foo as Refable<'a>>::Ref {
        //     &r.foo
        // }
        // get(self.get_ref())
    }
}
```

I expected to see this happen: It compiles properly

Instead, this happened: It fails with the following error:

```text
error[E0308]: mismatched types
  --> src/lib.rs:27:9
   |
22 |     fn get_ref<'a>(&'a self) -> <Foo as Refable<'a>>::Ref
   |                                 ------------------------- expected `<Foo as Refable<'a>>::Ref` because of return type
...
27 |         &self.get_ref().foo
   |         ^^^^^^^^^^^^^^^^^^^ expected associated type, found `&Foo`
   |
   = note: expected associated type `<Foo as Refable<'a>>::Ref`
                    found reference `&Foo`
   = note: consider constraining the associated type `<Foo as Refable<'a>>::Ref` to `&Foo` or calling a method that returns `<Foo as Refable<'a>>::Ref`
   = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
```

However, if I un-comment the code labeled "Compiles" above, which simply wraps the same expression in a bare function, it compiles successfully.

### Meta
<!--
If you're using the stable version of the compiler, you should also check if the
bug also exists in the beta or nightly versions.
-->

Version: 1.42.0 Stable (Playground)
Repository: excalidraw
Issue: Better touch handling
Labels: mobile

- [ ] abort first touch if a second `pointerdown` (i.e. for pan/zoom) occurs before the first pointer moves too far
  - fixes issues with selection, pan/zooming while making lines
- [ ] tests!
- [ ] maybe: support releasing one finger from a two-finger gesture to switch back to select/edit mode (the reverse currently works)
- [ ] Select on `pointerup` for `touch` events https://github.com/excalidraw/excalidraw/issues/4017
Repository: terminal
Issue: Question: TCSAFLUSH equivalent for Windows console host?
Labels: Issue-Feature,Product-Conhost,Area-Server

Hello,

On Unix systems, when setting up a terminal for 'raw' processing, you have the option of passing `TCSAFLUSH` to `tcsetattr()`. The description of it is as follows:

> the change occurs after all output written to the object referred by fd has been transmitted, and all input that has been received but not read will be discarded before the change is made.

This is quite convenient for certain types of applications since it means you won't get unexpected data back from reading `stdin` after you've made changes to terminal settings.

I'm wondering if there is an equivalent to this for the Windows console host when using `SetConsoleMode()`?
Repository: flutter
Issue: [Desktop] Switch to app when using select widget mode
Labels: framework,f: inspector,a: desktop,P3,team-framework,triaged-framework

We have this functionality when using simulators and emulators, but not with desktop. After clicking select widget mode, the IDE is still focused.
Repository: pytorch
Issue: keepdim for Tensor.select?
Labels: triaged,function request,module: viewing and reshaping

## 🚀 Feature
I noticed quite some Tensor functions had a `keepdim` boolean param, tho not [`Tensor.select`](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.select), where behavior is now what one would expect for `keepdim=False`.
Would it maybe be an idea to add this parameter there as well?
Repository: create-react-app
Issue: Remove "[HMR] Waiting for update signal from WDS..." log
Labels: issue: proposal,needs triage

### Is your proposal related to a problem?

I like my logs when things are working well. Right now for all my create-react-apps, I have this annoying "[HMR] Waiting for update signal from WDS..." log that pollutes my console.

![image](https://user-images.githubusercontent.com/197597/76709682-e7adca80-66bd-11ea-8c29-da0966f62796.png)

### Describe the solution you'd like

I can see two options for solving this:
- Either drop that log altogether.
- Or only logs this after a delay if haven't been able to connect to the websocket server.
Repository: vscode
Issue: [themes] Allow gradients along with colors
Labels: feature-request,themes

Please support CSS gradients where backgrounds and borders are theme-able.

The latest version of VS Code you've confirmed to not have this feature is: 1.43.0
Repository: excalidraw
Issue: Add debugging tools/hooks
Labels: discussion

During my development, I regularly need to debug by having access to `elements` and `appState` from console. I do this by having a stash with `window` global props. Problem is I need to stash it after each PR is done, and apply the stash for new PRs (and reconcile with latest changes).

It'd be great if we kept it permanently in the codebase (under `process.env.NODE_ENV === "development"`).

- [x] `elements`
- [x] `appState`
- [x] `history`
- [ ] draw [hitbox areas](https://github.com/excalidraw/excalidraw/issues/706#issuecomment-599257694) (would have to be explicitly enabled so as not to be distracting when not needed).
- [ ] display element's `x`/`y`/`x2`/`y2`/`width`/`height` and be able to set them manually
- [ ] display current `x`/`y` of cursor location (maybe show a label next to cursor)
Repository: node
Issue: Piping `process.stdin` to `child.stdin` leaves behind an open handle
Labels: stream

* **Version**: `13.11.0` (tried on `8.3.0` too, same result)
* **Platform**: Linux
* **Subsystem**: Ubuntu `19.10`

### What steps will reproduce the bug?

`foo.c`

```c
#include <stdio.h>
int main() {
  char str[100];
  gets(str);
  puts(str);
  return 0;
}
```

Compile it: 

```bash
$ gcc -o foo foo.c
```

`index.js`:

```js
const { spawn } = require('child_process')

const child = spawn('./foo')
process.stdin.pipe(child.stdin)
child.on('exit', () => {
  console.log('done')
  process.stdin.unpipe(child.stdin)
})
```

Launch `index.js`:

```shell
$ node index.js
input
done

```

After entering some `input`, the child process exits and `done` is printed. However the main process does not exit (although it should). It looks like `process.stdin` has a left handle. After entering newline again on `stdin`, the process now exits.

### How often does it reproduce?

Always

### What is the expected behavior?

See above.

### What do you see instead?

See above.
Repository: go
Issue: cmd/go: redact passwords in urls in "go bug"
Labels: NeedsDecision,GoCommand

When a user submits an issue, we also need the user to file the output of `go env`(many users don't use go bug command), so we should replace any non-empty password in GOPROXY environment by default. The string form replaces password in the original URL with "[redacted]". Like `go get -x`:

```
MBA:/tmp$ go get -x -v golang.org/x/tools
# get https://oiooj:%5Bredacted%5D@goproxy.io/golang.org/x/@v/list
# get https://oiooj:%5Bredacted%5D@goproxy.io/golang.org/x/tools/@v/list
# get https://oiooj:%5Bredacted%5D@goproxy.io/golang.org/@v/list
# get https://oiooj:%5Bredacted%5D@goproxy.io/golang.org/x/tools/@v/list: 200 OK (0.649s)
# get https://oiooj:%5Bredacted%5D@goproxy.io/golang.org/x/tools/@latest
# get https://oiooj:%5Bredacted%5D@goproxy.io/golang.org/x/@v/list: 404 Not Found (0.649s)
# get https://oiooj:%5Bredacted%5D@goproxy.io/golang.org/@v/list: 404 Not Found (0.649s)
# get https://oiooj:%5Bredacted%5D@goproxy.io/golang.org/x/tools/@latest: 200 OK (0.006s)
go: downloading golang.org/x/tools v0.0.0-20200313205530-4303120df7d8
# get https://oiooj:%5Bredacted%5D@goproxy.io/golang.org/x/tools/@v/v0.0.0-20200313205530-4303120df7d8.zip
# get https://oiooj:%5Bredacted%5D@goproxy.io/golang.org/x/tools/@v/v0.0.0-20200313205530-4303120df7d8.zip: 200 OK (0.196s)
go: golang.org/x/tools upgrade => v0.0.0-20200313205530-4303120df7d8
# get https://oiooj:%5Bredacted%5D@goproxy.io/golang.org/x/tools/@v/v0.0.0-20200313205530-4303120df7d8.mod
# get https://oiooj:%5Bredacted%5D@goproxy.io/golang.org/x/tools/@v/v0.0.0-20200313205530-4303120df7d8.mod: 200 OK (0.032s)
# get https://oiooj:%5Bredacted%5D@goproxy.io/github.com/yuin/goldmark/@v/v1.1.25.mod
# get https://oiooj:%5Bredacted%5D@goproxy.io/github.com/yuin/goldmark/@v/v1.1.25.mod: 200 OK (0.028s)
```
```
MBA:/tmp$ go env
GO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/test/Library/Caches/go-build"
GOENV="/Users/test/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GONOPROXY="*.test.com"
GONOSUMDB="*.test.com"
GOOS="darwin"
GOPATH="/Users/test/golang"
GOPRIVATE="*.test.com"
GOPROXY="https://username:%5Bredacted%5D@goproxy.io,direct"
GOROOT="/usr/local/go"
GOSUMDB="off"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/dev/null"
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 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/hg/ss37ccnn4_1fhhg_tdrzhggh0000gn/T/go-build962445838=/tmp/go-build -gno-record-gcc-switches -fno-common"
```
We should only change the `go env` and `go bug` command, we can get the original config from `go env GOPROXY` and `go env -json` at this time,  since some tools today expect to parse `go env GOPROXY` and  use `-json` option.
Repository: rust
Issue: OOM (huge memory usage) during release compilation with include_str of 100MB
Labels: P-medium,T-compiler,regression-from-stable-to-stable,I-compilemem,C-bug,ICEBreaker-Cleanup-Crew

When compiling a project of mine, my PC with 32GB of RAM went OOM. I reduced the problem to the following code:

```rust
use std::collections::HashMap;

static TESTDATA: &str = include_str!("../testdata");

fn parse_testdata() -> HashMap<(), ()> {
    let mut map = HashMap::new();
    for line in TESTDATA.lines() {
    }
    map
}

pub fn do_stuff() {
    let (tx, _) = std::sync::mpsc::channel();
    let testdata = parse_testdata();
    tx.send(vec![0]).unwrap();
}

fn main() {
    do_stuff();
}

```

Compiling this code with `/usr/bin/time -v cargo build --release` shows a maximum resident RAM usage of 16GB if testdata is generated with `python -c "print('foo bar baz qux 1337 42\n' * 4_500_000)" > testdata` (103MB). In debug mode, only 1.3GB RAM are used. It doesn't matter if edition is 2018 or not.

Here are some different testdata sizes with their compilation memory usage:

python generation | size | RAM | comment
--- | --- | --- | ---
`'foo bar baz qux 1337 42\n' * 4_500_000` | 103MB | 16GB | file structure similar to my real-world use-case
`'foo bar baz qux 1337 42 ' * 4_500_000` | 103MB | 16GB | newlines don't matter
`'a' * 100*1024*1024` | 100MB | 15.7GB | we can reduce this to simple file size
`'a' * 80*1024*1024` | 80MB | 14GB
`'a' * 50*1024*1024` | 50MB | 8GB
`'a' * 25*1024*1024` | 25MB | 3.9GB
`'a' * 10*1024*1024` | 10MB | 1.9GB
`'a' * 1*1024*1024` | 1MB | 256MB

If anything in the code is changed, the problem gets slightly better. Here is the RAM usage after some small changes for 100MB (for comparison, `include_str` just with a hello-world requires 670MB):
* use a `Vec` instead of the `HashMap`: 2.5GB
* create the HashMap at the end of of the `parse_testdata` function: 6GB
* inline the `parse_testdata` function manually: 6GB
* make `parse_testdata` not return anything and remove the HashMap from the function: 2.5GB
* send `()` instead of `vec![0]`: 6GB
* remove the channel creation and sending into it: 4.4GB
* don't call `do_stuff`: 672MB

### Meta

`uname -a`: `Linux 5.5.4-arch1-1-vfio #1 SMP PREEMPT Wed, 19 Feb 2020 15:49:02 +0000 x86_64 GNU/Linux` (Archlinux)

Tested on (always testing with 100MB):
* current stable: `rustc 1.42.0 (b8cedc004 2020-03-09)`: 16GB
* current nightly: `rustc 1.43.0-nightly (45ebd5808 2020-03-15)`: 16GB
* `rustc 1.41.1 (f3e1a954d 2020-02-24)`: 16GB
* `rustc 1.41.0 (5e1a79984 2020-01-27)`: 16GB
* `rustc 1.40.0 (73528e339 2019-12-16)`: 2.5GB
* `rustc 1.39.0 (4560ea788 2019-11-04)`: 2.5GB
* `rustc 1.38.0 (625451e37 2019-09-23)`: 6GB
* `rustc 1.35.0 (3c235d560 2019-05-20)`: 6GB
* `rustc 1.34.0 (91856ed52 2019-04-10)`: 6GB
* `rustc 1.32.0 (9fda7c223 2019-01-16)`: 8GB
* `rustc 1.30.0 (da5f414c2 2018-10-24)`: 5GB
Repository: ant-design
Issue: 增加表格筛选父级字段高亮
Labels: help wanted,Inactive,improvement

- [x] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.

### What problem does this feature solve?
增加筛选父级字段高亮
![QQ浏览器截图20200316151319](https://user-images.githubusercontent.com/3166799/76731803-34b29f00-6799-11ea-876a-6d5c299c75e9.png)


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: godot
Issue: GIProbe only works on its siblings and parent nodes, or docs didn't mention about it
Labels: topic:rendering,documentation

**Godot version:**
3.2, 3.2.1

**OS/device including version:**
Windows 10, GTX 1050Ti

**Issue description:**
![GIProbeIsFamilyGuy](https://user-images.githubusercontent.com/4294611/76733686-a80dde00-67a4-11ea-8eff-cb18d72d426e.png)

GIProbe's extents covers both objects. As you can see it works properly only on LeftBox, which it is a child of.

But it's not like RightBox is totally ignored by GIProbe. Below is when you hide GIProbe. Comparing to the above image, you can see RightBox was actually affected by it but not in a proper way.

![GIProbeIsGone png](https://user-images.githubusercontent.com/4294611/76733701-ad6b2880-67a4-11ea-95a8-d3af4ffd70b5.png)

I'm not sure this is intended behavior or not. If it is, I guess this is documentation issue as this "quirk"(?) is not mentioned there. ([tutorial](https://docs.godotengine.org/en/latest/tutorials/3d/gi_probes.html), [API page](https://docs.godotengine.org/en/latest/classes/class_giprobe.html))

**Steps to reproduce:**
**Minimal reproduction project:**
Above project: [GIProbeIsFamilyGuy.zip](https://github.com/godotengine/godot/files/4336806/GIProbeIsFamilyGuy.zip)
Repository: pytorch
Issue: Is it possible to run an object detection android app by using Pytorch Mobile?
Labels: triaged,module: android

Hi, I want to use Pytorch Mobile if it is possible to run the trained mobilenet-ssd model with my dataset on Android.

So I just want to know whether it is possible or not. Does it depend on app development because Pytorch mobile can support the model perfectly?
Repository: godot
Issue: Opening a file with write flag and calling get_as_text() just blocks the game
Labels: bug,topic:core,confirmed

**Godot version:**
3.2

**OS/device including version:**
Windows 10

**Issue description:**
The following minimal program blocks the game instead of throwing an error like would be expected:
```
func _ready():
	var file := File.new()
	file.open("test.txt", File.WRITE)
	var test = file.get_as_text()
	print(test)
	file.close()
```

with test.txt being the following text file:
```
banana
pear
```

Running this program just puts the program in an eternal loop... instead of crashing or at least throwing an error.
Repository: youtube-dl
Issue: Support Vue Mastery
Labels: site-support-request

## 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.03.08. 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.03.08**
- [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
- Single video: https://www.vuemastery.com/courses/intro-to-vue-js/vue-instance
- Single video: https://www.vuemastery.com/courses/advanced-components/the-introduction
- Single video: https://www.vuemastery.com/courses/advanced-components/evan-you-on-mounting-process

## Description
- They're using Vimeo as their video provider
  - https://www.vuemastery.com/courses/intro-to-vue-js/vue-instance => https://player.vimeo.com/video/258707456
  - https://www.vuemastery.com/courses/advanced-components/the-introduction => https://player.vimeo.com/video/263589430
  - https://www.vuemastery.com/courses/advanced-components/evan-you-on-mounting-process => https://player.vimeo.com/video/263589430

- You can see the whole playlist next to each video, but there's no page with only a listing of all course videos
Repository: opencv
Issue: unstable frame count
Labels: bug,category: videoio

Hi,
I am getting different frame count for the same video on different machines. 
**Code used to find frame count:**

```
import cv2
cap= cv2.VideoCapture("2653582916.mp4")
i=0
while(cap.isOpened()):
    ret, frame = cap.read()
    if ret == False:
        break
    i+=1
print(i)
```

**Output on machine 1**
72

**Output on machine 2**
80

**System Information** 
**Machine 1** 
OpenCV = 4.1.1.26
OS = Ubuntu 18.04.4 LTS
16 Core / 32GB RAM
**Machine 2** 
OpenCV = 4.1.1.26
OS = Ubuntu 18.04.3 LTS
8 Core /16GB RAM

frame count will vary depends on machines? please help me out.