sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: terminal
Issue: Untie `_UpdateCommandsForPalette`  and `_RefreshUIForSettingsReload`
Labels: Product-Terminal,Issue-Task,Area-CodeHealth,Area-SettingsUI

```c++
            // Make sure to _UpdateCommandsForPalette before
            // _RefreshUIForSettingsReload. _UpdateCommandsForPalette will make
            // sure the KeyChordText of Commands is updated, which needs to
```


Huh. Really. That's a weird dependency.

Please file a followup task to .. i dunno, make the settings model standalone or something? It seems like it still can't work without Page around :|

_Originally posted by @DHowett in https://github.com/microsoft/terminal/pull/9253#discussion_r581332862_
Repository: flutter
Issue: ConicalGradient not supported for web
Labels: engine,platform-web,e: web_html,P2,team-web,triaged-web

Gradient.radial with focal offset doesn't work on html rendering backend.
Repository: flutter
Issue: Allow changing web renderer at runtime
Labels: c: new feature,engine,a: size,platform-web,c: proposal,P3,team-web,triaged-web

## Use case

Some plugins (namely [crop](https://pub.dev/packages/crop)) only work with canvaskit. However, developers often would still like the flexibility to use the HTML renderer for their app. By allowing the web renderer to be switched, the app could use the HTML renderer for the majority of the experience and only switch when compatibility is needed.

## Proposal

Allow an option to forcefully change the web renderer programmatically at runtime.
Ideally canvaskit would only need to load it's dependencies when switched into.



Note: I'm not sure if this is at all feasible, but it would be good to know.
Repository: create-react-app
Issue: devDependencies are not put in the right place
Labels: needs triage,issue: bug report

React version: LTS

## Steps To Reproduce

Run `npx create-react-app my-app  --template typescript`
Check `package.json`

## The current behavior

Dependencies are shown like this:

```
  "dependencies": {
    "@testing-library/jest-dom": "^5.11.4",
    "@testing-library/react": "^11.1.0",
    "@testing-library/user-event": "^12.1.10",
    "@types/jest": "^26.0.15",
    "@types/node": "^12.0.0",
    "@types/react": "^17.0.0",
    "@types/react-dom": "^17.0.0",
    "react": "^17.0.1",
    "react-dom": "^17.0.1",
    "react-scripts": "4.0.3",
    "typescript": "^4.1.2",
    "web-vitals": "^1.0.1"
  }
```

## The expected behavior
```
  "dependencies": {
    "react": "^17.0.1",
    "react-dom": "^17.0.1",
    "react-scripts": "4.0.3",
    "web-vitals": "^1.0.1"
  },
  "devDependencies": {
    "@testing-library/jest-dom": "^5.11.4",
    "@testing-library/react": "^11.1.0",
    "@testing-library/user-event": "^12.1.10",
    "@types/jest": "^26.0.15",
    "@types/node": "^12.0.0",
    "@types/react": "^17.0.0",
    "@types/react-dom": "^17.0.0",
    "typescript": "^4.1.2"
  }
```
Repository: vscode
Issue: Add json schema for emmet snippets file
Labels: feature-request,emmet

### Feature request

Using a [emmet snippets file](https://code.visualstudio.com/docs/editor/emmet#_using-custom-emmet-snippets), there is currently no IntelliSense.

It would be great if we provided intellisense and error checking for this file using a [json schema](https://json-schema.org)

VS Code version: Code - OSS Dev 1.54.0 (Commit unknown, Date unknown)
OS version: Darwin x64 20.3.0

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz (16 x 2400)|
|GPU Status|2d_canvas: enabled<br>gpu_compositing: enabled<br>metal: disabled_off<br>multiple_raster_threads: enabled_on<br>oop_rasterization: enabled<br>opengl: enabled_on<br>protected_video_decode: unavailable_off<br>rasterization: enabled<br>skia_renderer: disabled_off_ok<br>video_decode: enabled<br>webgl: enabled<br>webgl2: enabled|
|Load (avg)|2, 2, 2|
|Memory (System)|32.00GB (0.02GB free)|
|Process Argv|. --no-sandbox|
|Screen Reader|no|
|VM|0%|
</details>
<!-- generated by issue reporter -->
Repository: pytorch
Issue: Refactor `torch.linalg.norm`
Labels: triaged,module: linear algebra

Once PR #51099 is merged, `torch.linalg.norm` should be refactored to accomplish the following:

* Use out variants of functions internally to avoid resize and copy. For autograd support, this probably requires conditionally calling out-variants if the out-variant of `torch.linalg.norm` was called, and call non-out otherwise
* Frobenius norm should resolve to `linalg_vector_norm` with ord=2

cc @jianyuh @nikitaved @pearu @mruberry @heitorschueroff @walterddr @IvanYashchuk
Repository: pytorch
Issue: Fix `torch.norm`'s backward to match forward for ord=+/-inf
Labels: module: autograd,triaged,module: linear algebra

This is much like issue #52648, but for `torch.norm`, not `torch.linalg.vector_norm`. However, `torch.norm` does not have the workaround that #51099 will add for `torch.linalg.vector_norm` and `torch.linalg.norm` (workaround is to call `at::abs()` in the forward function). Whether we decide to do this depends on when we can deprecate `torch.norm` .

cc @ezyang @albanD @zou3519 @gqchen @pearu @nikitaved @soulitzer @jianyuh @mruberry @heitorschueroff @walterddr @IvanYashchuk
Repository: pytorch
Issue: [JIT] Finish migrating torch._C._jit_ bindings to torch._C._jit
Labels: oncall: jit

As of #52158, there is now a `torch._C._jit` submodule for all the JIT bindings. That PR moved most of the bindings into this submodule, with a few exceptions:

1. `torch._C._jit_pass_XXX` were duplicated in both `torch._C` and `torch._C._jit`. We need to migrate all internal and external use cases before we can get rid of the old bindings.
2. `torch._C._jit_get_all_schemas` and `torch._C._jit_get_custom_class_schemas` need to be moved to `torch._C._jit`.
3. `_get_tracing_state` exists in both `torch._C` and `torch._C._jit` due to an external use case in torchvision.

This issue tracks fixing these follow ups.

cc: @albanD 


cc @gmagogsfm
Repository: pytorch
Issue: Creating torch tensor as a function of index value
Labels: triaged,module: numpy,function request

## 🚀 Feature
A similar functionality like numpy.fromfunction, to create torch tensors as a function of index values.



cc @mruberry @rgommers @heitorschueroff
Repository: flutter
Issue: Setting FLTAssetsPath in AppFrameworkInfo.plist does nothing
Labels: platform-ios,tool,a: assets,t: xcode,P3,team-ios,triaged-ios

`xcode_backend` script sets `assets_path` based on the value in this Info.plist, but does not use it.
https://github.com/flutter/flutter/blob/e94f36a7c5edc4389baa2baf86b87aa9280561b8/packages/flutter_tools/bin/xcode_backend.sh#L89-L96

Regressed with #50229 assemble work.

I don't see any recent user reports complaining about this, but I see older reports like https://github.com/flutter/flutter/issues/26654 and https://github.com/flutter/flutter/issues/29281
Repository: transformers
Issue: Knowledge Retrieval missing from BlenderBot Implementation
Labels: New model

# 🚀 Feature request

<!-- A clear and concise description of the feature proposal.
     Please provide a link to the paper and code in case they exist. -->

The original Blenderbot [paper](https://arxiv.org/pdf/2004.13637.pdf) considered three transformer based models (Retrieval, Generator and RetNRef), however from what I can see only the generator model is implemented within this repository: [transformers/src/transformers/models/blenderbot/modeling_blenderbot.py](https://github.com/huggingface/transformers/blame/master/src/transformers/models/blenderbot/modeling_blenderbot.py).

## Motivation

<!-- Please outline the motivation for the proposal. Is your feature request
     related to a problem? e.g., I'm always frustrated when [...]. If this is related
     to another GitHub issue, please link here too. -->

As part of my academic work I am generating topic bound conversations and wish to compare Blenderbot as well as make modifications to its knowledge retrieval component. It would be useful if someone could point me towards this (if it is already implemented) or inform me if this feature is planned to be added in the future. 

![image](https://user-images.githubusercontent.com/77219112/108953393-d8e5db00-76b6-11eb-8b26-4ee0b123755d.png)

## Contribution

<!-- Is there any way that you could help, e.g. by submitting a PR?
     Make sure to read the CONTRIBUTING.MD readme:
     https://github.com/huggingface/transformers/blob/master/CONTRIBUTING.md -->

Prior to making a contribution I want to confirm that feature is not implemented and there is no intention of implementing this in the near future.

Thanks,
Alex

@patrickvonplaten @patil-suraj
Repository: youtube-dl
Issue: Is it possible to download the translated subtitles inside the `Auto-translate` button?
Labels: question

<!--

######################################################################
  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:
- Look through the README (http://yt-dl.org/readme) and FAQ (http://yt-dl.org/faq) for similar questions
- Search the bugtracker for similar questions: http://yt-dl.org/search-issues
- Finally, put x into all relevant boxes (like this [x])
-->

- [x] I'm asking a question
- [x] I've looked through the README and FAQ for similar questions
- [x] I've searched the bugtracker for similar questions including closed ones


## Question

<!--
Ask your question in an arbitrary form. Please make sure it's worded well enough to be understood, see https://github.com/ytdl-org/youtube-dl#is-the-description-of-the-issue-itself-sufficient.
-->

I would like to ask if there exists the command to get the auto-translated subtitles. Take the Youtube link as example `https://www.youtube.com/watch?v=CiI8HQxcyTk`, when I use `--list-subs`, it shows that it have only 3 language subtitles:
```
youtube-dl --list-subs --skip-download https://www.youtube.com/watch?v=CiI8HQxcyTk
[youtube] CiI8HQxcyTk: Downloading webpage
Available subtitles for CiI8HQxcyTk:
Language formats
en       vtt, ttml, srv3, srv2, srv1
ja       vtt, ttml, srv3, srv2, srv1
ko       vtt, ttml, srv3, srv2, srv1
```
So it seems that I could only download this 3 kinds of subtitles, but what I really want is the language of `zh-Hans`, as the video shows in 'Auto translate'.
I try the following command, but it seems do nothing:
```
youtube-dl --write-auto-sub --sub-lang zh-Hans --skip-download "https://www.youtube.com/watch?v=CiI8HQxcyTk"
[youtube] CiI8HQxcyTk: Downloading webpage
```
I find this command works for other link:
```
youtube-dl --write-auto-sub --sub-lang zh-Hans --skip-download "https://www.youtube.com/watch?v=GWGbOjlJDkU"
[youtube] GWGbOjlJDkU: Downloading webpage
[info] Writing video subtitles to: Who are you-GWGbOjlJDkU.zh-Hans.vtt
```
But it still seems that the generated subtitle is not related to the subtitle shown in the webpage video.

Would you tell me that if it's possible to download the subtitles shown in the webpage video.
I would appreciate it if you could tell me how to get the auto-translated subtitles that I need.

Thanks,
Zhang
Repository: PowerToys
Issue: Emulate locale settings for specified app.
Labels: Idea-New PowerToy

## 📝 Provide a description of the new feature

### Backdrop

The most of OS except Windows has already used UTF-8 as preferred default encoding in several years.
But Windows still use locale encoding in the bulk of countries and regions. UTF-8 code page of Windows is still in beta.
Therefore, there are still so many applications that use locale encoding. It bothers the multilingual users.
For example, I'm a Chinese mainland user, my default code page is 936 (GB2312). But I use some Taiwanese software that use code page 950 (Big5). And sometimes I play the Japanese game that use code page 932 (Shift-JIS).

### Solution

In Windows itself, change the locale setting is not convenient, it need to restart computer.
Fortunately, there is an open source utility to solve the problem. It's [Locale-Emulator](https://github.com/xupefei/Locale-Emulator).
As mentioned in the backdrop, this is a general problem in Windows. So I think it will be awesome if solved by PowerToys.

### Design

Locale-Emulator made a good job, but I think it will be greater if we can storage and manage the locale emulating settings centralized in one place. Just like what the [Keyboard Manager](https://docs.microsoft.com/windows/powertoys/keyboard-manager) do.
Set the code page, region and time zone. Then set the path of executable or just executable name.
Once we start the application, PowerToys will hook it and emulate the locale.

---

If you'd like to see this feature implemented, add a 👍 reaction to this post.
Repository: vscode
Issue: When processing setBreakpoints response treat undefined source.path the same as undefined source
Labels: debug,under-discussion

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->
This is inspired by https://github.com/golang/vscode-go/issues/1212.
See this update for details: https://github.com/golang/vscode-go/issues/1212#issuecomment-784917942

It would be great if the following were treated the same:
`"body":{"breakpoints":[{"verified":true,"line":4}]}`
OR
`"body":{"breakpoints":[{"verified":true,"source":{},"line":4}]}`

As far as I can tell, upon receiving the response the breakpoint gets redisplayed here:
https://github.com/microsoft/vscode/blob/febd96f0e35811198f0ad05414bf6a6f861e1074/src/vs/workbench/contrib/debug/browser/breakpointsView.ts#L393-L399

I tried adding a check for undefined path here (`&& this.data.source.path`):
https://github.com/microsoft/vscode/blob/a699ffaee62010c4634d301da2bbdb7646b8d1da/src/vs/workbench/contrib/debug/common/debugModel.ts#L704
but that was not enough because somewhere along the way the default also lost the path and had `this._uri._fsPath` as `null`.
Repository: vscode
Issue: Onboard shared process to --prof-start
Labels: feature-request,shared-process

We have the startup profiler but only targets the main process, the renderer, and the extension host. Given that the shared process is becoming more critical we should also have (perf) insights about it
Repository: ant-design
Issue: Here's a bug about Enter the search value in this box, use the direction key to slide up and down to select, the scroll bar has no linkage
Labels: Inactive,⌨️ Accessibility

- [ ] 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?
Solve the control value and scroll bar linkage

### What does the proposed API look like?
When the keyboard direction key selects the control value, the scroll bar and the control value maintain linkage up and down


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->



https://user-images.githubusercontent.com/53903086/108981635-df308300-76c7-11eb-93a8-061bfd72a0db.mp4
Repository: pytorch
Issue: [OpInfo] Improvements for sparse ops tests
Labels: module: sparse,module: tests,triaged

Tracking issue. Following review comments from https://github.com/pytorch/pytorch/pull/49158 we have to improve sparse samples generation:

- https://github.com/pytorch/pytorch/pull/49158/files/4adbfca63663d48cfb0c1c5413b597ec66cc44aa#r581342456
- https://github.com/pytorch/pytorch/pull/49158/files/4adbfca63663d48cfb0c1c5413b597ec66cc44aa#r581348901
- https://github.com/pytorch/pytorch/pull/49158/files/4adbfca63663d48cfb0c1c5413b597ec66cc44aa#r581350421
- https://github.com/pytorch/pytorch/pull/49158/files/4adbfca63663d48cfb0c1c5413b597ec66cc44aa#r581351292

> In the future should we consider updating the sparse matrix ctor to be make_sparse_tensor() for consistency with make_tensor(), and look at giving them similar interfaces and logic

> we should also add tests to test_testing to ensure that random_sparse_matrix() 
(and make_tensor()) work as expected

> **kwargs in random_sparse_matrix seems odd, and it makes documenting its supported kwargs tricky.

cc @nikitaved @pearu @cpuhrsch @IvanYashchuk @mruberry @VitalyFedyunin @walterddr @aocsa @kshitij12345
Repository: transformers
Issue: Load pretrained model except the head layer for a specific downstream task
Labels: Feature request

# 🚀 Feature request

It would be nice to have a flag for `from_pretrained` method that indicates whether to load last layer or not. This feature is needed for transfer learning.

## Motivation

I have trained a model with a specific dataset for a downstream task. Now, I need to train another model that needs to be trained on a similar dataset with different labels. I know that previous model have learned the features from the previous dataset and the new model doesn't need to start from scratch. When I try to load the first model with `from_pretrained` method, it returns size mismatch error due to last layer that has different shape for different number of labels. If there is a flag to load/not to load the last layer, I can initialize last layer randomly and go on my training with transfer learning.
Repository: pytorch
Issue: torch.jit.script is swallowing a rfloordiv warning
Labels: oncall: jit

## 🐛 Bug

Wrapping a rfloordiv operation with `torch.jit.script` somehow swallows the warning:

## To Reproduce
```
# Run with python -Walways
import torch

def wrap_div(a):
    return 5 // a

script_wrap_div = torch.jit.script(wrap_div)

a = torch.tensor(5, dtype=int)

print('This does not warn')
script_wrap_div(a)

print('This warns')
wrap_div(a)
```

will print
```
$ python -Walways /tmp/stam.py
This does not warn
This warns
pytorch/torch/tensor.py:563: UserWarning: floor_divide is deprecated, and will be removed in a future version of pytorch. It currently rounds toward 0 (like the 'trunc' function NOT 'floor'). This results in incorrect rounding for negative values.
To keep the current behavior, use torch.div(a, b, rounding_mode='trunc'), or for actual floor division, use torch.div(a, b, rounding_mode='floor'). (Triggered internally at  ../aten/src/ATen/native/BinaryOps.cpp:335.)
  return torch.floor_divide(other, self)
```
## Expected behavior
Between the `This does not warn` and the `This warns` lines, I expected to see the warning

## Environment

PyTorch version: 1.9.0a0+8b0ca1a
Is debug build: True
CUDA used to build PyTorch: 11.2
ROCM used to build PyTorch: N/A

OS: Ubuntu 20.04.2 LTS (x86_64)
GCC version: (crosstool-NG 1.24.0.133_b0863d8_dirty) 9.3.0
Clang version: 11.0.1 (https://github.com/conda-forge/clangdev-feedstock 9fbb64b62ff49e9d206a06e62453b27557b3ed73)
CMake version: version 3.19.4

Python version: 3.7 (64-bit runtime)
Is CUDA available: True
CUDA runtime version: 11.2.142
GPU models and configuration: GPU 0: GeForce GTX 1660 SUPER
Nvidia driver version: 460.32.03
cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.5
HIP runtime version: N/A
MIOpen runtime version: N/A

Versions of relevant libraries:
[pip] numpy==1.20.0
[pip] pytorch-sphinx-theme==0.0.24
[pip] torch==1.9.0a0+8b0ca1a
[conda] cudatoolkit               11.2.0               h73cb219_7    conda-forge
[conda] magma-cuda112             2.5.2                         1    pytorch
[conda] mkl                       2020.4             h726a3e6_304    conda-forge
[conda] mkl-include               2020.4             h726a3e6_304    conda-forge
[conda] numpy                     1.20.0           py37haa41c4c_0    conda-forge
[conda] pytorch-sphinx-theme      0.0.24                    dev_0    <develop>
[conda] torch                     1.9.0a0+8b0ca1a           dev_0    <develop>

## Additional context

Discovered when working on PR gh-52387, part of issue gh-50006

cc @gmagogsfm
Repository: rust
Issue: str::splitn(N, ' ') is slower than it ought to be
Labels: I-slow,C-enhancement,T-libs,A-str

I wrote a small benchmark and was surprised at how much slower it was using str::splitn rather than using bytes directly. 

splitn
Time elapsed in parse_response() is: 2.290853462s

as bytes
Time elapsed in parse_response() is: 661.947666ms

Is it possible to do something similar to https://github.com/rust-lang/rust/issues/46693 where if splitting on a single byte.

https://users.rust-lang.org/t/performance-comparison/56041/2

```
use std::time::{Duration, Instant};
fn main() {
    let response = String::from("HTTP/1.1 418 I'm a teapot\r\n");
    let mut res: (&str, &str, &str) = ("", "", "");
    let start = Instant::now();
    for _ in 0..100_000_000 {
        res = match parse_http(&response) {
            Ok(data) => data,
            Err(_) => {
                continue;
            }
        };
    }
    let duration = start.elapsed();

    println!("version:{}\ncode:{}\ndescription:{}\n", res.0, res.1, res.2);
    println!("Time elapsed in parse_response() is: {:?}", duration);
    
    let start2 = Instant::now();
    for _ in 0..100_000_000 {
        res = match parse_http2(&response) {
            Ok(data) => data,
            Err(_) => {
                continue;
            }
        };
    }
    let duration2 = start2.elapsed();

    println!("version:{}\ncode:{}\ndescription:{}\n", res.0, res.1, res.2);
    println!("Time elapsed in parse_response() is: {:?}", duration2);
}

fn parse_http(s: &str) -> Result<(&str, &str, &str), &str> {
    let mut parts = s.splitn(3, ' ');
    let version = parts.next().ok_or("No Version")?;
    let code = parts.next().ok_or("No status code")?;
    let description = parts.next().ok_or("No description")?;
    Ok((version, code, description))
}

fn parse_http2(s: &str) -> Result<(&str, &str, &str), &str> {
    let mut bytes = s.as_bytes().iter();
    let i = bytes.position(|b| *b == b' ').ok_or("No Version")?;
    let j = bytes.position(|b| *b == b' ').ok_or("No status code")? + i + 1;

    let version = &s[..i];
    let code = &s[(i + 1)..j];
    let description = &s[(j + 1)..];
    Ok((version, code, description))
}
```
Repository: opencv
Issue: [Feature Request] matchTemplate mask on larger image
Labels: feature,category: imgproc

Additional parameter for matchTemplate that checks for an image mask.  I can think of two cases where this would be useful: matching templates that are cut off by the edge of the image, and matching templates that are occluded by other objects.