sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: next.js
Issue: Inconsistent value for context.resolvedUrl in getServerSideProps
Labels: bug

**What version of Next.js are you using?**

`v10.0.8` (probably happening in earlier versions)

**What version of Node.js are you using?**

v12.18.3 (should be replicable in any)

**What browser are you using?**

Any

**What operating system are you using?**

Any

**How are you deploying your application?**

next start

**Describe the Bug**

When using `rewrites` without file-system based routing (`useFileSystemPublicRoutes: false`), the value for `context.resolvedUrl` on `getServerSideProps` lacks the query parameters when navigating server side (full page load).

**Expected Behavior**

`context.resolvedUrl` should return the same value when navigating client side or server side.

**To Reproduce**

I've created a codesandbox to reproduce the issue:

https://codesandbox.io/s/musing-lederberg-zuexy

This codesandbox has a next.config.js that disables file-sytem routing, and defines the following rewriting rules:

```js
module.exports = {
  useFileSystemPublicRoutes: false,
  async rewrites() {
    return [
      {
        source: "/",
        destination: "/"
      },
      {
        source: "/products/:slug",
        destination: "/items/itemview?slug=:slug"
      }
    ];
  }
};
```

To reproduce the bug:

1. Open the codesandbox 
2. Click on "Go to product page".
3. Notice how `context.resesolvedUrl` = `/items/itemview?slug=fancy-thing-1`, i.e. it includes the `slug` param
4. Now refresh that page doing a full page reload. Notice how the `slug` param is now missing from `context.resolvedUrl`
Repository: pytorch
Issue: Create a standalone python execution viewer like livepython
Labels: feature,module: logging,triaged

## 🚀 Feature
<!-- A clear and concise description of the feature proposal -->
I'm proposing a cherry picking of this idea by @agermanidis into a way pytorch can display variables without dropping into a debug mode in an ide debugger. If you look here - you can advance steps and see logic and control flow and variables.
https://github.com/agermanidis/livepython

## Motivation
I'm watching videos on youtube around training / using nn.modules - but apart from a crude logging during training epoch steps 95% complete - viewers are completely in the dark on what's going on under the hood of a neural net on each step. 
https://www.youtube.com/watch?v=euwN5DHfLEo




## Pitch
Hive off this idea into a separate pet project / have the community rally around to help flesh this out. Think of it as a notebook style - but you can control what's useful to display for users looking at pytorch modules. 
The display of relevant graphs around data maybe nice too. Histograms / data distributions. 
If you could have it show a maths formula some how ( include images?) / it could greatly help ml community.
Perhaps there's more that can be done to illustrate the life cycle and layers created / activate while code is executing.
Display execuation of graph ? not sure - maybe there's another front end department that can come to the party. 


<img width="549" alt="Screen Shot 2021-02-26 at 11 14 39 pm" src="https://user-images.githubusercontent.com/289994/109298937-6cbad100-7888-11eb-8896-f2d99ce70a8b.png">
Getting the maths / vectors / linear algebra across from the maths papers into code is steep challenge
But to see control flow moving around and inspect / introspect variables / models - it helps faciliate deeper understanding. 

## Alternatives
spider. other python ide.

## Additional context

![68747470733a2f2f692e696d6775722e636f6d2f33366f456833522e676966](https://user-images.githubusercontent.com/289994/109298769-34b38e00-7888-11eb-8b24-9410b9d3162a.gif)

For reference
vscode - debugger = data overload. 
<img width="3200" alt="Screen Shot 2021-02-26 at 11 34 01 pm" src="https://user-images.githubusercontent.com/289994/109301027-6c700500-788b-11eb-987c-13b74c7cf775.png">
<img width="3200" alt="Screen Shot 2021-02-26 at 11 34 13 pm" src="https://user-images.githubusercontent.com/289994/109301034-6f6af580-788b-11eb-9bac-01ad51889bdf.png">



<img width="2085" alt="Screen Shot 2021-02-26 at 11 32 47 pm" src="https://user-images.githubusercontent.com/289994/109301002-64b06080-788b-11eb-8b01-615a5822f6d9.png">
Repository: PowerToys
Issue: [KBM] Enable/Disable individual remaps.
Labels: Idea-Enhancement,Product-Keyboard Shortcut Manager

## I think it would be useful to be able to disable and enable each remap individually.

_This is useful when you use a key so often at times that you want to remap it, but that event only happens occasionally._

For example: The Germany keyboard has the "," assigned to numpad (where the US has a) ".". Which can be useful as that is the separator in Germany for decimals, but if you have to enter a lot of dates (which are in Germany are separated by a "."), or have to deal with the US format of numbers, you might want (at least temporary) a "." at that place as that lets you enter them more smoothly and quickly.

If you can turn off each remapping individually you can keep it in setting while being able to turn it off when needed, without impairing any other remaps or shortcuts.

---

If you'd like to see this feature implemented, add a 👍 reaction to this post.
Repository: PowerToys
Issue: [Run][Plugin Manager] UI: Clickable author name to open plugin website
Labels: Idea-Enhancement,Product-Settings,Resolution-Fix Committed,Area-User Interface,Run-Plugin Manager

_We have now implemented a plugin management for PT Run into the settings ux. (PR   #9872; Issue #5273)_

### Enhancement
We show the plugin author on each plugin's list view item.
In our `plugin.json` we have an entry for the web page. So the idea is to show the author name as link to the website if the element is filled in the json.
![image](https://user-images.githubusercontent.com/61519853/109301744-a2d06480-7838-11eb-851a-266310a434dc.png)

Then we don't have to append the link on the side panel (section: Attribution) like we have at the moment for `Window Walker`:
![image](https://user-images.githubusercontent.com/3206696/109046415-004ba080-76d5-11eb-8c60-51bc49aeb493.png)

----
_This is a remaining work item   form PR #9872._
Repository: go
Issue: net/url: can't roundtrip path-only url with double leading slash
Labels: NeedsInvestigation

<!--
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.16 linux/amd64

</pre>

### Does this issue reproduce with the latest release?



### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
[root@cor0ps ~]# go env
GO111MODULE="off"
GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/usr/local/sbin/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/bin:/opt/go/"
GOPRIVATE=""
GOPROXY="https://mirrors.aliyun.com/goproxy/"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.16"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build2374357860=/tmp/go-build -gno-record-gcc-switches"

</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/aGhEYiEiSfN
panic: parse "//%20f": invalid URL escape "%20"

goroutine 1 [running]:
main.main()
	/tmp/sandbox000750098/prog.go:23 +0x269


### What did you expect to see?

first parse  and second parse  need same

### What did you see instead?

panic: parse "//%20f": invalid URL escape "%20"

goroutine 1 [running]:
main.main()
	/tmp/sandbox000750098/prog.go:23 +0x269
Repository: terminal
Issue: Keybind disable mode
Labels: Issue-Feature,Area-Settings,Product-Terminal

# Description of the new feature/enhancement

There should be a way to allow "passthrough" of keybindings to the terminal session - for example, the keybinding <kbd>Ctrl+Shift+&darr;</kbd> is used in Terminal to resize a pane, but it's also used by the Linux terminal multiplexer BYOBU to resize panes.

I envision something like a command in the palette to disable Terminal keybindings and allow then to pass through to the terminal itself. This command would automatically disable "focus mode" (since there'd be no way to exit focus mode again) and would be a toggle.

I searched around in existing open/closed tickets as well as the documentation to see if something like this already exists, and as far as I can tell it doesn't. #5790 is somewhat related, in that it could be a "workaround" for this feature.

# Proposed technical implementation details (optional)

I imagine it'd be a fairly simple matter to have an early exit in the keybind handling code to check if this mode is enable, and if so act as if there are no keybindings.
Repository: PowerToys
Issue: [PT Run][Indexer] Warning only shown if at least one result is available
Labels: Issue-Bug,Product-PowerToys Run,Priority-3,Run-Results (Indexer)

<!--
**Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**.
Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue.
-->

## ℹ Computer information

- PowerToys version: 0.31.2
- PowerToy Utility: PT Run > Indexer
- Running PowerToys as Admin: no
- Windows build number: [run "winver"] 20H2

## 📝 Provide detailed reproduction steps (if any)

1. Enter keyword
2. Search for existing file name
3. Search for not existing file (name)

### ✔️ Expected result

I would expect that in all situations the warning is shown.

### ❌ Actual result

The warning is only shown on step 2.

## 📷 Screenshots

### With keyword

![image](https://user-images.githubusercontent.com/61519853/109307983-b92eee00-7841-11eb-9a9c-763efb2e3e99.png)

![image](https://user-images.githubusercontent.com/61519853/109308028-c9df6400-7841-11eb-8134-8c979368a48e.png)

![image](https://user-images.githubusercontent.com/61519853/109308115-e11e5180-7841-11eb-9ce2-71b6cffdcfeb.png)

### Without keyword

![image](https://user-images.githubusercontent.com/61519853/109308242-0ad77880-7842-11eb-8ef2-e0d0a2fd25cb.png)

![image](https://user-images.githubusercontent.com/61519853/109308314-2478c000-7842-11eb-9c9e-1e6f15f2ef1d.png)
Repository: pytorch
Issue: Broadcasting behaviour for linear algebra solvers
Labels: triaged,module: linear algebra

## 🚀 Feature Discussion
<!-- A clear and concise description of the feature proposal -->
**The question is whether solve-like functions need to support batch broadcasting for _b_ of shape `(n,)`.**

PyTorch currently includes several functions for problems of type: find _x_ s.t. ||_Ax - b_|| is minimized (_Ax = b_). Let's call it "solve-like functions":
```
torch.linalg.solve
torch.solve
torch.cholesky_solve
torch.triangular_solve
torch.lu_solve
torch.lstsq
```
For _A_ with shape `(n, n)` only `torch.linalg.solve` allows the _b_ input of shape `(n,)` or `(n, nrhs)`.  Other functions require the _b_ input to be a 2-dimensional tensor of shape `(n, nrhs)`.
Supporting 1-dimensional _b_ input is NumPy and SciPy compatible. SciPy doesn't support batched inputs, NumPy supports batched inputs for `numpy.linalg.solve`, but not for `numpy.linalg.lstsq`.

`numpy.linalg.solve` supports batch-wise broadcasting only for `(n, nrhs)` type of _b_ inputs:
```python
import torch
import numpy as np
a = torch.randn(2, 3, 1, 3, 3)
b = torch.randn(3)
np.linalg.solve(a, b) # doesn't work
np.linalg.solve(a, b.unsqueeze(-1)) # this one works
# both cases work currently for torch.linalg.solve
a = torch.randn(3, 3)
b = torch.randn(2, 3, 1, 3)
np.linalg.solve(a, b) # doesn't work
np.linalg.solve(a, b.unsqueeze(-1)) # this one works
# torch.linalg.solve currently has the same behaviour
```

NumPy's behaviour makes sense because `(a.inverse() @ b).shape = torch.Size([2, 3, 1, 3])` and batched matrix multiplication doesn't work for `a @ (a.inverse() @ b)`, but works for `a @ (a.inverse() @ b).unsqueeze(-1)`.

For NumPy compatibility, we need to support batch broadcasting for _b_ of shape `(n, nrhs)` for `torch.linalg.solve` and consequently apply the same behavior to all solve-like functions.

Do solve-like functions need to support batch broadcasting for _b_ of shape `(n,)`?

The problem here is ambiguity for deciding whether we have a matrix or vector _b_. For example for _A_ of shape `(3, 3, 3)` how should we interpret _b_ of shape `(3, 3)` is a single matrix input to be batch broadcasted or a batch of vectors.

Currently `torch.linalg.solve` treats the matrix case as primary and _b_ is regarded as vector if `b.ndim == 1 or ((A.ndim-b.ndim == 1) and (A.shape[:-1] == b.shape))`. This rule is compatible with NumPy, see https://github.com/numpy/numpy/blob/v1.20.0/numpy/linalg/linalg.py#L384-L389.

Interestingly NumPy fails for this case:
```python
a = torch.randn(3, 3, 3)
b = torch.randn(3)
np.linalg.solve(a, b) # doesn't work
np.linalg.solve(a, b.unsqueeze(-1)) # also doesn't work
# both cases work with torch.linalg.solve
```

## Additional context

<!-- Add any other context or screenshots about the feature request here. -->
Memory inefficiency of the actual implementation is discussed here https://github.com/pytorch/pytorch/issues/49252.


cc @jianyuh @nikitaved @pearu @mruberry @heitorschueroff @walterddr @IvanYashchuk
Repository: excalidraw
Issue: Adding points to line or arrow on touch device
Labels: enhancement,mobile

Great job on a great tool guys!

I have been playing around with excalidraw and I am  not able to create a point for a line or arrow on a touch device . On the computer I was able to do it by pressing alt. But is there any alternative for touch device or am I missing something? I couldn't find anything on this issue.
Repository: PowerToys
Issue: [PT Run] Notification bar - Trigger: by common interface
Labels: Idea-Enhancement,Product-PowerToys Run,Area-User Interface

## 📝 Provide a description of the new feature

We are planning for the future to replace all `toast notifications` in PT by other types of notifications. One of the reasons is that the toasts can be disabled by the user and then the information isn't provided anymore.

Since I think that message boxes are to interrupting when showing results of PT Run's plugins, I searched for a possible idea.
My idea is a standardized notification bar that can be triggered by the plug-ins via a common interface. This message bar can be used for warning messages from PT Run (e. g. no plugins enabled) itself too.

![PTRun_Messagebar2](https://user-images.githubusercontent.com/61519853/109321377-5c3b3400-7851-11eb-84f9-e3fae4af9838.png)


**Features of the notification bar should be:**
- Can be triggered from plugins by a common interface.
- Can be used from PT Run itself. (Example: No plugins available.)
- Defined types of message (color and icon): Error, Warning, Success, Info
- Auto hiding after timeout.
- Button to close the bar.

---

If you have more ideas, feel free to let us know on them.

If you'd like to see this feature implemented, add a 👍 reaction to this post.
Repository: go
Issue: database/sql: error not wrapped
Labels: NeedsInvestigation

<!--
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.16 darwin/amd64
</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

GOARCH="amd64"
GOHOSTOS="darwin"

</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.
-->

Happened to use one of the SQL Exec methods and happened to get error at https://github.com/golang/go/blob/0e85fd7561de869add933801c531bf25dee9561c/src/database/sql/convert.go#L194 

The error does not get wrapped (with "%w"), so cannot use `errors.Is()`


### What did you expect to see?



### What did you see instead?
Repository: PowerToys
Issue: [Telemetry] consider adopting ActivityId start/stop events
Labels: Area-Quality,Area-Telemetry,Issue-Task

Currently we use manual time-lapse counters, instead of using the built-in ActivityId feature that automatically calculates the time-lapse for start/stop events.
Repository: pytorch
Issue: [TorchScript Usability]  More intuitive error message when passing wrong types to `torch.jit.script()`
Labels: oncall: jit

## 🐛 Bug

Test case: [test-instanceclass.py](https://github.com/penguinwu/hodgepodge/blob/master/TorchScriptStudy/bad-examples/test-instanceclass.py)

This example passes an object of an arbitrary class to `trace.jit.script()`, but `trace.jit.script()` only accepts function objects or module objects. But the error message is not intuitive:
```
Traceback (most recent call last):
  File "test-instanceclass.py", line 14, in <module>
    m = torch.jit.script(MyClass(2, (1,2)))
  File "/home/pengwu/local/miniconda3/envs/pytorch/lib/python3.8/site-packages/torch/jit/_script.py", line 901, in script
    qualified_name = _qualified_name(obj)
  File "/home/pengwu/local/miniconda3/envs/pytorch/lib/python3.8/site-packages/torch/_jit_internal.py", line 793, in _qualified_name
    raise RuntimeError("Could not get name of python class object")
RuntimeError: Could not get name of python class object
```

A preferred error message should be something like this:
```
torch.jit.trace() expects function or module objects
```

Related to #50444

cc @gmagogsfm
Repository: go
Issue: x/tools/gopls: be more strict in matching diagnostics and quick fixes in regression tests
Labels: Testing,gopls,Tools

Currently, regression tests allow you to match on a single diagnostic in a file without specifying its message. This can lead to us matching the wrong diagnostic or applying the wrong quick fixes.

Whenever we wait for diagnostics, we should wait for all of the diagnostics in the file to ensure we're not producing duplicates or new diagnostics. We should also always require the diagnostic message in all cases.

Finally, we should require a single diagnostic when we apply quick fixes, instead of applying all of the quick fixes available.

/cc @heschik
Repository: TypeScript
Issue: Heap out of memory on version 4.2
Labels: Needs Investigation

# Bug Report

### 🔎 Search Terms
- memory

<!--
  Please fill in each section completely. Thank you!
-->
### 🕗 Version & Regression Information

On a Vue project the compiler crashes with Heap out of memory. This does not happen on version 4.1.3.

```
⠙  Building for production...Starting type checking service...
Using 1 worker with 2048MB memory limit
⠼  Building for production...
<--- Last few GCs --->

[34642:0x41419c0]   211431 ms: Scavenge 956.0 (980.7) -> 940.2 (980.7) MB, 0.3 / 0.0 ms  (average mu = 0.996, current mu = 0.994) allocation failure 
[34642:0x41419c0]   211566 ms: Scavenge 956.0 (980.7) -> 940.2 (980.7) MB, 0.3 / 0.0 ms  (average mu = 0.996, current mu = 0.994) allocation failure 
[34642:0x41419c0]   211705 ms: Scavenge 956.0 (980.7) -> 940.2 (980.7) MB, 0.3 / 0.0 ms  (average mu = 0.996, current mu = 0.994) allocation failure 


<--- JS stacktrace --->

==== JS stack trace =========================================

    0: ExitFrame [pc: 0xa9c298dbf1d]
Security context: 0x29d2e9a1e6c1 <JSObject>
    1: parseList(aka parseList) [0x292d524ccc59] [/home/qp/IdeaProjects/MyEtherWallet/node_modules/typescript/lib/typescript.js:~30031] [pc=0xa9c29c58125](this=0x3ba7b93026f1 <undefined>,kind=0,parseElement=0x292d524cfa99 <JSFunction parseStatement (sfi = 0x3ef7041e4489)>)
    2: parseSourceFileWorker(aka parseSourceFileWorker) [0x292d524cbb99] [/home/qp/Idea...

FATAL ERROR: invalid array length Allocation failed - JavaScript heap out of memory
 1: 0x8fb090 node::Abort() [/home/qp/.nvm/versions/node/v10.23.3/bin/node]
 2: 0x8fb0dc  [/home/qp/.nvm/versions/node/v10.23.3/bin/node]
 3: 0xb033be v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/home/qp/.nvm/versions/node/v10.23.3/bin/node]
 4: 0xb035f4 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/home/qp/.nvm/versions/node/v10.23.3/bin/node]
 5: 0xef7652  [/home/qp/.nvm/versions/node/v10.23.3/bin/node]
 6: 0xed0734 v8::internal::Factory::NewFixedArrayWithFiller(v8::internal::Heap::RootListIndex, int, v8::internal::Object*, v8::internal::PretenureFlag) [/home/qp/.nvm/versions/node/v10.23.3/bin/node]
 7: 0xed0d07 v8::internal::Factory::NewUninitializedFixedArray(int, v8::internal::PretenureFlag) [/home/qp/.nvm/versions/node/v10.23.3/bin/node]
 8: 0xe8408f  [/home/qp/.nvm/versions/node/v10.23.3/bin/node]
 9: 0x112a71d v8::internal::Runtime_GrowArrayElements(int, v8::internal::Object**, v8::internal::Isolate*) [/home/qp/.nvm/versions/node/v10.23.3/bin/node]
10: 0xa9c298dbf1d 
⠼  Building for production...Type checking and linting aborted - probably out of memory. Check `memoryLimit` option in ForkTsCheckerWebpackPlugin configuration.
⠏  Building for production...
```

### ⏯ How to reproduce:

1. Use Node 10
2. `git clone --branch 21-add-typescript-support git@github.com:theqp/MyEtherWallet.git`
3. Change typescript to 4.2.2 (it would work otherwise)
4. `npm i`
5. `echo "" > package-test.js && NODE_OPTIONS="--max-old-space-size=4096" npm run build`
6. Wait for the crash :D