sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: opencv
Issue: Implement calcHist in the G-API
Labels: feature,category: g-api / gapi

##### System information (version)
- OpenCV => 4.4
- Operating System / Platform => macOS 10.15.6
- Compiler => Apple clang 11.0.3

##### Detailed description

This is a feature request to implement `cv::gapi::calcHist`. Whereas `equalizeHist` is implemented, `calcHist` would allow 2D histograms.

##### Steps to reproduce

None—this is a feature request, not a bug.

##### Issue submission checklist

 - [x] I report the issue, it's not a question.
 - [x] I checked the problem with documentation, FAQ, open issues,
       [answers.opencv.org](https://stackoverflow.com/questions/62006715/calculate-histogram-using-opencvs-graph-api-g-api), Stack Overflow, etc and have not found solution
 - [x] I updated to latest OpenCV version and the issue is still there
 - [x] There is reproducer code and related data files: videos, images, onnx, etc
Repository: opencv
Issue: Properties of Mat / Dnn object in js / nodejs
Labels: category: javascript (js)

##### System information (version)

- OpenCV => 4.4.0
- Operating System / Platform => Ubuntu 20.04
- Compiler => emscripten

##### Detailed description

```js
const cv = require('./opencv.js');
const jimp = require('jimp');

...

let srcImage = await jimp.read('icon_64x64.png')
let mat = cv.matFromImageData(srcImage.bitmap);
console.log(mat);
```
result:
```js
Mat {}
```

expected (like in [opencv4nodejs](https://www.npmjs.com/package/opencv4nodejs)):
```js
Mat {
  step: 192,
  elemSize: 3,
  sizes: [ 64, 64 ],
  empty: 0,
  depth: 0,
  dims: 2,
  channels: 3,
  type: 16,
  cols: 64,
  rows: 64
}
```
Now instead of:
```js
console.log(mat);
```
I need to use:
```js
console.log({step: mat.step, elemSize: mat.elemSize(), matSize: mat.matSize, sizes: mat.size(), empty: mat.empty(), depth: mat.depth(), dims: mat.dims, channels: mat.channels(), type: mat.type(), cols: mat.cols, rows: mat.rows});
```
Repository: flutter
Issue: Need hasSize property for TabBarView or dynamic sizing for CustomScrollView
Labels: framework,f: material design,f: scrolling,d: examples,d: stackoverflow,c: proposal,P3,team-design,triaged-design

I have a Layout I want to do with Flutter and I have found a solution that works but gives me an overflow error. It seems to be impossible to solve.

The layout looks like this:
https://i.stack.imgur.com/a7fiU.png

Also a minimal example on dartpad:
https://dartpad.dev/bda4cc5fd2aea292310fe05daa440760

I know that people solve similar problems with NestedScrollView, but from an UX experience I'm more interested on a single unified scroll view with sliver properties (like zooming the top element on overscroll).

Does anybody know of a proper workaround or is there some planned features to make this layout solvable?
Repository: node
Issue: Option to hide "Debugger attached" console log on connected debugger
Labels: inspector

<!--
Thank you for suggesting an idea to make Node.js better.

Please fill in as much of the template below as you're able.
-->

**Is your feature request related to a problem? Please describe.**

Our project [Rome](https://github.com/romefrontend/rome) has a test runner. We spawn `worker_threads` to execute tests. We attach a debugger to each of them so we can collect stacktraces when tests timeout and have a blocked event loop. Right now, Node always outputs a "Debugger attached" message to stderr [`src/inspector_io.cc`](https://github.com/nodejs/node/blob/f1ae7ea343020f608fdc1ca77d9cdfe2c093ac72/src/inspector_io.cc#L346). This leads to console spam whenever a test worker is started. That isn't ideal for an implementation detail and looks like a bug to a user.

**Describe the solution you'd like**

A way to disable the "Debugger attached" message, possibly via an environment variable or CLI flag.

**Describe alternatives you've considered**

Previously we used forked child processes and so had a dedicated `stderr` where we could intercept and hide it. Unfortunately, it seems like there's no way to do that specifically with everything in the same process and that the log never happens in JS.
Repository: rust
Issue: `#![recursion_limit]` behaves strangely
Labels: A-diagnostics,T-compiler,C-bug

I was playing around with `recursion_limit`, and I realized that `recursion_limit` doesn't check for bad values. `#![recursion_limit = "malformed"] fn main() {}`, for example, compiles without error. Moreover, when set to `1`, the Rust compiler raises a weird error:

```
error[E0275]: overflow evaluating the requirement `&Self: std::ops::DispatchFromDyn<&RustaceansAreAwesome>`
  |
  = help: consider adding a `#![recursion_limit="2"]` attribute to your crate

error: aborting due to previous error

For more information about this error, try `rustc --explain E0275`.
```
What is `RustaceansAreAwesome`? This code doesn't make any macro calls, yet somehow exceeds the recursion limit.
### Version
`rustc --version --verbose`:
```
rustc 1.41.0
binary: rustc
commit-hash: unknown
commit-date: unknown
host: x86_64-unknown-linux-gnu
release: 1.41.0
LLVM version: 9.0
```
### Code
```Rust
#![recursion_limit = "1"]
fn main() { }
```
Repository: flutter
Issue: Implement an easy way to render text stroke
Labels: framework,f: material design,a: typography,c: proposal,team-design,triaged-design

## Use case

It's common to use a text stroke. For example to add an opaque black stroke to help text stand out with an image background behind it.

Currently, the only two ways to add stroke are:

- Add 4 shadows with offsets (0, 1) (1, 0) (0, -1) (-1, 0)
- Use `Stack` to stack two `Text` components, one that renders a stroke using `PaintStyle.stroke`, and one renders the text itself, producing the intended text with stroke.

Both of which are a lot of boilerplate. One requires 4 shadows, the other triples the number of widgets required to render text with stroke.

## Proposal

Add some API similar to `Text`'s `style` property to address this issue. Something like:

```dart
Text(
  'nice',
  textStroke: {
    color: Color(0xFF880000),
    width: 1,
  }
)
```
Repository: storybook
Issue: Storysource code has duplicated variable declarations; navigation bug
Labels: bug,addon: storysource,source-loader

**Describe the bug**

In storysource, the `Template` variable is repeated once per story using `Template.bind({})`. Other functionality, such as clicking on the source code to navigate to a story, is broken.

**To Reproduce**

Use the storybook CLI to init a new storybook and set `{ injectStoryParameters: false }`.

**<ins>Deployed demo:</ins>** https://petermikitsh.github.io/sb-source-error/?path=/story/example-button--primary (go to 'Story' tab)
Source code: https://github.com/petermikitsh/sb-source-error

**Expected behavior**

I expected variable template to be defined once, and clicking a story's source code to navigate to the story.

**Screenshots**

<img width="1392" alt="Screen Shot 2020-08-16 at 1 06 12 PM" src="https://user-images.githubusercontent.com/1571918/90343021-ba917b00-dfc1-11ea-8a6a-162e454cbd31.png">


**Code snippets**

Diff between baseline file and what's shown in storysource 'Story' tab:

```diff
import React from "react";
import { Meta } from "@storybook/react/types-6-0";
import { Button } from "./Button";

// remove 'as Meta' for storysource to work
export default {
  title: "Example/Button",
  component: Button,
  argTypes: {
    backgroundColor: { control: "color" },
  },
};

const Template = (args) => <Button {...args} />;
+ const Template = (args) => <Button {...args} />;
+ const Template = (args) => <Button {...args} />;
+ const Template = (args) => <Button {...args} />;

export const Primary = Template.bind({});
Primary.args = {
  primary: true,
  label: "Button",
};

export const Secondary = Template.bind({});
Secondary.args = {
  label: "Button",
};

export const Large = Template.bind({});
Large.args = {
  size: "large",
  label: "Button",
};

export const Small = Template.bind({});
Small.args = {
  size: "small",
  label: "Button",
};
```

**System:**

```
$ npx sb@next info

Environment Info:

  System:
    OS: macOS Mojave 10.14.6
    CPU: (12) x64 Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz
  Binaries:
    Node: 12.18.0 - ~/.nvm/versions/node/v12.18.0/bin/node
    Yarn: 1.22.4 - /usr/local/bin/yarn
    npm: 6.14.4 - ~/.nvm/versions/node/v12.18.0/bin/npm
  Browsers:
    Safari: 12.1.2
  npmPackages:
    @storybook/addon-actions: ^6.0.5 => 6.0.10 
    @storybook/addon-essentials: ^6.0.5 => 6.0.10 
    @storybook/addon-links: ^6.0.5 => 6.0.10 
    @storybook/addon-storysource: ^6.0.5 => 6.0.10 
    @storybook/react: ^6.0.5 => 6.0.10 
    @storybook/source-loader: ^6.0.5 => 6.0.10 
```
Repository: flutter
Issue: Changing `ThemeData.TitleTextStyle's fontSize using `copyWith` also changes the title's color on the web
Labels: framework,f: material design,d: stackoverflow,has reproducible steps,found in release: 3.3,found in release: 3.7,team-design,triaged-design

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Steps to Reproduce

<!-- You must include full steps to reproduce so that we can reproduce the problem. -->

1. To change the `fontsize` or `fontFamily` of the AppBar's title using `copyWith`:
`textTheme: ThemeData.light().textTheme.copyWith(headline6: TextStyle(fontSize: 18));`.
(A full main.dart file can be found [here](https://codepen.io/ameralahmar/pen/GRZZavm))
2. Run `flutter run -d [any connected Android device]`.
3. Observe the App Bar title color (White) which is the expected behavior.
4. Stop the running app and run it again with `flutter run -d chrome` or `flutter run -d web-server`
5. Observe the App Bar title color (Red) which isn't right!

**Expected results:** <!-- what did you want to see? -->
AppBar with all its title ThemeData unchanged except the font size.
![appbar with correct title color on Android phone](https://user-images.githubusercontent.com/37956351/90344435-74b8cf00-e022-11ea-8818-4081613667fb.jpeg)

**Actual results:** <!-- what did you see? -->
AppBar with font size changed as well as the color changed to red.
![appbar with wrong title's color](https://user-images.githubusercontent.com/37956351/90344447-97e37e80-e022-11ea-976c-33312b6742a5.png)


**Additional Info**
Flutter Version: 1.20.2 • channel beta
Dart Version:  2.9.1
OS: Linux (deb)
Repository: neovim
Issue: Built-in terminal can not clear whole screen
Labels: bug,terminal,display

<!-- Before reporting: search existing issues and check the FAQ. -->

- `nvim --version`: NVIM v0.5.0-nightly-490-g267bc57d2
- `vim -u DEFAULTS` (version: ) behaves differently?
- Operating system/version: MacOS 10.15.4
- Terminal name/version: kitty
- `$TERM`: xterm-kitty

### Steps to reproduce using `nvim -u NORC`

step to reproduce:

1. `nvim -u NORC`
2. `:terminal` open built-in terminal
3. `yarn jest --watchAll`
4. change the test file to trigger new test

### Actual behaviour

built-in terminal, the previous test info still stay at the top of screen. it can't be clear away.

![image](https://user-images.githubusercontent.com/5492542/90355530-33a2d800-e07f-11ea-9a32-f83efb2aae98.png)


### Expected behaviour

kitty, does not have old test info in the screen.

![image](https://user-images.githubusercontent.com/5492542/90355484-0ce4a180-e07f-11ea-802d-826a5ea39b04.png)
Repository: flutter
Issue: "flutter run --release -d web" still tries to run after saying it can't
Labels: tool,a: quality,platform-web,P3,team-web,triaged-web

```
$ flutter run --release -d web
Downloading Web SDK...                                              9.2s
This application is not configured to build on the web.
To add web support to a project, run `flutter create .`.
Launching lib/main.dart on Web Server in release mode...
Running "flutter pub get" in flutter_tools...                       1.4s
Missing index.html.
$
```

After saying it's not configured, shouldn't we give up? It's weird that we try anyway...
Repository: godot
Issue: Autotile bitmask not working as expected
Labels: topic:editor,confirmed,documentation,topic:2d

**Godot version:**
3.2.2

**OS/device including version:**
Windows 10

**Issue description:**
<!-- What happened, and what was expected. -->
- A standard `blob` tilesheet that was exported as Godot `.tres` by Tilesetter with bitmasks on didn't work as expected.
- I have also tried to export the tilesheet as PNG and manually draw bitmasks on top, resulted in the same weird behaviour.
- I've tried reimporting the image/`.tres` and recreating the Tilemap node, but all resulted in the same strange behaviour
- Restarting Godot fixed this issue, which to me seems like a bug.
- A screenshot is attached below, hopefully that should clarify the issue (looks like the bitmasks are flipped for some reason):
![Screenshot](https://media.discordapp.net/attachments/212250894228652034/744814857001631774/unknown.png?width=1339&height=702)

**Steps to reproduce:**
Unfortunately, the issue was resolved by restarting Godot, I cannot reproduce the bug.
Repository: go
Issue: proposal: net/http: flush other headers with 100-continue in expectContinueReader
Labels: Proposal

On our `http` server that uses the built-in go `http` server, we'd like to pass a custom header to the API consumer before the final HTTP response has been established. It is documented that the golang http server does not support sending custom `1xx` status codes, however the golang http server itself sends a `100-Continue` once the request reader is being read with the `expectCustomReader`.

So the proposal is as follows: respect what is being written to the response writer before the `100-Continue` is being written into the response, then flush it together with the `100-Continue` which is sent anyway.

I believe many users can benefit from this, would be happy to hear what you think (and I can also own this and PR it into the codebase).

Thanks a million.
Repository: storybook
Issue: Using args/controls to change vue's local state
Labels: feature request,help wanted,vue,has workaround,args

I was under the impression that with storybook 6 I can change values in vue's data() property without my component using props. I Use TS and have declared two data properties: userMenuOpen and text. The code below reflects what i want to do. If it's not possible like with 5 I misunderstood.

Vue, typescript, storybook 6

Component:
``` typescript
export default class TopNavBar extends Vue {
  userMenuOpen: boolean = false;
  text: string = 'hello';
}
```

Story:
``` typescript
export default {
  title: 'nav/TopNavBar',
  excludeStories: /.*Data$/,
  decorators: [StoryRouter()],
  component: TopNavBar,
  argTypes: {
    userMenuOpen: { control: 'boolean' },
    text: { control: 'text' },
  },
};

const Template = (args: any, { argTypes }: any) => ({
  components: { TopNavBar },
  data() {
    return {
      userMenuOpen: args.userMenuOpen,
      text: args.text,
    };
  },
  template: '<top-nav-bar  />',
});

export const Rounded = Template.bind({});
Rounded.args = {
  userMenuOpen: true,
  text: 'A different text',
};
```
Repository: rust
Issue: Strings are not optimized as vector of characters
Labels: A-mir-opt,A-str

This might be a long shot, but it would be really nice if Rust could do this. I'm working on an embedded application, where I draw some text. For a single symbol, I need to use a different font than I use to draw the rest of the text. Right now, Rust doesn't know that I use a single character and the binary contains all of the unnecessary text processing code to map that character to an index and to draw it.

It would be really cool if Rust could recognize that my string is a constant instead of a black box value.

I've reduced an example: https://rust.godbolt.org/z/GrnE79
Repository: go
Issue: x/crypto/acme: Directory.AuthzURL isn't checked for pre-auth support, in client.Authorize()
Labels: NeedsInvestigation

### What version of Go are you using (`go version`)?

<pre>
go version go1.14.7 darwin/amd64
</pre>

### Does this issue reproduce with the latest release?

yes, with any release of crypto/acme with ACMEv2 support

### What did you do?

```
_, err := lestencryptStagingV2client.Authorize("example.com")
```

### What did you expect to see?

```
{directotyURL} doesn't support pre-authorization flow
```

### What did you see instead?

```
Post "": unsupported protocol scheme ""
```

this obscure error is returned because `AuthzURL` is empty for letsencrypt staging v2, and AuthzURL is not tested before calling POST.
Repository: pytorch
Issue: Pytorch "Import torch" lead to "core dump"
Labels: module: binaries,module: protobuf,triaged

## 🐛 Bug
When I'm using Pytorch, I first import the _message module of Protobuf, and then import the torch module ，which causes core dump

Steps to reproduce the behavior:
Execute the following Python code:
**from google.protobuf.pyext import _message
import torch**

## Environment
torch==1.4.0
torchvisison==0.5.0
protobuf==3.6.1


cc @ezyang @seemethere @malfet
Repository: vscode
Issue: Not able to turn Settings Sync on after changing github password
Labels: bug,github-authentication

<!-- ⚠️⚠️ 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/ -->

<!-- Use Help > Report Issue to prefill these. -->
Version: 1.48.0 (system setup)
Commit: db40434f562994116e5b21c24015a2e40b2504e6
Date: 2020-08-13T07:50:42.600Z
Electron: 7.3.2
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 10.0.18362

Steps to Reproduce:

1. Change github password!
2. Open User Settings
3. Press "Turn on Settings Sync" button
4. Choose settings to sync
5. Select GitHub account (as per screenshot).
6. You will receive a 401 error  (as per screenshot), but there is no option to sign in again with GitHub, or choose another Github Account.

![sync](https://user-images.githubusercontent.com/3703647/90394642-9a4ae480-e0c5-11ea-90f9-4679c69b3bd6.png)


<!-- Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes
Repository: youtube-dl
Issue: Faster downloading using alternative libraries
Labels: question

- [x] I'm asking a question
- [x] I've looked through the README and FAQ for similar questions
- [x] I've searched the bugtracker for similar questions including closed ones


## Question
On quest for faster downloads in my custom script using `youtube-dl` as a library, I stumbled upon these https://github.com/juancarlospaco/faster-than-requests/ , https://stackoverflow.com/questions/19724222/pycurl-attachments-and-progress-functions modules which claim to accelrate python downloads. 

**My questions are:**

A). Can `youtube-dl` use one of these to improve download speeds or it is already optimized?
B). Is there a way to track progress of downloads from external downloaders in the custom python script?

Thanks
Repository: rust
Issue: Confusing terminology with compiler message for traits "parenthetical notation"
Labels: C-enhancement,A-diagnostics,T-compiler,D-confusing,D-papercut

```rust
trait MyTrait {}

fn demo<T>()
where
    T: MyTrait(u8) -> u8,
{
}
```

```none
error[E0658]: parenthetical notation is only stable when used with `Fn`-family traits
 --> src/lib.rs:5:8
  |
5 |     T: MyTrait(u8) -> u8,
  |        ^^^^^^^^^^^^^^^^^
  |
  = note: see issue #29625 <https://github.com/rust-lang/rust/issues/29625> for more information
```

Can we perhaps have something more in layman's terms?
Something akin to:
"you have used () for in a trait when you should have used <> instead"

More info [here](https://stackoverflow.com/questions/46615275/how-can-i-define-a-trait-with-arguments-and-return-types-like-fn/46615691?noredirect=1#comment112199846_46615691)
Repository: TypeScript
Issue: API Suggestion: Add function for getting syntax kind name from syntax kind
Labels: Suggestion,Awaiting More Feedback

## Search Terms

function get SyntaxKind name 

## Suggestion

A common mistake people will do when using the compiler api is getting the syntax kind name by doing `ts.SyntaxKind[kind]`, where `kind` is the syntax kind number value (ex. I had this mistake in my presentation at tsconf in ts-ast-viewer, though that's been fixed for a couple years now, I've still seen people do it occasionally).

This is wrong because it will give the last entry in the enum, which could be an alias like `LastTypeNode` instead of `ImportType`.

It would be nice to...

1. Add a function... maybe `getSyntaxKindName(kind: SyntaxKind): string`... that gets the syntax kind name from the provided syntax kind value.
2. Add a doc comment above `SyntaxKind` to suggest using `getSyntaxKindName` to get the name.

## Examples

```ts
ts.getSyntaxKindName(ts.SyntaxKind.ImportType); // "ImportType"
```

## Checklist

My suggestion meets these guidelines:

* [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [x] This wouldn't change the runtime behavior of existing JavaScript code
* [x] This could be implemented without emitting different JS based on the types of the expressions
* [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).
Repository: vscode
Issue: Git - Clone to an alternate directory name
Labels: feature-request,git

<!-- ⚠️⚠️ 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. -->
When performing a `git clone` I'd like the option to specify an alternate target directory, just as I can with `git clone` on the command line. 

For example, this can be useful when cloning a template repository, making a few edits, then pushing back to a new origin.

The problem as it stands is that the location chosen within VSCode is only for the repository's _parent_ directory. There does not appear to be a way to specify the destination proper.

To illustrate further, VSCode appears to do the equivalent of:
```
$ mkdir -p /home/jdandrea/git/my-repo && cd $_
$ git clone https://url/to/repo.git
Cloning into 'repo'...
. . .
```

Whereas what I want to do instead is:
```
$ git clone https://url/to/repo.git /home/jdandrea/git/my-repo
Cloning into '/home/jdandrea/git/my-repo'...
. . .
```

Note the different clone target of `my-repo` vs `repo`.

I tried renaming the directory just after cloning, expecting VSCode to follow the name change, however this does not work as expected and is out-of-scope per #20071.

_Originally posted by @jdandrea in https://github.com/microsoft/vscode/issues/103987#issuecomment-674966458_