sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: opencv
Issue: JPEG2000 encoder based on OpenJPEG produces wrong results
Labels: bug,category: documentation,category: imgcodecs

##### System information (version)
- OpenCV => 4.5.1
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2019

##### Detailed description

I noticed that the JPEG2000 encoder (currently using OpenJPEG 2.3.1) produces wrong results for some images.
Thus, it cannot be used for lossless image compression with OpenCV (see reproduce section for further information).

##### Steps to reproduce

An example image can be downloaded here: [Image](https://www.fnordware.com/j2k/relax-orig.png)
Thereafter, the following Python code shows the error:

```
import cv2

# read image
org = cv2.imread('relax-orig.png')

# export / convert to png and jp2 using OpenCV
cv2.imwrite('relax.png', org)
cv2.imwrite('relax.jp2', org)

# read the exported images and compare
png = cv2.imread('relax.png')
jp2 = cv2.imread('relax.jp2')
cv2.absdiff(org, png).max() # == 0 as expected
cv2.absdiff(org, jp2).max() # == 17 but should be 0
```

##### Issue submission checklist

 - [X] I report the issue, it's not a question
   <!--
   OpenCV team works with forum.opencv.org, Stack Overflow and other communities
   to discuss problems. Tickets with question without real issue statement will be
   closed.
   -->
 - [X] I checked the problem with documentation, FAQ, open issues,
       forum.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://forum.opencv.org
   * OpenCV issue tracker: https://github.com/opencv/opencv/issues?q=is%3Aissue
   * Stack Overflow branch: https://stackoverflow.com/questions/tagged/opencv
   -->
 - [x] 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.
   -->
 - [X] 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/
   -->
edit: reproduced with OpenCV 4.5.3
Repository: youtube-dl
Issue: nbcnews.com
Labels: site-support-request

<!--

######################################################################
  WARNING!
  IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################

-->


## Checklist

<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl:
- First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2021.06.06. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Make sure that all provided video/audio/playlist URLs (if any) are alive and playable in a browser.
- Make sure that site you are requesting is not dedicated to copyright infringement, see https://yt-dl.org/copyright-infringement. youtube-dl does not support such sites. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
- Search the bugtracker for similar site support requests: http://yt-dl.org/search-issues. DO NOT post duplicates.
- Finally, put x into all relevant boxes (like this [x])
-->

- [x] I'm reporting a new site support request
- [x I've verified that I'm running youtube-dl version **2021.06.06**
- [x] I've checked that all provided URLs are alive and playable in a browser
- [x] I've checked that none of provided URLs violate any copyrights
- [x] I've searched the bugtracker for similar site support requests including closed ones


## Example URLs

<!--
Provide all kinds of example URLs support for which should be included. Replace following example URLs by yours.
-->

- Single video: https://www.nbcnews.com/news/amp/ncna1276021


## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

Plays OK in Firefox.  youtube-dl reports "Unable to extract bootstrap json"
Repository: godot
Issue: about the naming of C/C++ macros
Labels: discussion,topic:codestyle

### Godot version

4.0.dev

### System information

OpenBSD-CURRENT

### Issue description

I've hit the following warning

```
core/io/marshalls.cpp:55:9: warning: '_S' macro redefined [-Wmacro-redefined]
#define _S(a) ((int32_t)a)
        ^
/usr/include/ctype.h:48:9: note: previous definition is here
#define _S      0x08
        ^
```

this is because [identifiers that starts with an underscore are reserved](https://en.cppreference.com/w/cpp/language/identifiers), and OpenBSD' `ctype.h` defines some `_[A-Z]` constants.

I was going to submit a pr to rename `_S` in marshalls.cpp, but then I grepped for `#define _[A-Z]` and found that there are a lot of macros named like that across the tree.

(This also affects stuff in thirdparty, like [oidn](https://github.com/OpenImageDenoise/oidn/issues/122))

What's the opinion on this?  Should we rename the macros as needed or try a bulk-rename?

### Steps to reproduce

just try to compile Godot on a system whose headers defines `_[A-Z]` constants.

### Minimal reproduction project

_No response_
Repository: youtube-dl
Issue: xvideos.com pornstar page
Labels: request

Can you setup a feature to allow to scrap all videos on xvideos.com/pornstar-channels/ page (i.e the https://www.xvideos.com/pornstar-channels/sienna-west)

Similar to how you can do it on pornhub.com (i.e https://www.pornhub.com/pornstar/sienna-west)
Repository: pytorch
Issue: Audit use of `C10_UNUSED`
Labels: triaged,better-engineering

Perhaps a functions marked with `C10_UNUSED` could be removed from the codebase, if they are truly unused
Repository: go
Issue: math/big: ModInverse with modulus zero is undefined
Labels: NeedsFix

ModInverse is defined for all values of g, and for positive and negative values n, but not for a zero n.

> ModInverse sets z to the multiplicative inverse of g in the ring ℤ/nℤ
> and returns z. If g and n are not relatively prime, g has no multiplicative
> inverse in the ring ℤ/nℤ.  In this case, z is unchanged and the return value
> is nil.

The ring of numbers modulo zero does not exist, and being coprime with zero is meaningless, so the current docs don't cover it.

Arguably, ModInverse should always panic when the modulo is zero, but currently it returns nil for g > 1, returns 1 for g = 1, returns nil for g = 0, and panics for g < 0. Turning a non-panic into a panic for the sake of consistency is asking for trouble, so we should just make it return nil consistently for n = 0.

This _could_ break programs that try to dereference the return value of ModInverse(1, 0), but that feels like a specific enough condition that programs won't have come to rely on it #famouslastwords.
Repository: vscode
Issue: Git - Git: gpg failed to sign the data 
Labels: bug,git

<!-- ⚠️⚠️ 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/No

<!-- 🪓 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.59.0
- OS Version:

    ```txt
    Version: 1.59.0 (user setup)
    Commit: 379476f0e13988d90fab105c5c19e7abc8b1dea8
    Date: 2021-08-04T23:13:12.822Z
    Electron: 13.1.7
    Chrome: 91.0.4472.124
    Node.js: 14.16.0
    V8: 9.1.269.36-electron.0
    OS: Windows_NT x64 10.0.19043
    ```

Steps to Reproduce:

I'm using **Remote - SSH** from Windows 10 to Ubuntu 20.04 LTS.

1. Add the following code to `~/.profile`

    ```sh
    export GPG_TTY=$(tty)
    ```

2. Configure git

    ```sh
    git config --global commit.gpgsign true
    git config --global --unset gpg.program
    git config --global --add gpg.program /usr/bin/gpg
    ```

3. Enable Commit Signing

    ![image](https://user-images.githubusercontent.com/88981/128741717-bee266a2-1abb-4dff-a966-f26633ad4628.png)

4. Commit 

    ![image](https://user-images.githubusercontent.com/88981/128741618-7945e231-2e6b-408c-b550-8f4e70d3a455.png)

5. Open Git Log

    ```txt
    > git -c user.useConfigOnly=true commit --quiet --allow-empty-message --file - -S
    error: gpg failed to sign the data
    fatal: failed to write commit object
    > git config --get-all user.name
    > git config --get-all user.email
    ```

6. Show Command Output

    ```txt
    > git -c user.useConfigOnly=true commit --quiet --allow-empty-message --file - -S
    error: gpg failed to sign the data
    fatal: failed to write commit object
    ```
Repository: create-react-app
Issue: Add prettier
Labels: issue: proposal

### Is your proposal related to a problem?

<!--
  Provide a clear and concise description of what the problem is.
  For example, "I'm always frustrated when..."
-->

Format documents

### Describe the solution you'd like

<!--
  Provide a clear and concise description of what you want to happen.
-->
I can run `yarn add prettier`, I know this.
Prettier is popular documents formatter and in front-end, There is no rival in this basin. React developers use it extensively. i think prettier should be in package.json.

### Describe alternatives you've considered

<!--
  Let us know about other solutions you've tried or researched.
-->

(Write your answer here.)

### Additional context

<!--
  Is there anything else you can add about the proposal?
  You might want to link to related issues here, if you haven't already.
-->

(Write your answer here.)
Repository: flutter
Issue: Connect device specific touch configuration on iOS
Labels: c: new feature,platform-ios,P2,team-ios,triaged-ios

See: https://github.com/flutter/flutter/issues/87322

iOS also has its own values, defined such as https://developer.apple.com/documentation/uikit/uilongpressgesturerecognizer/1616427-allowablemovement

From what I can tell this is usually about 10 logical pixels on iOS.
Repository: flutter
Issue: Add more touch configuration to view config classes
Labels: c: new feature,platform-android,platform-ios,engine,P3,team-engine,triaged-engine

See: #87322

There are more values listed in https://cs.android.com/android/platform/superproject/+/master:frameworks/base/core/java/android/view/ViewConfiguration.java;l=718 . We should take the ones that look like they are derived from device specific configuration.
Repository: flutter
Issue: [ci.yaml] Validate LUCI config generation in presubmit
Labels: team-infra,P2,triaged-infra

It's possible to land breakages in ci.yaml which break the roll. Such as adding a extra `,` in the json sections breaks decoding, and is very common.

The ci_yaml roller should support pre-submit dry runs which validate the luci config
Repository: pytorch
Issue: Don't use try-catch to handle overload resolution handling in torch.ops
Labels: module: bootcamp,triaged,module: __torch_dispatch__

Currently, the way operators in torch.ops handle overloading is they try each overload one by one until they find one that matches, detecting error cases by catching exception:

```
    for (const auto& op : operations) {
      try {
        stack = createStackForSchema(op->schema(), args, kwargs, c10::nullopt);
        found_op = op;
        break;
      } catch (schema_match_error& error) {
        errors.push_back(std::move(error));
      }
    }

```

C++ exceptions are very expensive but if you call an overloaded op you will repeatedly toggle this codepath. Make it not do this.

cc @Chillee @ezyang @zou3519 @albanD @samdow
Repository: rust
Issue: Associated type constraints and higher ranked trait bounds require impossible type annotations
Labels: T-compiler,C-bug,A-suggestion-diagnostics,A-higher-ranked

<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.
-->

I tried this code ([Playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=8e93f2e93c7a7e440c97139c4a5e4f4b)):

```rust
trait TraitWithLifetime<'a> {
    type Assoc;
}

struct Implementor<T>(T);

impl<'a, T> TraitWithLifetime<'a> for Implementor<T> where
    T: for<'b> TraitWithLifetime<'b> + TraitWithLifetime<'a, Assoc = ()>
{
}
```

I expected to see this happen: The code compiles successfully because there are no additional type annotations are needed.

Instead, an invalid suggestion is produced:
```
error[E0283]: type annotations needed
 --> src\main.rs:8:62
  |
1 | trait TraitWithLifetime<'a> {
  | --------------------------- required by this bound in `TraitWithLifetime`
...
8 |     T: for<'b> TraitWithLifetime<'b> + TraitWithLifetime<'a, Assoc = ()>
  |                                                              ^^^^^^^^^^ cannot infer type for 
type parameter `T`
  |
  = note: cannot satisfy `T: TraitWithLifetime<'a>`
help: consider specifying the type arguments in the function call
  |
8 |     T: for<'b> TraitWithLifetime<'b> + TraitWithLifetime<'a, Assoc = ()::<Self, 'a>>
  |                                                                        ^^^^^^^^^^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0283`.
```

### Meta
<!--
If you're using the stable version of the compiler, you should also check if the
bug also exists in the beta or nightly versions.
-->

`rustc --version --verbose`:
```
rustc 1.54.0 (a178d0322 2021-07-26)
binary: rustc
commit-hash: a178d0322ce20e33eac124758e837cbd80a6f633
commit-date: 2021-07-26
host: x86_64-pc-windows-msvc
release: 1.54.0
LLVM version: 12.0.1
```
Repository: flutter
Issue: [web] Write an integration test for browser history & hot restart
Labels: a: tests,t: hot reload,f: routes,platform-web,P2,team-web,triaged-web

Write an integration test for: https://github.com/flutter/engine/pull/27872
Repository: TypeScript
Issue: Inlay hints should accept a list of files, not individual files
Labels: Revisit,API,Domain: TSServer,Domain: Inlay Hints

Inlay hints can be affected by edits in other files. That means you can end up in situations where 2 files can be edited side-by-side where one ends up with stale inlay hints.

![image](https://user-images.githubusercontent.com/972891/128756601-0396f964-262b-479f-b1c1-585f336f70eb.png)

To spare editors from making multiple requests, we should consider accepting a list of files instead of a single file as an argument.

Tracking on VS Code's side: https://github.com/microsoft/vscode/issues/130430
Repository: pytorch
Issue: Doc page for functions with overload is not properly indented
Labels: module: docs,triaged

The title for each new overload is not flush to the left and so they are very hard to see.
You can check max as an example: https://pytorch.org/docs/1.9.0/generated/torch.max.html?highlight=max#torch.max

cc @brianjo @mruberry
Repository: flutter
Issue: Do not populate the selection overlay when `EditableText` does not have focus
Labels: a: text input,framework,P2,team-framework,triaged-framework

Currently `EditableText._selectionOverlay` is populated in `_handleSelectionChanged`, which can be called during autofill.

Additionally when a long tap gesture first focuses a `TextField` and requests the toolbar to be shown, but since the primary focus does not change immediately we currently show the toolbar regardless of whether the text field has focus (otherwise long-pressing an unfocused text field won't show the toolbar). But if the text field ended up not getting the focus the toolbar will still show.

Maybe `showToolbar` should also set a private flag so when the text field is finally focused it shows the toolbar.

Corresponds to a `TODO` in `editable_text.dart`.
Repository: flutter
Issue: Non-constant IconData message is not what was intended
Labels: tool,a: quality,P3,team-tool,triaged-tool

The code tries to print the following message when there's non-constant IconData during a release build: `Avoid non-constant invocations of IconData or try to build again with --no-tree-shake-icons.`

However, this is what it actually looks like:

```
ianh@burmese:~/dev/rfw$ flutter build appbundle lib/client.dart

💪 Building with sound null safety 💪

Running Gradle task 'bundleRelease'...
This application cannot tree shake icons fonts. It has non-constant instances of IconData at the following locations:
  - file:///home/ianh/dev/rfw/lib/core_widgets.dart:398:10


FAILURE: Build failed with an exception.

* Where:
Script '/home/ianh/dev/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1005

* What went wrong:
Execution failed for task ':app:compileFlutterBuildRelease'.
> Process 'command '/home/ianh/dev/flutter/bin/flutter'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 34s
Running Gradle task 'bundleRelease'...                             34.8s
Gradle task bundleRelease failed with exit code 1
ianh@burmese:~/dev/rfw$
```

cc @dnfield
Repository: TypeScript
Issue: TypeScript server lags behind on latest version
Labels: Needs Investigation,Rescheduled

*TS Template added by @mjbvz*

**TypeScript Version**: 4.4.0-dev.20210802

**Search Terms**
- diagnostics

---


The TS server on Insiders started having trouble Friday, both on my machine and @roblourens'. It analyzes things and has an error before I finish typing, then after I finish typing it doesn't update again. I need to change something and re-save the file to get it to update again. This persisted after a reboot.

![](https://memes.peet.io/img/21-08-14634bcd-27b1-4a6e-bce4-40bf5b79028c.png)

~~Switching back to the repo version of TS (20210802) seems to fix the issue for me.~~ Here's the log where the above error happened:

[tsserver.log](https://github.com/microsoft/vscode/files/6956948/tsserver.log)
Repository: vscode
Issue: Disassembly view: migrate to use WorkbenchList
Labels: debug,under-discussion,debug-disassembly

<!-- ⚠️⚠️ 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. -->
Migrate to use WorkbenchList since WorkbenchTable doesn't support horizontal scrolling.

Probably should target #129762.
Repository: pytorch
Issue: Add nn.Module full pre-backward hooks
Labels: feature,module: nn,triaged

As per title. Such hook would be similar to the pre-forward hooks that exist for the forward pass.
The signature would be `hook(mod, grad_output) -> new_grad_output or None`

We can re-use the existing logic for the current full backward hooks and just register the exit hook for this.

cc @albanD @mruberry @jbschlosser @rohan-varma
Repository: material-ui
Issue: [Autocomplete] change in screen size  doesn't change width of Options container (when it's open)
Labels: bug 🐛,component: autocomplete

<!-- Provide a general summary of the issue in the Title above -->
I am using AutoComplete component on my iPad. When I click on options and rotate the screen (portrait mode to landscape mode on Chrome, Safari & Firefox) the options container width doesn't reset with Textfield width of Autocomplete. 
<img width="1163" alt="Screenshot 2021-08-09 at 4 30 19 PM" src="https://user-images.githubusercontent.com/34228000/128779526-abdbdfc1-95b5-4047-bc68-db8d1b7681c2.png">


<!--
  Thank you very much for contributing to Material-UI by creating an issue! ❤️
  To avoid duplicate issues we ask you to check off the following list.
-->

<!-- Checked checkbox should look like this: [x] -->
- [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 have added screen shot of how it looks when I rotate screen. The AutoComplete code is as below
`<Autocomplete
     label="Select My HomePage"
     id="homePage"
     clearOnBlur
      clearOnEscape
     required
     forcePopupIcon
      freeSolo
      fullWidth
     onChange={onHomePageChange}
      value={selectedHomePage}
      options={[
         { id: 1, name: "Batch Assistant" },
         { id: 2, name: "Load Report" },
         { id: 3, name: "Truck Map" },
                ]}
     />`

<!-- Describe what happens instead of the expected behavior. -->

## Expected Behavior 🤔
It should resize option container width on rotate screen.

<!-- Describe what should happen. -->

## Steps to Reproduce 🕹
1. Open Safari browser in developer mode
2. Render above code using Autocomplete component using MUI.
3. Rotate Screen (change screen size in developer mode)

## Context 🔦

<!--
  What are you trying to accomplish? How has this issue affected you?
  Providing context helps us come up with a solution that is most useful in the real world.
-->

## Your Environment 🌎
Material-UI - 4.11.4
React - 17.0.2
Typescript - 4.2.4