sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: The compiler gets hopelessly confused on `enum S(usize);`
Labels: A-diagnostics,A-parser,T-compiler,C-bug,D-verbose

I think the error speaks for itself.

Here is the change I made, applied to 025f0e649e3a9869e42148ee8cf3041e24a13e8c.

```diff
diff --git a/src/librustdoc/clean/types.rs b/src/librustdoc/clean/types.rs
index 26b630440a1..4c2f3b5ce43 100644
--- a/src/librustdoc/clean/types.rs
+++ b/src/librustdoc/clean/types.rs
@@ -1163,33 +1163,7 @@ fn def_id(&self) -> Option<DefId> {
 }
 
 #[derive(Clone, PartialEq, Eq, Hash, Copy, Debug)]
-crate enum PrimitiveType {
-    Isize,
-    I8,
-    I16,
-    I32,
-    I64,
-    I128,
-    Usize,
-    U8,
-    U16,
-    U32,
-    U64,
-    U128,
-    F32,
-    F64,
-    Char,
-    Bool,
-    Str,
-    Slice,
-    Array,
-    Tuple,
-    Unit,
-    RawPointer,
-    Reference,
-    Fn,
-    Never,
-}
+crate enum PrimitiveType(Symbol);
 
 #[derive(Clone, PartialEq, Eq, Hash, Copy, Debug)]
 crate enum TypeKind {
```
[errors.log](https://github.com/rust-lang/rust/files/5692406/errors.log) **edit: this is the wrong logfile, see below**

I think the main thing making this so awful (1429 errors) is that it continues to try and do name resolution afterwards. I would not expect any errors other than further syntax errors to be reported.
Repository: rust
Issue: Unexplained errors applying `-Z instrument-coverage` to some rustc `ui` tests
Labels: A-testsuite,T-compiler,C-bug,A-code-coverage

When experimentally adding `-Zinstrument-coverage` to the set of `ui` tests in the Rust source tree, most tests still pass; of those that don't, almost all failures can be explained, and some improvements have been made to surface known incompatibilities between `-Zinstrument-coverage` and other compiler options (see https://github.com/rust-lang/rust/pull/79958#issuecomment-743958675).

However, there are ~4~ 3 tests that still fail with `-Zinstrument-coverage` that I don't understand.

I'm hoping someone(s) that understand these tests and/or compiler options can take a look, explain why they are expected to fail, or clarify what the bug might be, if they should not fail.

---------------------------------------------------------------------------------------------------------------
Fixed via #80072

~$ ./x.py test --rustc-args="-Zinstrument-coverage" src/test/ui/consts/unstable-precise-live-drops-in-libcore.rs~

~Failure due to:
   error[E0493]: destructors cannot be evaluated at compile-time
     --> /usr/local/google/home/richkadel/rust/src/test/ui/consts/unstable-precise-live-drops-in-libcore.rs:15:25
      |
   LL |     pub const fn unwrap(self) -> T {
      |                         ^^^^ constant functions cannot evaluate destructors
(this error is printed twice)~

---------------------------------------------------------------------------------------------------------------

```shell
$ ./x.py test --rustc-args="-Zinstrument-coverage" src/test/ui/issues/issue-33287.rs
```
```text

Failure due to:
   stderr:
   ------------------------------------------
   error: this operation will panic at runtime
     --> /usr/local/google/home/richkadel/rust/src/test/ui/issues/issue-33287.rs:7:17
      |
   LL |     let range = A[1]..;
      |                 ^^^^ index out of bounds: the length is 1 but the index is 1
      |
      = note: `#[deny(unconditional_panic)]` on by default

```

---------------------------------------------------------------------------------------------------------------

```shell
$ ./x.py test --rustc-args="-Zinstrument-coverage" src/test/ui/print_type_sizes/niche-filling.rs
```
```text

Failure due to additional lines in the compiler output:
   +       print-type-size type: `std::option::Option<std::num::NonZeroU32>`: 4 bytes, alignment: 4 bytes
   +       print-type-size     variant `Some`: 4 bytes
   +       print-type-size         field `.0`: 4 bytes
   +       print-type-size     variant `None`: 0 bytes

```

---------------------------------------------------------------------------------------------------------------

```shell
$ ./x.py test --rustc-args="-Zinstrument-coverage" src/test/ui/trivial-bounds/trivial-bounds-inconsistent.rs
```
```text

Failure due to:
   error: internal compiler error:
   compiler/rustc_traits/src/normalize_erasing_regions.rs:43:32:
   could not fully normalize `std::option::Option<<i32 as std::iter::Iterator>::Item>`

```
Repository: ant-design
Issue: when double click the cell text to select, there will be a tab space when pasting
Labels: help wanted,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.

### Reproduction link
[https://github.com/ant-design/ant-design/issues/14475#issuecomment-745015896](https://github.com/ant-design/ant-design/issues/14475#issuecomment-745015896)

### Steps to reproduce
https://github.com/ant-design/ant-design/issues/14475#issuecomment-745015896

### What is expected?
no spaces when pasting

### What is actually happening?
there are spaces when pasting

| Environment | Info |
|---|---|
| antd | 4.9.3 |
| React | 16.14.0 |
| System | mac |
| Browser | chrome 87.0.4280.88 |


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: flutter
Issue: flutter create fails when using flavors
Labels: c: crash,tool,P2,team-tool,triaged-tool

## Steps to Reproduce

<!-- Please tell us exactly how to reproduce the problem you are running into. -->

1. Add flavors to the flutter app. eg: dev and prod
2. Switch to beta channel to enable web
3. Try to bootstrap the web app with `flutter create .` as listed in https://flutter.dev/docs/get-started/web#add-web-support-to-an-existing-app

## Logs



```bash
$ flutter create --platforms web .

The Xcode project defines schemes: dev, prod
You must specify a --flavor option to select one of the available schemes.
```

```bash
flutter create --flavor=dev  --platforms web .
Could not find an option named "flavor".


Run 'flutter -h' (or 'flutter <command> -h') for available flutter commands and options.
```


<!-- If possible, paste the output of running `flutter doctor -v` here. -->

```
✓] Flutter (Channel beta, 1.24.0-10.2.pre, on macOS 11.0.1 20B50 darwin-x64, locale en-CA)
    • Flutter version 1.24.0-10.2.pre at /Users/name/flutter
    • Framework revision 022b333a08 (4 weeks ago), 2020-11-18 11:35:09 -0800
    • Engine revision 07c1eed46b
    • Dart version 2.12.0 (build 2.12.0-29.10.beta)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/name/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.3, Build version 12C33
    • CocoaPods version 1.10.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.52.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.17.0

[✓] Connected device (3 available)
    • iPhone 12 Pro Max (mobile) • 00F296F5-A013-4EA6-BA46-D6DC80786241 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • Web Server (web)           • web-server                           • web-javascript • Flutter Tools
    • Chrome (web)               • chrome                               • web-javascript • Google Chrome 87.0.4280.88

• No issues found!
```
Repository: node
Issue: [Bug] Remove the incorrect event listener.
Labels: events

* **Version**: v15.4.0
* **Platform**: MacOS V10.15.7
* **Subsystem**: lib/events.js

### What steps will reproduce the bug?

```js
const EventEmitter = require('events');
const ee = new EventEmitter();
// const symbol = Symbol('listener');
const symbol = 'listener';

const fn2 = function(...args) {
    console.log('Call fn2', ...args)
};

const fn = function (...args) {
    console.log('Call fn', ...args);
};

fn[symbol] = fn2;

ee.on('one', fn2)
ee.on('one', fn);
ee.emit('one');
// Prints: 
//    Call fn2
//    Call fn

console.log('1. remove fn2')
ee.removeListener('one', fn2); // fn is removed, expect remove the fn2 
ee.emit('one');
// Prints: 
//    Call fn2

console.log('2. remove fn2 again')
ee.removeListener('one', fn2) // fn2 is removed
ee.emit('one')
// Prints: 
//    Call fn2

console.log('3. remove fn2 again');
ee.emit('one')
```

### How often does it reproduce? Is there a required condition?

Occurs every time.

### What is the expected behavior?

```js
Call fn2
Call fn
1. remove fn2
Call fn
2. remove fn2 again
Call fn
3. remove fn2 again
Call fn
```

### What do you see instead?

```js
Call fn2
Call fn
1. remove fn2
Call fn2
2. remove fn2 again
3. remove fn2 again
```

### Additional information

[Replace the listener attribute of event listener with symbol](https://github.com/nodejs/node/blob/752991d27dcae654ba1ce6b2a637e27b21c1426b/lib/events.js#L523)
Repository: godot
Issue: Editing exported dictionary variable in the inspector tab will change the index of its keys and values to A to Z format
Labels: bug,topic:editor

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:**
<!-- Specify commit hash if using non-official build. -->
Godot 3.2.4 beta4

**OS/device including version:**
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->

- Windows 10, Version 20H2, OS build 19042.685
- Intel® UHD Graphics 620, Version 27.20.100.9030


**Issue description:**
<!-- What happened, and what was expected. -->
Normally, the dictionary's keys and values will return their value based on their index. However, if the user exported their dictionary variable and changed its value in the inspector tab, the keys and values index will be based on the keys' alphabet order (A to Z), as shown below:

![2020-12-15 02-11-45](https://user-images.githubusercontent.com/1403194/102174981-65854900-3e7d-11eb-8230-2043e749b60e.gif)

This issue makes the export variable feature with the dictionary data type unusable. There's no consistency to target the index of keys and values in the code. 

This issue is affecting both GDScript and Visual Script.


**Steps to reproduce:**

1. Create a dictionary variable.
2. Input some keys and values.
3. Print the keys and values array, remember the index.
4. Export the variable.
5. Change the key's value, print the keys and values array again, the index will change to A to Z format regardless of their previous index.


**Minimal reproduction project:**
<!-- A small Godot project which reproduces the issue. Drag and drop a zip archive to upload it. -->
[test.zip](https://github.com/godotengine/godot/files/5693562/test.zip)
Repository: pytorch
Issue: Uninitialized variable was not detected in ASAN CI config
Labels: high priority,module: ci,triaged

Have a look at the following code snippet:
https://github.com/pytorch/pytorch/blob/25bc90628109699ebd72a5a4bf68750f98f9251c/torch/csrc/jit/passes/quantization/insert_quant_dequant.cpp#L990-L1000

Uninitialized value of `qscheme` variable defined on line 990 (`c10::QScheme` is an enum class) returned on line 1000.
This codepath is covered by tests (see https://codecov.io/gh/pytorch/pytorch/src/272f4db043ec2c63ecfe6d2759e7893cb842a3c3/torch/csrc/jit/passes/quantization/insert_quant_dequant.cpp#L952 ), but somehow return of uninitialized value was not reported by ASAN, which led to a random correctness issue after an unrelated update, see:
https://app.circleci.com/pipelines/github/pytorch/pytorch/250370/workflows/6f38ae43-a9a5-43f3-8c1f-0f911df69d75/jobs/9589799

cc @ezyang @gchanan @zou3519 @bdhirsh @seemethere @malfet @walterddr @pytorch/pytorch-dev-infra
Repository: pytorch
Issue: Can we add try-except for list/slice indices even when auto_collation is True?
Labels: triaged,enhancement,module: data

https://github.com/pytorch/pytorch/blob/39a10fb6528b355791993a67b895934e3c902765/torch/utils/data/_utils/fetch.py#L42-L47

Sometimes when we use automatic batching (auto_collation=True), we hope the dataset's `__getitem__()` is given a list a slice instead of single index one by one (like in line 44 above), because it could be cheaper to directly load batched data (e.g., bulk reads from a database or reading continuous chunks of memory) even though we use automatic batching (instead of writing our own). Thus I hope the above code be like:
```python
 def fetch(self, possibly_batched_index): 
     try: 
         data = self.dataset[possibly_batched_index]
     except: 
         data = [self.dataset[idx] for idx in possibly_batched_index]
     return self.collate_fn(data)
```
And in this way, we can implement `dataset.__getitem__()` to accept a list/slice just like when we don't use automatic batching (auto_collation=False), and will definitely result in much more efficient way to load data if it is much cheaper to load bulk data in a whole than to load single data one by one.

cc @VitalyFedyunin @ejguan
Repository: animate.css
Issue: Option to prefix animation name to avoid conflict with same CSS animation names
Labels: feature request,v5

**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

# Problem
The problem I've encountered is when I added animate css cdn into my site, there is a portion of site has gone invisible. After debugging  many times I found out that a plugin using an it's own animation named `slideInRight`, so while loading the animate.css it conflict with the same animation name and the other plugin div section not showing anymore.

# Solution
We already have a solution for prefix the class names using the animateConfig's prefix option. We would love to extend the functionality to prefix the animation names too.

There are 2 possible solutions I have to suggest
1. if we add `"animateConfig": {. "prefix": "animate__". }` then it will prefix the animation names like this `@keyframes animate__slideInOut`
2. Introduce a new config like this `"animateConfig": { "prefix": "animate__", "animationPrefix": "animate_" }` to prefix animation names

This can avoid conflict in using the same animation names by other scripts, `fadeIn`, `fadeOut` animation name are too common and so there is a high possibility if conflicting with the animation names if one have written their own custom animation vs the animate.css animation names.
Repository: TypeScript
Issue: in jsx/tsx, auto closing quotes not happen when cursor is at end of self closing tag.
Labels: Bug,Help Wanted,PursuitFellowship


**TypeScript Version:**  4.1.2

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:** auto closing quotes jsx tsx

**Code**

```tsx
<Table size=|/>
```
In vscode, place the cursor at `|` , input `'`

vscode setting should be "editor.autoClosingQuotes": "languageDefined" 
when the setting is "always", it close the quotes. So maybe this is typescript issue.

This is not happened when code is 
```tsx
<Table size=|         />
```


**Expected behavior:**
`<Table size=''/>`

**Actual behavior:**
`<Table size='/>`

**Playground Link:**  playground doesn't close quote in tag attribute.

**Related Issues:** <!-- Did you find other bugs that looked similar? -->
Repository: vscode
Issue: Support AppLocker
Labels: windows,under-discussion,workbench-run-as-admin,chromium,sandbox

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->
<!-- Also please test using the latest insiders build to make sure your issue has not already been fixed: https://code.visualstudio.com/insiders/ -->
=> done - not fixed, seems to be even worse, as VSCode does only show black Window when started as admin.

<!-- Use Help > Report Issue to prefill these. -->
- VSCode Version: 1.52.0, Electron 9.3.5
- OS Version: 2004

Steps to Reproduce:

1. Activate AppLocker with Default Rules
2. Start VSCode elevated
3. Look at the AppLocker Logs - you will see 50/50 denied/allowed events:
Good and normal:
%OSDRIVE%\USERS\ADMIN\APPDATA\LOCAL\PROGRAMS\MICROSOFT VS CODE INSIDERS\CODE - INSIDERS.EXE was allowed to run.
Bad:
%OSDRIVE%\USERS\ADMIN\APPDATA\LOCAL\PROGRAMS\MICROSOFT VS CODE INSIDERS\CODE - INSIDERS.EXE was prevented from running.


<!-- Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes

Problem seems to be the way code.exe does launch itself on startup, using the API CreateProcessAsUserW() (50%) in a special way. (dwCreationFlags as per debug: 0x8040c + dwflags of startupinfo 0x180)
But this seems not to be the only differnence as this is not causing an issue on a little test-program.
The (and those are the allowed events) process creates which are done using API CreateProcessW() (50%) do not cause an issue.
Repository: opencv
Issue: Subset of MathOperatorTestFluid/MathOperatorMatMatTest.OperatorAccuracyTest test failed on amr64
Labels: bug,platform: linux,platform: arm,category: g-api / gapi

##### System information (version)
- OpenCV => 4.5.1-pre (git 46e275dfe4616b07cd2492c17698d1a0be0aa6df )
- Operating System / Platform => Ubuntu 20.04, arm64-v8a
- Compiler => GCC 9.3

Hardware:
```
--   CPU/HW features:
--     Baseline:                    NEON FP16
```

##### Detailed description

Full list of failed cases:

-- | -- | --
OperatorAccuracyTest/11 | 5 ms | Failed
OperatorAccuracyTest/2 | 12 ms | Failed
OperatorAccuracyTest/20 | 1 ms | Failed
OperatorAccuracyTest/29 | 13 ms | Failed
OperatorAccuracyTest/38 | 5 ms | Failed
OperatorAccuracyTest/47 | 1 ms | Failed
OperatorAccuracyTest/56 | 15 ms | Failed
OperatorAccuracyTest/65 | 6 ms | Failed
OperatorAccuracyTest/74 | 1 ms | Failed

##### Issue submission checklist

 - [ ] I report the issue, it's not a question
   <!--
   OpenCV team works with answers.opencv.org, Stack Overflow and other communities
   to discuss problems. Tickets with question without real issue statement will be
   closed.
   -->
 - [ ] I checked the problem with documentation, FAQ, open issues,
       answers.opencv.org, Stack Overflow, etc and have not found solution
   <!--
   Places to check:
   * OpenCV documentation: https://docs.opencv.org
   * FAQ page: https://github.com/opencv/opencv/wiki/FAQ
   * OpenCV forum: https://answers.opencv.org
   * OpenCV issue tracker: https://github.com/opencv/opencv/issues?q=is%3Aissue
   * Stack Overflow branch: https://stackoverflow.com/questions/tagged/opencv
   -->
 - [ ] I updated to latest OpenCV version and the issue is still there
   <!--
   master branch for OpenCV 4.x and 3.4 branch for OpenCV 3.x releases.
   OpenCV team supports only latest release for each branch.
   The ticket is closed, if the problem is not reproduced with modern version.
   -->
 - [ ] There is reproducer code and related data files: videos, images, onnx, etc
   <!--
   The best reproducer -- test case for OpenCV that we can add to the library.
   Recommendations for media files and binary files:
   * Try to reproduce the issue with images and videos in opencv_extra repository
     to reduce attachment size
   * Use PNG for images, if you report some CV related bug, but not image reader
     issue
   * Attach the image as archive to the ticket, if you report some reader issue.
     Image hosting services compress images and it breaks the repro code.
   * Provide ONNX file for some public model or ONNX file with with random weights,
     if you report ONNX parsing or handling issue. Architecture details diagram
     from netron tool can be very useful too. See https://lutzroeder.github.io/netron/
   -->
Repository: opencv
Issue: Resize220_400TestCPU/ResizeTestFluid.SanityTest test fails on arm64
Labels: bug,platform: linux,platform: arm,category: g-api / gapi

##### System information (version)
- OpenCV => 4.5.1-pre (git 46e275dfe4616b07cd2492c17698d1a0be0aa6df )
- Operating System / Platform => Ubuntu 20.04, arm64-v8a
- Compiler => GCC 9.3

Hardware:
```
--   CPU/HW features:
--     Baseline:                    NEON FP16
```

##### Detailed description

All cases produce error like:
```
/home/opencv-cn/slave/workspace/nightly-master/ubuntu-20.04-arm64/opencv/modules/gapi/test/gapi_fluid_resize_test.cpp:425
Expected: (cvtest::norm(out_mat(outRoi), out_mat_ocv(outRoi), NORM_INF)) <= (tolerance), actual: 1 vs 0
```

##### Issue submission checklist

 - [ ] I report the issue, it's not a question
   <!--
   OpenCV team works with answers.opencv.org, Stack Overflow and other communities
   to discuss problems. Tickets with question without real issue statement will be
   closed.
   -->
 - [ ] I checked the problem with documentation, FAQ, open issues,
       answers.opencv.org, Stack Overflow, etc and have not found solution
   <!--
   Places to check:
   * OpenCV documentation: https://docs.opencv.org
   * FAQ page: https://github.com/opencv/opencv/wiki/FAQ
   * OpenCV forum: https://answers.opencv.org
   * OpenCV issue tracker: https://github.com/opencv/opencv/issues?q=is%3Aissue
   * Stack Overflow branch: https://stackoverflow.com/questions/tagged/opencv
   -->
 - [ ] I updated to latest OpenCV version and the issue is still there
   <!--
   master branch for OpenCV 4.x and 3.4 branch for OpenCV 3.x releases.
   OpenCV team supports only latest release for each branch.
   The ticket is closed, if the problem is not reproduced with modern version.
   -->
 - [ ] There is reproducer code and related data files: videos, images, onnx, etc
   <!--
   The best reproducer -- test case for OpenCV that we can add to the library.
   Recommendations for media files and binary files:
   * Try to reproduce the issue with images and videos in opencv_extra repository
     to reduce attachment size
   * Use PNG for images, if you report some CV related bug, but not image reader
     issue
   * Attach the image as archive to the ticket, if you report some reader issue.
     Image hosting services compress images and it breaks the repro code.
   * Provide ONNX file for some public model or ONNX file with with random weights,
     if you report ONNX parsing or handling issue. Architecture details diagram
     from netron tool can be very useful too. See https://lutzroeder.github.io/netron/
   -->