sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: kubernetes
Issue: Add Codespaces configuration dev container
Labels: sig/contributor-experience,kind/feature,lifecycle/frozen,triage/accepted

### What would you like to be added?

For contributors to Kubernetes, a configuration to assure that Codespaces will work with Kubernetes will enable the use of a cloud-based development environment to easily provision an environment with all the requirements and dependencies automatically installed and configured. This will make life easy for new and existing contributors when they are working on multiple branches with different dependencies, or don't have access to a computer or network powerful enough to build Kubernetes.

The Codespaces configuration consists of a Development Container ([devcontainer](https://containers.dev)) file `devcontainer.json` which encodes the configuration of the environment.

### Why is this needed?

sig/contribex is working on a new self-paced course for Kubernetes contribution to be hosted on k8s.dev. Codespaces will be one option for working through the course material

cc: @mrbobbytables
Repository: pytorch
Issue: Expanding the parameters of `torch.svd_lowrank`
Labels: triaged,module: linear algebra

### 🚀 The feature, motivation and pitch

Hi,

Currently, the `torch.svd_lowrank` function implements a very basic version of Halko, et al. (2009)'s algorithm. The `sklearn` version, `sklearn.utils.extmath.randomized_svd`  implements a number of parameters that facilitate noisy problems. In particular, the `n_oversamples` parameter increases the dimension of the random projections in the algorithm, which allows one to operate on noisier datasets without performing extra power iterations. 

While the current implementation of `torch.svd_lowrank` is probably sufficient for absolutely low rank problems with discontinuous and clean spectra, more oversamples are required for many _relatively_ low rank problems with continuous spectral decay. For instance, we are working with low rank approximation of matrices of size 100,000 x 40,000. We are taking anywhere from rank 80-200 approximations of these matrices. For the purposes of our algorithm, *accurate* recovery of the singular values, especially those near the parameter `k`, are important. We find that for our data, our `n_oversamples` is typically `10*k` in order to accurately recover the true singular values near the rank of the matrix.

Implementing this would not be hard: it amount to adding a kwarg and changing a few lines of the `svd_lowrank` calls to `get_approximate_basis`

### Alternatives

_No response_

### Additional context

_No response_

cc @jianyuh @nikitaved @pearu @mruberry @walterddr @IvanYashchuk @xwang233 @Lezcano
Repository: material-ui
Issue: [Tabs] Conditionally rendering of `Tab` not working properly
Labels: docs,component: tabs

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Steps to reproduce 🕹

Steps:

1. Add some tabs
```tsx
<Tabs
  value={value}
  onChange={handleChange}
  aria-label="basic tabs example"
>
  <Tab label="Item One" {...a11yProps(0)} />
  <Tab label="Item Two" {...a11yProps(1)} />
  <Tab label="Item Three" {...a11yProps(2)} />
</Tabs>
```
3. Wrap them in a component that checks if the tab should be displayed, for simplicity I am just retuning the children wrapped in a fragment but in theory it should make some checks to return the children or null
```tsx
const Authorizer = ({ children }: { children: React.ReactNode }) => (
  <>{children}</>
);
```

```tsx
<Authorizer>
  <Tab label="Item One" {...a11yProps(0)} />
</Authorizer>
```

https://codesandbox.io/s/unruffled-thunder-f405xf?file=/demo.tsx

### Current behavior 😯

Tabs stop working, they can be clicked but don't navigate to the tab panel

### Expected behavior 🤔

Tabs should work normally as there is not being introduced anything additional in the tree

### Context 🔦

I am trying to show or hide the tabs depending on the user permissions, for this I am using an `Authorizer` component that returns the children (wrapped in a fragment) or null depending on if the user has the right permissions but by doing so, the tabs stop working correctly.

### Your environment 🌎

<details>
  <summary><code>npx @mui/envinfo</code></summary>

```
  System:
    OS: macOS 12.6
  Binaries:
    Node: 16.15.0 - ~/.nvm/versions/node/v16.15.0/bin/node
    Yarn: 1.22.18 - ~/.nvm/versions/node/v16.15.0/bin/yarn
    npm: 8.5.5 - ~/.nvm/versions/node/v16.15.0/bin/npm
  Browsers:
    Chrome: 106.0.5249.103
    Edge: Not Found
    Firefox: Not Found
    Safari: 16.0
  npmPackages:
    @emotion/react: ^11.9.3 => 11.9.3 
    @emotion/styled: ^11.9.3 => 11.9.3 
    @mui/base:  5.0.0-alpha.85 
    @mui/icons-material: ^5.8.4 => 5.8.4 
    @mui/lab: ^5.0.0-alpha.91 => 5.0.0-alpha.91 
    @mui/material: ^5.8.4 => 5.8.4 
    @mui/private-theming:  5.8.4 
    @mui/styled-engine:  5.8.0 
    @mui/system:  5.8.4 
    @mui/types:  7.1.4 
    @mui/utils:  5.8.4 
    @mui/x-data-grid: ^5.12.3 => 5.12.3 
    @types/react: ^17.0.33 => 17.0.44 
    react: ^17.0.2 => 17.0.2 
    react-dom: ^17.0.2 => 17.0.2 
    typescript: ^4.5.4 => 4.6.3 
```
</details>

Using Chrome
Repository: rust
Issue: Tracking Issue for rustdoc `--test-builder`
Labels: T-rustdoc,C-tracking-issue,S-tracking-perma-unstable

The flag was added in the second commit of https://github.com/rust-lang/rust/pull/64328, but I couldn't find a tracking issue (like https://github.com/rust-lang/rust/issues/87022 for `--no-run`).

Is it meant to be stabilized?
  - If yes: please feel free to reuse this as the tracking issue like in the `--no-run` one.
  - If not: we are currently using it (together with `--no-run`) in the kernel to extract the source code of the tests, i.e. to achieve something similar to `--persist-doctests`, but for source code; or like `--scrape-examples`, but for doctests. Would there be a better/stable way to do that?

In the PR above @Mark-Simulacrum mentions:

> This is largely intended for "advanced" users at this point (I'm not sure if we'll ever stabilize it)

@GuillaumeGomez
Repository: angular
Issue: [update.angular.io] missing relevant info on Angular core libs or tools
Labels: P3,area: docs

### Describe the problem that you experienced

So far, at current company, i am migrating their app with version  11 to at least v13.

Today i did the migration to v13, so i would mention few thing that i think is missing and that beside being mention in your blog should be at ng update website:



### Enter the URL of the topic with the problem

_No response_

### Describe what you were looking for in the documentation

- should mention that E2E tool is deprecated and mention some alternatives
- should mention Ts Lint is deprecated and indicate alternative tool with respective link to the guide
- should be mention like typescript, which minimal / required version of RxJS should be using and if exist breakchanges
- should be existing check boxes with label of  TS LINT and Angular ESLint,, to indicate respective commands or mention that should migrate to angular eslint 
- the same for E2E, show check box in case of checked should mention alternatives 
- should exist check box with label  only angular CDK, to show the respective command to use   


### Describe the actions that led you to experience the problem

after do this:

``` npx ng update @angular/core@13 @angular/cli@13 ```

### Describe what you want to experience that would fix the problem

- when migrate v12 to v13, when angular eslint is installed, this is why should be check box to mention respective command to use when update with core and cli ( see the image) 

### Add a screenshot if that helps illustrate the problem

![uncessary_error_with_angular_eslint-13](https://user-images.githubusercontent.com/31895754/195425005-0f373f7b-c0c6-4006-bdb1-bd7340bf6675.png)


### If this problem caused an exception or error, please paste it here

_No response_

### If the problem is browser-specific, please specify the device, OS, browser, and version

_No response_

### Provide any additional information here in as much as detail as you can

_No response_
Repository: pytorch
Issue: Forward hooks for ScriptModules
Labels: oncall: jit

Is it possible to add support for registering forward hooks for ScriptModules? <br>
**Use case:** I am trying to get activations from an intermediate layer of a pretrained model that was JIT scripted. It would be nice to have the support for forward hooks on the scripted model, in order to avoid copying the state dict from the JIT model to nn.Sequential model and run forward pass through the Sequential model. 

Is there any alternative solution I can try?
Repository: rust
Issue: rust-objcopy produces broken binary in nightly
Labels: A-LLVM,C-enhancement,T-compiler

I uploaded the elf file, some configuration info and a way to produce the correct and broken binary over at https://github.com/dimpolo/objcopybug


### Code

With a recent nightly:
```shell
rustup component add llvm-tools-preview
git clone https://github.com/dimpolo/objcopybug.git
cargo run
md5sum *.bin
```

I expected to see this happen: 
`rust-objcopy` should produce the same binary as the `probe-rs` tool.

Instead, this happened: 
`probe-rs` produces a working binary, but `rust-objcopy` does not.

### Version it worked on

According to @adamgreig the produced binary is correct on:
`rust-objcopy --version`: `LLVM version 14.0.6-rust-1.64.0-stable`

### Version with regression

`rustc --version --verbose`:
```
rustc 1.66.0-nightly (db0597f56 2022-10-11)
binary: rustc
commit-hash: db0597f5619d5ed93feca28e61226d3581cc7867
commit-date: 2022-10-11
host: x86_64-pc-windows-msvc
release: 1.66.0-nightly
LLVM version: 15.0.2
```


### Backtrace
```shell
$ md5sum *.bin
3cf91a2dc7fcbb1908236ae8c8b513b1  made_by_objcopy.bin
6929b9e1c099603e1ad1b87b6d30efc3  made_by_probe.bin
```
@rustbot modify labels: +regression-from-stable-to-nighlty -regression-untriaged
Repository: stable-diffusion-webui
Issue: Feature: recursive image pre-processing
Labels: enhancement

Would it be possible to have an option to scan the data source directory recursivly for images and have them processed?

Thanks
Repository: angular
Issue: Allow read Injector in ViewChild / ContentChild 
Labels: area: core,core: queries,core: di,state: needs more investigation,P4,bug

### Which @angular/* package(s) are relevant/related to the feature request?

core

### Description

Motivation:
- the content of ng-template will get the injector from the component, where is the <ng-template> defined, not "instanced"
- to change this behavior we have ngTemplateOutletInjector 
- we usually need to get the injector of the component, where we are projecting the template into
-  we cannot read the injector via ViewChild.read so we have to workaround this limitation with directive injectore

Usage:
- there is 100% need of this for writing of the Wrapper components around 3rd party components, which support custom templates (for example dropdowns and tables in Material / PrimeNG / Kendo etc)

PLEASE CHECK this stackblitz:

https://stackblitz.com/edit/angular-ivy-5s8bhd?file=src/app/wrapper/wrapper.component.ts

There is Original and OriginalChild component - to simulate 3rd party components...  For the instance... <p-table> and pSortColumn directives from PrimeNG  https://www.primefaces.org/primeng/table  - pSortColumn has to get Table component via its constructor)




### Proposed solution

ViewChild(ren)/ContentChild(ren) should provida injector via  {  read: Injector } options. 

### Alternatives considered

Workaround via directive on the element.
Repository: TypeScript
Issue: Auto-import priority rules
Labels: Suggestion,Needs Proposal,Domain: Auto-import

# Suggestion

It seems there are many folks struggling with the priority/ordering of VSCode's auto-import (intellisense) suggestions. There are a few different cases, but they seem to be all somewhat related to the general theme of how these suggestions are prioritized.

- My specific case is that when coding in Vue, the import of `watch` from `fs` is always prioritized over `vue` (/cc @cabal95)
- Others have issues with code from external modules being prioritized over code defined within their repo
- Others have issues related to preferring aliases defined in their tsconfig
- Many edge cases around specific paths suggested when dealing with monorepos...

It would be fantastic if VSCode provided a way to override the priority but it seems that TypeScript's language server suggestions could use some tweaking regardless.

## ⭐ Suggestion

Seems like a fairly reasonable priority would be:
- code found within the repo/module (preferring aliased paths if they exist, probably preferring "closer" imports over further away in the tree?)
- code found in other repos/modules defined locally within a monorepo (again preferring aliases)
- code found in _explicit_ dependencies found in package.json
- code found in node internals (ex: `fs`, `path`)

---
## 🔍 Search Terms

import priority prioritize prioritise  auto-import vscode intellisense

## 🔗 Related Issues
open
- https://github.com/microsoft/TypeScript/issues/31710
- https://github.com/microsoft/TypeScript/issues/43352

closed
- https://github.com/microsoft/TypeScript/issues/43849
- https://github.com/microsoft/vscode/issues/29613
- https://github.com/microsoft/TypeScript/issues/15024
Repository: create-react-app
Issue: npx create-next-app <app_name> --template redux doesn't create redux template
Labels: needs triage

I want to create a redux template while creating the next js app but when I try to set up a redux template with next js like this

**npx create-next-app <app_name> --template redux**

does not create a redux template. Just create next app like this


![Package directories](https://i.stack.imgur.com/zWtUK.png)

![package.json file](https://i.stack.imgur.com/BKPDx.png)
Repository: stable-diffusion-webui
Issue: Remove small thumbnail preview when generating a single image.
Labels: enhancement

It seems unnecessary and having to click on the output image twice to preview it is annoying.
Repository: go
Issue: runtime: expand capacity of map by more than 1 at a time?
Labels: Performance,NeedsInvestigation

Follow-on to #52157 and #54454 

Right now the reference code in [/x/exp/maps.Copy](https://cs.opensource.google/go/x/exp/+/3640c57a:maps/maps.go;l=81-85) will potentially call `runtime.growWork_faststr` and `runtime.hashGrow` many times if `src` and `dst` are mostly disjoint and `len(src)` is large.

There should be some smarter logic to be able to not just pre-allocate a map with a certain capacity at creation time, but to expand an existing map by a certain amount (e.g. by `len(src)`) -- there already exists this idea with variadic `append()` for concatenating slices.

Short of that, maybe Copy() should make a decision based on the sizes of `dst` and `src` & capacities available in `dst` on whether it's more efficient to create a new map with capacity = `len(src)+len(dst)` and then copy dst and src both into the new map.

(you could then Shrink() the map if you were confident it were going to be read-only after that, to avoid overshooting usage by too much)

The real-world pain here is that telemetry libraries like OpenTelemetry and [Honeycomb Beelines](https://github.com/honeycombio/beeline-go/pull/353) like to keep maps of attributes associated with a given trace span, and merge them together before sending into a final map; a lot of work is done to growWork_faststr and hashGrow if many attributes are added one at a time if map merging/copying via iteration.

Parallels in other languages: [Rust](https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.reserve)
Repository: pytorch
Issue: DISABLED test_variant_consistency_jit_linalg_lu_factor_cuda_float32 (__main__.TestJitCUDA)
Labels: triaged,module: flaky-tests,skipped,module: unknown

Platforms: linux

This test was disabled because it is failing in CI. See [recent examples](https://hud.pytorch.org/flakytest?name=test_variant_consistency_jit_linalg_lu_factor_cuda_float32&suite=TestJitCUDA) and the most recent trunk [workflow logs](https://github.com/pytorch/pytorch/runs/8853010609).

Over the past 3 hours, it has been determined flaky in 1 workflow(s) with 1 failures and 1 successes.

**Debugging instructions (after clicking on the recent samples link):**
DO NOT BE ALARMED IF THE CI IS GREEN. We now shield flaky tests from developers so CI will thus be green but it will be harder to parse the logs.
To find relevant log snippets:
1. Click on the workflow logs linked above
2. Click on the Test step of the job so that it is expanded. Otherwise, the grepping will not work.
3. Grep for `test_variant_consistency_jit_linalg_lu_factor_cuda_float32`
4. There should be several instances run (as flaky tests are rerun in CI) from which you can study the logs.
Repository: terminal
Issue: Redesign font size in settings UI to align with MS Word
Labels: Product-Terminal,Issue-Task,Area-SettingsUI

MS Word has an editable combo box for font size. We should do the same thing because that's better than what we have now.
<img width="45" alt="image" src="https://user-images.githubusercontent.com/11050425/195455391-5c8f0ac7-f0a3-48c7-a40e-d185096f1e5d.png">
Repository: stable-diffusion-webui
Issue: Allowing alternative language embeddings (CLIPH, BERT, T5) to be used when training a new hypernetwork
Labels: enhancement

It would be interesting to take the embedding from a more powerful CLIP or form BERT, etc. and use that as the input for the hypernetwork fine tuning of the K, V instead of taking the next to last layer from the CLIP. Not sure if it would give useful results, but might be interesting to try.

So basically inject the deeper understanding of a more sophisticated language model into the attention without having to train a model from scratch.
Repository: kubernetes
Issue: Content Negotiation types should be listed in OpenAPI
Labels: sig/api-machinery,kind/feature,triage/accepted

### What would you like to be added?

Content Negotiation types are currently not listed in OpenAPI. For example, it's possible to query resources with an Accept header `Accept: application/json;as=Table;g=meta.k8s.io;v=v1` to list as tables, but the information is missing in the OpenAPI.

These are the only types listed in the produces section of the OpenAPI for resources (Eg: `/api/v1/namespaces/{namespace}/pods`:

```
"application/json",
"application/yaml",
"application/vnd.kubernetes.protobuf",
"application/json;stream=watch",
"application/vnd.kubernetes.protobuf;stream=watch"
```

/sig api-machinery

### Why is this needed?

Provides better clarity of all operations supported by a K8s cluster.
Repository: TypeScript
Issue: Infer narrowing based on backwards flow analysis
Labels: Suggestion,Awaiting More Feedback

# Suggestion

## 🔍 Search Terms

backwards reverse data flow analysis type inference narrowing

## ✅ Viability Checklist

My suggestion meets these guidelines:

* [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [x] This wouldn't change the runtime behavior of existing JavaScript code
* [x] This could be implemented without emitting different JS based on the types of the expressions
* [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).


## ⭐ Suggestion

<!-- A summary of what you'd like to see added or changed -->

## 📃 Motivating Example

Automatically narrow the inferred type of variables to make them as compatible as possible with further usage.

Currently Typescript will appropriately narrow the type of an expression at the site of usage. However splitting this expression in multiple statements (e.g. for readability), may force the developer to explicitly type the intermediate variables if those are by default inferred with a wider type than later usages.

## 💻 Use Cases

[Example for function parameters](https://www.typescriptlang.org/play?#code/CYUwxgNghgTiAEAzArgOzAFwJYHtX2BwGUNlFEAKAbyRx3gF8AueGxOlgbVWQFsAjEDAA08AM4YYWVAHMAuowCULAG44swANwAoXWDwTa9ALzxOAFgBMogOT9YNuTu0B6F-AAqATwAOCGxQSUrLwAD7wPAJCipxyNvBYYhE4GPBQYmJYMqhQ-BAIGPQYvv7cfIIi4pLS8jbahCRklGx0Sprwug2k5NRGXFa29jCObUA):
```ts
declare function doStuff({ foo }: { foo: [number, string] }): void;

const foo = [42, 'bar'];

// Type '(string | number)[]' is not assignable to type '[number, string]'
doStuff({ foo }); 

doStuff({ foo: [42, 'bar'] });
```


[Example for return values](https://www.typescriptlang.org/play?ssl=10&ssc=2&pln=1&pc=1#code/GYVwdgxgLglg9mABAJwKZRMsBlDxgAUAlAFyIDaYIAtgEarIA0iAzlMjGAOYC6iA3gChEIlOkxJyAFgBMzAOS0Ahsnk8A3IIC+gwaEiwEYjFlwh8M4mUo16TVu068Bw0RARtEwOHEQBeClkFZVUNXVFEAHpIxAAVAE8AB1REeQI2Dm5EAB9EKjoGInIeeUQYFjy4KEQlFhYYLjAlWgAbFKhfKCSU+RsC+wynEoA6VxE0EyRvOE0tIA):
```ts
function returnStuff(): [number, string] {
    return [42, 'bar'];
}

function returnStuff2(): [number, string] {
    const foo = [42, 'bar'];

    // Type '(string | number)[]' is not assignable to type '[number, string]'.
    return foo;
}
```

The workaround is to explicitly type the intermediate variable or use `as const`, but that can get quickly intrusive, and in the latter case may not be correct because of the `readonly` aspect.

From recollection, I believe Flow has a better story there.
Repository: go
Issue: x/vulndb: compute derived symbols for exported package
Labels: vulncheck or vulndb

Suppose a vulnerable symbol `module/internal.v` is reachable in a user program and that there is a derived symbol "module/internal.V" in the vulnerability report. A call stack produced by govulncheck could be something like

`main.go calls module/internal.V`

The vulnerability is in an internal package and that can be confusing to the user. Instead, we should make the derived symbols be the closest exported symbols of the same module that are in a public package.

For instance, the mere fact that the above summarized call stack exists means that there has to be a sequence of calls of the form `module/p.Foo -> module/internal.V -> ... -> module/internal.v`. We should thus have `module/p.Foo` as the derived symbol.

This will also help during report creation where we are interested if a unexported vulnerable symbol is reachable by an exported symbol of a public package of the module in question.
Repository: godot
Issue: Vulkan: TAA smears Skyboxes
Labels: bug,topic:rendering,confirmed,topic:3d

### Godot version

v4.0.beta.custom_build [ca25c6e0a]

### System information

Arch Linux, KDE, AMD RX6800XT, Mesa, Vulkan, Clustered+

### Issue description

Temporal Anti-Aliasing seems to recieve no motion vectors for skybox textures, resulting in motion smearing when rotating the camera.

This is especially aparrent with textures detailed enough so that TAA's blending threshold doesn't kick in:

Here's an example with PhysicalSky using a spreckly FastNoiseLite texture in the "Night Sky" slot to imitate stars. ooking around causes massive smearing. Note the difference between the textured ground and the sky - both were moving the same way on-screen.

![Screenshot_20221013_014914](https://user-images.githubusercontent.com/491704/195471226-76423e4d-b386-462c-91f6-b8d9b4af0357.png)


### Steps to reproduce

Use a very grainy, 4x2K resolution texture and put it either into PhysicalSky's Night Sky rtexture slot or into PanoramicSky.

### Minimal reproduction project

Here's a simple project that demonstrates this with a rotating camera:

[TAA vs Skybox.zip](https://github.com/godotengine/godot/files/9769396/TAA.vs.Skybox.zip)

I've also added an alpha-blended sprite to demonstrate how transparency overwrites motion vectors for anything that's behind it regardless of alpha value.