sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: opencv
Issue: opencv-4.6.0/modules/gapi/src/utils/itt.hpp:20:10: fatal error: ittnotify.h: No such file or directory    20 | #include <ittnotify.h>       |          ^~~~~~~~~~~~~compilation terminated.
Labels: question (invalid tracker),category: build/install,incomplete

### System Information

OpenCV version :4.6.0
Operating System / Platform: Ubuntu 20.04
cmake version 3.24.0
gcc version 9.4.0


### Detailed description

[ 98%] Linking CXX executable ../../bin/opencv_test_tracking
[ 98%] Building CXX object modules/world/CMakeFiles/opencv_test_stereo.dir/usr/local/src/opencv/opencv_contrib-4.6.0/modules/stereo/test/test_descriptors.cpp.o
[ 98%] Building CXX object modules/world/CMakeFiles/opencv_test_stereo.dir/usr/local/src/opencv/opencv_contrib-4.6.0/modules/stereo/test/test_main.cpp.o
[ 98%] Building CXX object modules/world/CMakeFiles/opencv_test_stereo.dir/usr/local/src/opencv/opencv_contrib-4.6.0/modules/stereo/test/test_qds_matching.cpp.o
[ 98%] Linking CXX executable ../../bin/opencv_test_stereo
In file included from /usr/local/src/opencv/opencv-4.6.0/modules/gapi/src/executor/gtbbexecutor.cpp:12,
                 from /usr/local/src/opencv/opencv-4.6.0/modules/gapi/test/executor/gtbbexecutor_internal_tests.cpp:8:
/usr/local/src/opencv/opencv-4.6.0/modules/gapi/src/utils/itt.hpp:20:10: fatal error: ittnotify.h: No such file or directory
   20 | #include <ittnotify.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
make[2]: *** [modules/world/CMakeFiles/opencv_test_gapi.dir/build.make:300: modules/world/CMakeFiles/opencv_test_gapi.dir/__/gapi/test/executor/gtbbexecutor_internal_tests.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:4858: modules/world/CMakeFiles/opencv_test_gapi.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 98%] Built target opencv_test_face
[ 98%] Built target opencv_test_optflow
[ 98%] Built target opencv_perf_optflow
[ 98%] Built target opencv_test_superres
[ 98%] Built target opencv_perf_superres
[ 98%] Built target opencv_perf_stitching
[ 98%] Built target opencv_test_tracking
[ 98%] Built target opencv_test_stitching
[ 98%] Built target opencv_test_stereo
[ 98%] Built target opencv_perf_tracking
[ 98%] Built target opencv_perf_gapi
make: *** [Makefile:166: all] Error 2

below is the output od "sudo make"
[bugs1.txt](https://github.com/opencv/opencv/files/10103412/bugs1.txt)


### Steps to reproduce

use "cmake-gui" to "configure and generator,"
after configure and generator, 
sudo make, then this bug appers!
I have copy "opencv-4.6.0/3rdparty/ittnotify"  to "/usr/include/ittnotify", but this could help!
please fix this bug


### Issue submission checklist

- [X] I report the issue, it's not a question
- [X] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [X] I updated to the latest OpenCV version and the issue is still there
- [ ] There is reproducer code and related data files (videos, images, onnx, etc)
Repository: go
Issue: x/playground: firing "load" event too early
Labels: NeedsInvestigation

### What version of Go are you using (`go version`)?

go1.19.2

### Does this issue reproduce with the latest release?

Yes

### What operating system and processor architecture are you using (`go env`)?

Just the web playground

### What did you do?

Open Google Chrome
Open the DevTools panel, on the tab Networks
Load the permalink of a playground program e.g. https://go.dev/play/p/ejOfDs_Hg9
Filter the network tab on the snippet ID: `ejOfDs_Hg9`

### What did you expect to see?

The red vertical line ([load event](https://developer.mozilla.org/en-US/docs/Web/API/Window/load_event)) should be after the snippet source code request has finished loading, in the waterfall

### What did you see instead?

The red vertical line ([load event](https://developer.mozilla.org/en-US/docs/Web/API/Window/load_event)) is before the snippet source code request, in the waterfall

<img width="1206" alt="image" src="https://user-images.githubusercontent.com/13508141/204273174-f6172cf0-302d-4bab-92eb-849d4f05260e.png">

This is a nit, not a serious bug!

Currently, opening a given program's playground permalink loads the page layout HTML, then the JS, then the actual main content which is the program source code. We may want to honor the doc of the load event: "is fired when the whole page has loaded, including all dependent resources".
Repository: opencv
Issue: RFC: Redesign comparison functions in universal intrinsic by using mask type.
Labels: optimization,feature,category: core

### Descripe the feature and motivation

We are trying to use mask type as the return type for comparison functions, and then some related functions like `v_select`, `v_signmask`, `v_check_all/any` can also be updated. As @alalek suggested in #22520

> BTW, comparison functions and v_select() should work through dedicated masks type (vbool32_t in case of RVV) instead of the same data type.
> This is old legacy design bug - comparison returns the same type as inputs type.
> I believe it should be redesigned during adding of new "scalable" API.

For now, I start with RVV scalable backend, and here is a [demo commit](https://github.com/hanliutong/opencv/commit/2dbc5219df70029f68b27eded87a88d675902a7b)
Basically, I did the following in this patch:
1. Introduce a set of type about mask(boolean) type in RVV backend.
```cpp
using v_float32_b = vbool32_t;
// v_float32_bis the new type in universal intrinsic
// vbool32_t is a built-in type in rvv.
```
2.  Introduce the new type set for others backend, just an alias for the existing type for now.
```cpp
#if !CV_SIMD_SCALABLE
    // Compatibility layer
typedef v_float32 v_float32_b;;
...
```
3. Rewrite the comparison functions and v_select functions (as the example)
```cpp
// origin API
inline  v_float32 v_eq(const v_float32 & a, const v_float32 & b);
inline v_float32 v_select(const v_float32 & mask, const v_float32 & a, const v_float32 & b);
// new API
inline v_float32_b v_eq(const v_float32 & a, const v_float32 & b);
inline v_float32 v_select(const v_float32_b & mask, const v_float32 & a, const v_float32 & b);
```
4. Rewrite the usage in color_hsv.

This is just a demo commit to illustrating the necessary changes to use the mask type in RVV, and how it is compatible with other backends. I believe that this patch can be compiled for both RVV and other backends (AVX is tested).

After that, we may also need to modify the test cases and introduce specific mask types in other backends if they contain mask types and can benefit from them.

This proposal is still at a very early stage, any things including the implementation method, the naming of the type/functions, and even whether this redesign is needed are open for discussion, thanks in advance for any comments and suggestions!

### Additional context

_No response_
Repository: flutter
Issue: [tool] `fopen failed for data file: errno = 2 (No such file or directory)` when running on physical iOS device for the first time
Labels: platform-ios,tool,a: quality,has reproducible steps,P2,found in release: 3.3,found in release: 3.6,team-ios,triaged-ios

## Steps to Reproduce
 
When Launching the app(even with the default flutter app) for the first time on an actual IOS device then this error occurred 

```
fopen failed for data file: errno = 2 (No such file or directory)
Errors found! Invalidating cache...
```

**Expected results:** 
The app launches without any errors.

**Actual results:** 
The app is launched but with an error.

<details>
<summary> flutter doctor -v</summary>

```
[✓] Flutter (Channel stable, 3.3.9, on macOS 13.0.1 22A400 darwin-arm, locale
    en-LB)
    • Flutter version 3.3.9 on channel stable at
      /Users/hassanyassin/Desktop/Flutter/Development/Tools/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b8f7f1f986 (6 days ago), 2022-11-23 06:43:51 +0900
    • Engine revision 8f2221fbef
    • Dart version 2.18.5
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/hassanyassin/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14B47b
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.3)
    • 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
      11.0.13+0-b1751.21-8125866)

[✓] Connected device (3 available)
    • iPhone (19) (mobile) • 08f6d5d4e6ac65273a8757fc2424f2f593e6ca56 • ios
      • iOS 16.1.1 20B101
    • macOS (desktop)      • macos                                    •
      darwin-arm64   • macOS 13.0.1 22A400 darwin-arm
    • Chrome (web)         • chrome                                   •
      web-javascript • Google Chrome 106.0.5249.103

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!
```
</details>
Repository: vscode
Issue: Alt+Space behavior disruptive and inconsistent
Labels: bug,windows,titlebar

<!-- ⚠️⚠️ 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. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 1.74.0-insider
- OS Version: Windows_NT x64 10.0.19044

I need Alt+Space to *only* show the system menu. I use it, e.g., to minimize a window with Alt+Space, followed by N (for my German locale). Currently, its behavior depends on the mouse position and you don't seem to be able to change it. This is disruptive when I want to minimize via keyboard, because I often stow away the cursor on the title bar or something, which leads to another menu than the system menu being shown on Alt+Space. So, there would need to be a setting to turn off mouse-position-dependent behavior and just show the system menu as in every other software.

But the behavior is also inconsistent, as the following video shows. There's a horizontal and a vertical invisible line, whose placements seem arbitrary and who are the border between showing the system menu and a custom menu. (The system buttons minimize, restore/maximize and close also cover the custom menu.) In the video, I constantly press Alt+Space.

https://user-images.githubusercontent.com/13482553/204290313-7ade567e-9baa-4234-a572-ecfff74b64e2.mp4
Repository: stable-diffusion-webui
Issue: [Bug]: Outpainting adds random noise at final sample step
Labels: bug-report

### Is there an existing issue for this?

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

### What happened?

After running outpainting extension, the last sample step switches to random colored noise. Intermediate sampling steps appear correct

### Steps to reproduce the problem

1. Turn on outpainting script
2. set to left, 144 extension
3. generate


### What should have happened?

No noise in final generation

### Commit where the problem happens

Not sure

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

Windows

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

Brave

### Command Line Arguments

_No response_

### Additional information, context and logs

Sounds similar to #4133.
![image](https://user-images.githubusercontent.com/1585669/204307645-0fdfb94c-fe84-4d8b-8967-ea1a21d77695.png)
Repository: TypeScript
Issue: Error 2339 with nullish coalescing to empty object
Labels: Bug,Help Wanted

# Bug Report

<!--
  Please fill in each section completely. Thank you!
-->

### 🔎 Search Terms

<!--
  What search terms did you use when trying to find an existing bug report?
  List them here so people in the future can find this one more easily.
-->
2339 Property does not exist on type empty object

### 🕗 Version & Regression Information

<!-- When did you start seeing this bug occur?

"Bugs" that have existed in TS for a long time are very likely to be FAQs; refer to
  https://github.com/Microsoft/TypeScript/wiki/FAQ#common-bugs-that-arent-bugs

If possible, please try testing the nightly version of TS to see if it's already been fixed.
For npm: `typescript@next`
This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly

Note: The TypeScript Playground can be used to try older versions of TypeScript.

Please keep and fill in the line that best applies:
-->
Tested on 4.2.3 (version we use on our project) and 4.8.4 (latest available in playground)

### ⏯ Playground Link

<!--
  A link to a TypeScript Playground "Share" link which shows this behavior

  The TypeScript Workbench can be used for more complex setups, try
  https://www.typescriptlang.org/dev/bug-workbench/

  As a last resort, you can link to a repo, but these will be slower for us to investigate.
-->
[Playground link with relevant code](https://www.typescriptlang.org/play?ts=4.8.4&ssl=10&ssc=21&pln=10&pc=52#code/MYewdgzgLgBCDWMC8MAUBKAXDMBXANvjAD4wDeMA2gA4CGATrQLbbT0CWYA5gLqtQduMAL7IAfDACytKAAsAdIzAATEEwwwJ8gKwwA-DgJFsZYQG4AUKEix4IZGiyHCJcjFwd+grmZh05Xpw+VHSMLDBsQXwRAkEi4lIyCkqq6uiaMDr6zsZuHuzYAOSFADR+SUWFIpYWZBYwDTAA9E049gCm9PQg9BD1jdbQbiDsymXUo-EoCBp6BqaWwha1-Q0tMJ3d9DAATADMewCcMAC0MAAK3dSdUACeMKrtEG2w7QAe7EPgMHfXMIUUGgMZiBbjRSLcXz5UHBfyyGG+USkUyFVYwQawCgjMZ+SaiFB2WbzcwWJZAA)

### 💻 Code

<!-- Please post the relevant code sample here as well-->
```ts
const ok = (): null | { [param: string]: string } => Math.random() > .5 ? null : {};
const ko = (): null | { uri: string; path: string; [param: string]: string } => Math.random() > .5 ? null : { uri: '', path: '' };

{
    // no errors
    const { oid, pid } = ok() ?? {};
}

{
    // error 2339 - Property does not exist on type '{ [param: string]: string; uri: string; path: string; } | {}'
    const { oid, pid } = ko() ?? {};
}
```
This is a simplified test case. I did encounter error while using [@reach/router useMatch hook API](https://reach.tech/router/api/useMatch)

### 🙁 Actual behavior

<!-- What happened, and why it was wrong -->
Error `Property does not exist on type '{ [param: string]: string; uri: string; path: string; } | {}' (2339)`

### 🙂 Expected behavior

<!-- What you expected to happen instead, and why -->
No error expected
Repository: vscode
Issue: Git - pull rebase is stuck after merge conflict using submodules
Labels: bug,git

path.join(this.repository.root, '.git', ...) path is wrong if repository is a submodule. It happens if repos are cloned recursively `git clone --recursive ...`). 
In my case I have a submodule with .git file. Content is:
`gitdir: ../../.git/modules/MYDIR`

More about .git file: https://git-scm.com/docs/gitrepository-layout
`Note: Also you can have a plain text file .git at the root of your working tree, containing gitdir: <path> to point at the real directory that has the repository. This mechanism is often used for a working tree of a submodule checkout, to allow you in the containing superproject to git checkout a branch that does not have the submodule. `  


https://github.com/microsoft/vscode/blob/d4a299631a77d3748ed9dae95686a43feecfb264/extensions/git/src/repository.ts#L2320-L2323

My quick solution is below, where we first check if ".git" is a file and if yes we parse submodule directory path:
```
private async getRebaseCommit(): Promise<Commit | undefined> { 
    let git_dir = o.join(this.repository.root, ".git");
    if (fs.lstatSync(git_dir).isFile()) {
        const lines = fs.readFileSync(git_dir).toString().replace(/\r\n/g,'\n').split('\n');
        for(const i in lines) {
            var re = /gitdir:(.*)/;
            var match;
            if ((match = re.exec(lines[i])) !== null) {
                git_dir = path.join(git_dir, "/../"+match[1].trim());
                break;
            }
        }
    }
    const rebaseHeadPath = path.join(git_dir, 'REBASE_HEAD'); 
    const rebaseApplyPath = path.join(git_dir, 'rebase-apply'); 
    const rebaseMergePath = path.join(git_dir, 'rebase-merge'); 
```
Repository: pytorch
Issue: third-order gradient of torch.pow with tensor args and certain input returns NaN
Labels: module: autograd,triaged,module: NaNs and Infs

Hi, `torch.pow` with two tensor arguments results in wrong higher order derivatives.

```python

# functorch.__version__
# '1.13.0+cu117'

import torch
import functorch

jacobian = functorch.jacrev

x = torch.tensor([0.0, 0.0], dtype=torch.float64)
y = torch.tensor([0.0, 0.0], dtype=torch.float64)

def foo(x, y):
    x1, x2 = x
    y1, y2 = y
    return torch.stack([x1*x2*y1*y2])

def bar1(x, y):
    power = torch.tensor([1, 1, 1, 1], dtype=torch.int64)
    state = torch.cat([x, y])
    state = torch.pow(state, power)
    return torch.stack([state.prod(-1)])

def bar2(x, y):
    power = [1, 1, 1, 1]
    # power = torch.tensor([1, 1, 1, 1], dtype=torch.int64) # -- will also break
    state = torch.cat([x, y])
    state = torch.stack([s**p for s, p in zip(state, power)])
    return torch.stack([state.prod(-1)])

print(foo(x, y).numpy())
print(bar1(x, y).numpy())
print(bar2(x, y).numpy())

# d^2(d^2(f)/d(y^2))/d(x^2)

print(jacobian(jacobian(lambda x: jacobian(jacobian(lambda y: foo(x, y)))(y)))(x).flatten().numpy())
print(jacobian(jacobian(lambda x: jacobian(jacobian(lambda y: bar1(x, y)))(y)))(x).flatten().numpy())
print(jacobian(jacobian(lambda x: jacobian(jacobian(lambda y: bar2(x, y)))(y)))(x).flatten().numpy())

# jacobian = functorch.jacrev
# [0.]
# [0.]
# [0.]
# [0. 0. 0. 0. 0. 1. 1. 0. 0. 1. 1. 0. 0. 0. 0. 0.]
# [nan nan nan nan nan nan nan nan nan nan nan nan nan nan nan nan]
# [0. 0. 0. 0. 0. 1. 1. 0. 0. 1. 1. 0. 0. 0. 0. 0.]

# jacobian = functorch.jacfwd
# [0.]
# [0.]
# [0.]
# [0. 0. 0. 0. 0. 1. 1. 0. 0. 1. 1. 0. 0. 0. 0. 0.]
# [0. 0. 0. 0. 0. 1. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]
# [0. 0. 0. 0. 0. 1. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]

```

cc @ezyang @gchanan @zou3519 @albanD @gqchen @pearu @nikitaved @soulitzer @Lezcano @Varal7 @Chillee @samdow @soumith
Repository: flutter
Issue: [pigeon] Nested list types aren't preserved
Labels: package,team-ecosystem,p: pigeon,P2,triaged-ecosystem

The `Everything` type in `pigeons/all_datatypes.dart` has a field `List<List<bool?>?>? nestedList`. In an integration test of the `echo` API I tried to do a `listEquals` on the sent and received objects' `nestedList` items and got:

```
type 'List<Object?>' is not a subtype of type 'List<bool?>?' in type cast
```

It looks like we're not correctly reconstructing the nested types in the host->Dart direction. Even just trying to print the object is throwing a cast error.
Repository: pytorch
Issue: addcmul on CUDA does not have the correct FMA behavior
Labels: module: numerical-stability,module: cuda,triaged

### 🐛 Describe the bug

To reproduce the result:

``` python
import torch

x = torch.randn(1000)
y = torch.randn(1000)

result = x*y
diff = torch.addcmul(-result, x, y)
print("diff_cpu:", diff.abs().max().item())

x = x.cuda()
y = y.cuda()

result = x*y
diff = torch.addcmul(-result, x, y)
print("diff_cuda:", diff.abs().max().item())

# obtaining reference using double precision
xDouble = x.double()
yDouble = y.double()
diffDouble = xDouble*yDouble - result
print("diff_double:", diffDouble.abs().max().item())

```

Outputs:
``` 
diff_cpu: 2.250976649520453e-07
diff_cuda: 0.0
diff_double: 2.250976649520453e-07
```

### Versions

Pytorch installed via PIP

Outputs from collect_env.py:

Collecting environment information...
PyTorch version: 1.13.0+cu117
Is debug build: False
CUDA used to build PyTorch: 11.7
ROCM used to build PyTorch: N/A

OS: Ubuntu 22.04.1 LTS (x86_64)
GCC version: (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
Clang version: Could not collect
CMake version: version 3.22.1
Libc version: glibc-2.35

Python version: 3.10.6 (main, Nov  2 2022, 18:53:38) [GCC 11.3.0] (64-bit runtime)
Python platform: Linux-5.15.0-53-generic-x86_64-with-glibc2.35
Is CUDA available: True
CUDA runtime version: 11.8.89
CUDA_MODULE_LOADING set to: LAZY
GPU models and configuration: 
GPU 0: NVIDIA GeForce RTX 3090
GPU 1: NVIDIA GeForce RTX 3090

Nvidia driver version: 520.61.05
cuDNN version: Probably one of the following:
/usr/local/cuda-9.1/targets/x86_64-linux/lib/libcudnn.so.6
/usr/local/cuda-9.1/targets/x86_64-linux/lib/libcudnn.so.7
/usr/local/lib/libcudnn.so.6
/usr/local/lib/libcudnn.so.7
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

Versions of relevant libraries:
[pip3] memory-efficient-attention-pytorch==0.0.27
[pip3] numpy==1.23.4
[pip3] torch==1.13.0
[pip3] torch-tb-profiler==0.4.0
[pip3] torchaudio==0.13.0
[pip3] torchvision==0.14.0
[conda] Could not collect


cc @ngimel
Repository: opencv
Issue: Add percentile option to `medianBlur`
Labels: feature,category: imgproc,priority: low

### Descripe the feature and motivation

For some image processing tasks, it's necessary to specify the percentile of median blur. 

Conceptually, the percentile specifies which value from the neighborhood is picked. By default, median blur works by sorting all values in a certain neighborhood and then picks the median (middle). The percentile allows users to specify which value from the sorted values should be picked. 0 means the smallest value, 50 means the middle value (current implementation), and 100 means the largest value will be picked.

### Additional context

[Gimp's median blur](https://docs.gimp.org/2.10/en/gimp-filter-median-blur.html) also supports this feature. To quote Gimp's documentation:

> By default, the Median Blur filter finds the median value at the neighborhood of each pixel. In spite of its name, the filter can actually find \*any\* arbitrary percentile, not just the median (i.e., the 50th percentile). The "Percentile" parameter controls the percentile used for the color components. Lower values shift the image toward darker tones and higher values toward brighter ones.