sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: next.js
Issue: Error compiling Linaria with styled(Link)
Labels: examples

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 22.1.0: Sun Oct  9 20:15:09 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T6000
Binaries:
  Node: 18.12.0
  npm: 8.19.2
  Yarn: 1.22.17
  pnpm: N/A
Relevant packages:
  next: 13.0.7-canary.5
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
```

### Which example does this report relate to?

with-linaria

### Describe the Bug

When limited to `styled.div`, the example works fine. However, trying to [override styles](https://github.com/callstack/linaria/blob/master/docs/BASICS.md#styling-custom-components) on the built-in `Link` or `Image` components causes an error to be thrown during Babel compilation. For example:

```tsx
import Link from 'next/link'

const StyledLink = styled(Link)`
  color: red;
`
```

Here's the error, as thrown when I run `npm run dev`:

```
/Users/trevor.burnham/code/with-linaria-app/node_modules/@linaria/babel-preset/lib/module.js:342
        throw new EvalError(`${e.message} in${callstack.join('\n| ')}\n`);
        ^

EvalError: Cannot assign to read only property '__esModule' of function 'function initHeadManager() {
    return {
        mountedInstances: new Set(),
        updateHead: (head)=>{
  ...<omitted>...
}' in
| /Users/trevor.burnham/code/with-linaria-app/node_modules/next/dist/client/head-manager.js
| /Users/trevor.burnham/code/with-linaria-app/node_modules/next/dist/client/script.js
| /Users/trevor.burnham/code/with-linaria-app/node_modules/next/dist/shared/lib/router/router.js
| /Users/trevor.burnham/code/with-linaria-app/node_modules/next/dist/client/link.js
| /Users/trevor.burnham/code/with-linaria-app/node_modules/next/link.js
| /Users/trevor.burnham/code/with-linaria-app/pages/index.tsx
```

### Expected Behavior

The Linaria docs say that `styled()` should work on any component that accepts `className` and `styled`, so `styled(Link)` shouldn't be a problem.

It's possible to work around the issue using `css`, just a bit more cumbersome:

```tsx
import { css } from '@linaria/core'
import Link from 'next/link'

const linkStyles = css`
  color: red;
`

<Link className={linkStyles} href="/">Home</Link>
```

### To Reproduce

1. `npx create-next-app --example with-linaria with-linaria-app`
2. In the `pages/index.tsx` of the newly created app, add a `styled(Link)` or `styled(Image)`
3. `npm run dev`
Repository: stable-diffusion-webui
Issue: [Feature Request]: Tileable img2img with the Depth Model
Labels: enhancement

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What would your feature do ?

When using the Depth Model, the Tiling Checkbox will function normally, as with regular img2img... somehow
Alternatively, if there was some way to preserve the seamlessness of an existing seamless height map that has been used as the input image, that would be great too (if not, better)

### Proposed workflow

1. Go to generate seamless texture from depth map
2. Press generate
3. Get seamless results


### Additional information

The Tiling function does seem to be _trying_ to work, but I think the depth model is interrupting it in some way. At high denoise things go haywire with tiling enabled and at medium denoise there is noticeable decay in quality. I am even starting with a seamless height map but cannot get a seamless result. It may be that the best way to achieve what I want specifically is to have SD be capable of not only creating seamlessness, but also preserving it where it already exists, using a new kind of Tiling function. I don't know how possible this is but it would certainly be something that works differently to the existing Tiling checkbox. (For context: I'm basically just trying to get SD to make the diffuse/albedos for my materials for me lol)
Repository: go
Issue: proposal: x/sys/windows: let `HRESULT` implement the `error` interface
Labels: OS-Windows,Proposal

<!--
Our proposal process is documented here:
https://go.dev/s/proposal-process
-->

Now error values from APIs in the x/sys/windows package are `syscall.Errno`, even though the original API returns `HRESULT` value. For example, [`CoInitializeEx` originally returns `HRESULT`](https://learn.microsoft.com/en-us/windows/win32/api/combaseapi/nf-combaseapi-coinitializeex), but [`windows.CoInitializeEx` wraps the HRESULT value as `syscall.Errno` and returns it](https://cs.opensource.google/go/x/sys/+/refs/tags/v0.3.0:windows/zsyscall_windows.go;l=3467-3473;drc=3ca3b18c8b9bb09620854907cd3ea668c5bc6b52). This package doesn't distinguish `Errno` and `HRESULT` as error values, and this seems odd in terms of semantics. My understanding is [`Errno`](https://learn.microsoft.com/en-us/cpp/c-runtime-library/errno-constants?view=msvc-170) and [`HRESULT`](https://learn.microsoft.com/en-us/windows/win32/seccrypto/common-hresult-values) are different things. There might be a historical reason why this package does so, but in this case I'd like to know.

My proposal is to let `HRESULT` implement the `error` interface and let the APIs return it (when the value is not `S_OK`) instead of wrapping as `Errno`. This simple implementation would be enough:

```go
func (h HRESULT) Error() string {
    return fmt.Sprintf("HRESULT(%08x)", h)
}
```

This is a breaking change and existing error checkings might no longer work, after the APIs return `HRESULT` instead of `Errno`. However, as x/sys/windows is still v0, a breaking change should be acceptable.

The controversial point is that there are some non-zero values which can be used in a successful case (e.g. `S_FALSE` for `CoInitializeEx`). In this case, implementing `error` might be odd. IMO my proposal is not a perfect solution but should be better than wrapping `HRESULT` as `Errno` without conditions, and improve the current semantics confusion.
Repository: flutter
Issue: There is a gif that cannot be loaded only in Android and iOS.
Labels: engine,a: images,has reproducible steps,P2,found in release: 3.3,found in release: 3.7,team-engine,triaged-engine

code : 
Image.network(***);

The image above can be loaded well on the web (chrome), but it cannot be loaded on Android and iOS.

android, ios error message : Codec failed to produce an image, possibly due to invalid image data.

I've tried some plug-ins, but they're the same.

Is there any way to load from Android and iOS?

thanks.
Repository: vscode
Issue: GitHub - Help users to authenticate Git with GitHub auth
Labels: feature-request,git,github,github-authentication

VS Code transparently authenticates HTTPS Git commands made from within VS Code, once a user authenticated with GitHub in VS Code. This feels more of a side effect though, as GitHub auth is only triggered by the built-in settings sync, clone/publish GitHub prompts, and any extensions depending on it.

_How might we_ make shared Git/GitHub auth a well-lit path that helps users during their Git setup, the first time they touch GitHub, and resolving any authentication issues?

Related:
- Could also use GitHub to auto-set the username and email for #114049.
- GitHub also [guides users](https://docs.github.com/en/get-started/quickstart/set-up-git#authenticating-with-github-from-git) to install git and authenticate it using `gh auth login`

cc @esonnino @TylerLeonhardt @lszomoru
Repository: vscode
Issue: Jupyter: move cell up/down buttons
Labels: feature-request,notebook-celltoolbar

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->
In the Jupyter plugin, I cannot find "Move cell up" and "Move cell down" buttons.

Where I would expect to see them, I find  "execute cell and below/above" buttons, which are confusing and in my opinion unnecessary.

Drag-and-drop reordering is nice, but when you have tall cells with long output, it's much harder to use than clicking a button.

Edit: also, a "Run next cell" button would be nice in the top interface, so we can run 3 cells by clicking it 3 times, instead of pecking with the mouse for the next "Execute cell". (I am aware of keyboard shortcut)
Repository: tauri
Issue: [feat] Add a CookieManager to the WebView
Labels: type: feature request

### Describe the problem

I need an API to get cookies from an external WebView

### Describe the solution you'd like

```ts
const webview = new WebviewWindow('theUniqueLabel', {
  url: 'https://tauri.app/',
});
const allCookie = await webview.cookieManager.getAllCookie();
// ...
```

### Alternatives considered

_No response_

### Additional context

_No response_
Repository: vscode
Issue: Feature Request: Support collapsible markdown
Labels: feature-request,comments

<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->

Github Supports a feature that allows markdown sections to collapse. ([link](https://gist.github.com/pierrejoubert73/902cc94d79424356a8d20be2b382e1ab)) Currently I use a CI tool that prints extremely verbose output as PR comments, but it collapses the content by default, making it much more manageable in the default GitHub UI. Unfortunately these sections aren't correctly collapsed in VSCode, which is rather annoying. Supporting this feature in VSCode would be a big improvement for me.
Repository: pytorch
Issue: pytorch prune in libtorch
Labels: module: cpp,triaged

### 📚 The doc issue

torch.nn.utils.prune is the model pruning function of pytorch
How to call this function in libtorch

### Suggest a potential alternative/fix

_No response_

cc @jbschlosser
Repository: storybook
Issue: [Bug]: Test runner failed to run in gitlab CI
Labels: bug,needs triage

### Describe the bug

test runner failed to run in gitlab CI

run yarn test-storybook:ci in git lab got the following error:

![Screenshot 2022-12-13 at 4 26 48 PM](https://user-images.githubusercontent.com/44113416/207264360-91fdd9b1-a911-4c91-9582-d47689213f82.png)

below are the ci code

![Screenshot 2022-12-13 at 4 31 18 PM](https://user-images.githubusercontent.com/44113416/207265372-4fbc16b3-60ec-4344-b646-545227725bde.png)

below are the result from npx sb info(in my local, not in gitlab )
![Screenshot 2022-12-13 at 4 48 48 PM](https://user-images.githubusercontent.com/44113416/207269599-7768e444-8d51-4474-994c-6641e0ae6104.png)



To fix this issue, i added npx playwright install --with-deps .
but got this error, which shows the playwright can not be installed

![Screenshot 2022-12-13 at 6 23 36 PM](https://user-images.githubusercontent.com/44113416/207292469-b0df0975-083a-41a7-bcc3-8d46adfa4ef4.png)


### To Reproduce

_No response_

### System

_No response_

### Additional context

_No response_
Repository: angular
Issue: Organize long docs into shorter parts for users with different needs
Labels: P3,area: docs

### Describe the problem that you experienced

Hi, I'm new to Angular and often need to read the documentation. For the second time I have experienced this problem: you explain something that require me a hour or two to read and (partially) understand, and then you say something "but for big real-world applications, forget what you just have read, and read this instead (another hour to spend)".

In particular this apply to 1) routing 2) forms.

Probably 95% of Angular users are working on large applications, so Lazy-Loading should be explained first. I think it will save a lot of time if in the beginning of routing docs, you said something like "if you building small app, than read this, if you building big app - go to lazy loading docs".
Same apply to forms - everybody probably uses form control, why you teaching template forms first? Divide this docs at the beginning.

I hope my proposal will help people dig into Angular. 
Thank you, Juri.
Repository: pytorch
Issue: Adam (fused=True) issues
Labels: module: performance,module: optimizer,module: cuda,triaged

### 🐛 Describe the bug

I am having serious doubt on the 1.13 Adam(fused=true) implementation.
First it should be faster than fused=False, in our case it is not, but also the numerical seems off.

Adam(fused=False)
[2022-12-09 12:21:37,894 INFO] Start training loop and validate every 10000 steps...
[2022-12-09 12:23:49,851 INFO] Step 100/100000; acc: 16.1; ppl: 6103.2; xent: 8.7; lr: 0.00002; sents: 169920; bsz: 8605/10659/340; 32607/40388 tok/s; 132 sec;
[2022-12-09 12:25:22,693 INFO] Step 200/100000; acc: 21.4; ppl: 957.8; xent: 6.9; lr: 0.00005; sents: 153056; bsz: 8588/10584/306; 46250/57000 tok/s; 225 sec;
[2022-12-09 12:26:55,347 INFO] Step 300/100000; acc: 25.8; ppl: 414.5; xent: 6.0; lr: 0.00007; sents: 139424; bsz: 8796/10695/279; 47467/57717 tok/s; 317 sec;

Adam(fused=True)
[2022-12-09 12:29:46,843 INFO] Step 100/100000; acc: 15.9; ppl: 7363.9; xent: 8.9; lr: 0.00002; sents: 169920; bsz: 8605/10659/340; 32465/40212 tok/s; 133 sec;
[2022-12-09 12:31:19,458 INFO] Step 200/100000; acc: 18.1; ppl: 1606.6; xent: 7.4; lr: 0.00005; sents: 153056; bsz: 8588/10584/306; 46363/57140 tok/s; 225 sec;
[2022-12-09 12:32:53,634 INFO] Step 300/100000; acc: 22.1; ppl: 702.1; xent: 6.6; lr: 0.00007; sents: 139424; bsz: 8796/10695/279; 46700/56784 tok/s; 319 sec;

Fusedadam apex O2
[2022-12-09 12:35:51,087 INFO] Step 100/100000; acc: 16.1; ppl: 6136.2; xent: 8.7; lr: 0.00002; sents: 169920; bsz: 8605/10659/340; 36301/44964 tok/s; 119 sec;
[2022-12-09 12:37:11,869 INFO] Step 200/100000; acc: 21.4; ppl: 959.9; xent: 6.9; lr: 0.00005; sents: 153056; bsz: 8588/10584/306; 53155/65510 tok/s; 199 sec;
[2022-12-09 12:38:33,601 INFO] Step 300/100000; acc: 25.8; ppl: 415.1; xent: 6.0; lr: 0.00007; sents: 139424; bsz: 8796/10695/279; 53810/65430 tok/s; 281 sec;

Fusedadam apex old legacy code
[2022-12-09 12:42:04,245 INFO] Step 100/100000; acc: 16.1; ppl: 6136.2; xent: 8.7; lr: 0.00002; sents: 169920; bsz: 8605/10659/340; 37141/46004 tok/s; 116 sec;
[2022-12-09 12:43:21,080 INFO] Step 200/100000; acc: 21.4; ppl: 959.9; xent: 6.9; lr: 0.00005; sents: 153056; bsz: 8588/10584/306; 55886/68875 tok/s; 193 sec;
[2022-12-09 12:44:41,898 INFO] Step 300/100000; acc: 25.8; ppl: 415.1; xent: 6.0; lr: 0.00007; sents: 139424; bsz: 8796/10695/279; 54419/66169 tok/s; 274 sec;

As you can see the second one (Adam(fused=True) is not faster, clearly much slower than the Apex implementations, and accuracy, ppl, loss are off compared to the 3 others.





### Versions


pytorch 1.13
Ubuntu 20.04
OpentNMT-py 3.0.1

cc @ngimel @vincentqb @jbschlosser @albanD @janeyx99
Repository: PowerToys
Issue: PowerToys Run - Start when writting on desktop
Labels: Idea-Enhancement,Product-PowerToys Run,Needs-Triage

### Description of the new feature / enhancement

Make PowerToys Run start when writting on the desktop.


### Scenario when this would be used?

When a user is on their desktop, no applications are open (or all are minimized) and they start typing, the PowerToys Run search bar appears (activation without shortcut).


### Supporting information

_No response_
Repository: stable-diffusion-webui
Issue: [Bug]: Cannot open if folder is on a Network Drive
Labels: asking-for-help-with-local-system-issues

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

I cant open this when launching from a network drive.  I get the following when I open webui-user.bat

```
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: <none>
Traceback (most recent call last):
  File "P:\Stable Difussion\ai\launch.py", line 293, in <module>
    prepare_enviroment()
  File "P:\Stable Difussion\ai\launch.py", line 236, in prepare_enviroment
    git_clone(stable_diffusion_repo, repo_dir('stable-diffusion-stability-ai'), "Stable Diffusion", stable_diffusion_commit_hash)
  File "P:\Stable Difussion\ai\launch.py", line 92, in git_clone
    current_hash = run(f'"{git}" -C {dir} rev-parse HEAD', None, f"Couldn't determine {name}'s hash: {commithash}").strip()
  File "P:\Stable Difussion\ai\launch.py", line 49, in run
    raise RuntimeError(message)
RuntimeError: Couldn't determine Stable Diffusion's hash: 47b6b607fdd31875c9279cd2f4f16b92e4ea958e.
Command: "git" -C repositories\stable-diffusion-stability-ai rev-parse HEAD
Error code: 128
stdout: <empty>
stderr: fatal: detected dubious ownership in repository at '//Unraid/Stable Difussion/ai/repositories/stable-diffusion-stability-ai'
'//Unraid/Stable Difussion/ai/repositories/stable-diffusion-stability-ai' is owned by:
        'S-1-5-21-3821795638-3536519085-656746211-3000'
but the current user is:
        'S-1-5-21-1746667136-159891385-126574782-1001'
To add an exception for this directory, call:

        git config --global --add safe.directory '%(prefix)///Unraid/Stable Difussion/ai/repositories/stable-diffusion-stability-ai'
```


So I try entering in a command prompt  

`git config --global --add safe.directory '%(prefix)///Unraid/Stable Difussion/ai/repositories/stable-diffusion-stability-ai'`

But it doesnt work.  just says "error: wrong number of arguments, should be 2
usage: git config [<options>]
"

If I run this locally from somewhere like c:\Stable Diffusion, it all works without issue.

### What should have happened?

It should have worked like when launching if the files are stored locally

### Commit where the problem happens

bb11bee22ab02aa2fb5b96baa9be8103fff19e6a

### What platforms do you use to access UI ?

Windows
Repository: rust
Issue: Associated types in traits forget their bounds when referenced in `impl`s
Labels: A-trait-system,A-associated-items,T-compiler,T-types

Associated types in traits seem to "forget" their bounds when referenced in `impl`s. For example this code:

```rust
use std::marker::PhantomData;

trait AssocTypes
where
    Self::A: T1,
{
    type A;
}

trait T1 {}

struct S<T> {
    phatom: PhantomData<T>,
}

impl<AssocTypesT: AssocTypes> From<AssocTypesT::A> for S<AssocTypesT> {
     fn from(x: AssocTypesT::A) -> S<AssocTypesT> {
        todo!()
    }
}

fn main() {}
```

fails to compile (with rust 1.65 and nightly as of yesterday) with:

```
error[E0119]: conflicting implementations of trait `std::convert::From<S<_>>` for type `S<_>`
  --> /tmp/t.rs:16:1
   |
16 | impl<AssocTypesT: AssocTypes> From<AssocTypesT::A> for S<AssocTypesT> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: conflicting implementation in crate `core`:
           - impl<T> From<T> for T;
```

It seems fairly clear to me that in `From<AssocTypesT::A>` has ended up referencing an unbound type `A` rather than a type `A where A:T1` which is what I expected by referencing the variable in the `trait`.

The best fix I've come up with for this example is to create another type parameter that manually copies over the type bounds from the `trait`. Thus this compiles:

```rust
impl<AssocTypesT: AssocTypes, T: T1> From<T> for S<AssocTypesT> {
     fn from(x: T) -> S<AssocTypesT> {
        todo!()
    }
}
```
Repository: flutter
Issue: Flutter app works too slow if use AdobeRGB 1998 images
Labels: e: device-specific,platform-android,engine,c: performance,a: images,perf: speed,P2,team-android,triaged-android

### Description
App works really slow, if use AdobeRGB IIC profile of images. It depends on image size. I've used full-screen background image and FPS is really slow.

### Version
3.3.7, 2.10.3 and many others

### Device
Xiaomi Mi TV, Xiaomi Stick, any low performant device


### Code example

```dart
Widget build(BuildContext context) {
  return Stack(
    children: [
      Image.asset(
        'assets/background_argb.png',
        width: 1920,
        height: 1080,
      ),
      const Center(
        child: CircularProgressIndicator(),
      ),
    ],
  );
}
```

### Assets and results
[assets_and_results.zip](https://github.com/flutter/flutter/files/10216043/assets_and_results.zip)

### Results
Adobe RGB 1998:
https://user-images.githubusercontent.com/11267533/207276069-07580c38-caf3-4914-87a9-152c79a5ec40.mp4

sRGB:
https://user-images.githubusercontent.com/11267533/207276346-dfa6da39-1c04-4f9c-a1dd-6748c2b05300.mp4
Repository: go
Issue: gerrit: shows lit.dev warnings unlike other Gerrit servers
Labels: NeedsInvestigation

If I navigate to https://go-review.googlesource.com/dashboard/self while logged in, I see a few warnings in the console:

```
Lit is in dev mode. Not recommended for production! See https://lit.dev/msg/dev-mode for more information. rv-reviewers.js:772:200
Multiple versions of Lit loaded. Loading multiple versions is not recommended. See https://lit.dev/msg/multiple-versions for more information. rv-reviewers.js:772:200
```

I do not see these two warnings on different Gerrit instances like https://review.gerrithub.io/dashboard/self, for example. It could be that the difference in version is to blame, as they each run different git versions, but I couldn't find any gerrit issue about it, so I don't think it's an upstream issue. Could it be that your Gerrit is running in developer or debug mode?

Please feel free to move this if it is indeed an upstream bug.

cc @golang/release
Repository: storybook
Issue: [Bug]: CSF 2-3 auto migration script deletes empty lines
Labels: bug,codemods

### Describe the bug

After applying the auto migration csf 2-3 script, all empty lines are deleted.

### To Reproduce

```shell
npx sb@next migrate csf-2-to-3 --glob="**/*.stories.ts"
```

All empty lines in story files are deleted.
Repository: PowerToys
Issue: Keyboard manager to support shortcuts including Apps/Menu key combined with others
Labels: Needs-Triage

### Description of the new feature / enhancement

Currently Keyboard manager support combining Ctrl, Alt or Win keys with other keys in the keyboard. However the Apps/Menu key cannot be combined, that is, it is not possible to create a shortcut like (Apps/Menu + Ins) o (Apps/Menu + A).

### Scenario when this would be used?

Any kind of idea you might have for shortcut creation. In my case, I'm currently using AHK to remap Apps/Menu + Insert or similar to act as Media Keys (Volume, Play/Pause, etc.). 
The Apps/Menu key is not very useful (at least for me) and like remapping special shortcuts with this key, not to collide with other system shortcuts.

### Supporting information

_No response_
Repository: excalidraw
Issue: pan in edit mode changes zoom
Labels: UX/UI

1. in edit mode
2. zoom in/out
3. immediately after
4. hold space key + use mouse to pan
5. zoom level is changed

After playing around with this, I understood that the when releasing space, the last button clicked is clicked again. so if I press anywhere else in the doc (step 3) it avoids the bug. also, when this happens you can clearly see that the zoom button regains focus (blue border), although clicking it did not *appear* to keep the focus. 

I know this is a small thing but I'm reporting this as a bug since I think this is a very common workflow. I do this all the time when I land on a new excalidraw I immediately orient myself by zoom then pan.