sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: excalidraw
Issue: Add an import library functionality that will get as an input a URL to gist or something
Labels: enhancement

Maybe some instructions as well in that window (you can publish the exported lib to gist, etc):

https://twitter.com/excalidraw/status/1311716784890884096

Right now is just a hidden feature, the only reference is the above tweet.
Repository: TypeScript
Issue: Type inference only works on the same line as the variable declaration
Labels: Suggestion,In Discussion

I ran into this odd behavior while writing some tests, that do the typical `describe`, declare a closure-scope variable, and in `beforeEach`, assign some object to that variable that is used in each of the tests inside.

**Search Terms:**
infer, inference, closure, scope, broken, any, cast

Initially, I thought it was limited to closure scope, but I then started reducing the reproduction sample more and more, and realized, it's broken even if it's on the very next line:

**Code**
```ts
// given
interface Foo {
    id: string;
}

function make(): Foo {
    return {
        id: 'akatechis',
    }
}

// u1 is correctly inferred to be of type Foo.
let u1 = make();

// u2 is incorrectly inferred to be of type any.
let u2;
u2 = make();

// this was the scenario in which I originally ran into this:
// a closure scoped variable that is assigned in an inner function
function outer () {
    // u3 is inferred to be of type any
    let u3;
    return {
        inner() {
            // u3 here is still any
            u3 = make();

            // surprisingly, returning u3 here causes the return type of inner() to be Foo, not any???
            return u3;
        }
    }
}
```

**Expected type declarations:**
```ts
interface Foo {
    id: string;
}
declare function make(): Foo;
declare let u1: Foo;
declare let u2: Foo; // <---- this should have been inferred to be Foo
declare function outer(): {
    inner(): Foo;
};
```

**Actual type declarations:**
```ts
interface Foo {
    id: string;
}
declare function make(): Foo;
declare let u1: Foo;
declare let u2: any;
declare function outer(): {
    inner(): Foo;
};
```

**Playground Link:** [playground](https://www.typescriptlang.org/play?ts=4.1.0-dev.20201027#code/PTAEHMEsDcFMDsBQl4BdYCcBmBDAxrKAGID2JoA3oqDaJACYBcoAzqhiuANyIC+iiLAFd4eVJBLxQAWxwBrWAAoAlM1LkqtUBliohGKZq20GzAOTyc6PAAtILMwBpqtfv0QhQQgIx0WoPBIMHTEAGwBPOngsTB16UFRyACNCEiwE8IAHQnUAOkRQ3S9fAF4ZeSVlHg8wIQAmPyjA4NgwyJQYlvjE0BTQNIzs0Bx4cPzC1C86nnrQMtkFFWrhUXFJfqF0DFAVShcaTyEAZkaO2Nhu5NT01CzCEfD90AmvI54tHT0DPeMTeHhMLsjL8tIcTjZMIR7KxxKFQsNRk8Qa85uVFlUBMjQWAWPpMhwWJwIo5tLp9PBOCiIToAjghCxYP5UBDSV8pLchgMUACMLsen11CT4CRJg8APwSpEgz7k17vEH8LRuRBAA)

**Related Issues:**
The only thing that I found somewhat close to this issue was the question in the FAQ about unused generic types causing type widening, but I don't think this is it, because I'm not using generics here.
Repository: go
Issue: testing: document -test.benchmem and ReportAllocs output format
Labels: Documentation,help wanted,NeedsFix

Filing this bug on behalf of someone who prefers not to do it directly:

The `⁠(*testing.B).ReportAllocs` function's documentation says that its output is the same as setting -test.benchmem. However, there is as far as I can tell no explanation anywhere of what, exactly, -test.benchmem is or what it does. There is also no explanation as to what the output format is. For instance, in an output line like

    BenchmarkF-34         	    9718	    672043 ns/op	   34474 B/op	     508 allocs/op

I can see the lines with four numbers, but one of them is completely dimensionless and the others aren't entirely clear.
Repository: vscode
Issue: "Go to Symbol in Workspace..." - searching for symbols using more than one word/substring
Labels: feature-request,workspace-symbols

# Searching for symbols with multiple keywords/substrings via the feature: "Go to Symbol in Workspace..."


### Main Request

When using "Go to Symbol in Workspace..." (ctrl-T by default) to find symbols anywhere in the current workspace, is there a way to search for symbols that contains two separate words/substrings?

e.g. Let's say I have a function called `oneTwoThree()` somewhere in my project, but I can't remember the exact name of it... I should be able to find it with any 2 word search query such as:

* one three
* three one
* on thr
* tw on

...and any other two (or more) substrings that are contained in the name.   Yet none of these work, my `oneTwoThree()` function is never shown in the results (yet a lot of other irrelevant stuff is due to full filepath names that aren't even in the symbol name).

Is there any way to use this search feature with two (or more words) when they might not be joined or in a specific order?  If not could this please be improved so that it works in the same way as "Go to File..." does, which does allow you to search using two+ substrings (is there any reason why these work so differently?)

I found a setting called: `search.quickOpen.includeSymbols` - which will also include symbols in the "Go to File..." results, yet it has the exact same issue - it seems to use completely different filtering methods for filenames vs symbols.

I'm finding that since switching to vscode, I've written a lot of duplicate functions that do the same thing due to not being able to find functions by name using more than one word/substring.

### Side Question 1:  

While looking into this, I came across setting: `typescript.workspaceSymbols.scope` which has two options:

* `allOpenProjects` — (default) search all opened projects for symbols. 
* `currentProject` — Only search the current project

...but I can't figure out what the definition of "project" means here.  I've tried changing the setting and don't see any different behavior.  It doesn't seem mean "workspace", nor exclude `node_modules/*` from the results.  So what does it mean by "project"?  This doesn't seem to be a regular term used in  vscode.

### Side Question 2:  

Is there any way to exclude `node_modules/*` code from "Go to Symbol in Workspace..." results? ...but while still having vscode be aware of it in others contexts like typing and still being able to ctrl-click to navigate into it?  It seems most of my results are stuff from `node_modules/*` - and there's no prioritization that displays my own code above all the `node_modules/*` results.
Repository: flutter
Issue: Build Flutter macOS artifacts with ARM architecture slice
Labels: team,tool,platform-mac,customer: crowd,P2,team-tool,triaged-tool

Stop requiring developers to install Rosetta on Apple Silicon, and ship macOS artifacts with both x86_64 and arm64 capabilities.

- [x] https://github.com/flutter/flutter/pull/115042
- [x] https://flutter-review.googlesource.com/c/recipes/+/32934
- [x] https://github.com/flutter/flutter/issues/106763
- [x] https://github.com/flutter/flutter/issues/110227
- [x] https://github.com/flutter/flutter/issues/110226
- [x] https://github.com/flutter/flutter/issues/109892
- [x] https://github.com/flutter/flutter/issues/101138
- [x] https://github.com/flutter/flutter/issues/152280
- [ ] https://github.com/flutter/flutter/issues/152281
- [ ] https://github.com/flutter/flutter/issues/121178
- [ ] Update website to remove Rosetta setup instructions
- [ ] Ask Chromium to remove Rosetta from Mac bots, reverting https://chrome-internal.googlesource.com/infra/puppet/+/6ed442c2c821fb2aeb0bf7f5f367d096b5da391a, see also https://bugs.chromium.org/p/chromium/issues/detail?id=1354817
Repository: rust
Issue: Warn when checking `library/std` when `profile = "compiler"`
Labels: T-compiler,T-bootstrap,C-discussion

I expect these two commands to do the same thing, but for `check` or `build`, respectively. However, `check` may succeed even if `build` fails type checking. I suspect the syntax for `check` is a subset of that for `build`.
Repository: opencv
Issue: VideoWriter.write() Could throw and exception when call write with a frame that doesn't match the writers size.
Labels: bug,category: videoio,RFC

##### System information (version)
<!-- Example
- OpenCV => 4.5.0-1
- ArchLinux
- Python
-->

- OpenCV => :4.5.0-1
- Operating System / Platform => ArchLinux
- Compiler => Python 3.8.6

##### Detailed description

Hello, I was in a project, and spent a lot of time trying to figure out why in some scenarios I was successful using the VideoWritter and other time it just outputs a video with zero seconds. After playing around for a long time I got that the frame that I was "adding" by calling the write method, have to be exactly the size the I've declared when instantiate the VideoWriter.

I think would be nice to have an exception or a warning when the user tries to call write in a frame that doesn't match.

##### Steps to reproduce

Here is a example code to reproduce

```python
import cv2
import numpy as np

fourcc = cv2.VideoWriter.fourcc(*'X264')
writer = cv2.VideoWriter('output.avi', fourcc, 1, (800, 600))

white_frame = np.ones((500, 500, 3), dtype='uint8') * 255

for _ in range(1000):
    writer.write(white_frame)

writer.release()
```
Repository: TypeScript
Issue: Union type in element access can prevent deprecated warning from triggering
Labels: Bug

<!-- 🚨 STOP 🚨 STOP 🚨 STOP 🚨

Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common "Bugs" That Aren't Bugs section!

Please help us by doing the following steps before logging an issue:
  * Search: https://github.com/Microsoft/TypeScript/search?type=Issues
  * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ

Please fill in the *entire* template below.
-->

<!--
Please try to reproduce the issue with the latest published version. It may have already been fixed.
For npm: `typescript@next`
This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly
-->
**TypeScript Version:**  4.1.0-dev.20201027

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:** Deprecated tag, union, element access

**Code**

```ts
const foo = {
    faff() { },

    /** @deprecated */
    fluff() { }

}

declare const k: "faff" | "fluff";

//Expected: deprecation warning
//Actual: no warning
foo?.[k]?.();

const bar = {
    /** @deprecated */
    faff() { },

    fluff() { }
}

//Expected: deprecation warning
//Actual: deprecation warning
bar?.[k]?.();

```

**Expected behavior:**

`foo?.[k]?.();` should show deprecated warning because if `k` is `"fluff"`, then we'll be calling a deprecated method.

**Actual behavior:**

`foo?.[k]?.();` has no deprecated warning.

**Playground Link:** [Playground](https://www.typescriptlang.org/play?#code/MYewdgzgLgBAZiEMC8MDeAoG34EM5wAUAlOjAL4A0GWOA9AFQMwACAJgKYAOATh8Ligc2MBnVrY4AGwCuBEmXI0lGTsCm4+MUJFgBrAFwwARHHxxjMAD4npciwG4adOgFEAHl35C2Rzr35BAEtwGAB3TTAgsABzDBcAQWAoGVwpIzAkCJ4o2IwEEAB+ADoAbT0AXRKSJwwdaBgAI00UdAkYRmZ2bj4BH1FxHDx5UjQKana7EcUMFRcPL2ThPx7AqBCwcMjouMTk1PSYf17g0OzcuOaeEvKq4pqMIA)

**Related Issues:** Couldn't find any
Repository: TypeScript
Issue: Show parameter quickinfo at the position of arguments
Labels: Suggestion,Awaiting More Feedback

<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨

Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker.

Please help us by doing the following steps before logging an issue:
  * Search: https://github.com/Microsoft/TypeScript/search?type=Issues
  * Read the FAQ, especially the "Common Feature Requests" section: https://github.com/Microsoft/TypeScript/wiki/FAQ

-->

## Search Terms
quickinfo,parameter
<!-- List of keywords you searched for before creating this issue. Write them down here so that others can find this suggestion more easily -->

## Suggestion

If you call an function with many many arguments (and maybe with same type). 
It's easy to lost your mind: Where I am? What i am doing? Which parameter I'm passing?  
It's helpful if show the parameter info when hover into one arguments.


<!-- A summary of what you'd like to see added or changed -->


## Examples

<!-- Show how this would be used and what the behavior would be -->

```ts
declare function foo(
    p1: string,
    p2: string,
    p3: string,
    p4: string,
    p5: string
): void;

declare const a: string[]

foo(
    a[0],
    a[1], // ???
    a[2],
    a[3],
    a[4]
)
```
## Checklist

My suggestion meets these guidelines:

* [ ] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [ ] This wouldn't change the runtime behavior of existing JavaScript code
* [ ] This could be implemented without emitting different JS based on the types of the expressions
* [ ] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
* [ ] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).
Repository: TypeScript
Issue: Refactor to extract a part of type property into a new type
Labels: Suggestion,Awaiting More Feedback

<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨

Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker.

Please help us by doing the following steps before logging an issue:
  * Search: https://github.com/Microsoft/TypeScript/search?type=Issues
  * Read the FAQ, especially the "Common Feature Requests" section: https://github.com/Microsoft/TypeScript/wiki/FAQ

-->

## Search Terms
refactor, extract, types, property
<!-- List of keywords you searched for before creating this issue. Write them down here so that others can find this suggestion more easily -->

## Suggestion

It's common to convert a part of properties into new type when we got too many related property.

Could we provide an automatic way to do this?

<!-- A summary of what you'd like to see added or changed -->
## Examples

```ts
//from
interface A {
    /*a*/f1: string
    f2: string/*b*/

    a1: number
}
```

```ts
// to
interface NewType {
    f1: string
    f2: string
}

interface A {
    /*RENAME*/ newProperty: NewType

    a1: number
}


```

<!-- Show how this would be used and what the behavior would be -->

## Checklist

My suggestion meets these guidelines:

* [ ] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [ ] This wouldn't change the runtime behavior of existing JavaScript code
* [ ] This could be implemented without emitting different JS based on the types of the expressions
* [ ] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
* [ ] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).
Repository: pytorch
Issue: Yolov5 detect.py(ingerence) Error:Torch.nn.modules.module.ModuleAttributeError: 'Hardswish' object has no attribute 'inplace'
Labels: module: nn,module: pickle,triaged

Version:
NVIDIA-SMI 456.71       Driver Version: 456.71 
torch 1.7.0+cu110
torchaudio 0.7.0
torchvision 0.8.1+cu110
Cuda compilation tools, release 11.1, V11.1.74

 Training goes well. Ingerence has this problem"Torch.nn.modules.module.ModuleAttributeError: 'Hardswish' object has no attribute".

```
yolov5-master>python detect.py
Namespace(agnostic_nms=False, augment=False, classes=None, conf_thres=0.25, device='', img_size=640, iou_thres=0.45, save_conf=False, save_dir='inference/output', save_txt=False, source='inference/images', update=False, view_img=False, weights='yolov5s.pt')
Using CUDA device0 _CudaDeviceProperties(name='GeForce RTX 3080', total_memory=10240MB)

Fusing layers...
Model Summary: 140 layers, 7.45958e+06 parameters, 0 gradients
Traceback (most recent call last):
  File "detect.py", line 172, in <module>
    detect()
  File "detect.py", line 63, in detect
    _ = model(img.half() if half else img) if device.type != 'cpu' else None  # run once
  File "d:\ProgramData\Anaconda3\envs\tf37\lib\site-packages\torch\nn\modules\module.py", line 744, in _call_impl
    result = self.forward(*input, **kwargs)
  File "E:\Yolo\yolov5-master\models\yolo.py", line 116, in forward
    return self.forward_once(x, profile)  # single-scale inference, train
  File "E:\Yolo\yolov5-master\models\yolo.py", line 136, in forward_once
    x = m(x)  # run
  File "d:\ProgramData\Anaconda3\envs\tf37\lib\site-packages\torch\nn\modules\module.py", line 744, in _call_impl
    result = self.forward(*input, **kwargs)
  File "E:\Yolo\yolov5-master\models\common.py", line 92, in forward
    return self.conv(torch.cat([x[..., ::2, ::2], x[..., 1::2, ::2], x[..., ::2, 1::2], x[..., 1::2, 1::2]], 1))
  File "d:\ProgramData\Anaconda3\envs\tf37\lib\site-packages\torch\nn\modules\module.py", line 744, in _call_impl
    result = self.forward(*input, **kwargs)
  File "E:\Yolo\yolov5-master\models\common.py", line 36, in fuseforward
    return self.act(self.conv(x))
  File "d:\ProgramData\Anaconda3\envs\tf37\lib\site-packages\torch\nn\modules\module.py", line 744, in _call_impl
    result = self.forward(*input, **kwargs)
  File "d:\ProgramData\Anaconda3\envs\tf37\lib\site-packages\torch\nn\modules\activation.py", line 438, in forward
    return F.hardswish(input, self.inplace)
  File "d:\ProgramData\Anaconda3\envs\tf37\lib\site-packages\torch\nn\modules\module.py", line 796, in __getattr__
    type(self).__name__, name))
torch.nn.modules.module.ModuleAttributeError: 'Hardswish' object has no attribute 'inplace'
```

cc @ezyang @gchanan @zou3519 @bdhirsh @albanD @mruberry @jerryzh168 @jianyuh @dzhulgakov @raghuramank100 @jamesr66a @vkuzo
Repository: rust
Issue: 128-bit integers marked as having an unknown stable ABI
Labels: A-lints,A-FFI,C-bug,A-ABI

Introduced by 549dd105273a5141003b6054c6f496f62e059cfb 128-bit integers used in e.g. `extern "sysv64"` produce the warning:
```
warning: `extern` fn uses type `u128`, which is not FFI-safe
   --> src/xxx.rs:126:6
    |
126 | ) -> u128 {
    |      ^^^^ not FFI-safe
    |
    = note: `#[warn(improper_ctypes_definitions)]` on by default
    = note: 128-bit integers don't currently have a known stable ABI

warning: 1 warning emitted
```

I dispute this statement by pointing to the now de facto source of the x86-64 System V ABI: 

* https://gitlab.com/x86-psABIs/x86-64-ABI/-/blob/master/x86-64-ABI/low-level-sys-info.tex#L552-560
* https://gitlab.com/x86-psABIs/x86-64-ABI/-/blob/master/x86-64-ABI/low-level-sys-info.tex#L767-768
Repository: material-ui
Issue: [icons] Accept community icons on top of fonts.google.com/icons
Labels: waiting for 👍,package: icons

Eraser and push pin icons are really missing, and they are much more general and relevant to most applications than e.g. pregnant woman.
Repository: pytorch
Issue: [JIT] scripting torchaudio.transforms.MFCC() error 
Labels: oncall: mobile

Hi. I face problem when i use torchaudio.transforms.MFCC() as preprocessing on android app. Help ME

---version---
pytorch::1.7.0
torchaudio::0.7.0

scripting from nn.Module 
```
mfcc = torchaudio.transforms.MFCC()
scripted.save("./mfcc.pt")
```

When Module implements on android's java code, it doesn't work, Module forward function don't recognize forward in script.
errors:
```
E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.example.real_time_speech_command, PID: 17200
    com.facebook.jni.CppException: Method 'forward' is not defined.
    Exception raised from get_method at ../../../../src/main/cpp/libtorch_include/x86/torch/csrc/jit/api/object.h:91 (most recent call first):
    (no backtrace available)
        at org.pytorch.NativePeer.forward(Native Method)
        at org.pytorch.Module.forward(Module.java:48)
        at com.example.real_time_speech_command.MainActivity.startRecognition(MainActivity.java:224)
        at com.example.real_time_speech_command.MainActivity.access$400(MainActivity.java:48)
        at com.example.real_time_speech_command.MainActivity$2.onClick(MainActivity.java:184)
        at android.view.View.performClick(View.java:6294)
        at android.view.View$PerformClick.run(View.java:24770)
        at android.os.Handler.handleCallback(Handler.java:790)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:164)
        at android.app.ActivityThread.main(ActivityThread.java:6494)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
```

cc @gmagogsfm
Repository: material-ui
Issue: [Select] Use bottom sheet on mobile
Labels: new feature,component: select

Hey Guys,
I am using materialUI and creating a website (A Responsive Website). Now i want something like adobe spectrum picker component. E.g. in Desktop mode the picker will show as Select/Dropdown but in Mobile version it will  show as bottom sheet.

To understand more about my needs please open following link in Mobile and desktop mode .
https://react-spectrum.adobe.com/react-spectrum/Picker.html

Thank You..
Repository: pytorch
Issue: torch.acos not supported for sparse layout
Labels: module: sparse,triaged,function request

Steps to reproduce the behavior:

Call torch.acos on a sparse tensor
Below is a code sample:

import torch
i = torch.cuda.LongTensor([[0, 1, 1],
                      [2, 0, 2],
                      [2, 0, 2]])

v  = torch.cuda.FloatTensor([3, -44, -5])

s = torch.sparse_coo_tensor(i, v, torch.Size([2, 4, 4]), device=torch.device('cuda'))
print(s.acos())

Actual behaviour
Traceback (most recent call last):
  File "sparse_acos.py", line 9, in <module>
    print(s.acos())
RuntimeError: Could not run 'aten::acos.out' with arguments from the 'SparseCUDA' backend. 'aten::acos.out' is only available for these backends: [CPU, CUDA, BackendSelect, Named, AutogradOther, AutogradCPU, AutogradCUDA, AutogradXLA, AutogradPrivateUse1, AutogradPrivateUse2, AutogradPrivateUse3, Tracer, Autocast, Batched, VmapMode].

Expected behaviour
acos of the sparse tensor should get calculated and output as a sparse tensor

Environment
Versions of relevant libraries:
[pip3] numpy==1.19.1
[pip3] torch==1.8.0a0
[pip3] torchtext==0.8.0a0+7e267d2
[pip3] torchvision==0.8.0a0+be8192e
[conda] blas 1.0 mkl
[conda] cudatoolkit 10.2.89 hfd86e86_1
[conda] magma-cuda102 2.5.2 1 pytorch
[conda] mkl 2020.1 217
[conda] mkl-include 2020.1 217
[conda] mkl-service 2.3.0 py38he904b0f_0
[conda] mkl_fft 1.1.0 py38h23d657b_0
[conda] mkl_random 1.1.1 py38h0573a6f_0
[conda] numpy 1.19.1 py38hbc911f0_0
[conda] numpy-base 1.19.1 py38hfa32c7d_0
[conda] torch 1.8.0a0 dev_0
[conda] torchtext 0.8.0a0+7e267d2 pypi_0 pypi
[conda] torchvision 0.8.0a0+be8192e pypi_0 pypi

PyTorch Version: 1.8.0a0
OS: Linux
How you installed PyTorch (conda, pip, source): source
Build command you used (if compiling from source): python setup.py develop
Python version: 3.8
CUDA/cuDNN version: 10.2

cc @aocsa @nikitaved @pearu @mruberry