sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: PowerToys
Issue: [Color Picker] Freeze screen when picker is activated
Labels: Idea-Enhancement,Product-Color Picker

### Description of the new feature / enhancement

It would be nice to freeze the screen (like a screenshot) when I open the color picker, to be able to get the color values from ex. buttons before the hover state kicks in.

### Scenario when this would be used?

If an element has a hover state, it would be easier to get the color of the element before the hover state.

### Supporting information

https://user-images.githubusercontent.com/1066486/123767895-232ad300-d8c8-11eb-9e8e-02154054d49f.mp4

I want to get the background color of a list item when it is not hovered.

-----

https://user-images.githubusercontent.com/1066486/123768714-dbf11200-d8c8-11eb-9ac8-e03b6514f816.mp4

I want to get the dark green color before the button is hovered.
Repository: pytorch
Issue: The usage of get_stoi() in 0.10.0 and stoi[] in previous versions
Labels: needs reproduction,triaged

## ❓ Questions and Help
I meet a problem when using get_stoi() in a word-embedding preprocessing task. My codes are:
`vocab = Vocab(counter)`
`pad = [vocab.get_stoi[word] for word in st]) for st in text]`
I also tried `get_stoi(word)` and `get_stoi()[word]`, but these don't work either.
How can I fix it? Thank you very much!
Repository: pytorch
Issue: [jit] About traced script module using in c++
Labels: oncall: jit

How can I inpput multiple inputs? currently I built a dict for these inputs, and struct like this:
`map<string, vector<vector<torch::Tensor>>> smalldata;`
and got error:
```
(torch) yang.zeng@feature-All-Series:~/LaneGCN-master/example-app/build$ make
Scanning dependencies of target example-app
[ 50%] Building CXX object CMakeFiles/example-app.dir/example-app.cpp.o
/home/yang.zeng/LaneGCN-master/example-app/example-app.cpp: In function ‘int main(int, const char**)’:
/home/yang.zeng/LaneGCN-master/example-app/example-app.cpp:226:44: error: no matching function for call to ‘torch::jit::Module::forward(std::map<std::basic_string<char>, std::vector<std::vector<at::Tensor> > >&)’
     auto outputs = module.forward(smalldata).toTuple();
                                            ^
In file included from /home/yang.zeng/libtorch/include/torch/csrc/jit/serialization/import.h:5:0,
                 from /home/yang.zeng/libtorch/include/torch/script.h:8,
                 from /home/yang.zeng/LaneGCN-master/example-app/example-app.cpp:1:
/home/yang.zeng/libtorch/include/torch/csrc/jit/api/module.h:113:10: note: candidate: c10::IValue torch::jit::Module::forward(std::vector<c10::IValue>)
   IValue forward(std::vector<IValue> inputs) {
          ^~~~~~~
/home/yang.zeng/libtorch/include/torch/csrc/jit/api/module.h:113:10: note:   no known conversion for argument 1 from ‘std::map<std::basic_string<char>, std::vector<std::vector<at::Tensor> > >’ to ‘std::vector<c10::IValue>’
CMakeFiles/example-app.dir/build.make:62: recipe for target 'CMakeFiles/example-app.dir/example-app.cpp.o' failed
make[2]: *** [CMakeFiles/example-app.dir/example-app.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/example-app.dir/all' failed
make[1]: *** [CMakeFiles/example-app.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
```
How can I input this dictionary?
Repository: pytorch
Issue: Functional multi_head_attention_forward softmax get nan for fp16 mode
Labels: module: nn,triaged

## 🐛 Bug

In torch.nn.functional, the function multi_head_attention_forward has problem in fp16 mode. in line https://github.com/pytorch/pytorch/blob/5b118a7f233a4682e338c9ef14a5ec55183b9a65/torch/nn/functional.py#L4826 , the product of q and k may have inf in the output and it will lead to nan in the following softmax function. Hope this operation can be more rubost in the fp16 mode.


cc @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki
Repository: terminal
Issue: `WriteCharsLegacy` performance issues caused by `NotifyConsoleUpdateSimpleEvent`
Labels: Product-Conhost,Help Wanted,Area-Performance,Issue-Task

# Description of the new feature/enhancement

I know this is a issue a long time ago, but haven't got the chance to talk about it.

This is typical WPR trace of `OpenConsole` with output-heavy programs. 

![image](https://user-images.githubusercontent.com/4710575/123777797-21323580-d903-11eb-93d3-3b46acc43db4.png)

<!-- 
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.
-->

Perhaps throttling the event?
Repository: flutter
Issue: [in_app_purchase]  ` PurchaseStatus.restored` received several times when restoring the items, duplicate purchase error when purchase is completed 
Labels: platform-ios,p: in_app_purchase,package,has reproducible steps,P2,found in release: 2.2,found in release: 2.3,team-ios,triaged-ios

Hi,

I am getting items to ```restore``` and verifying them on server. After verification I am calling ```completePurchase``` but after app refresh still keep getting same items on ```restore``` with ```pendingCompletePurchase = true```. This happens only on iOS.

More then this: I have purchased new subscription, verified and completed it. However when I am refreshing an app new subscription is ivoked in ```restored``` with ```pendingCompletePurchase = true```.

after trying to buy it again i see this error:
```
[VERBOSE-2:ui_dart_state.cc(199)] Unhandled Exception: PlatformException(storekit_duplicate_product_object, There is a pending transaction for the same product identifier. Please either wait for it to be finished or finish it manually using `completePurchase` to avoid edge cases., {applicationUsername: null, requestData: null, quantity: 1, productIdentifier: one_month_subscription, simulatesAskToBuyInSandbox: false}, null)
```
which indicated that this transaction is not completed :( But when validating purcase receipe on server side I am able to get this purchase and it is autorenwed.

This is very frustruating because I cannot complete purchase process on iOS because i am not sure if it is a bug of the library or purchase is not completed and will be canceled within 3 days.

Hers is short video of restore event handling - I did 2 app resstarts and completing all purcases but after both restarts they still there with ```pendingCompletePurchase = true```

https://user-images.githubusercontent.com/3918999/123795137-597a4980-d8ec-11eb-9e5a-f5b3665e2858.mov


STEPS TO REPRODUCE:
1) Follow same steps like described here: https://github.com/flutter/flutter/issues/85448
2) Leave block active inside listen to method
```
if (purchaseDetails.pendingCompletePurchase) {
        await _inAppPurchase.completePurchase(purchaseDetails);
      }
```
3) Refresh an app and try to restore subscriptions - You will see that even though they were completed they still has ```pendingCompletePurchase = true```. You can try it any amount of times the result would be the same!

```
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.2.2, on macOS 11.4 20F71 darwin-x64, locale en-CH)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.2)
[✓] VS Code (version 1.57.1)
[✓] Connected device (3 available)

• No issues found!
```
Repository: rust
Issue: ABI: Ownership transfer through pointer involves unnecessary copies
Labels: I-slow,C-enhancement

Let's say we have a reasonably large struct that doesn't get passed through registers:
```rust
pub struct Color {
    red: f64,
    green: f64,
    blue: f64,
    alpha: f64,
}
```
Then we have some method on it that requires ownership transfer:
```rust
impl Color {
    #[inline(never)]
    fn to_rgba8(self) -> [u8; 4] {
        [
            (255.0 * self.red) as u8,
            (255.0 * self.green) as u8,
            (255.0 * self.blue) as u8,
            (255.0 * self.alpha) as u8,
        ]
    }
}
```
And then we have some sort of function that just passes ownership through to that method:
```rust
pub fn convert(color: Color) -> [u8; 4] {
    color.to_rgba8()
}
```
In C you would expect a "copy" of the struct to get passed into the function, as we pass the struct by value. And that's exactly what Rust does here as well. It copies the entire struct onto the stack and then passes a pointer to the copy into the function:
```asm
example::convert:
        sub     rsp, 40
        movups  xmm0, xmmword ptr [rdi]
        movups  xmm1, xmmword ptr [rdi + 16]
        movaps  xmmword ptr [rsp + 16], xmm1
        movaps  xmmword ptr [rsp], xmm0
        mov     rdi, rsp
        call    example::Color::to_rgba8
        add     rsp, 40
        ret
```
However Rust has a unique notion of ownership, where we know that `color` can't be used anymore after calling the method. So no actual copy should ever be necessary for a non-`Copy` type. Though technically even on a `Copy` type no such additional copy should be necessary if it's the last use.

https://rust.godbolt.org/z/135z7aK3K
Repository: pytorch
Issue: Incorrect dtype cast for binary ops w/ mixed ComplexFloat + Double operands
Labels: triaged,module: complex,module: type promotion

## 🐛 Bug

The dtype of the resulting tensor of binary operations with mixed ComplexFloat & Double operands doesn't match the documentation: https://pytorch.org/docs/stable/tensor_attributes.html#type-promotion-doc
I believe the bug is in the code (rather than in the docs) as my fuzzing program only shows 2 exceptions to the documented rules.

## To Reproduce

```python
import torch
'''
WRONG: Double, ComplexFloat [z] -> ComplexDouble (expected: ComplexFloat)
WRONG: ComplexFloat [z], Double -> ComplexDouble (expected: ComplexFloat)
'''

# x 1-dim
x = torch.ones(1, dtype=torch.double)
print(x.div(torch.ones(1, dtype=torch.complex64)).dtype)
print(x.div(torch.tensor(1, dtype=torch.complex64)).dtype) # wrong

# x zero-dim
x = torch.tensor(1, dtype=torch.complex64)
print(x.div(torch.ones(1, dtype=torch.double)).dtype)      # wrong
print(x.div(torch.tensor(1, dtype=torch.double)).dtype)
```

Outputs:
```
torch.complex128
torch.complex128
torch.complex128
torch.complex128
```

## Expected behavior

Should output
```
torch.complex128
torch.complex64
torch.complex64
torch.complex128
```

## Environment

PyTorch 1.10.0a0+gitbdb964f
Repository: transformers
Issue: New Model: Charformer: Fast Character Transformers via Gradient-based Subword Tokenization 
Labels: New model

# 🌟 New model addition

## Model description

arXiv = https://arxiv.org/pdf/2106.12672.pdf (pre-print; under review)

In this paper, they introduce a soft gradient-based subword tokenization module (GBST) that automatically learns latent subword representations from characters in a data-driven fashion. More importantly, is the introduction of Charformer, a deep Transformer model that integrates GBST and operates on the byte level. 

> Via extensive experiments on English GLUE, multilingual, and noisy text datasets, we show that Charformer outperforms a series of competitive byte-level baselines while generally performing on par and sometimes outperforming subword-based models. Additionally, Charformer is fast, improving the speed of both vanilla byte-level and subword-level Transformers by 28%-100% while maintaining competitive quality. We believe this work paves the way for highly performant token-free models that are trained completely end-to-end.

## Open source status

* [ ] the model implementation is available: ----] [Implementation and weights](https://github.com/google-research/google-research/charformer)
* [ ] the model weights are available: ------------] [to be released soon here](https://github.com/google-research/google-research/charformer)
* [x] who are the authors: Yi Tay, Vinh Q. Tran, Sebastian Ruder*, Jai Gupta, Hyung Won Chung, Dara BahriZhen Qin, Simon Baumgartner, Cong Yu, Donald Metzler (Google and DeepMind-->`*`)
Repository: ant-design
Issue: column have fixed columns, those fixed right columns have colSpan  show css styles mistake,
Labels: Inactive

- [ ] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.

### Reproduction link
[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/gudinglie-antd4165-forked-e0y89?file=/index.js)

### Steps to reproduce
https://codesandbox.io/s/gudinglie-antd4165-forked-e0y89?file=/index.js

### What is expected?
those fixed right columns doesn't have  css style mistake

### What is actually happening?
those fixed right columns  have  css style mistake

| Environment | Info |
|---|---|
| antd | 4.16.6 |
| React | 16.14.0 |
| System | macOS |
| Browser | chrome  V91.0.4472.114 |


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: rust
Issue: Rust musl build segfaults on startup when linked with LLD 12
Labels: A-linkage,E-needs-test,P-high,T-compiler,regression-from-stable-to-stable,O-musl,C-bug,E-needs-mcve

Steps to reproduce:

```
$ git clone https://github.com/rocallahan/rust-musl-segfault.git
$ cd rust-musl-segfault
$ cargo +nightly build --target x86_64-unknown-linux-musl
...
$ target/x86_64-unknown-linux-musl/debug/test_crate
Segmentation fault (core dumped)
```

Since the code is literally
```
use nix::sys::stat::Mode;

fn main() {
}
```
I expected it to not segfault.
Repository: ant-design
Issue: Support custom Mentions pop-up layer
Labels: 💡 Feature Request,Inactive

- [x] I have searched the issues of this repository and believe that this is not a duplicate.

### What problem does this feature solve?
Provide more friendly information in the pop-up layer, and even relatively more complex interactions.

### What does the proposed API look like?
Like Select `dropdownRender` prop. Of course, it would be better if it can provide more details on the entry.


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: PowerToys
Issue: Tool to configure Font Linking
Labels: Idea-New PowerToy

### Description of the new feature / enhancement

I'd like a tool for configuring [font linking](https://docs.microsoft.com/en-us/globalization/input/font-technology#font-linking)

>  in font linking (also called “composite fonts”) it is possible to link one or more fonts (called "linked fonts") to another font (called the "base font"). Once you link fonts, you can use the base font to display code points that do not exist in the base font, but that do exist in one of the linked fonts. 



### Scenario when this would be used?

This would be particularly useful for configuring monospace/code fonts that also include emojis and powerline glyphs.

### Supporting information

See https://docs.microsoft.com/en-us/globalization/input/font-technology#font-linking
Repository: vscode
Issue: Git - incorrectly highlight changed lines
Labels: bug,git

Issue Type: <b>Bug</b>

VS Code highlights some "changed" lines:
![image](https://user-images.githubusercontent.com/48132161/123788708-fe912400-d8e4-11eb-8be4-3a167e60a57a.png)

But at the same time Activity Bar does not see any changes.
Also `git status` output:
```
$ git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
```

This issue occurred after changing the file encoding:
All files in repository are encoded with `Windows-1251`.
The attribute `working-tree-encoding` in `.gitattributes` is the same as `files.encoding` in `settings.json`.

VS Code version: Code 1.57.1 (507ce72a4466fbb27b715c3722558bb15afa9f48, 2021-06-17T13:28:07.755Z)
OS version: Windows_NT x64 6.1.7601
Restricted Mode: No

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i5-4690 CPU @ 3.50GHz (4 x 3491)|
|GPU Status|2d_canvas: enabled<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>oop_rasterization: unavailable_off<br>opengl: enabled_on<br>rasterization: unavailable_off<br>skia_renderer: enabled_on<br>video_decode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled|
|Load (avg)|undefined|
|Memory (System)|7.94GB (3.95GB free)|
|Process Argv|--crash-reporter-id cef6a4d3-6627-45d5-9a01-b828de41cdd6|
|Screen Reader|no|
|VM|0%|

<!-- generated by issue reporter -->
Repository: transformers
Issue: 🌟 New model addition: FNet
Labels: New model

# 🌟 New model addition: FNet

FNet is a highly efficient Transformer-like encoder architecture, wherein the self-attention sublayers have been wholly replaced by standard, unparameterized Fourier Transforms.


I would like to help adding this!

## Open source status

* [x] the model implementation is available: https://github.com/google-research/google-research/tree/master/f_net
* [x] the model weights are available: https://github.com/google-research/google-research/tree/master/f_net
* [x] who are the authors: (@ilyaeck @santiontanon) (Not sure, googled the authors' name + github, sorry if it's incorrect)
Repository: ant-design
Issue: For the dropdown component, press and hold the right mouse button and wait for the menu to display, then release the right mouse button and check the console print log. It is found that only mousedown is triggered, but mouseup is not triggered
Labels: help wanted,Inactive

- [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.

### Reproduction link
[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/youjiancaidan-antd4166-forked-bq7tr?file=/index.js)

### Steps to reproduce
Long press the right mouse button, wait for the menu to display, release the right mouse button, check the console print log, and find that only mousedown is triggered, but mouseup is not triggered

### What is expected?
Long press the right mouse button and wait for the menu to display, then release the right mouse button to trigger mousedown and mouseup normally

### What is actually happening?
Long press the right mouse button, wait for the menu to display, release the right mouse button, check the console print log, and find that only mousedown is triggered, but mouseup is not triggered

| Environment | Info |
|---|---|
| antd | 4.16.6 |
| React | react |
| System | macOS Big Sur 11.4 |
| Browser | Chrome |


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: deno
Issue: `deno fmt` should not break up binary expressions and keep some call expressions on same line inside template literal expressions
Labels: feat,upstream,deno fmt

Deno version: 1.11.2

Reproducable from: https://github.com/ebebbington/chatsterisk/blob/destiny/src/server/public/components/Call.ts (the file here has already been formatted)

![image](https://user-images.githubusercontent.com/47337480/123793439-9852d400-d8d9-11eb-8a18-3a42d8dce23e.png)
Repository: vscode
Issue: Invalid find matches
Labels: bug,upstream,webview,upstream-issue-linked,chromium

Testing #127173

* preview README.md from our repo
* search for `cöde`
* :bug: all "code" occurrences is found as match

<img width="836" alt="Screen Shot 2021-06-29 at 14 58 24" src="https://user-images.githubusercontent.com/1794099/123801429-92b1ba00-d8ea-11eb-934a-270d4ed7eeb5.png">
Repository: TypeScript
Issue: Wrong unused variable with logical assigment
Labels: Bug

# Bug Report

### 🔎 Search Terms

TS6133

### 🕗 Version & Regression Information

Version: 4.3.4 (nightly is also affected)

### ⏯ Playground Link

https://www.typescriptlang.org/play?noUnusedLocals=true&ts=4.3.4&strict=true#code/MYewdgzgLgBAZjAvDAFASiQPhgbwFAyEwA2AprAA4BOIAtgJYSkBcMACjQ0wDwCuYAazAgA7mGwAfGPwAmpOPTCkZSaWDkKlMgNwEiVcryphUGRNnxErManUakYAfkfIOdpgDoDEEMQBupOgeUAAWpGAo6Fg2nPaqsvKKymh6hAC+eGlAA

### 💻 Code

```ts
const f = () => {
    let promise: Promise<unknown> | undefined = undefined; // error: TS6133: 'promise' is declared but its value is never read.
    return () => {
        promise ??= Promise.resolve().then(() => promise = undefined)
    }
}
```

### 🙁 Actual behavior

 error: TS6133: 'promise' is declared but its value is never read.

### 🙂 Expected behavior

Should be ok. Operator `??=` reads variable (as well as `||=` and other logical assignments)
Repository: create-react-app
Issue: CSS Modules classes can't be used in computed properties with `noUncheckedIndexedAccess` `tsconfig.json` option enabled
Labels: needs triage,issue: bug report

### Describe the bug

There's a following TypeScript error:

```
TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'.
```

when I import a CSS class from a CSS module (`*.module.css`) if `noUncheckedIndexedAccess` option is enabled in the `tsconfig.json` file.

### Did you try recovering your dependencies?

The issue is reproduced from a new project.

### Which terms did you search for in User Guide?

Combination of:

```
typescript
css modules
computed property
noUncheckedIndexedAccess
TS2464
```

### Environment

```
Environment Info:

  current version of create-react-app: 4.0.3
  running from /Users/baybulatov.artur/.npm/_npx/c67e74de0542c87c/node_modules/create-react-app

  System:
    OS: macOS 10.15.7
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  Binaries:
    Node: 14.12.0 - /usr/local/bin/node
    Yarn: Not Found
    npm: 7.13.0 - /usr/local/bin/npm
  Browsers:
    Chrome: 91.0.4472.114
    Edge: Not Found
    Firefox: Not Found
    Safari: 14.1.1
  npmPackages:
    react: ^17.0.2 => 17.0.2 
    react-dom: ^17.0.2 => 17.0.2 
    react-scripts: 4.0.3 => 4.0.3 
  npmGlobalPackages:
    create-react-app: Not Found
```

### Steps to reproduce

Create a CSS module file, e.g. `example.module.css` and try using it:

```ts
import styles from './example.module.css';
const classes = {[styles.message_color_orange]: true}; // <-- Error here
```

### Expected behavior

No typings error should happed.

### Actual behavior

Typings error happening.

### Reproducible demo

1. `npx create-react-app my-app --template typescript`

2. `cd my-app/`

3. Apply the following git patch:
    https://gist.github.com/ArturBaybulatov/34b650e18c1507bd79be6e9837fc7895

    The patch can be applied as follows:

    1. Copy the patch contents to the clipboard

    2. `git apply`

    3. Paste the copied patch, enter a new line at the end, finish input (press `Ctrl+D`)

4. `npm ci --also=dev`

See the typings error on a line 14 of a file `src/App.tsx`.

### Notes

Currently the issue can be worked around by using the non-null assertion operator (`!`):

```ts
import styles from './example.module.css';
const classes = {[styles.message_color_orange!]: true};
```
Repository: pytorch
Issue: Singular build setting CLANG_CXX_LANGUAGE_STANDARD has different values
Labels: module: build,triaged,module: macos

## ❓ Questions and Help

When I installing pod to xcode project I getting the warning:

`[!] Can't merge user_target_xcconfig for pod targets: ["CNIOBoringSSL", "CNIOBoringSSLShims", "LibTorch", "Core", "Torch"]. Singular build setting CLANG_CXX_LANGUAGE_STANDARD has different values.`

How can I solve that?

I using  `pod 'LibTorch', '~> 1.9.0'`