sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: next.js
Issue: Exporting client components as an object throws an error.
Labels: bug

### 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.2.0: Fri Nov 11 02:06:26 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T8112
    Binaries:
      Node: 18.12.1
      npm: 9.2.0
      Yarn: 1.22.19
      pnpm: N/A
    Relevant packages:
      next: 13.1.1
      eslint-config-next: 13.1.1
      react: 18.2.0
      react-dom: 18.2.0

### Which area(s) of Next.js are affected? (leave empty if unsure)

App directory (appDir: true)

### Link to the code that reproduces this issue

https://github.com/benton-droplab/export-reproduction

### To Reproduce

1. Create a client component exported as part of an object with the "use client" directive.
2. Import into a server component.\

### Describe the Bug

Next throws the following error:

`Unhandled Runtime Error

Error: Unsupported Server Component type: undefined
Call Stack
attemptResolveElement
node_modules/next/dist/compiled/react-server-dom-webpack/server.browser.js (1387:8)
attemptResolveElement
node_modules/next/dist/compiled/react-server-dom-webpack/server.browser.js (1850:20)
resolveModelToJSON
node_modules/next/dist/compiled/react-server-dom-webpack/server.browser.js (1210:13)
stringify
<anonymous>
stringify
node_modules/next/dist/compiled/react-server-dom-webpack/server.browser.js (205:13)
processModelChunk
node_modules/next/dist/compiled/react-server-dom-webpack/server.browser.js (2111:25)
retryTask
node_modules/next/dist/compiled/react-server-dom-webpack/server.browser.js (2158:6)
performWork
node_modules/next/dist/compiled/react-server-dom-webpack/server.browser.js (1396:13)
callback
node_modules/next/dist/compiled/react-server-dom-webpack/server.browser.js (67:2)
scheduleWork
node_modules/next/dist/compiled/react-server-dom-webpack/server.browser.js (1395:4)
pingTask
node_modules/next/dist/compiled/react-server-dom-webpack/server.browser.js (1409:13)
process.processTicksAndRejections
node:internal/process/task_queues (95:5)`

### Expected Behavior

The component should import without throwing an error.

### Which browser are you using? (if relevant)

_No response_

### How are you deploying your application? (if relevant)

_No response_
Repository: next.js
Issue: define-class-fields test doesn't compile
Labels: bug,SWC

### 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 21.6.0: Thu Sep 29 20:13:56 PDT 2022; root:xnu-8020.240.7~1/RELEASE_ARM64_T6000
    Binaries:
      Node: 16.17.1
      npm: 8.15.0
      Yarn: 1.22.19
      pnpm: 7.20.0
    Relevant packages:
      next: 13.1.1
      eslint-config-next: 13.1.1
      react: 18.2.0
      react-dom: 18.2.0
```
### Which area(s) of Next.js are affected? (leave empty if unsure)

SWC transpilation

### Link to the code that reproduces this issue

-

### To Reproduce

I'm trying to test the useDefineForClassFields functionality / run the [define-class-fields](https://github.com/vercel/next.js/blob/canary/test/development/basic/define-class-fields.test.ts) test.

My problem is that while it runs well with "dev", it doesn't compile with "build".

I'm copying the files into a new create-next-app project for this.


### Describe the Bug

The problem is this line:
https://github.com/vercel/next.js/blob/canary/test/development/basic/define-class-fields/pages/animal.tsx#L49

That line works in "dev" mode, but not in "build" mode.

In build mode it returns:
```
Type error: Type 'Dog' is not assignable to type 'ReactNode'.
```
### Expected Behavior

The files should compile.

### Which browser are you using? (if relevant)

_No response_

### How are you deploying your application? (if relevant)

_No response_
Repository: godot
Issue: Global shader sampler2D built-ins not rendering in game
Labels: bug,topic:shaders

### Godot version

4.0 Beta 10

### System information

Windows 11 RTX 3070Ti Vulkan

### Issue description

When assigning noise or gradient textures to a global shader parameter the noise/gradient textures do not apply correctly. 

### Steps to reproduce

Create a project:

Scene Tree
```
-Node3d
 -Meshinstance3D
 -WorldEnvironment
 -DirectionalLight3D
 -Camer3D
```
Give the `MeshInstance3D` a cubemesh.

Assign `New Shader Material` underneath GeometryInstance3D and then give it a shader. 

Open project settings, click Shader Globals and assign a new Sampler2D. Give it a new noise and assign it a Fastnoise. Apply it to the shader.

This example is trying to use it to mix two other textures but you can also just apply the noise directly to the ALBEDO and see it renders in the editor but once you play the scene it is not applied.
```
shader_type spatial;

global uniform sampler2D noise_sample;
global uniform sampler2D gradient_sample;
global uniform sampler2D grass_sample;
global uniform sampler2D snow_sample;

void fragment() {
	vec4 grass_color = texture(grass_sample, UV);
	vec4 snow_color = texture(snow_sample, UV);
	vec4 noise = texture(noise_sample, UV);
	vec4 weight = texture(gradient_sample, noise.xy);
	vec4 mixed_color = mix(grass_color, snow_color, weight);
	ALBEDO = mixed_color.rgb;
}
```

If I were to assign the noise or gradient using the instanced `uniform Sampler2D` and assigning them in the inspector vice global it works just fine. This seems to only be an issue with the built-in options as my external images apply just fine. As you can see in the image attached it looks fine in the editor.

<img width="756" alt="github_godotv4" src="https://user-images.githubusercontent.com/65772616/209740063-72d7c8f0-6148-4d73-81a4-0938bb885ca7.png">


### Minimal reproduction project

[trial for github.zip](https://github.com/godotengine/godot/files/10311333/trial.for.github.zip)
Repository: deno
Issue: Invalid argument 
Labels: bug,needs investigation

deno 1.29.1 (release, x86_64-apple-darwin)

TypeError: Invalid argument (os error 22)
    at async Listener.accept (deno:ext/net/01_net.js:147:44)

    const conn = Deno.listen({
        transport: "unix",
        path: "/tmp/.dextradeinput.sock"
    });
    let sock = await conn.accept();


When someone writes in unix domain socket stream.
Repository: godot
Issue: HTML5 export set to 'Threads' produces "Output buffer has not enough frames! Skipping output frame."
Labels: bug,platform:web,topic:porting,needs testing

### Godot version

3.5.1 stable and 4.0 beta10

### System information

W10

### Issue description

Something is not working on the threads. Its very chaotic, and i see this error throw on other issues here on the github .

It affects audio perfomance, and it its the source of the error, but its not caused by that, and in personal projects it is causing some weird behaviour, like, i need to call twice, and only the second call i have the full code running, like the execution is being suspended because of the errors.

Thanks for any help.

### Steps to reproduce

Create a simple node.

Set HTML5 export to 'Threads'

Run on HTML5 and click the screen to start context.

Wait a little.


### Minimal reproduction project

N/A
Repository: TypeScript
Issue: can't infer an empty object in function with `ThisType`
Labels: Needs Investigation

# Bug Report
It can't inferred right when I try to infer an empty object in function with `ThisType`

<!--
  Please fill in each section completely. Thank you!
-->

### 🔎 Search Terms
infer empty object
<!--
  What search terms did you use when trying to find an existing bug report?
  List them here so people in the future can find this one more easily.
-->

### 🕗 Version & Regression Information

<!-- When did you start seeing this bug occur?

"Bugs" that have existed in TS for a long time are very likely to be FAQs; refer to
  https://github.com/Microsoft/TypeScript/wiki/FAQ#common-bugs-that-arent-bugs

If possible, please try testing the nightly version of TS to see if it's already been fixed.
For npm: `typescript@next`
This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly

Note: The TypeScript Playground can be used to try older versions of TypeScript.

Please keep and fill in the line that best applies:
-->
- This is a crash
- This changed between versions ___3.5.1___ and ___3.6.2___
- `3.5.1` is work

### ⏯ Playground Link
[Playground link with relevant code](https://www.typescriptlang.org/play?ts=3.6.3#code/LAKALgngDgpgBAYQPYFspIHYw2ACgJySgGcB5KMAS02LgF44BvAXzgB85ix9KMBzANoBdANyhQMAB7p8YOADMArhgDGVTAqRIAPFEIly6jLSlhsAE1rI0mbHn1kK1YwD4AFESPEAXE1Bw4PSIfQIdDZ1oAMjgAFQALSmIY6BhtADckSnMXMRBmAEpfIIMnGlyJaSRZBWU1Z00kD1LjXwBDDAh8vxAA-BgwRXwMOE8I3OZxEBUaOXlWygAbega3Rn9Q4N8WABpQAvKQAHpDplYOLh5+YVBIWDgAMXmF5LuGW5gkeQUnuGO4FXaAHI5Lx5DB8HAwEhTpNpsY5AB3KoAa2W8i0q3WxRCax6AUhMC4vkBAEZAetmLs8vkDn9GASiZxuLw+CIJuAUnAAOool7wN4pT5wJH4VF-ShgQAYBLQRcjJkA)
<!--
  A link to a TypeScript Playground "Share" link which shows this behavior

  The TypeScript Workbench can be used for more complex setups, try
  https://www.typescriptlang.org/dev/bug-workbench/

  As a last resort, you can link to a repo, but these will be slower for us to investigate.
-->

### 💻 Code

<!-- Please post the relevant code sample here as well-->
```ts

type ComponentPropsOptions = {} | string[];

export function foo<propsOptions extends ComponentPropsOptions>(options: {
  props: propsOptions & ThisType<void>;
}): propsOptions;

export function foo(options: any) {
  return options;
}

const fail = foo({
  props: {},
});

// {} | string[]
type FailType = typeof fail // can't infer to {}

const work = foo({
  props: {
    test: '1'
  },
});

// { test: string;}
type WorkType = typeof work // it‘s work
```

### 🙁 Actual behavior
```ts
type FailType = {} | string[]
```
<!-- What happened, and why it was wrong -->

### 🙂 Expected behavior
```ts
type FailType = {} 
```
<!-- What you expected to happen instead, and why -->
Repository: rust
Issue: Memory leaks in BTreeMap with `allocator_api` enabled
Labels: A-allocators,C-bug,T-libs

I tried this code:

https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=23d67c52988b3be4eb1ddb6373da124d

```rs
fn main() {
    let allocator = AllocWrapper(Arc::new(std::alloc::System));

    println!("count = {}", Arc::strong_count(&allocator.0));
    let mut btree_map: BTreeMap<i32, i32, _> = BTreeMap::new_in(allocator.clone());
    println!("count = {}", Arc::strong_count(&allocator.0));
    btree_map.insert(1, 1);
    println!("count = {}", Arc::strong_count(&allocator.0));
    drop(btree_map);
    println!("count = {}", Arc::strong_count(&allocator.0)); // expect 1 got 2!
}
```

**I expected to see this happen:** 

The reference count of the `Arc` should reduce to 1, so that it can be released correctly.

**Instead, this happened:** 

The reference count of the `Arc` remains 2, so it will never be released.

### Meta

```
Build using the Nightly version: 1.68.0-nightly

(2022-12-26 88c58e3c2c097ebffac4)
```

with

```
#![feature(btreemap_alloc)]
#![feature(allocator_api)]
```
Repository: stable-diffusion-webui
Issue: Inpainting colors desaturated
Labels: bug-report,help-wanted

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

Hi,

It seems that img2img inpainting produces very washed out results, regardless of color correction mode. I'll list what I think are the relevant settings below.

I may update this post with example images later, please let me know if that would be helpful.

### Steps to reproduce the problem

1. Set inpainting conditioning mask strength to a value > 0
2. Use either the SD 1.5 inpainting model or one finetuned from it
3. Use high denoising and CFG scale to make the problem more apparent
4. Masked content mode "original"

All other settings--including sampler--seem to be irrelevant here.

### What should have happened?

The contrast of the original image should be generally preserved. I reverted to a commit that's ~4 days old (don't know the hash, sorry) and it was working fine then.

### Commit where the problem happens

4af3ca5

### What platforms do you use to access UI ?

Windows

### What browsers do you use to access the UI ?

Brave

### Command Line Arguments

```Shell
--disable-safe-unpickle --xformers, though I tried other combinations of arguments
```


### Additional information, context and logs

N/A
Repository: PowerToys
Issue: Add additional preview for 3d models 
Labels: Idea-New PowerToy,Product-File Explorer

### Description of the new feature / enhancement

i think preview for 3d models are totally a good feature like there can be users like 3d designer, game devloper,and more
they can make use of image preview for 3d models
i have found some open source projects for this but integrating this inside power toys would be good

### Scenario when this would be used?

this is a best feature for users like game developers,3d art creator,
it is easy when handling multiple 3d models, assets


### Supporting information

https://github.com/EYHN/space-thumbnails
Repository: flutter
Issue: "People with heart" emoji are shown split apart on iOS and macOS
Labels: a: text input,e: device-specific,platform-ios,engine,platform-mac,a: typography,e: OS-version specific,has reproducible steps,P2,found in release: 3.3,found in release: 3.7,team-ios,triaged-ios

Flutter pages are displaying filenames with emoji incorrectly.
The expected display of filenames is: emoji and text should be displayed normally, as shown in Figure 1. But now, Flutter pages do not behave as expected: emoji overlaps the text in the filename, as shown in Figure 2.
The display is normal on Native pages. The problem only occurs on Flutter pages.

![image](https://package.lanxin.cn/client/20221228102035835.jpg)

### flutter doctor
```
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.3.9, on macOS 13.0.1 22A400 darwin-arm, locale
    zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] Android Studio (version 2021.2)
[✓] VS Code (version 1.74.2)
[✓] VS Code (version 1.69.2)
[✓] Connected device (3 available)
[✓] HTTP Host Availability

• No issues found!
```
code：
```
children.add(Flexible(
            child: Text(
              tempExtension,
              style: style,
              textAlign: TextAlign.left,
              maxLines: 1,
            ),
          ));
```
Repository: pytorch
Issue: Batch_first attribute in quantizable multiheadattention
Labels: module: nn,triaged

### 🐛 Describe the bug

I think that in the module torch.ao.nn.quantizable.modules.activation.MultiheadAttention in the method from_float passing the attribute batch_first is missing.
```python
@classmethod
def from_float(cls, other):
    assert type(other) == cls._FLOAT_MODULE
    assert hasattr(other, 'qconfig'), "The float module must have 'qconfig'"
    # Setting the dropout to 0.0!
    observed = cls(other.embed_dim, other.num_heads, other.dropout,
                   (other.in_proj_bias is not None),
                   (other.bias_k is not None),
                   other.add_zero_attn, other.kdim, other.vdim)
```
And because of it one can not set batch_first format when quantizing MultiheadAttention layer. 

### Versions

PyTorch version: 1.13.0+cu117
Is debug build: False
CUDA used to build PyTorch: 11.7
ROCM used to build PyTorch: N/A

OS: Ubuntu 20.04.4 LTS (x86_64)
GCC version: (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Clang version: Could not collect
CMake version: version 3.25.0
Libc version: glibc-2.10

Python version: 3.7.9 (default, Aug 31 2020, 12:42:55)  [GCC 7.3.0] (64-bit runtime)
Python platform: Linux-5.4.0-84-generic-x86_64-with-debian-bullseye-sid
Is CUDA available: True
CUDA runtime version: Could not collect
CUDA_MODULE_LOADING set to: LAZY
GPU models and configuration: 
GPU 0: GeForce RTX 2080 Ti
GPU 1: GeForce RTX 2080 Ti

Nvidia driver version: 455.23.04
cuDNN version: Probably one of the following:
/usr/local/cuda-11.4/targets/x86_64-linux/lib/libcudnn.so.8
/usr/local/cuda-11.4/targets/x86_64-linux/lib/libcudnn_adv_infer.so.8
/usr/local/cuda-11.4/targets/x86_64-linux/lib/libcudnn_adv_train.so.8
/usr/local/cuda-11.4/targets/x86_64-linux/lib/libcudnn_cnn_infer.so.8
/usr/local/cuda-11.4/targets/x86_64-linux/lib/libcudnn_cnn_train.so.8
/usr/local/cuda-11.4/targets/x86_64-linux/lib/libcudnn_ops_infer.so.8
/usr/local/cuda-11.4/targets/x86_64-linux/lib/libcudnn_ops_train.so.8
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

Versions of relevant libraries:
[pip3] numpy==1.21.6
[pip3] pytorch-wpe==0.0.1
[pip3] torch==1.13.0
[pip3] torch-complex==0.4.3
[pip3] torch-tb-profiler==0.4.0
[pip3] torchaudio==0.13.0
[pip3] torchvision==0.14.0
[conda] numpy                     1.21.6                   pypi_0    pypi
[conda] pytorch-wpe               0.0.1                    pypi_0    pypi
[conda] torch                     1.13.0                   pypi_0    pypi
[conda] torch-complex             0.4.3                    pypi_0    pypi
[conda] torch-tb-profiler         0.4.0                    pypi_0    pypi
[conda] torchaudio                0.13.0                   pypi_0    pypi
[conda] torchvision               0.14.0                   pypi_0    pypi


cc @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki @bhosmer @cpuhrsch @erichan1 @drisspg
Repository: create-react-app
Issue: ECDSA certificates not supported
Labels: needs triage,issue: bug report

I use a TLS certificate from Let's Encrypt, which react-scripts finds through the ".env" file (using the environment variables SSL_CRT_FILE and SSL_KEY_FILE). Recently I renewed the certificate and changed its type from RSA to ECDSA (because Let's Encrypt recommends this). This caused the following error to appear when I run "yarn start":

```
The certificate "XXXXXX\fullchain.pem" is invalid.
error:0608B096:digital envelope routines:EVP_PKEY_encrypt_init:operation not supported for this keytype
```

I tried recreating my 'node_modules' directory but that didn't help. I downgraded back to an RSA certificate and the problem disappeared.
Repository: go
Issue: proposal: net/http/pprof:  add parameter for sampling frequency for CPU profiles
Labels: Proposal

This proposal is based on https://github.com/golang/go/issues/42502 and adds the ability to configure the sampling rate for CPU profiles.

At the moment it is possible to dynamically collect CPU profiles using the `net/http/pprof` package via `go tool pprof http://localhost:6060/debug/pprof/profile?seconds=30`. In this example a 30 second CPU profile is collected.
Internally this call utilizes `pprof.StartCPUProfile()` which uses a hard coded sampling frequency of 100hz.

With https://github.com/golang/go/issues/42502 being accepted it would be great if dynamically collected CPU profiles would also get the option to set the sampling frequency. This could be possible by adding an additional parameter besides `seconds` like `hertz`. `hertz` is just used as an example and input on better naming is always welcomed. This new parameter should be optional and if not set the CPU profile should use the default sampling rate of 100hz.

In the following example a CPU profile of 30 seconds with a sampling rate of 257hz is collected:
`go tool pprof http://localhost:6060/debug/pprof/profile?seconds=30&hertz=257`
Repository: stable-diffusion-webui
Issue: Use per folder text templates for training 
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 ?

Currently, when you train a model, you could use [filename] and [name] when training an embedding.

The problem is that sometimes I want each group of files to have a common description. This is not possible using file names since they can't be the same.

For example, I have 3d renders of a character and hand drawn ones. I don't want the embeddings to train on the words 3d render when it is looking at the hand drawn ones.

### Proposed workflow

One way to solve it is just  to add [folder] as an option to add in the textual inversion template.

The problem with this is it limits the training when used with hypernetworks. If you have several characters you want to train hypernetworks on, you can't. So, having a template per folder, where each folder has all the datasets of the character would allow for a very efficient training.

### Additional information

If this feature is implemented, I think it is going to open the door for training two or more embeddings at the same time.

It will also allow having different types of datasets to train hypernetworks.
Repository: go
Issue: cmd/compile: shouldn't report argument mismatch errors for using unexported functions
Labels: NeedsInvestigation,compiler/runtime

<!--
Please answer these questions before submitting your issue. Thanks!
-->

### What version of Go are you using (`go version`)?

<pre>
$ go version go1.19.4 linux/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
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/ross-spencer/.cache/go-build"
GOENV="/home/ross-spencer/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/ross-spencer/git/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/ross-spencer/git/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.19.4"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK=""
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 -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build3868854645=/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 go.dev/play is best.
-->

```golang
package main

import (
	"fmt"
	"path/filepath"
)

func main() {
	fmt.Println("Hello, 世界")
	arr := []string{"dir", "path"}
	fmt.Println("arr")
	fmt.Println(filepath.join("a", "b"))
}
```

### What did you expect to see?

Accidentally called `.join` (lower-case 'j') and expected an error, instead I am told I can supply a string array to the function.

### What did you see instead?

```bash
./test.go:12:2: arr declared but not used
./test.go:14:23: join not exported by package filepath
./test.go:14:33: too many arguments in call to filepath.join
	have (string, string)
	want ([]string)
```