sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: Modify convolution kernels for ops
Labels: triaged,module: fft

## ❓ Questions and Help

Hello, 

I try to modify the way convolutions are performed for a conv net (let take ResNet18 as an example) in PyTorch:
Take the first layer. I want to take the FT(Fourier) of the input image F(I); take the FTs of the conv kernels F(k1),...F(k64). Next step, add them up: F(K_total) = F(k1)+F(k2)+...+F(k64). Finally do a single do a single multiply: F(I) * F(K_total). Then do the inverse. 
The FT of the input image is not a big deal. But how can I operate on conv kernels ops in PyTorch ?

Yes, I understand that this is not a help form, but your discussion forum is down since yesterday evening :( and I am really stuck.

"This site can’t be reachedThe webpage at https://discuss.pytorch.org/ might be temporarily down or it may have moved permanently to a new web address."



### Please note that this issue tracker is not a help form and this issue will be closed.

We have a set of [listed resources available on the website](https://pytorch.org/resources). Our primary means of support is our discussion forum:

- [Discussion Forum](https://discuss.pytorch.org/)


cc @mruberry @peterbell10
Repository: flutter
Issue: [Semantics] On TextField focused errorText is not read
Labels: a: text input,platform-android,framework,a: accessibility,has reproducible steps,P2,found in release: 2.5,found in release: 2.6,team-android,triaged-android


## Steps to Reproduce

* create a form with multiple fields
* Edit first field - email - which gives validation error  "Invalid email"
* Navigate to other field than come back to email, It don't announce error message.

**Actual results:**  Talkback don't announce error message if navigate back to same field 
**Expected results:** Talkback should announce the error when user navigate back to that field. 


**Flutter doctor results:**

    • Flutter version 2.5.2 at C:\Users\hsingh\Documents\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 3595343e20 (8 days ago), 2021-09-30 12:58:18 -0700
    • Engine revision 6ac856380f
    • Dart version 2.14.3
Repository: TypeScript
Issue: Error 2488 only shown once
Labels: Bug,Help Wanted

# Bug Report
When the error ```Type '{type}[] | undefined' must have a '[Symbol.iterator]()' method that returns an iterator.(2488)``` occurs multiple times in a project it only shows once. 

![image](https://user-images.githubusercontent.com/15829978/136526743-a5bbb818-302c-46cb-9419-f64f0291c765.png)
As could be seen in the image above only ```data_1``` has red underline, while I expect to also have red underline by ```data_2```.

### 🕗 Version & Regression Information
When using es5 or older both errors are shown, but from es6 only one error shows.

### ⏯ Playground Link
[Playground link with example](https://www.typescriptlang.org/play?#code/PTAEFcGcEsDsHNQFsCGAXAFgOgE4tgCYD2SoaRoAxjgKbo1kCeADg5GjnPANoC6oRHBEI0AZnBoEAUJSKx2oAuhQAuUO04I+oAD7CCYiQVABeUAFl02PIRIAKAJSgA-KG1rwI8bEkBuKTJyCkpoKAD6AIymblixISi8vqAgoBgokKAooDQ4OILqGEQA7rCB8miKymEATNHcsVjxiclgaRmwFDl5QpCFJVJAA)

### 💻 Code
```ts
// using math.random to create type string[] or undefined
const data: string[] | undefined = Math.random() ? [] : undefined;

const data_1 = [...data]; // has a error shown
const data_2 = [...data]; // has no error shown
```

### 🙁 Actual behavior

The TypeScript compiler is only returning one of the multiple errors when the error is of type 2488.

### 🙂 Expected behavior

The TypeScript compiler should return all the locations of the errors, even if they are the same type. This would be handy for code analysis tools.
Repository: ant-design
Issue: Swipe to open/close Drawer
Labels: Inactive,improvement

- [x] 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?
Impoved UX on touchscreen devices. Drawers are commonly opened by swiping

### What does the proposed API look like?
| Props             | Description | Type | Default |
| ----------------- | ----------------- | ----------------- | ----------------- |
| swipeOpenEnabled  | Whether Drawer can be opened by swiping | boolean | false |
| swipeCloseEnabled  | Whether Drawer can be closed by swiping | boolean | false |

Another potentially useful API would be controlling width of the swipe handle


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: svelte
Issue: cssHash's hash() function may generate invalid CSS identifiers
Labels: feature request,compiler

### Describe the bug

`cssHash: ({hash}) => hash('foo'),` returns `2nhsez`, which is an invalid CSS identifier since it starts with a number, unless the identifier is escaped, which Svelte does not do.

### Reproduction

```js
{
    test: /\.svelte$/,
    loader: 'svelte-loader',
    options: {
        compilerOptions: {
            cssHash: ({hash}) => hash('foo'),
        },
    },
},
```

### Logs

_No response_

### System Info

```shell
System:
    OS: Windows 10 10.0.18363
    CPU: (8) x64 Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz
    Memory: 11.64 GB / 31.94 GB
  Binaries:
    Node: 14.15.3 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.10 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 6.14.9 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 94.0.4606.71
    Edge: Spartan (44.18362.1593.0)
    Internet Explorer: 11.0.18362.1766
  npmPackages:
    svelte: ^3.43.1 => 3.43.1
    webpack: ^5.11.0 => 5.53.0
```


### Severity

annoyance
Repository: storybook
Issue: Give more fine tuning control to the existing Controls (auto) discoverability
Labels: feature request,addon: controls

**Is your feature request related to a problem? Please describe**

Disclaimer - this might be already possible (how?) - I did not find a way from what I tried until now.

I currently work with Angular but I believe this capability is applicable for all the frameworks. For the moment the Controls are binded (autodiscovered) using @Input (props in React) and to the existing class members/functions.

This is probably useful in many situations since it is automating the auto-discoverability of all the fields / Controls (probably for creating quick "kitchen sink" kind of component playgrounds.)
 
However components will usually have many @Input(s) or other members or member functions many of each might not be relevant when testing the component with Storybook. Currently if a component has 30 members there will be 30 Controls "autodiscovered" and the current approach for disabling what is not required is to use the argTypes to disable each Control / member individually. So, if I am interested only to have two out of these 30 members I need to provide boilerplate argTypes to disable the 28 which are not required in the Controls area. 
 
**Describe the solution you'd like**

Have some kind of mechanism to include / exclude Controls in bulk. Maybe you could get some inspiration from how "include" and "exclude" sections work in tsconfig.json

**Describe alternatives you've considered**

I understood that I can use argTypes to exclude each Control individually (exclude works also in bulk?).
Repository: storybook
Issue: Offer Controls binded to functions (the function should be able to access the Control's newValue)
Labels: feature request,needs triage

**Is your feature request related to a problem? Please describe**

Disclaimer - this might be already possible (how?) - I did not find a way from what I tried until now.

I work with angular/storybook but I believe this capability is useful across frameworks.

Currently Controls are binded to either existing component @Inputs or component members or existing component member functions. This is for sure useful in many situations (since the component's layout depends on the component members many times).

In addition to this it will be useful to have the possibility to bind Controls to arbitrary callback functions defined inline (shorthand notation?!) directly in the stories. These callback functions should have access to the Component's newValue (as an argument passed to the function when it is called).

**Describe the solution you'd like**

Offer the possibility of binding Controls to arbitrary callback functions defined inline (short hand notation!) directly 
in the stories. These functions should have access to the Component's newValue. The component layout should be refreshed only after all these callbacks are executed.

**Describe alternatives you've considered**

I considered modifying the existing component code (OnChanges - Angular) to intercept when the Control is modifying the @Input's value and then to achieve what I need in Storybook. This approach is not perfect because it is not a good practice putting “test specific” code into the Component's code.

I believe the best approach would be to have the possibility of binding the Controls to short / inline callback functions written directly in the story (when defining argTypes maybe?)
Repository: godot
Issue: Instancing `VisibleOnScreenEnabler3D` and `VisibleOnScreenEnabler2D` blocks `_process` function
Labels: bug,topic:2d,topic:3d

### Godot version

4.0.dev.custom_build. 87de2e7c4

### System information

Ubuntu 21.04 - Nvidia GTX 970, Gnome shell 3.38 X11

### Issue description

```
func _process(delta) -> void:
	var temp_variable1 = VisibleOnScreenEnabler3D.new()
	add_child(temp_variable1)
	print("Inside")
```
prints only once "Inside", but should do it multiple times in each frame

### Steps to reproduce

Above

### Minimal reproduction project

_No response_
Repository: ant-design
Issue: Menu.Item title tooltip is visible on mobile after Layout.Sider is collapsed with 0 width
Labels: help wanted,Inactive,📱Mobile Device

- [x] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.

### Reproduction link
[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/zen-rain-mmyyd?file=/src/App.js)

### Steps to reproduce
1. Open full page version https://mmyyd.csb.app/ on mobile or in browser responsive mode
2. Interact with the menu

Note that this bug only happens on mobile or in responsive

### What is expected?
Tooltip should not be visible when menu is collapsed

### What is actually happening?
See GIF https://i.imgur.com/G8wt5B4.gif

| Environment | Info |
|---|---|
| antd | 4.16.13 |
| React | 17.0.2 |
| System | Windows 10 |
| Browser | Chrome  |


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: vscode
Issue: Add "new folder" option -- to make starting a new project easier.
Labels: feature-request,getting-started

<!-- ⚠️⚠️ 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. -->
I may be doing something wrong, but the experience of starting a new project from within VSCode is clunky / unintuitive. 

On the welcome screen and menu, there's "new file" -- but when starting a new project, I'd actually want a new folder.  

After all, for existing projects one typically opens the folder, not an individual file, so why should project creation be any different?

As it is, I create the new file, and then when I go to save the the file for the first time, I create a folder using the "new folder" button in the OS's "save as" dialog -- 

but even then, VSCode's file explorer doesn't switch into that folder.  

So, I'd suggest "new folder" as a both a menu item and on the Welcome screen.  

For the best UX, you'd then probably want to highlight or make obvious a "new file" button, either in the file explorer sidebar, or in the empty/open folder.
Repository: godot
Issue: "Failed to export project files" when pressing enter instead of save button
Labels: bug,topic:editor,topic:export

### Godot version

3.3.4-stable

### System information

Windows 10

### Issue description

```editor/editor_export.cpp:1008 - Failed to export project files```
It seems that the .pck file is failing to export if I press enter to confirm the file path instead of pressing the save button on the "Export Project" -> "Save a file" menu. 
I have seen the same bug for exporting for HTML5, Windows, Linux.

### Steps to reproduce

- Open a clean project.
- Go to export menu
- Add Linux
- Set an export path
- Click "Export Project" button
- Press the enter key to confirm file path and save project (instead of pressing the "Save" button)

The export will hang and you will get the above error. 
The export folder will be missing the .pck file.

### Minimal reproduction project

A blank project works for me.
Repository: vscode
Issue: Deleting large files with the UI takes very long
Labels: feature-request,file-explorer


Issue Type: <b>Performance Issue</b>

Using the UI to delete large files with right clik + delete takes a usually long time (if it succeeds at all) compared to just running the linux command "rm filename"

VS Code version: Code 1.61.0 (ee8c7def80afc00dd6e593ef12f37756d8f504ea, 2021-10-07T18:11:58.853Z)
OS version: Darwin x64 20.6.0
Restricted Mode: No
Remote OS version: Linux x64 5.4.0-1052-gcp

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 x 2600)|
|GPU Status|2d_canvas: enabled<br>gpu_compositing: enabled<br>metal: disabled_off<br>multiple_raster_threads: enabled_on<br>oop_rasterization: enabled<br>opengl: enabled_on<br>rasterization: enabled<br>skia_renderer: disabled_off_ok<br>video_decode: enabled<br>webgl: enabled<br>webgl2: enabled|
|Load (avg)|2, 2, 2|
|Memory (System)|16.00GB (6.14GB free)|
|Process Argv|--crash-reporter-id d085b858-1b83-458d-a2a2-88f35f33475c|
|Screen Reader|no|
|VM|0%|

|Item|Value|
|---|---|
|Remote|SSH: podimo_gcp|
|OS|Linux x64 5.4.0-1052-gcp|
|CPUs|Intel(R) Xeon(R) CPU @ 2.30GHz (4 x 2299)|
|Memory (System)|14.65GB (7.24GB free)|
|VM|0%|
</details><details><summary>Extensions (20)</summary>

Extension|Author (truncated)|Version
---|---|---
vsc-material-theme|Equ|33.2.0
vsc-material-theme-icons|equ|1.2.2
jupyter-keymap|ms-|1.0.0
remote-ssh|ms-|0.65.8
remote-ssh-edit|ms-|0.65.8
material-icon-theme|PKi|4.10.0
vscode-icons|vsc|11.6.0
material-theme|zhu|3.13.2
vscode-edit-csv|jan|0.6.3
git-graph|mhu|1.30.0
vscode-docker|ms-|1.17.0
python|ms-|2021.10.1317843341
vscode-pylance|ms-|2021.10.0
jupyter|ms-|2021.9.1001312534
jupyter-keymap|ms-|1.0.0
jupyter-renderers|ms-|1.0.3
vscode-python-typehint|njq|1.4.1
synthwave-vscode|Rob|0.1.10
docker|vsc|1.0.0
yaml|vsc|1.0.0

(2 theme extensions excluded)

</details><details>
<summary>A/B Experiments</summary>

```
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt639:30300192
pythontb:30283811
pythonvspyt551cf:30345471
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30358481
pythondataviewer:30285071
pythonvsuse255:30340121
vscod805cf:30301675
pythonvspyt200:30340761
binariesv615:30325510
vsccppwt:30378364
pythonvssor306:30344512
bridge0708:30335490
pygetstartedt2:30371810
dockerwalkthru:30377721
bridge0723:30353136
pythonrunftest32:30373476
pythonf5test824:30373475
javagetstartedt:30364666
pythonvspyt187:30373474
pydsgsc2:30361791
vsqsis200:30374795
vsaa593:30376534

```

</details>

<!-- generated by issue reporter -->
Repository: rust
Issue: Associated functions of generic types are not static
Labels: needs-rfc,T-types

```rust
trait Trait {
    fn fun();
}

fn takes_static_fn(_: impl Fn() + 'static) {}

fn test<T: Trait>() {
    // these work
    takes_static_fn(|| T::fun());
    takes_static_fn(T::fun as fn());

    // this seems like it ought to work
    takes_static_fn(T::fun);
}
```

```console
error[E0310]: the parameter type `T` may not live long enough
  --> src/lib.rs:12:5
   |
7  | fn test<T: Trait>() {
   |         -- help: consider adding an explicit lifetime bound...: `T: 'static +`
...
12 |     takes_static_fn(T::fun);
   |     ^^^^^^^^^^^^^^^ ...so that the type `fn() {<T as Trait>::fun}` will meet its required lifetime bounds

For more information about this error, try `rustc --explain E0310`.
```
Repository: create-react-app
Issue: homepage property in package.json breaking the aceess to the css files in the public folder.
Labels: stale,needs triage

Hi Team,

I recently tried to deploy react app as github pages by applying the `homepage` property in the `package.json` file. But it broke the relative path in the public folder. Could you please guide me on how to access the css files from in the public folders with the homepage property being set?

index.html file content

` <link rel="stylesheet" type="text/css" href="index.css" />`


package.json

`  "homepage": "http://arunkumar413.github.io/craHookTemplate" `
Repository: material-ui
Issue: [system] Counter intuitive behavior when overriding media queries
Labels: package: system,package: styled-engine,customization: css

- [x] The issue is present in the latest release.
- [x] I have searched the [issues](https://github.com/mui-org/material-ui/issues) of this repository and believe that this is not a duplicate.

## Current Behavior 😯

I'm unable to override certain styles on components. In this example, I'm trying to override the `minHeight` property on a `Toolbar` component.

https://github.com/mui/material-ui/blob/2a77a330230dfd534225a914b957cd591e7802c3/packages/mui-material/src/styles/createMixins.js#L4-L12

I was eventually able to override that property by adding `!important` to my style but according to the docs, that doesn't seem like it should be necessary. I would expect any provided styles to be applied last and thus override the default styles.

## Expected Behavior 🤔

Based on the documentation, I would expect to be able to...

- use `sx` to override this directly on the component (`<Toolbar sx={{ minHeight: '0px' }}>...`)
- OR create a variant in the `theme` to be able to enable that specific style override
- OR use `styled` to create a one-off component variant that has those styles applied to it

## Steps to Reproduce 🕹

[CodeSandbox Example using `sx` (preferred method), `styled`, and `theme`](https://codesandbox.io/s/mui-v5-overrides-pain-hjz6y?file=/index.js)

## Context 🔦

I was used to overriding styles via `withStyles` or the `classes` prop in v4 but it's unclear to me how to override styles without using `!important` in my styles.

## Your Environment 🌎

<details>
  <summary>`npx @mui/envinfo`</summary>
  
```
   System:
    OS: macOS 11.6
  Binaries:
    Node: 14.16.1 - ~/.nvm/versions/node/v14.16.1/bin/node
    npm: 7.24.2 - ~/.nvm/versions/node/v14.16.1/bin/npm
  Browsers:
    Chrome: 94.0.4606.71 (browser being used)
    Edge: 94.0.992.38
    Firefox: 92.0
    Safari: 15.0
  npmPackages:
    @emotion/react: ^11.4.1 => 11.4.1 
    @emotion/styled: ^11.3.0 => 11.3.0 
    @mui/core:  5.0.0-alpha.50 
    @mui/icons-material: ^5.0.3 => 5.0.3 
    @mui/material: ^5.0.3 => 5.0.3 
    @mui/private-theming:  5.0.1 
    @mui/styled-engine:  5.0.1 
    @mui/styles: ^5.0.1 => 5.0.1 
    @mui/system:  5.0.3 
    @mui/types:  7.0.0 
    @mui/utils:  5.0.1 
    @types/react:  17.0.14 
    react: ^17.0.2 => 17.0.2 
    react-dom: ^17.0.2 => 17.0.2 
```
</details>
Repository: neovim
Issue: &t_Co has wrong value in Linux console
Labels: bug,environment,tui,platform:linux,highlight

### Neovim version (nvim -v)

0.5.1

### Vim (not Nvim) behaves the same?

no, vim 8.2.3441

### Operating system/version

Arch Linux

### Terminal name/version

Linux console

### $TERM environment variable

linux

### Installation

Official Arch repo

### How to reproduce the issue

Open any text without a display server, try highlighting it in visual mode

### Expected behavior

Text gets highlighted in the terminal (same as vim)

### Actual behavior

Text doesn't get highlighted, making it harder to use the visual mode
Repository: storybook
Issue: Reflect search in URL
Labels: feature request,ui,ui: search

**Is your feature request related to a problem? Please describe**

The current search isn't interactable:
- you can't share the search state with anyone
- you can't set up a browser search engine for it

Enabling this functionality would be a nice UX improvement

**Describe the solution you'd like**

Set search input to URL. When users type some search query - reflect it in the URL.  The intermediate search query state most likely shouldn't affect the history state, or should it?
On page load search param should be checked and apply search if present

**Describe alternatives you've considered**

N/A

**Are you able to assist to bring the feature to reality?**
no

**Additional context**
Current URL:
![image](https://user-images.githubusercontent.com/9091857/136582562-b388099a-2b54-41b9-86d9-dd3f97f2e455.png)

Suggested URL:
![image](https://user-images.githubusercontent.com/9091857/136582365-04c12393-02e9-4fd8-b478-f397b61ddd10.png)
Repository: flutter
Issue: Add filename prefix to flutter build web
Labels: c: new feature,tool,dependency: dart,platform-web,c: proposal,P3,team-web,triaged-web

Hi.

I'm using flutter web in production for more then 7 months now with pretty good results.
My biggest pain is releasing a new version because as things are it makes for a pretty bad user experience.
I'm using deferred loading to split up the application which is great, but this is pretty clunky with the browser caching.
I've seen several threads here discussing this but so far there is still no reliable solution to this problem.

My suggestion is to add a parameter to the flutter build web, perhaps: "--file-name-prefix=main.dart_uniqueid" to be used as the prefix for the produced js files, instead of using the default: main.dart.js.
This would result in files such as: main.dart_202110081156.js and main.dart_202110081156.js_32.part.js instead of : main.dart.js and main.dart.js_32.part.js

This would force the browser to download the new version of the parts.

Thank you for the great work so far.

Kind regards,
Cris
Repository: go
Issue: x/website: ref/mod's vcs-find section should mention the "mod" version control system
Labels: Documentation,help wanted,NeedsFix,modules,website

I recently asked a question which boils down to: can I publish a Go module in plain zip archives, without using a standard VCS like git?

@bcmills helpfully pointed me towards https://golang.org/ref/mod#serving-from-proxy, which is basically what I want :)

The reason I had failed to find that section of the reference doc is because I looked in https://golang.org/ref/mod#vcs-find, which does not list "mod" in its table. It probably should, and have the mention link to the serving-from-proxy section.