sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: storybook
Issue: Create a way to tap into all Stories at build time
Labels: feature request,core

Is there a way to create an add on that is fed all stories, their arguments and template function at build time `build-storybook`, and do something with it? 

For a hypothetical, I'd love to be able to tap into each story, and generate every variation of a component. Is that possible through some add on?

Thanks, 
George
Repository: godot
Issue: Particle preprocess value ignored on html export
Labels: bug,platform:web,needs testing,topic:particles

**Godot version:**
3.2.3 stable


**OS/device including version:**
Any browser (well, I use Firefox).


**Issue description:**
Particles with preprocess value are ignored in web (gles3) output.

Observer the two videos below. The first is normal desktop output, the particles on the far left (once the screen changes) have a preprocess of 4 seconds.

The second is web output and as you can see the particles are starting from their initial extent and taking a while to get to where the first image gets to immediately. I can only presume preprocessing is not working, unless there is another documented bug making particles start slowly. Happy to produce test case if this is not a known bug or you cannot recreate it easily.

https://user-images.githubusercontent.com/12863685/108780970-133d6400-7561-11eb-9df2-4166458f4f03.mp4

https://user-images.githubusercontent.com/12863685/108780946-0d478300-7561-11eb-973d-6c7d23474d21.mp4
Repository: flutter
Issue: RenderEditable shouldn't assume its selection is non-null and valid.
Labels: a: text input,framework,f: material design,P2,c: tech-debt,team-design,triaged-design

e.g.: https://github.com/flutter/flutter/blob/ff8f4717f798e890cf2fb7abc61fd04ac2b4e21f/packages/flutter/lib/src/rendering/editable.dart#L735-L905

Additionally, `TextEditingController` (and subclasses) should probably assert when an invalid selection is assigned to it.
Repository: TypeScript
Issue: Allow Object.defineProperty() to definitely assign properties
Labels: Suggestion,Awaiting More Feedback

# Suggestion
## ✅ Viability Checklist

<!--
   Suggestions that don't meet all these criteria are very, very unlikely to be accepted.
   We always recommend reviewing the TypeScript design goals before investing time writing
   a proposal for ideas outside the scope of the project.
-->
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

It would be nice if `Object.defineProperty()` and `Object.defineProperties()` calls could be read via the constructor to definitely assign class properties.

## 📃 Motivating Example
https://www.typescriptlang.org/play?ssl=12&ssc=2&pln=1&pc=1#code/MYGwhgzhAEDiBOBTRAXR9oG8BQ0-QDswBbRALmghXgEsCBzAbl33qVTvoqtoef2jAA9gR4BXYCiHwAFEVLdqnAJRYWAvCgAWNCADp5iaAF5CJRPw14A8gCMAVokl6AJogBmdRAAV4QgA7oKACeMtq6ADTQAERsyCic0VE4Vlb0qDKqKak5SChi8ATQAAZaiCAgQtAAJJiGAL7F6jnQ9c0C9cqWeG31QA
```ts
class Greeter {
    name: string;
    greeting: string;
    constructor(name: string) {
        this.name = name;
        Object.defineProperty(this, "greeting", {
            get() {
                return `hello ${name}`
            }
        });
    }
}
```
Currently the greeting property in the class will cause the error `Property 'greeting' has no initializer and is not definitely assigned in the constructor.`

## 💻 Use Cases

This is not a big deal because we can use a “definite assignment assertion“ (`!`) after the greeting property identifier, but it would be nice for TypeScript to be aware of these `defineProperty` calls.

## 🔍 Search Terms
constructor, Object.defineProperty, Object.defineProperties, definitely assigned, strictPropertyInitialization, definite assignment operator
Property has no initializer and is not definitely assigned in the constructor.

This is potentially a duplicate of the following issues:
- https://github.com/microsoft/TypeScript/issues/28694 The same issue, but focused on JavaScript source files.
- https://github.com/microsoft/TypeScript/issues/38115 Might be a duplicate of this issue, but the phrasing of this issue is a little less clear to me based on the examples.

Feel free to close as duplicate!
Repository: pytorch
Issue: [FR] torch.load's map_location supports int 
Labels: module: cuda,triaged,enhancement

## 🚀 Feature

This doesn't work:
```
torch.load(file, map_location=0)
```

These do:
```
torch.load(file, map_location='cuda')
torch.load(file, map_location='cuda:0')
torch.load(file, map_location=torch.device('cuda', 0))
```

Yet integer can be used to indicate the i-th CUDA device everywhere else in the code base. It should also allow the first pattern.

cc @ngimel
Repository: go
Issue: x/pkgsite: redirect based on custom import paths
Labels: help wanted,NeedsFix,pkgsite

### What is the URL of the page with the issue?
 
https://pkg.go.dev/github.com/SSLMate/go-pkcs12
 
### What is your user agent?
 
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

### Screenshot
 
![pkg go dev png](https://user-images.githubusercontent.com/321605/108790219-2bee4f80-754a-11eb-917a-4b175009e7f7.png)

### What did you do?
 
Navigated to https://pkg.go.dev/github.com/SSLMate/go-pkcs12
 
### What did you expect to see?
 
Be redirected to the documentation for `software.sslmate.com/src/go-pkcs12` as this is the canonical import path for the package: https://github.com/SSLMate/go-pkcs12/blob/master/pkcs12.go#L18

godoc.org exhibited the expected behavior.
 
### What did you see instead?

I saw documentation for the package `github.com/SSLMate/go-pkcs12`, even though this is not the canonical import path.
Repository: rust
Issue: Come up with a way to de-duplicate common test 'headers'
Labels: A-testsuite,C-enhancement,A-contributor-roadblock

A growing number of tests having the following 'header':

```
// compile-flags: -Z span-debug

#![no_std] // Don't load unnecessary hygiene information from std
extern crate std;	
```

This ensures that if a proc-macro prints out a `Span`, its `SyntaxContext` id will be platform-independent. Without this 'header', the prelude will import a large amount of hygiene information from libstd, some of which comes from expansion of platform-specific `cfg_if!` macros.

Normally, this could be accomplished by writing a macro. However, all of these tests are designed to *test* some part of the macro infrastructure, so requiring them to use a macro is a recipe for confusion.
Repository: transformers
Issue: tokenizer.Tokenizer compatibility with Inference API or Auto* classes
Labels: Feature request

# 🚀 Feature request
Make tokenizers created with the tokenizers library compatible with the Inference API or Auto classes

## Motivation

I have trained a model on a specific domain by modeling a sequence generation problem as a language modeling problem to predict the next token in the set. The tokenizer associated with the model I used (TransformerXL) was not compatible with my domain since my tokens contained whitespace so I created my own using the `WordLevelTrainer` class in the `tokenizers` library. **Now that I have a complete working solution I would like to use this tokenizer and model in the huggingface Inference API, however it does not work because it requires the tokenizer associated with the model**. Making the `transformers` models compatible with `tokenizers` library could make all kinds of use cases outside of NLP possible with these libraries. 

## Your contribution

Is it possible to hack the saved config for a tokenizer created through the `tokenizers` library to work directly with the `Auto` classes? If so I can document this approach for other users.
Repository: pytorch
Issue: Fix `torch.linalg.vector_norm`'s backward to avoid needing `at::abs()` call in forward for ord=+/-inf 
Labels: triaged,module: linear algebra

As discussed in https://github.com/pytorch/pytorch/pull/51099/files#r569123566, `linalg_vector_norm`'s forward function has an `at::abs()` call in the forward function for CPU complex inputs with ord=+/-inf. Using `at::abs()` in the forward ensures that the result matches the `at::abs()` call in the backward. It would be ideal to perform the absolute value calculation within the `linalg_vector_norm_stub` kernel instead, but doing so would also require changing the way `linalg_vector_norm_backward` determines which element was chosen as the min/max value.

It would be ideal to avoid redoing work in the backward function that was done in the forward function. Perhaps we could generate an index Tensor as in `torch.min/max`, and pass it to the backward function. But I'm not sure if that's possible without adding a second return value to `torch.linalg.vector_norm`.

cc @jianyuh @nikitaved @pearu @mruberry @heitorschueroff @walterddr @IvanYashchuk
Repository: ant-design
Issue: Form.Item validateFirst属性希望对 多个输入框组合(Input.Group) 也生效
Labels: Inactive

- [ ] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.

### What problem does this feature solve?
一个Form.Item中有多个noStyle的Form.Item时，希望只显示第一个错误

### What does the proposed API look like?
Form.Item validateFirst属性希望对Input.Group也生效
一个Form.Item中有多个noStyle的Form.Item时，希望只显示第一个错误
https://codesandbox.io/s/fuzayidiandekongjian-antd4123-forked-07t65?file=/index.js
现在在最外层Form.Item设置validateFirst, 依然会出现多个错误


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: pytorch
Issue: Optimize `einsum` in TorchScript profile guided optimization
Labels: module: performance,oncall: jit,feature,module: linear algebra

## 🚀 Feature
The [`opt_einsum` project](https://github.com/dgasmith/opt_einsum) provides algorithms for rearranging `einsum` expressions for best performance. It has been [integrated](https://numpy.org/doc/stable/reference/generated/numpy.einsum.html), for example, into `numpy` in order to automatically optimize the memory use and required FLOPs of any given `einsum` call.

While `opt_einsum` supports PyTorch as a backend — PyTorch actually suggests using it in the [docs for `torch.einsum`](https://pytorch.org/docs/stable/generated/torch.einsum.html) — it does not support TorchScript.

TorchScript profile-guided optimization (see the [NeurIPS talk](https://program-transformations.github.io/slides/pytorch_neurips.pdf)) and the TorchScript [technical overview](https://github.com/pytorch/pytorch/blob/master/torch/csrc/jit/OVERVIEW.md#profiling-programs) seem to indicate that runtime profiles would contain all of the information needed to automatically rewrite `einsum` calls into optimized forms.

## Motivation

The memory and compute cost of `einsum` operations can in many cases be improved dramatically by contractions.

## Pitch

A pass in the profile-guided optimizer that replaces `einsum` nodes with sequences of contracted einsum nodes based on the tensor sizes in the profile.

## Alternatives

`opt_einsum` _may_ work with `torch.jit.trace` (see [this](https://github.com/dgasmith/opt_einsum/issues/156) recent issue), but even if it works this restricts such optimizations to functions that can be traced and aren't being scripted. It also forces the optimization to be done at tracing time, rather than automatically based on actual profile data.

cc @jianyuh @nikitaved @pearu @mruberry @heitorschueroff @walterddr @IvanYashchuk @VitalyFedyunin @ngimel @gmagogsfm
Repository: go
Issue: net/http: avoid copy if WithContext attempts to set exact same *ctx object
Labels: Performance,NeedsInvestigation

Prior to `NewRequestWithContext` a lot of code looked like:

```go
req, _ := http.NewRequest("GET", "http://example.com", nil)
req = req.WithContext(ctx)
```

Now that `NewRequestWithContext` is a thing, existing code may get ported - incorrectly - as:

```go
req, _ := http.NewRequestWithContext(ctx, "GET", "http://example.com", nil)
req = req.WithContext(ctx)
```

Under the hood, `WithContext` does this:

```go
func (r *Request) WithContext(ctx context.Context) *Request {
	if ctx == nil {
		panic("nil context")
	}
	r2 := new(Request)
	*r2 = *r
	r2.ctx = ctx
	r2.URL = cloneURL(r.URL) // legacy behavior; TODO: try to remove. Issue 23544
	return r2
}
```

Basically, my suggestion is to check if the incoming `ctx` and the existing `r.ctx` point to the same value in memory, then avoid the copy to `r2` and just return `r` in that case. 

In theory this is a breaking change of behavior if someone is doing e.g.

```
req2 := req.WithContext(ctx)
```

and then using both `req` and `req2` though I don't think the behavior is very well defined if you do that.
Repository: vscode
Issue: Allow moving the floating debug.toolbar everywhere
Labels: feature-request,debug

<!-- ⚠️⚠️ 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. -->
Currently the floating debug.toolbar covers the file tabs which is very unproductive since we need to move it all the time to see which tab is behind it. The only alternative is docked setting but it doesn't allow choosing a debug config.
This is also unproductive to people who quickly need to start multiple debugger processes.

So far there is no option where I can see all our file tabs and also have the option to select configs and start multiple debugger processes.
Repository: vscode
Issue: An extension spamming console.log will take a lot of CPU time in the render process
Labels: bug,freeze-slow-crash-leak,extension-host

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
- VS Code Version: 1.53.2
- OS Version: macOS Catalina 10.15.5

I'm working on a Java project https://github.com/eclipse/eclipse.jdt.ls, which includes about 6K+ Java files. It works well in 1.52. But after upgrading VS Code to 1.53, editing at the same workspace becomes pretty slow. Especially after i edit some Java files for a while, the whole VS Code starts to become pretty slow.

And i saw the render process took much CPU resources.
<img width="859" alt="Screen Shot 2021-02-23 at 15 03 45" src="https://user-images.githubusercontent.com/14052197/108812411-09137800-75ea-11eb-8198-f8a6d1b4c208.png">

Below is the CPU profile result by [profiling the render process](https://github.com/microsoft/vscode/wiki/Performance-Issues#profiling-the-renderer-process).

[CPU-20210223T150659.cpuprofile.txt](https://github.com/microsoft/vscode/files/6027260/CPU-20210223T150659.cpuprofile.txt)
Repository: go
Issue: sync: dequeue newSize may be overflow on 32bit system
Labels: NeedsInvestigation,compiler/runtime


```
const dequeueBits = 32

// dequeueLimit is the maximum size of a poolDequeue.
//
// This must be at most (1<<dequeueBits)/2 because detecting fullness
// depends on wrapping around the ring buffer without wrapping around
// the index. We divide by 4 so this fits in an int on 32-bit.
const dequeueLimit = (1 << dequeueBits) / 4

func (c *poolChain) pushHead(val interface{}) {
	d := c.head
	if d == nil {
		// Initialize the chain.
		const initSize = 8 // Must be a power of 2
		d = new(poolChainElt)
		d.vals = make([]eface, initSize)
		c.head = d
		storePoolChainElt(&c.tail, d)
	}

	if d.pushHead(val) {
		return
	}

	// The current dequeue is full. Allocate a new one of twice
	// the size.
	newSize := len(d.vals) * 2
	if newSize >= dequeueLimit {
		// Can't make it any bigger.
		newSize = dequeueLimit
	}

	d2 := &poolChainElt{prev: d}
	d2.vals = make([]eface, newSize)
	c.head = d2
	storePoolChainElt(&d.next, d2)
	d2.pushHead(val)
}

```

len(d.vals) return type is int which on 32 bit system is 4 bytes.  When  d.vals reachs the max size 2^30, then newSize will be 2^31. But 2^31 is greater than the max int32 2^31 -1 , and if condition will test fail .

```
newSize := len(d.vals) * 2
```
Repository: vscode
Issue: Support reason for why accessing auth
Labels: feature-request,authentication

Testing #117290

I really like the new "silent" auth flow.  I think having a reason property on the getSession-options could make this even better as it would allow extensions to explain why they need auth-access. E.g in the screen shot below we could render a message from my extension so that users feel informed. 

<img width="880" alt="Screenshot 2021-02-23 at 11 30 09" src="https://user-images.githubusercontent.com/1794099/108831491-7dd6ba00-75ca-11eb-9802-f3335833d6f0.png">
Repository: create-react-app
Issue: Support "file:line:column" format in eslint formatter
Labels: issue: proposal,needs triage

As [ESLint Guide](https://eslint.org/docs/developer-guide/working-with-custom-formatters) puts it:
> Modern terminals like iTerm2 or Guake expect a specific results format to automatically open filenames when they are clicked. Most terminals support this format for that purpose:
> 
> ```
> file:line:column
> ```

Currently, eslint output looks like this:
```
<filename>
  Line <line>:<column>:  <message>
  Line <line>:<column>:  <message>
```
which makes it harder to quickly navigate to an error from terminal.

It would be nice to have an option to use ESLint formatter that supports `file:line:column` format.
Repository: opencv
Issue: MergeMertens high memory usage on android and iOS
Labels: category: photo

This will use over 1GB of memory for an array of two 5376x2688 images which will terminate the app. Can I optimize this somehow so it will work on mobile devices without resizing the images?

OpenCV => 4.1.1
Operating System / Platform => Android
Compiler => Android studio

```.cpp
vector<Mat> images;
images.push_back(src_color_1);
images.push_back(src_color_2);
images.push_back(src_color_3);

Ptr<AlignMTB> alignMTB = createAlignMTB();
alignMTB->process(images, images);

Mat exposureFusion;
Ptr<MergeMertens> mergeMertens = createMergeMertens();
mergeMertens->process(images, exposureFusion);
 ```
Repository: nvm
Issue: Suggestion to improve README for zsh installation.
Labels: shell: zsh

`Note: If you're using zsh you can easily install nvm as a zsh plugin. Install zsh-nvm and run nvm upgrade to upgrade.`

The above line should be under **Installation**, not **Important Notes**.

Following the instruction, on Mac OSX, zsh is a default and hence I was able to install (or more like add) zsh by adding `nvm` to the `~/.zshrc` file, instead of doing any curl or wget like this doc suggests. 

It would be great if this can be fixed since [zsh-nvm](https://github.com/lukechilds/zsh-nvm) does not explain about nvm installed in zsh at all.
Repository: pytorch
Issue: Independent axis support for torch.trace
Labels: triaged,enhancement

## 🚀 Feature
<!-- A clear and concise description of the feature proposal -->

Support an independent axis in `torch.trace` or in other words, the following code should work:

```python
>>> torch.__version__
'1.9.0.dev20210222+cpu'
>>> x = torch.arange(1., 10.).view(3, 3)
>>> x
tensor([[1., 2., 3.],
        [4., 5., 6.],
        [7., 8., 9.]])
>>> torch.trace(x)
tensor(15.)
>>> torch.trace(x.view(3, 3, 1))
Traceback (most recent call last):
...
RuntimeError: trace: expected a matrix, but got tensor with dim 3
```

## Motivation

<!-- Please outline the motivation for the proposal. Is your feature request related to a problem? e.g., I'm always frustrated when [...]. If this is related to another GitHub issue, please link here too -->

 - `np.trace` supports an independent axis.
 - Currently I use my own trace implementation

## Pitch

<!-- A clear and concise description of what you want to happen. -->


## Alternatives

<!-- A clear and concise description of any alternative solutions or features you've considered, if any. -->

This is my current workaround (I prefer `axis1=-2, axis2=-1`, but numpy has `axis1=0, axis2=1` as default.):

```python
def trace(input, axis1=0, axis2=1):
    """
    >>> torch.__version__
    '1.9.0.dev20210222+cpu'
    >>> x = torch.arange(1., 10.).view(3, 3)
    >>> x
    tensor([[1., 2., 3.],
            [4., 5., 6.],
            [7., 8., 9.]])
    >>> torch.trace(x)
    tensor(15.)
    >>> torch.trace(x.view(1, 3, 3))
    Traceback (most recent call last):
    ...
    RuntimeError: trace: expected a matrix, but got tensor with dim 3
    >>> trace(x)
    tensor(15.)
    >>> trace(x.view(3, 3, 1), axis1=0, axis2=1)
    tensor([15.])
    >>> trace(x.view(1, 3, 3), axis1=2, axis2=1)
    tensor([15.])
    >>> trace(x.view(3, 1, 3), axis1=0, axis2=2)
    tensor([15.])
    """
    assert input.shape[axis1] == input.shape[axis2], input.shape

    shape = list(input.shape)
    strides = list(input.stride())
    strides[axis1] += strides[axis2]

    shape[axis2] = 1
    strides[axis2] = 0

    input = torch.as_strided(input, size=shape, stride=strides)
    return input.sum(dim=(axis1, axis2))
```

## Additional context

<!-- Add any other context or screenshots about the feature request here. -->