sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: TypeScript
Issue: Interoperability with Webpack import statements
Labels: Suggestion,Needs Proposal

Hello!

First of all, thank you for your hard and amazing work.

The thing is, that Webpack supports more complex import statements than the standard. For example it defines "query" part of the import statements, which looks like this:

```typescript
import { something } from './path/to/module?query';
```

The `./path/to/module` is an actual filesystem path to a referenced module, however, the `?query` is a query part. It allows to configure different loaders for different queries, so the same module could be treated differently in different import statements.

For example `import component from './component';` would import the default symbol from the `./component` module normally, however, `import component from './component?raw';` could be used to load the source code of the `./component` file as a string and would put it into `component` variable (this must be configured in Webpack config). This allows to perform very powerful operations on various files and add it to the resulting bundle. We are using it to generate documentation for example.

The problem is that TypeScript doesn't understand these "extended" import statements and shows errors during type checking. We have to either put `@ts-ignore` on top of such imports or to use `paths` configuration option to redirect the compiler to a file containing, e.g.: `export default '';`.

If TypeScript would support interoperability with extended Webpack import statements it would be very useful in complex projects.

By the way, besides "queries", Webpack also allows to [specify loaders inline](https://webpack.js.org/concepts/loaders/#inline).

What do you think?
Repository: pytorch
Issue: Make it an error to def() an operator multiple times
Labels: module: bootcamp,triaged

Currently in `aten/src/ATen/core/library.cpp` there is a todo:

```
// TODO: Error if an operator is def'ed multiple times.  Right now we just
// merge everything
```

The relevant backwards compatibility logic is in `aten/src/ATen/core/dispatch/Dispatcher.cpp`:

```
void Dispatcher::checkSchemaCompatibility(const OperatorHandle& op, const FunctionSchema& schema, const std::string& debug) {
  TORCH_CHECK(op.schema() == schema, "Tried to register multiple operators with the same name and the same overload name but different schemas: ", schema, " (", debug, ") vs ", op.schema(), " (", op.debug(), ")");
  if (schema.isDefaultAliasAnalysisKind()) {
    // [BACKWARDS COMPAT] If the *new* schema is the default alias analysis
    // kind, for BC, we will accept it.  If we don't accept it, most extensions
    // that override existing operators will stop working (as they generally did
    // not specify alias information).
  } else if (op.schema().isDefaultAliasAnalysisKind()) {
    // [BACKWARDS COMPAT] If you POST-FACTO specify a non-default alias analysis
    // kind after we already have a schema for a function, bong it in for BC
    // reasons.
    op.operatorIterator_->op.updateSchemaAliasAnalysis(schema.aliasAnalysis());
  } else {
    TORCH_CHECK(op.schema().aliasAnalysis() == schema.aliasAnalysis(),
      "Tried to define the schema for ", toString(op.operator_name()), " with different alias analysis kinds: ",
      toString(op.schema().aliasAnalysis()), " (", op.debug(), ") vs ", toString(schema.aliasAnalysis()), " (", debug, ")");
  }
}
```

The desired new form of this code is to make it to make it 100% invalid to def an operator multiple times.  This can be done by replacing the if-statement in this function with an unconditional error (and update the error message).

Once this is done, there may be some definition sites which now error. You should identify all of these sites and port them to the new API (similar to what was done in #36925), so that there is a single, unique `def()` for it (every old-style `RegisterOperators` call counts as a def, which is why porting will generally help solve the problem). Some of these sites may occur in the mobile-only code, please confer with your bootcamp mentor for more information about how to deal with these if they arise.

This task is reserved for bootcamp, please confer with @ezyang before working on it.
Repository: excalidraw
Issue: Broken rendering of scene on node server
Labels: discussion

Hi, thanks a lot for this awesome project !

I was testing out the functionality introduced by this PR https://github.com/excalidraw/excalidraw/pull/443 and found that it is broken this master. I verified that after checking out the commit (7f6e1f420e55bb6c6b112accc5dc39deef64605d) it was working as expected.
On further debugging I observed that the reason for the errors were a couple of refactoring commits that went after the above change that introduced dependency on `window` and `document` objects, Since the server side render was using the same functions as the normal export, the functionality broke.

I wanted to know if there is any ongoing work on this. If not, I was working on fixing this and would like to discuss my approach
Repository: pytorch
Issue: Guidance on implementing a new backend
Labels: oncall: mobile

## 🚀 Feature
<!-- A clear and concise description of the feature proposal -->

I'm looking to implement a new backend for mobile (ios GPU compute). The primary goal would be to use this for execution of torchscript modules, but I'm also interested in using the c++ api directly on ios.  I’ve looked through the code enough to know I need to register kernels with the dispatcher and ultimately use the PrivateUse DispatchKey to get the dispatcher to use my kernels. But where things go / how to hook things together has been hard to trace (every time I think I understand the dependency structure between ATen, c10, torch::jit, etc, I see a usage of something that makes me realize I didn’t fully understand it). Is there any examples / docs / guidance of implementing a new backend someone could point to?

I looked at the wiki a decent amount but the wiki seems to be a bit _ahead_ of the code, but happy to read through any documentation or more advanced descriptions of the architecture where applicable.
Repository: youtube-dl
Issue: Site Support Feature Request: G/O Media Website videos (Lifehacker, etc.)
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 2020.03.24. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED. CHECK
- Make sure that all provided video/audio/playlist URLs (if any) are alive and playable in a browser.
- Make sure that site you are requesting is not dedicated to copyright infringement, see https://yt-dl.org/copyright-infringement. youtube-dl does not support such sites. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
- Search the bugtracker for similar site support requests: http://yt-dl.org/search-issues. DO NOT post duplicates.
- Finally, put x into all relevant boxes (like this [x])
-->

- [x] I'm reporting a new site support request
- [x] I've verified that I'm running youtube-dl version **2020.03.24**
- [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://www.youtube.com/watch?v=BaW_jenozKc
- Single video: https://youtu.be/BaW_jenozKc
- Playlist: https://www.youtube.com/playlist?list=PL4lCao7KL_QFVb7Iudeipvc2BCavECqzc

https://lifehacker.com/can-you-be-happy-in-quarantine-1842964815

## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

WRITE DESCRIPTION HERE

LIfehacker videos and other videos produced on G/O Media websites.
Repository: flutter
Issue: Feature Request: Add Screenshots for FloatingActionButtonLocation
Labels: a: tests,c: new feature,framework,f: material design,c: proposal,good first issue,P3,team-design,triaged-design

## Use case

Once merged, PR #51465 will **enable many new FAB Locations** and **introduce ways to create user-defined FAB Locations**.

Screenshots in documentation will be very helpful for developers.

## Proposal

We propose that:
* We add a small screenshot to each FAB Location, illustrating its effect and typical usage.
* We add diagrams to illustrate what each mixin does.
Repository: angular
Issue: Improve documentation for boxed values in form control
Labels: type: bug/fix,freq1: low,area: forms,state: confirmed,cross-cutting: types,P4

I'm submitting a ...
----------

```
[ ] Regression (behavior that used to work and stopped working in a new release)
[ ] Bug report 
[ ] Feature request
[x] Documentation issue or request
[ ] Support request
```

Current behavior ...
----------
https://github.com/angular/angular/blob/acf6075ca9aa92121bb0166b2b7560aeb2c167ff/packages/forms/src/form_builder.ts#L57
and
https://github.com/angular/angular/blob/acf6075ca9aa92121bb0166b2b7560aeb2c167ff/packages/forms/src/form_builder.ts#L105

The documentation about the parameter `formState` in the method `control(..)` and the parameter `controlsConfig` in the method `group(..)` (see line reference) doesn't explain very well how to set it. Additionally, the type hints has presence of `any`s and makes it harder to understand.

Expected behavior
----------
I propose the follow type hints changes to clarify the situation.

For the `formState` type hint:
`string | { value: string, disabled: boolean }`

For the `controlsConfig` type hint:
`{ [key: string]: [string | {value: string, disabled: boolean}, ...any[]] }`
Repository: flutter
Issue: Support Safari as a browser in flutter run
Labels: c: new feature,tool,platform-web,P3,team-web,triaged-web

Safari currently has a much different devtools API than chrome or edge, but it might be possible to  use https://github.com/google/ios-webkit-debug-proxy to proxy the Safari devtools API to a Chrome-Like API. If this works, we might be able to provide a 1st class `flutter run -d safari` experience.
Repository: flutter
Issue: Support Firefox as a browser in flutter run
Labels: c: new feature,tool,platform-web,P3,team-web,triaged-web

The Firefox remote protocol claims to support a subset of the chrome devtools protocol: https://firefox-source-docs.mozilla.org/remote/index.html . If this subset is sufficient, we might be able to connect with out existing chrome devtools logic and have it mostly work. This would allow 1st class support for `flutter run -d firefox`
Repository: rust
Issue: Lint for #[must_use] on a function that always returns a #[must_use] type
Labels: C-enhancement,A-lints,T-lang

I saw someone do this on a `try_from` today, so I figured I'd make an issue.

Repro:
```rust
#[must_use]
pub fn foo() -> Result<(), ()> { Ok(()) }
```
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=c03ca4925a9ac4ce9fdda4d2165e6892

The `#[must_use]` on the function there is unnecessary because it always returns `Result`, which is itself `#[must_use]`.  So we might consider linting about that.
Repository: tensorflow
Issue: No default summary writer available when using tf.py_function with autograph
Labels: comp:tensorboard,stat:awaiting tensorflower,type:bug,TF 2.12

**System information**
- Have I written custom code (as opposed to using a stock example script provided in TensorFlow): 3.6.8
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): macOS 10.15.5 Beta
- Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: n/a
- TensorFlow installed from (source or binary): binary
- TensorFlow version (use command below): 2.1.0
- Python version: 3.6.8
- Bazel version (if compiling from source): n/a
- GCC/Compiler version (if compiling from source): n/a
- CUDA/cuDNN version: n/a
- GPU model and memory: n/a

**Describe the current behavior**
Using `tf.summary` returns `False` inside a `tf.py_function` when using autograph.

**Describe the expected behavior**
`tf.summary` should return `True`.

**Standalone code to reproduce the issue**
```python
import tensorflow as tf


@tf.function
def eager_pyfunc():
    def inner_func():
        bool_out = tf.summary.scalar('myscalar', tf.constant(32.9))
        tf.print(bool_out, name='log-myscalar-success')

    tf.py_function(inner_func, [], [], name='log-myscalar')

    bool_out2 = tf.summary.scalar('myscalar2', tf.constant(52.3))
    tf.print(bool_out2, name='log-myscalar2-success')


with tf.summary.create_file_writer('./logs').as_default():
    tf.summary.experimental.set_step(0)
    eager_pyfunc()
```
outputs:
```
0
1
```
Removing the `tf.function` outputs:
```
1
1
```

**Other info / logs** 
Could be related to https://github.com/tensorflow/tensorflow/issues/26409.
Repository: rust
Issue: Tracking issue for generator code quality
Labels: A-LLVM,I-slow,metabug,T-compiler,A-coroutines,I-heavy,A-async-await,AsyncAwait-Triaged

So far we haven't done many deep dives into the code LLVM produces for generators. I think there's a lot of room for improvement here, both in the compiler and in LLVM.

Issues (please add more as they come up):
- [ ] #71093 unnecessary panicking branch in `foo().await` (vs equivalent `FutureImpl.await`)

Some more ideas are in https://github.com/rust-lang/rust/issues/71093#issuecomment-617448426

Related tracking issues:
- #69826 Generator Memory Usage
- #69663 More precise generator captures
Repository: PowerToys
Issue: [FancyZones] Win+Ctrl+Arrow to switch focus to adjacent zones
Labels: Idea-Enhancement,FancyZones-Dragging&UI,Product-FancyZones

# Summary of the new feature/enhancement

In [i3](https://i3wm.org/docs/refcard.html), user can switch focus to adjacent zones in 4 directions using hotkeys (`Mod1 + jkl;`). 

# Proposed technical implementation details (optional)
FancyZones can include shortcuts `Win + Ctrl + LEFT/RIGHT` leveraging `MoveWindowIntoZoneByDirection` implementation. The choice of the hotkey is based on Window Walker `WIN + CTRL`.
Repository: go
Issue: x/playground: return non-200 for timeout errors
Labels: NeedsFix

Timeout errors currently must return a 200 status to be rendered correctly by the Playground javascript. The javascript needs to be updated to also parse 4xx errors correctly, then the playground should be updated to return responses with a correct code. Currently, unsuccessful requests of any kind are treated the same as a 5xx.

This may have implications for the Tour or other places where the playground is used.

Related to #38546
Repository: vscode
Issue: Git - VSCode locks git index in AFP repo
Labels: bug,help wanted,git,macos

- VSCode Version: 1.43.2
- OS Version: Darwin 18.7.0 Darwin Kernel Version 18.7.0: Mon Feb 10 21:08:45 PST 2020; root:xnu-4903.278.28~1/RELEASE_X86_64 x86_64 i386

Steps to Reproduce:

1. Open workspace (in this case a LaTeX project)
2. Attempt to run `git add` from a separate terminal window.

Result:

`fatal: Unable to write new index file`

Solution:

Close VSCode workspace.

VSCode appears to be keeping `.git/refs/remotes/origin/master` open.  lsof doesn't indicate any locks but git still refuses to update the index until I close the VSCode window.
Repository: flutter
Issue: [IME] Android InputMethodService onViewClicked callback won't be when clicking TextField 
Labels: a: text input,platform-android,framework,c: proposal,P3,team-design,triaged-design


## Steps to Reproduce
I am an InputMethod developer，I find Flutter TextField won't invoked by click TextField. It happens in all Flutter Version

In Android Native App, click EditText will call `InputMethodService`'s onViewClicked, let IME develpoers know something is hanppen when user clicked an input area, but in flutter app, this callback won't be invoked.

I think we should add `TextInput.onclicked` method in `TextInputChannel` let IME developers know input area has been clicked.
Repository: pytorch
Issue: copy_ slowness
Labels: module: performance,module: cuda,triaged

First reported by @roosephu.
This is not really a bug, but `copy_` seems to take too much time, so wanted to open an issue to see if this is expected. 
 
```
from timeit import timeit

import torch

device = 'cpu'
# device = 'cuda'

n = 100
a = torch.zeros(n, n, device=device)
b = torch.zeros(n, n, device=device)
c = torch.zeros(n, n, device=device)
out = torch.zeros(n, n, device=device)

print(timeit('torch.addmm(a, b, c)', globals=globals(), number=100000))
print(timeit('torch.addmm(a, b, c, out=a)', globals=globals(), number=100000))
print(timeit('torch.addmm(a, b, c, out=out)', globals=globals(), number=100000))
print(timeit('torch.addmm(a, b, c, beta=0, out=out)', globals=globals(), number=100000))
```
Output
```
2.577985318377614
1.5019962769001722
2.3356163017451763
1.470768192782998
```
Note the second and fourth lines are much faster only because they skipped a `copy_` here https://github.com/pytorch/pytorch/blob/master/aten/src/TH/generic/THTensorMath.cpp#L54-L62
The `copy_` seems to be super expensive, is this expected? 

cc: @ngimel 

cc @ngimel @VitalyFedyunin
Repository: go
Issue: x/tools/present: initial comment line now interpretted as a title
Labels: NeedsInvestigation,Tools

The present tool now supports Markdown syntax but also supports the previous present markup syntax. The switch to enable Markdown syntax use is that the first line (the talk title) be preceded with a `# `. Unfortunately, this coincides with the use of `# ` as a comment mark in the old syntax. In some cases, slides may contain copyright notices (I use present for lecture presentations and have done for some years now, so we require copyright notices). This puts the slide syntax into Markdown mode, which subsequently breaks because of the mutually unintelligible syntaxes.

It would be nice if there were a way to prevent present from assuming a `# ` prefix is a note to `present` to use Markdown. Or at the very least a more prominent warning that old slides have a significant risk of being broken (I'm actually happy we now have Markdown, but this will result in a fair bit of work for me to fix in my lecture presentations).

/cc @rsc
Repository: go
Issue: cmd/go: document 'internal' package visibility for module mode
Labels: Documentation,help wanted,NeedsFix,GoCommand

<!--
Please answer these questions before submitting your issue. Thanks!
For questions please use one of our forums: https://github.com/golang/go/wiki/Questions
-->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.14.2
</pre>

### Does this issue reproduce with the latest release?
yes


### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env

</pre></details>

### What did you do?

<!--
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
-->

https://play.golang.org/p/tnQdiMMclCx

### What did you expect to see?

I expected the program to compile.

### What did you see instead?
prog.go:7:2: use of internal package example.com/v2/internal/foo not allowed
Repository: vscode
Issue: vscode.workspace.fs.readDirectory() does not get all files (reparse points) under %USERPROFILE%\AppData\Local\Microsoft\WindowsApps
Labels: bug,upstream,file-io,nodejs,upstream-issue-linked

(for Python extension use)

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->
<!-- Also please test using the latest insiders build to make sure your issue has not already been fixed: https://code.visualstudio.com/insiders/ -->

<!-- Use Help > Report Issue to prefill these. -->
- VSCode Version:1.44.2
- OS Version: Microsoft Windows 10 [Version 10.0.18362.778]

Steps to Reproduce:
1. Call `vscode.workspace.fs.readDirectory()` on `"C:\Users\*****\AppData\Local\Microsoft\WindowsApps"`

Notes:
![image](https://user-images.githubusercontent.com/3840081/79945417-93b3a580-8422-11ea-8537-3581ff235178.png)

I am not sure if they are regular symlinks, since `dir \a` does not show them as symlinks. They seem to be reparse points:
```
C:\Users\*****\AppData\Local\Microsoft\WindowsApps>dir /a
 Volume in drive C is OSDisk
 Volume Serial Number is CCED-E58F

 Directory of C:\Users\karth\AppData\Local\Microsoft\WindowsApps

04/16/2020  12:51 PM    <DIR>          .
04/16/2020  12:51 PM    <DIR>          ..
04/16/2020  12:51 PM    <DIR>          Backup
03/10/2020  01:15 AM    <DIR>          CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc
03/24/2020  07:48 PM                 0 debian.exe
04/14/2020  11:59 PM                 0 GameBarElevatedFT_Alias.exe
04/16/2020  12:51 PM                 0 idle.exe
04/16/2020  12:51 PM                 0 idle3.8.exe
04/16/2020  12:51 PM                 0 idle3.exe
11/09/2019  02:15 AM    <DIR>          Microsoft.DesktopAppInstaller_8wekyb3d8bbwe
11/13/2019  10:09 AM    <DIR>          Microsoft.MicrosoftEdge_8wekyb3d8bbwe
04/14/2020  11:59 PM    <DIR>          Microsoft.XboxGamingOverlay_8wekyb3d8bbwe
11/13/2019  10:09 AM                 0 MicrosoftEdge.exe
04/16/2020  12:51 PM                 0 pip.exe
04/16/2020  12:51 PM                 0 pip3.8.exe
04/16/2020  12:51 PM                 0 pip3.exe
04/16/2020  12:51 PM                 0 python.exe
04/16/2020  12:51 PM                 0 python3.8.exe
04/16/2020  12:51 PM                 0 python3.exe
04/16/2020  12:51 PM    <DIR>          PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0
04/16/2020  12:51 PM                 0 pythonw.exe
04/16/2020  12:51 PM                 0 pythonw3.8.exe
04/16/2020  12:51 PM                 0 pythonw3.exe
03/24/2020  07:48 PM    <DIR>          TheDebianProject.DebianGNULinux_76v4gfsz19hv4
03/10/2020  01:15 AM                 0 ubuntu.exe
              16 File(s)              0 bytes
               9 Dir(s)  42,065,428,480 bytes free
```