sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: Leaky cmake cuda compile options
Labels: module: build,module: cpp-extensions,module: cpp,triaged

### 🐛 Describe the bug

If I want to just compile my library and use find_package(Torch) to just include pytorch headers it leaks the cuda compile options, I have to manually reset CMAKE_CUDA_FLAGS to empty.

I don't understand the abstract reason of ["we can't rely on" using the CUDA_ARCHITECTURES](https://github.com/pytorch/pytorch/blob/master/cmake/public/cuda.cmake#L446) method of setting target compile properties so it doesn't mess with someone else's target device compilation.

If I comment out the [lines that add arch gencodes](https://github.com/pytorch/pytorch/blob/master/cmake/public/cuda.cmake#L444), I can compile my own code fine without fully resetting CMAKE_CUDA_FLAGS (I can specify my own target architectures and compile half math functions without issues from unsupported archs).

Cmake for my plugin below, I use the same cuda kernel source code for both pytorch and tensorrt plugins (obvs with a different interface). So I have c10::Half overloads in the cuda source which is why I still need torch when compiling for trt target. I could probably use some ifdefs to alias c10::Half or something during trt compilation and not include <c10/util/Half.h> but ideally you just wouldn't have leaky cmake configurations.

```cmake
cmake_minimum_required(VERSION 3.21.3 FATAL_ERROR)

find_package(CUDAToolkit REQUIRED COMPONENTS cudart)
set(Torch_DIR "/opt/conda/lib/python3.8/site-packages/torch/share/cmake/Torch")
find_package(Torch REQUIRED)

set(CMAKE_CUDA_FLAGS "")
set(CMAKE_CUDA_ARCHITECTURES ON)

add_library(yolo-trt-plugin SHARED yolo_plugin.cpp yolo_plugin.cu)
target_compile_features(yolo-trt-plugin PUBLIC cxx_std_17)

set_target_properties(yolo-trt-plugin
    PROPERTIES
    CUDA_SEPARABLE_COMPILATION ON
    CUDA_ARCHITECTURES 86)

target_link_libraries(yolo-trt-plugin PRIVATE cudart)

target_include_directories(
    yolo-trt-plugin
    PRIVATE
    ${CUDAToolkit_INCLUDE_DIRS}
    ${TORCH_INCLUDE_DIRS}
)

```


### Versions


Using NGC Container nvcr.io/nvidia/pytorch:21.11-py3 which has pytorch 1.11.0a0+b6df043

cc @malfet @seemethere @zou3519 @jbschlosser
Repository: create-react-app
Issue: source-map-explorer cannot generate report even with --only-mapped param
Labels: needs triage,issue: bug report

I tried to build a fresh `create-react-app` project, then wanted to generate reports for the built bundles with `source-map-explorer`. At first I got this error described in https://github.com/facebook/create-react-app/issues/8430. Passed in `--only-mapped` param and no luck either.

### Environment
```
current version of create-react-app: 5.0.0
  running from /home/mohsen/.npm/_npx/2484/lib/node_modules/create-react-app

  System:
    OS: Linux 4.4 Ubuntu 20.04.3 LTS (Focal Fossa)
    CPU: (8) x64 Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz
  Binaries:
    Node: 14.18.3 - ~/.nvm/versions/node/v14.18.3/bin/node
    Yarn: 1.22.11 - /mnt/c/Users/Mohsen/AppData/Roaming/npm/yarn
    npm: 6.14.15 - ~/.nvm/versions/node/v14.18.3/bin/npm
  Browsers:
    Chrome: Not Found
    Firefox: Not Found
  npmPackages:
    react: ^17.0.2 => 17.0.2
    react-dom: ^17.0.2 => 17.0.2
    react-scripts: 5.0.0 => 5.0.0
  npmGlobalPackages:
    create-react-app: Not Found
```

### Steps to reproduce

1. Create the project using `npx create-react-app test`
2. Try to build the project
   ```
   $ npm run build
   
   > test@0.1.0 build /mnt/c/wwwroot/test
   > react-scripts build
   
   Creating an optimized production build...
   Compiled successfully.
   
   File sizes after gzip:
   
     43.7 kB  build/static/js/main.c8f1f991.js
     1.77 kB  build/static/js/787.5cebbde9.chunk.js
     541 B    build/static/css/main.073c9b0a.css
   
   The project was built assuming it is hosted at /.
   You can control this with the homepage field in your package.json.
   
   The build folder is ready to be deployed.
   You may serve it with a static server:
   
     npm install -g serve
     serve -s build
   
   Find out more about deployment here:
   
     https://cra.link/deployment
   ```
3. Add this like to `package.json` -> scripts - Be sure to install `source-map-explorer` first:
   ```
   "analyze": "source-map-explorer 'build/static/js/*.js' --only-mapped" 
   ```
4. Run analyze script:
   ```
   $ npm run analyze

   > test@0.1.0 analyze /mnt/c/wwwroot/test
   > source-map-explorer 'build/static/js/*.js' --only-mapped
   ```

### Expected behavior

`npm run analyze` should show open browser with the generated report or throw an error in the console.

### Actual behavior

Browser is not opened and nothing is logged in console.
Repository: vscode
Issue: Proposal: pin specific thread(s) when debugging
Labels: feature-request,debug

<!-- ⚠️⚠️ 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. -->

# Background

Multithreading is getting trend these days. Each debug session creates a bunch of independent PCs walking around the code. However, VSCode seems to lack the ability to focus on just a few threads rather than all threads in a process.

# Pains

Each time I want to perform a step-through to a PC, I have to find that thread from Debug->Call Stack->specific thread that marked "Paused on step". And then I hover the curser on the tiny "step-in" icon and carefully press the button. When I settle down my mouse, the stack frame suddenly shows up at the other location! I have to carefully redo that nonsense. Sometimes, the stack frame stays relatively stable, but after I get used to the click-click muscle inertia, the stack relocates and fools me clicking the wrong frame!

# Suggestion

Please make those frames stable or reserve shortcuts for frame-debugging. It would be a plus by supporting users to pin one or more interested frames. Those shortcuts should only affect those pinned frames. The pinned frames should be sorted in pin-time order.
Repository: flutter
Issue: [iOS] Image quality rendered from `image.asset()`is not similar to the one rendered using native `UIImageView`
Labels: platform-ios,engine,a: images,has reproducible steps,P2,found in release: 2.8,found in release: 2.9,team-ios,triaged-ios

[✓] Flutter (Channel unknown, 2.5.1, on macOS 12.1 21C52 darwin-arm, locale zh-Hans-CN)
    • Flutter version 2.5.1 at /Users/yangxin/Library/Flutter/2.5.1/flutter
    • Upstream repository unknown
    • Framework revision ffb2ecea52 (4 months ago), 2021-09-17 15:26:33 -0400
    • Engine revision b3af521a05
    • Dart version 2.14.2
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/yangxin/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 13.2.1, Build version 13C100
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).

[✓] VS Code (version 1.63.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.32.0

[✓] Connected device (3 available)


On the left is the use of Image.asset on the flutter page.
On the right is the use of UIImageView on the native page.
<img width="1328" alt="wecom-temp-3f5f1bb417b7e919acc67f7e75185825" src="https://user-images.githubusercontent.com/4413224/149739629-b89b8715-f410-4d02-87c2-050194fd9127.png">
There are obvious differences between the two pictures, and the colors on the right look brighter

Original Image
[image.zip](https://github.com/flutter/flutter/files/7880546/image.zip)


native image sdk:
SDWebImage is using version 5.9.3.
libwebp is using version 1.2.1.
Repository: PowerToys
Issue: Add square root symbol to PowerToys Run
Labels: Idea-Enhancement,Priority-3,Run-Plugin

### Description of the new feature / enhancement

When typing
**=√25** or **√25**
there should be the option to copy the result, aka 25.

### Scenario when this would be used?

Every time you want to calculate the square root of something.

### Supporting information

One could remap a key to use root symbol (√), then proceed to use it in PowerToys Run. Really helpful for quick maths.
Repository: material-ui
Issue: [FormLabel] Asterisks placement start/end
Labels: new feature,on hold,waiting for 👍,component: text field

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Summary 💡

InputLabel was the asterisk that should be able to be moving to start or end by some kind of property like asteriskPosition: 'start' | 'end'

### Examples 🌈

![image](https://user-images.githubusercontent.com/8037810/149743987-113c53fc-6bff-4c5e-a347-78d18e4dd6f3.png)
![image](https://user-images.githubusercontent.com/8037810/149740577-c84a03dd-e648-45c7-84f5-44c02d0e4cf3.png)


### Motivation 🔦

Design practices prefer first to show symbol which requires to show the user as soon as possible that this field is required.

### Workaround but not perfect because of first whitespace
https://codesandbox.io/s/customizedinputs-material-demo-forked-ihe7j?file=/demo.js
Repository: TypeScript
Issue: String completions for `keyof T` not shown when an object literal `T` was provided in a prior argument
Labels: Suggestion,Help Wanted,Domain: Completion Lists,Experience Enhancement

# Bug Report

<!--
  Please fill in each section completely. Thank you!
-->

### 🔎 Search Terms
Incorrect suggestions
<!--
  What search terms did you use when trying to find an existing bug report?
  List them here so people in the future can find this one more easily.
-->

### 🕗 Version & Regression Information

This bug occurs in v4.5.4 and nightly version. (Possibly every version)

### ⏯ Playground Link

<!--
  A link to a TypeScript Playground "Share" link which shows this behavior

  The TypeScript Workbench can be used for more complex setups, try
  https://www.typescriptlang.org/dev/bug-workbench/

  As a last resort, you can link to a repo, but these will be slower for us to investigate.
-->
[Playground link with relevant code](https://www.typescriptlang.org/play?ts=4.5.4#code/C4TwDgpgBAshwAsD2ATAzlAvFA3gWACgpioBtAawhAC4o1gAnASwDsBzAXVoAowBDBnwC2tfERIS+YMABsItAORTZEBYQkBfAJRYAfFD4sQhDYUIAzAK4sAxsCZIWUYBHoAxazYA8MKBAAeLizosPDI6LrcSGD2jmii6iRCYajxsAA0icSUIGk5SOawJlq0AG5ITCi4pgSELu6e3GISyYipCeISxEIgcG0oPPyCQjqY+s1dkzZxSHIAdDJIbLwCwnPKclpZXTWamZ1QOWnFQA)

### 💻 Code

<!-- Please post the relevant code sample here as well-->
```ts
type Methods = {
    [key: string]: (param: {
        apple: 'apple'
    }) => any
}

function testFunc<M extends Methods>(options: {
    methods: M,
    keys: keyof M
}): void {}

testFunc({
    methods: {
        myMethod: (param) => {
            console.log(param.apple)
        }
    },
    keys: 
})
```

### 🙁 Actual behavior

<!-- What happened, and why it was wrong -->
When hovering the word "keys" in line 18, it shows its type is "myMethod". And when i start typing for its value, "myMethod" is not being suggested.

### 🙂 Expected behavior

<!-- What you expected to happen instead, and why -->
"myMethod" should be suggested when typing the value in line 18.
Repository: excalidraw
Issue: Opening local file with PWA causes the browser to crash
Labels: bug,blocked-upstream

MacOS. Tested on Chrome / Edge. Both crashed after clicking Allow in the following dialog.

![image](https://user-images.githubusercontent.com/12196273/150778125-b6ea9bc1-3746-465f-a57b-fd9c6e3d7412.png)

I could open local file with PWA before. Not sure what has changed, excalidraw or chromium.

Drag & Drop works though.
Repository: svelte
Issue: Apply transition modifier local conditionally
Labels: feature request,transition/animation

### Describe the problem

Is there a way to make transitions local conditionally?

### Describe the proposed solution

Could become a transition param:

```svelte
<h1 transition:fade={{ local: cond }}>Hello world!</h1>
```

### Alternatives considered

Maybe this?

```svelte
<h1 transition:fade|local:cond>Hello world!</h1>
```

Though that seems bad as people might then expect this to work:

```svelte
<h1 transition:fade|local={cond}>Hello world!</h1>
```

which conflicts with current param passing mechanism.

[REPL](https://svelte.dev/repl/e292ff8935dc4f5d97e5373f9f611c1b?version=3.46.2) for testing if any of these already work.

### Importance

nice to have
Repository: vscode
Issue: File nesting: collapsing with nested file selected selects parent file's next sibling
Labels: bug,tree-widget

Issue Type: <b>Bug</b>

Testing 6612ae0f8b5d9c0d86518ebbd153c724a7cbcf73 which landed in today's Insiders.

1. Set `"explorer.experimental.fileNesting.enabled": true`
2. Open VS Code's own source
3. Expand src\tsconfig.json
4. Select first nested file (src\tsconfig.base.json)
5. Collapse nest
6. src\tsec.exemptions.json gets highlighted
7. Expand src\tsconfig.json again and observe two files are now showing highlighted

![junk](https://user-images.githubusercontent.com/6726799/149763748-cce57a22-4316-4b55-805b-a2d77e0037a2.gif)

/assign @JacksonKearl 

VS Code version: Code - Insiders 1.64.0-insider (6612ae0f8b5d9c0d86518ebbd153c724a7cbcf73, 2022-01-17T05:16:09.172Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No


<!-- generated by issue reporter -->
Repository: pytorch
Issue: Allow to shutdown persistent workers
Labels: triaged,module: multithreading

### 🚀 The feature, motivation and pitch

Using persistent workers speeds up my training pipeline by a significant margin, but now I would like to be able to implement hard negative mining every N epochs and thus would like to change the data batches from my dataset.
For this to be doable, I would need to forcefully shutdown the persistent worker processes each time I perform hard negative mining, so that the next epoch will create new workers and use the new negative samples from my data.

### Alternatives

Currently I disabled persistent workers and that works, but it is about 1.4 times slower, so I would love to be able to use persistent workers.

### Additional context

_No response_
Repository: vscode
Issue: Workspace Trust - Workspace trust service code is duplicated
Labels: debt,perf-bloat,workspace-trust

There is 2 locations with the same code:

https://github.com/microsoft/vscode/blob/edfe5d03bb6a33e3ab941fade9eb4f3cdeae1815/src/vs/workbench/browser/web.main.ts#L242-L251

and

https://github.com/microsoft/vscode/blob/d4bdd6dbd8796d1b86427f065c5f21bbca52b094/src/vs/workbench/electron-sandbox/desktop.main.ts#L281-L290

Besides this being duplicated, it also violates our rule to prefer `registerSingleton` over explicitly listing the services in the main file. 

Here is my suggestion:
* use `registerSingleton` for all those services
* pass the service into the configuration service [here](https://github.com/microsoft/vscode/blob/ea6f9fb6f4aa2781be0a40e64358aff558900ab4/src/vs/workbench/browser/workbench.ts#L214)
* do the handling of what needs to be done in the configuration service so that the code is reused

//cc @sandy081
Repository: react
Issue: [DevTools Bug]: Incorrect source location after hot reload & editing props
Labels: Type: Bug,Status: Unconfirmed,Component: Developer Tools

### Website or app

https://gist.github.com/kiootic/54986cd163b52cbbcd5d8283eb5ed06f

### Repro steps

1. Create a new react app using `create-react-app`
2. Replace the code in `App.js` with `App.jsx` in the gist
3. Start the app and inspect the 3 `p` elements using dev tool
4. Should observe correct line numbers (`App.js:4`, `App.js:5`, `App.js:6`)
5. In code editor, change the first `p` element to be multiline, like `App-update.jsx` in gist
6. After hot reload, should observe updated line numbers (`App.js:4`, `App.js:7`, `App.js:8`)
7. Using dev tool, change the first `p` element's `children` prop to be something else.
8. Should observe incorrect line numbers (reverted to `App.js:4`, `App.js:5`, `App.js:6`)
9. Repeat step 7 again, and should observe correct line numbers again.
10. The line numbers are observed to be alternating between correct & incorrect state when repeating the edit step.

### How often does this bug happen?

Every time

### DevTools package (automated)

_No response_

### DevTools version (automated)

_No response_

### Error message (automated)

_No response_

### Error call stack (automated)

_No response_

### Error component stack (automated)

_No response_

### GitHub query string (automated)

_No response_
Repository: pytorch
Issue: Direct Implementation of K-Nearest neighbor (KNN) in pytorch
Labels: feature,module: nn,triaged,needs design

### 🚀 The feature, motivation and pitch

As we all know how important KNN algorithms are in ML research, it would be great to have a direct implementation of the same in PyTorch. I know that though KNN can be coded every time without using many lines of code, I believe that a direct implementation would be time-saving and efficient.

If the devs want then I can create a PR for this. 

### Alternatives

_No response_

### Additional context

_No response_

cc @albanD @mruberry @jbschlosser @walterddr @kshitij12345
Repository: storybook
Issue: Storybook theming does not allow for changing top level headers in sidebar
Labels: bug,good first issue,help wanted,theming,sev:S4

**Describe the bug**
Using the documentation here:
https://storybook.js.org/docs/react/configure/theming
I haven't found a way to change the coloring of the top level headers in the side menu. They are stuck with the color of #999, and there doesn't appear to be an easily targeted class to override it, css-ulso1l.

**To Reproduce**

1. Create a custom theme 
```
import { create } from '@storybook/theming';
export default create({
  base: 'light',
  colorPrimary: '#ff0000',
  colorSecondary: '#cc0000',

  // UI
  appBg: '#555',
  appContentBg: '#eee',
  appBorderColor: 'grey',
  appBorderRadius: 4,
  textColor: '#000',
  textInverseColor: '#fff',
  textMutedColor: '#444',

  // Typography
  fontBase: '"Open Sans", sans-serif',
  fontCode: 'monospace',

  // Toolbar default and active colors
  barTextColor: 'silver',
  barSelectedColor: '#222',
  barBg: 'grey',

  // Form colors
  inputBg: 'grey',
  inputBorder: 'silver',
  inputTextColor: 'white',
  inputBorderRadius: 4
});
```

2. View Sidebar contents with a Grouped set of stories. In the image below, the Form Components text is the text I'm trying to target.
<img width="216" alt="Screen Shot 2022-01-17 at 11 42 33 AM" src="https://user-images.githubusercontent.com/9203187/149809538-f27b161d-12d9-4b07-bdd1-1aba017e9ce9.png">
Repository: youtube-dl
Issue: Request for screenrec website. 
Labels: site-support-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 2021.12.17. 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 **2021.12.17**
- [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://screenrec.com/share/fNJv3FY2Rt

## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

It would be so helpful if the website "screenrec.com" gets added to youtube-dl supported website list.
Repository: vscode
Issue: [linked editing] stops when tag name gets empty and end tag is on same line
Labels: bug,editor-synced-region

Works well, but if the attribute is present and remove the first letter of the tag, it stops working
Works badly when editing the closing tag
![bug](https://user-images.githubusercontent.com/12514333/149814239-8e9c1439-a565-4495-ba45-62932da232df.gif)