sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: go
Issue: cmd/compile: type safety failure in generic ssa due to representing integer signedness conversions by OpCopy
Labels: NeedsDecision

<!--
Please answer these questions before submitting your issue. Thanks!
For questions please use one of our forums: https://github.com/golang/go/wiki/Questions
-->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version devel +ea3bfba87c Thu Feb 27 16:38:23 2020 +0000 linux/amd64
</pre>

### Does this issue reproduce with the latest release?
No


### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
GO111MODULE="on"
GOARCH="amd64"
GOBIN="/home/user/bin"
GOCACHE="/home/user/.cache/go-build"
GOENV="/home/user/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/user"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/home/user/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/user/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build838367334=/tmp/go-build -gno-record-gcc-switches"
</pre></details>

### What did you do?

<!--
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
-->
Using the Go built at or after ea3bfba87cfd7141870f975102029e2e341b4af3 run the code at https://play.golang.org/p/ah0Rl1b03Li


### What did you expect to see?
```
4 4
-4 -4
```

### What did you see instead?
```
4 4
2305843009213693948 -4
```

### Additional information
This code is used in the Gonum matrix package to detect parameter shadowing, for example [here](https://github.com/gonum/gonum/blob/5f268d93942fb58c375b7181f5126d0ca7d8dfeb/mat/shadow.go#L19), and is the subject of the (now quite old) #12445. It would be wonderful to have some certainty on this.

/cc @josharian
Repository: flutter
Issue: flutter build framework for static library
Labels: platform-ios,tool,a: existing-apps,t: xcode,P3,team-ios,triaged-ios

I use  'flutter build ios-framework'  to produces a framework ，but they are dynamic framewrok ,how can I produces a static framework?
Repository: terminal
Issue: Add Protocol (URI) Activation
Labels: Issue-Feature,Area-UserInterface,Product-Terminal,Priority-3

<!-- 
🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨

I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING:
1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement.
2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement.
3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number).
4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement.
5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement.

All good? Then proceed!
-->

# Description of the new feature/enhancement
In addition to the available App Execution Alias of the app, it would be nice to also add protocol activation (URI activation). Adding this would make it easier for other apps to integrate their workflow with Windows Terminal.
<!-- 
A clear and concise description of what the problem is that the new feature would solve.
Describe why and how a user would use this new functionality (if applicable).
-->

# Proposed technical implementation details (optional)
We could already use the app execution alias as the protocol scheme and the exisiting command line arguments as the protocol parameters. It could be as simple as adding the following lines to the App Manifest and reusing the parameter parsers for the arguments.
`<uap:Extension Category="windows.protocol">
          <uap:Protocol Name="wt" />
        </uap:Extension>`
<!-- 
A clear and concise description of what you want to happen.
-->
Repository: opencv
Issue: an ERROR in document of 
Labels: category: imgproc,category: documentation,incomplete

##### System information (version)
OpenCV = 4.2.0
Windows 10
python3.7.6

##### Detailed description

The document has an error in OpenCV-Python Tutorials-->Image Processing in OpenCV -->Changing Colorspaces.
The current code: 
`    lower_blue = np.array([110,50,50])
    upper_blue = np.array([130,255,255])`
is wrong.
The minHSV of blue is [100, 43, 46] and the maxHSV of blue is [124, 255, 255]. 

##### Steps to reproduce

<!-- to add code example fence it with triple backticks and optional file extension
    ```.cpp
    // C++ code example
    ```
 or attach as .txt or .zip file
-->

##### 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.
   -->
 - [x] 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 archite 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: electron
Issue: dialog.showMessageBoxSync defaultId not work under windows OS. 
Labels: platform/windows,bug :beetle:,component/dialog,8-x-y,12-x-y

<!--  As an open source project with a dedicated but small maintainer team, it can sometimes take a long time for issues to be addressed so please be patient and we will get back to you as soon as we can.
-->

### Preflight Checklist
<!-- Please ensure you've completed the following steps by replacing [ ] with [x]-->

* [x] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/master/CONTRIBUTING.md) for this project.
* [x] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md) that this project adheres to.
* [x] I have searched the issue tracker for an issue that matches the one I want to file, without success.

### Issue Details

* **Electron Version:**
  * 8.0.0
<!-- (output of `node_modules/.bin/electron --version`) e.g. 4.0.3 -->

* **Operating System:**
  * Windows 10 (18362)
  * Ubuntu 14.04 x64
<!-- (Platform and Version) e.g. macOS 10.13.6 / Windows 10 (1803) / Ubuntu 18.04 x64 -->
* **Last Known Working Electron version:**
  * <!-- (if applicable) e.g. 3.1.0 -->

### Expected Behavior
<!-- A clear and concise description of what you expected to happen. -->
`dialog.showMessageBoxSync(null, { type:'warning', buttons: ['Yes', 'No'], defaultId: 1, cancelId: 1, title: 'Power Control', message: "Warning!", });`
I set "defaultId:1", after executing the function,it should focus on the "No" button.

### Actual Behavior
<!-- A clear and concise description of what actually happened. -->
Execute the function, in windows 10, it focuses on the "Yes" button. And it focuses on the "No" button in Ubuntu 14.04.
### To Reproduce
 ```shell
$ git clone git@github.com:ForJason/electron-smt.git
$ cd electron-smt
$ npm start
```
<!--
Your best chance of getting this bug looked at quickly is to provide an example.
-->

<!--
For bugs that can be encapsulated in a small experiment, you can use Electron Fiddle (https://github.com/electron/fiddle) to publish your example to a GitHub Gist and link it your bug report.
-->

<!--
If Fiddle is insufficient to produce an example, please provide an example REPOSITORY that can be cloned and run. You can fork electron-quick-start (https://github.com/electron/electron-quick-start) and include a link to the branch with your changes.
-->

<!--
If you provide a URL, please list the commands required to clone/setup/run your repo e.g.
```sh
$ git clone $YOUR_URL -b $BRANCH
$ npm install
$ npm start || electron .
```
-->

### Screenshots
<!-- If applicable, add screenshots to help explain your problem. -->
![win10](https://user-images.githubusercontent.com/25317078/76181106-fd714a80-61fa-11ea-89fb-511014ce84ab.png)
![ubuntu](https://user-images.githubusercontent.com/25317078/76181111-05c98580-61fb-11ea-9440-475401e0e97d.png)

### Additional Information
<!-- Add any other context about the problem here. -->
Repository: ant-design
Issue: draggable tree does not collapse properly when dragging
Labels: 🐛 Bug,Inactive,4.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
[https://stackblitz.com/edit/react-zpuayq?file=index.js](https://stackblitz.com/edit/react-zpuayq?file=index.js)

### Steps to reproduce
任意选择一个带有子节点的节点拖拽它(例如叫 nodeA)


### What is expected?
nodeA 切换图标变为收起，子节点隐藏

### What is actually happening?
nodeA 图标收起，但是子节点未隐藏，同时drop后目标节点底部的样式有时候不消失

| Environment | Info |
|---|---|
| antd | 4.0.1 |
| React | ant-design's version |
| System | Chrome |
| Browser | 80 |

---
应该在dragStart和dragOver时检查节点或经过的节点是否需要收起
官方文档也可以直接复现：https://ant.design/components/tree/#components-tree-demo-draggable
![image](https://user-images.githubusercontent.com/11643113/76192301-70d78400-621c-11ea-92f8-4f22627a7c44.png)


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: TypeScript
Issue: Incorrect type inference for Record with symbol key
Labels: Suggestion,In Discussion

<!--
Please try to reproduce the issue with the latest published version. It may have already been fixed.
For npm: `typescript@next`
This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly
-->
**TypeScript Version:**  Nightly

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:** Record, Symbol, symbol as index

**Code**

```ts
export type SN = Record<symbol, number>

const s = Symbol()
const sn: SN = {}

const n = sn[s] // n is of type any instead of number
```

**Expected behavior:**

A Record with symbols as key should allow to access properties by symbol with correct type

**Actual behavior:**

All keys are any type.

**Playground Link:** http://www.typescriptlang.org/play/?noImplicitAny=false&strictNullChecks=false&strictFunctionTypes=false&strictPropertyInitialization=false&strictBindCallApply=false&noImplicitThis=false&noImplicitReturns=false&alwaysStrict=false&ts=3.9.0-dev.20200308#code/KYDwDg9gTgLgBDAnmYcDKA5OBeOAlYAY2gBMAeAZ0QFsAjCAGwBo4A7AVzuCgD4AoPsVYV4FHOhr0GACgCUgiMNGsAXOiy4A3gF8BQkW3EVWAbQoBdIA

**Related Issues:** #1863
Repository: rust
Issue: Use #[rustc_layout] instead of print-type-sizes
Labels: C-cleanup,A-testsuite,C-enhancement,T-compiler

@eddyb suggested that the `#[rustc_layout]` attribute ([usage example](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=a8b2eb254018cfdb7f2206946fdca82f)) should be improved to replace `-Z print-type-sizes` and then be used for [these tests](https://github.com/rust-lang/rust/tree/master/src/test/ui/print_type_sizes). Then the tests also would not have to be `ignore-pass` any more.

That attribute also seems very useful when working with `LayoutDetails` in general in Rust, I would have loved to know about its existence. I wonder what would be a good place to document it?

Also see [this blog post on `rustc_layout`](https://www.ralfj.de/blog/2020/04/04/layout-debugging.html).
Repository: flutter
Issue: [animations] FAB doesn't have a ripple effect in container_transition example
Labels: package,p: animations,team-ecosystem,P2,triaged-ecosystem

Hello, Flutter team.
Thank you for your kind support as always.

I found FAB doesn't have a ripple effect in the below file, because it isn't wrapped by `_InkWellOverlay` or just an InkWell Widget.

[source](https://github.com/flutter/packages/blob/master/packages/animations/example/lib/container_transition.dart)

```      floatingActionButton: OpenContainer(
        transitionType: _transitionType,
        openBuilder: (BuildContext context, VoidCallback _) {
          return _DetailsPage();
        },
        closedElevation: 6.0,
        closedShape: const RoundedRectangleBorder(
          borderRadius: BorderRadius.all(
            Radius.circular(_fabDimension / 2),
          ),
        ),
        closedColor: Theme.of(context).colorScheme.secondary,
        closedBuilder: (BuildContext context, VoidCallback openContainer) {
          return SizedBox(
            height: _fabDimension,
            width: _fabDimension,
            child: Center(
              child: Icon(
                Icons.add,
                color: Theme.of(context).colorScheme.onSecondary,
              ),
            ),
          );
        },
      ),
```

As far as I can see this gif, I think FAB should have a ripple effect.

![container_transform_lineup](https://user-images.githubusercontent.com/39510275/76214712-a6966000-6250-11ea-8a90-b4497cc53c8d.gif)
[link](https://github.com/flutter/packages/blob/master/packages/animations/example/demo_gifs/container_transform_lineup.gif)

Is this the intended implementation ?

Thank you,
Repository: rust
Issue: libunwind contained in rust-src won't build for some targets
Labels: A-linkage,O-musl,C-bug

<!-- Thanks for filing an 🙋 enhancement request 😄! -->

**Describe the problem you are trying to solve**
<!-- A clear and concise description of the problem this enhancement request is trying to solve. -->
When trying to build Rust `std`, I came across [this problem](https://github.com/japaric/xargo/issues/281#issuecomment-596443297) for target `aarch64-unknown-linux-musl`. The `llvm-project` directory does not exist in the `rust/src` directory and `libunwind` won't build due to that. @RalfJung might have pinned the problem down to [a PR](https://github.com/japaric/xargo/issues/281#issuecomment-596451233). The `llvm-project` directory is required to build `libunwind` and for the Rust project is provided as a submodule.

**Describe the solution you'd like**
<!-- A clear and concise description of what you want to happen. -->

@RalfJung [thinks](https://github.com/japaric/xargo/issues/281#issuecomment-596583780) a solution might be adding the `llvm-project` directory to the list of src paths that will make into the `rust-src` component, but it is not clear if that's the right solution. I am also not sure that's the right way as the directory is quite large.

**Notes**
<!-- Any additional context or information you feel may be relevant to the issue. -->
Sorry if I might have misinterpreted your words, @RalfJung, I did not intend to. Thanks!
Repository: next.js
Issue: getInitialProps is not running when Router.replace's "href" and "as" contains hash and query params inside "href" change.
Labels: good first issue,Navigation

# Bug report

**getInitialProps** is not running when "href" and "as" contains hash and query params inside "href" change when calling Router.replace or Router.push

## Bug description.

When pushing or replacing url and query params inside "href" (**but not in "as"**) change, **getInitialProps** method is re-called. However, if both "href" and "as" include hash, the **getInitialProps** method is not re-called.

## To Reproduce

Here is the minimum amount of code to reproduce:

```
import { useEffect } from 'react';
import Router from 'next/router';

const MyComponent = ({ query }) => {
  // Test1 - this works as expected
  /*
  useEffect(() => {
    let testCount = 0;

    setInterval(() => {
      const { route, asPath } = Router;
      testCount += 1;
      Router.replace(route + `?test=${testCount}`, asPath);
    }, 1000);
  }, []);
  */

  // Test2 - getInitialProps is not re-called here
  useEffect(() => {
    let testCount = 0;

    setInterval(() => {
      const { route } = Router;
      const asPath = window.location.pathname; // using window.location.pathname, becasuse Router.asPath includes the hash
      testCount += 1;
      Router.replace(route + `?test=${testCount}#hash`, asPath + '#hash');
    }, 1000);
  }, []);

  return (
    <>
      <div>
        {/* This should increment by 1 in every second */}
        test: { query.test }
      </div>
    </>
  );
};

MyComponent.getInitialProps = async ({ query }) => {
  // This should run in every second
  console.log('test', query.test);
  return {
    query
  };
};

export default MyComponent;
```

1. Add this code to any pages route and open it in browser
2. If you enable **Test1** inside MyComponent, you will see a number incrementing every second on the screen - that's because **getInitialProps** method is recalled due to the changes in query params inside "href" when calling Router.replace method.
3. If you enable **Test2** inside MyComponent (and disable Test1), you will NOT see a number incrementing every second on the screen - that's because **getInitialProps** method is NOT recalled inside "href" when calling Router.replace method.

## Expected behavior

I am expecting **getInitialProps** to be re-called when query params change in "href" when calling Router.replace or Router.push and hash also exists in the url - that is because I do not want to show certain query params to the user in browser url, but I definitely want to keep the hash visible.

## System information

- OS: macOS Catalina Version 10.15.3
- Browser: all
- Version of Next.js: [e.g. 6.0.2]

## Additional context

I am trying to hide some query params in browser url and not show to the user + I want the hash to be visible in browser url.
Repository: go
Issue: cmd/go: 'go mod why' should return module results even without '-m'
Labels: NeedsFix,modules

<!--
Please answer these questions before submitting your issue. Thanks!
For questions please use one of our forums: https://github.com/golang/go/wiki/Questions
-->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.14 darwin/amd64
</pre>

### Does this issue reproduce with the latest release?

Yes.

### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/meling/Library/Caches/go-build"
GOENV="/Users/meling/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/meling/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/Cellar/go/1.14/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.14/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/meling/work/gorums/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/xd/1g4dygzx1_g3thyggq8qllh40000gn/T/go-build624263632=/tmp/go-build -gno-record-gcc-switches -fno-common"
</pre></details>

### What did you do?

<!--
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
-->

Ran `go mod why` without -m flag when the argument was a module instead of a package, leading to the message:
```
% go mod why github.com/labstack/echo-contrib
# github.com/labstack/echo-contrib
(main module does not need package github.com/labstack/echo-contrib)
```
This is unhelpful and has bitten me many times now. How do I know whether or not something in my go.mod file is a package or module? This is confusing to me and probably others.

### What did you expect to see?

I expected to see which package or module was using the relevant module (or package):
```
% go mod why -m github.com/labstack/echo-contrib
# github.com/labstack/echo-contrib
github.com/autograde/aguis/web
github.com/labstack/echo-contrib/session
```

### Proposal

I propose that the `go mod why` command should return a result either way. If the tool finds that the main module does not depend on the supplied package it should check if it depends on a corresponding module instead, obviating the need for the -m flag.