sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: Add StrutStyle support
Labels: c: new feature,package,c: proposal,team-ecosystem,P3,p: flutter_markdown,triaged-ecosystem

The line-height of text will not the same when using multiple languages.  We can use StrutStyle to control the mini line-height for better text render.

example: https://medium.com/@najeira/control-text-height-using-strutstyle-4b9b5151668b

Thanks.
Repository: flutter
Issue: [flutter_markdown] Checkboxes aren't checkable
Labels: package,team-ecosystem,has reproducible steps,P3,found in release: 2.2,p: flutter_markdown,found in release: 2.6,triaged-ecosystem

Is that support checkbox clickable?
Repository: flutter
Issue: Provide Information About Using URL Parameters In Links
Labels: d: api docs,package,team-ecosystem,P3,p: flutter_markdown,triaged-ecosystem

There was a proposed change to the linkOnTapHandler callback method to provide additional parameters so more information about the link that was passed could be used by the callback method. A method does currently exist for additional information to be passed to the linkOnTapHandler callback method by using URL parameters in the href of the link tag in the Markdown document. The linlinkOnTapHandler callback method can use the dart:core Uri class to parse and query for the parameters in the URL being passed. Adding information to the README.md on how to pass URL parameters to the linkOnTapHandler callback method and query them could be useful to users of the flutter_markdown package. Adding a demo to the example app of passing URL parameters could also be useful.
Repository: flutter
Issue: Blockquotes are displayed within a box instead of indented block of text
Labels: package,team-ecosystem,has reproducible steps,P3,found in release: 2.2,p: flutter_markdown,found in release: 2.6,triaged-ecosystem

Using the following snippet:

```
**NO realizar**
> Urocultivo en primer evento
> Urocultivo de control post-tratamiento
```

Using other interpreters, is shown like this:

![image](https://user-images.githubusercontent.com/8916360/92761229-c3dbf080-f391-11ea-9e8c-76434c65a97b.png)
or (live) here like:
`
**NO realizar**
> Urocultivo en primer evento
> Urocultivo de control post-tratamiento
`

but with *flutter_markdown* is redered like the image below:
![image](https://user-images.githubusercontent.com/8916360/92761069-94c57f00-f391-11ea-90f9-865c5c4abd83.png)

Is this issue already known? Can be fixed with styles?
Repository: flutter
Issue: [flutter_markdown] Ordered number list uses SizedBox for bullet number, but doesn't scale text to fit properly
Labels: customer: google,package,team-ecosystem,P3,p: flutter_markdown,triaged-ecosystem

Internal: b/291644799

```
else if (tag == 'li') {
        if (_listIndents.isNotEmpty) {
          if (element.children.length == 0) {
            element.children.add(md.Text(''));
          }
          Widget bullet;
          dynamic el = element.children[0];
          if (el is md.Element && el.attributes['type'] == 'checkbox') {
            bool val = el.attributes['checked'] != 'false';
            bullet = _buildCheckbox(val);
          } else {
            bullet = _buildBullet(_listIndents.last);
          }
          // See flutter/flutter_markdown#147 and flutter/flutter_markdown#169
          child = Row(
            textBaseline: TextBaseline.alphabetic,
            crossAxisAlignment: CrossAxisAlignment.start,
            children: <Widget>[
              SizedBox(
                width: styleSheet.listIndent,
                child: bullet
              ),
              Expanded(child: child)
            ],
          );
        }
      }
```

This creates a SizedBox with the `listIndent` for the width of the box, however if the font causes one of the numbers to be slightly larger than the allotted size, the period overflows to the next line.

If the numbered list ends up causing double digits, this can also cause an issue.

Finally, if the font is scaled on the system, this will end up looking very bad too.

Using a FittedBox around the `bullet` widget would fix this so that at least the numbers and periods stay on one line and always fit in the given size, though it could look weird to have a much smaller number compared to the rest, when that happens. But I think it would still be better than the current behavior.

This is without the FittedBox
![Simulator Screen Shot - iPhone 8 - 2020-08-10 at 19 52 24](https://user-images.githubusercontent.com/40898687/89842238-103dd180-db43-11ea-984c-81de25451542.png)

This is with the FittedBox
![Simulator Screen Shot - iPhone 8 - 2020-08-10 at 19 52 14](https://user-images.githubusercontent.com/40898687/89842248-1633b280-db43-11ea-8361-b9fe97f26767.png)
Repository: flutter
Issue: Feature request: Make 4 pixel indentation and text alignment for ordered numbers lists customizable
Labels: c: new feature,package,c: proposal,team-ecosystem,P3,p: flutter_markdown,triaged-ecosystem

It would really be helpful if the 4 pixel indentation in this method was customizable.
```
Widget _buildBullet(String listTag) {
    if (listTag == 'ul') {
      return Text(
        '•',
        textAlign: TextAlign.center,
        style: styleSheet.listBullet,
      );
    }

    final int index = _blocks.last.nextListIndex;
    return Padding(
      padding: const EdgeInsets.only(right: 4),    <======= Customize this please!
      child: Text(
        '${index + 1}.',
        textAlign: TextAlign.right,
        style: styleSheet.listBullet,
      ),
    );
  }
```

and if the cross axis alignment of the Row widget when building the bullet row in here was customizable too:
```
} else if (tag == 'li') {
        if (_listIndents.isNotEmpty) {
          if (element.children.length == 0) {
            element.children.add(md.Text(''));
          }
          Widget bullet;
          dynamic el = element.children[0];
          if (el is md.Element && el.attributes['type'] == 'checkbox') {
            bool val = el.attributes['checked'] != 'false';
            bullet = _buildCheckbox(val);
          } else {
            bullet = _buildBullet(_listIndents.last);
          }
          // See flutter/flutter_markdown#147 and flutter/flutter_markdown#169
          child = Row(
            textBaseline: TextBaseline.alphabetic,
            crossAxisAlignment: CrossAxisAlignment.baseline,    <======= Customize this please!
            children: <Widget>[
              SizedBox(
                width: styleSheet.listIndent,
                child: bullet,
              ),
              Expanded(child: child)
            ],
          );
        }
      }
```

Just like the `listIndent` property of the Stylesheet, it would be great having 2 other properties to customize the indentation between the bullet number and the text, and the alignment between the bullet number and the text.
Repository: flutter
Issue: Update the rendering of links to include SystemMouseCursors.click
Labels: c: new feature,package,c: proposal,team-ecosystem,P3,p: flutter_markdown,triaged-ecosystem

With the new support for mouse cursors, it would be great to generate Flutter code that changed the mouse cursor for markdown links to use SystemMouseCursors.click, e.g.

            MouseRegion(
              cursor: SystemMouseCursors.click,
              child: ...markdown link/underlined text...
              ),
            ),

The API already provides for clicking links; it just need to show that clicking works!
Repository: flutter
Issue: Add Syntax Highlighter
Labels: c: new feature,package,c: proposal,team-ecosystem,P3,p: flutter_markdown,triaged-ecosystem

By default, the SyntaxHighlighter is not working, and setting the syntaxHighlighter property has no documentation on it. Please add one or two examples on how to add Syntax Highlighting to the widget.
Repository: flutter
Issue: Add onLongPressURL
Labels: c: new feature,package,c: proposal,team-ecosystem,P3,p: flutter_markdown,triaged-ecosystem

Add a method `onLongPressURL`. That would be useful (for example) to copy the URL
Repository: flutter
Issue: Markdown rule parsed as header
Labels: package,team-ecosystem,has reproducible steps,P3,found in release: 2.2,p: flutter_markdown,found in release: 2.6,triaged-ecosystem

On macOS, Markdown shows HR and HR3 following properly (HR2 is parsed as a header):

```markdown
HR
---
HR2
___
HR3
***
```

![image](https://user-images.githubusercontent.com/2568253/76713124-b80dbb00-66db-11ea-9dff-5745ba164a57.png)

MarkdownBody doesn't show HR or HR3 at all.

![image](https://user-images.githubusercontent.com/2568253/76713131-d378c600-66db-11ea-91e4-c7492bfe976e.png)
Repository: flutter
Issue: Better Documentation on Images
Labels: d: api docs,a: images,package,team-ecosystem,P3,p: flutter_markdown,triaged-ecosystem

How do I use the `imageBuilder` and `imageDirectory` attributes? And also what is the correct syntax for integrating images?
Repository: flutter
Issue: [flutter_markdown] Add Dark Theme Support!
Labels: c: new feature,package,c: proposal,team-ecosystem,P3,p: flutter_markdown,triaged-ecosystem

Currently Stylesheet Has lot of properties tied to normal theme( background colors ). we have to get those colors from `Theme` object instead of `Colors` object.
Repository: flutter
Issue: Line breaks are not properly parsed
Labels: package,team-ecosystem,has reproducible steps,P3,found in release: 2.2,p: flutter_markdown,found in release: 2.6,triaged-ecosystem

I want to use line breaks in text. See below.

```
Hello ABC, <br/> I would like to thank you....
```

However when I use try with the `Markdown` widget, it just shows plain text like above.

I tried double space, but it still wasn't properly parsed.
Repository: flutter
Issue: [Documentation]: Add samples, examples for `onTapLink`, `styleSheets` 
Labels: d: api docs,package,team-ecosystem,P3,p: flutter_markdown,triaged-ecosystem

Things like `onTapLink`, `styleSheet` etc are not documented in the Readme or as inline doc comments, making it more necessary to go looking through the source or previously filed issues to figure out how to make used of those features.
Repository: flutter
Issue: [flutter_markdown] Relative anchors
Labels: package,team-ecosystem,has reproducible steps,P3,found in release: 2.2,p: flutter_markdown,found in release: 2.6,triaged-ecosystem

Is the functionality for relative anchors planned?

For example 

```
[preface](#preface)
[development](#development)
```

When tapping one of these, the view would scroll to the location of the #preface element.
Repository: flutter
Issue: Please provide a way to set margins for block elements
Labels: package,c: proposal,team-ecosystem,P3,p: flutter_markdown,triaged-ecosystem

Please provide a way to set margins for block elements so that a H1 can have more spacing than a normal P.  One way to achieve this would be a allow using a custom `MarkdownBuilder` which currently is hardcoded in `_MarkdownWidgetState`, the private "state sibling" of `MarkdownWidget`. The builder adds the `blockSpacing` in `_addBlockChild` which, if the tag would be passed to this function, could vary the added spacing.
Repository: flutter
Issue: Hello world application consumes ~140mb of memory in chrome when using canvaskit
Labels: engine,c: performance,platform-web,perf: memory,e: web_canvaskit,a: release,has reproducible steps,P3,found in release: 2.10,found in release: 2.13,team-web,triaged-web

Am running in release, not debug mode.

![image](https://user-images.githubusercontent.com/41645771/116932875-0c496680-ac20-11eb-9083-81502294bc6a.png)
Chrome profile shows ~140mb being used in heap snapshot.

At least one other person has had this issue, as it was asked here 2 months ago:

https://stackoverflow.com/questions/66026181/how-to-clear-heap-memory-in-flutter-web

When I switch from the canvaskit renderer to the html renderer, the memory usage for the hello world app jumps down to less than 7mb.

Nothing [here](https://flutter.dev/docs/development/tools/web-renderers) suggests the canvaskit should take up so much more memory than the html renderer.

My flutter doctor -v:

```
➜  hello_world flutter doctor -v
[✓] Flutter (Channel stable, 2.0.6, on Mac OS X 10.15.7 19H2 darwin-x64, locale
    en-US)
    • Flutter version 2.0.6 at /Users/***/development/flutter
    • Framework revision 1d9032c7e1 (4 days ago), 2021-04-29 17:37:58 -0700
    • Engine revision 05e680e202
    • Dart version 2.12.3

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/***/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[!] Xcode - develop for iOS and macOS
    • Xcode at /Volumes/Macintosh HD -
      Data/Applications/Xcode.app/Contents/Developer
    • Xcode 11.6, Build version 11E708
    ! Xcode 11.6.0 out of date (12.0.1 is recommended).
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6915495)

[✓] VS Code (version 1.55.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.21.0

[✓] Connected device (1 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 90.0.4430.93

! Doctor found issues in 1 category.
➜  hello_world 
```
Repository: pytorch
Issue: Please remove this assertion - it triggers on valid use cases
Labels: triaged

https://github.com/pytorch/pytorch/blob/4cb534f92ef6f5b2ec99109b0329f93a859ae831/aten/src/ATen/native/cpu/IndexKernel.cpp#L430

OR 

https://github.com/pytorch/pytorch/blob/d68ad3cb1e28fc464dd40dda5610f408d488d312/torch/nn/functional.py#L4950

This assertion functional.py multi_head_attention_forward looks like this:

`
    if key_padding_mask is not None:
        attn_output_weights = attn_output_weights.view(bsz, num_heads, tgt_len, src_len)
        attn_output_weights = attn_output_weights.masked_fill(
            key_padding_mask.unsqueeze(1).unsqueeze(2),
            float("-inf"),
        )
        attn_output_weights = attn_output_weights.view(bsz * num_heads, tgt_len, src_len)
`
and in the cpp code it looks like this

`      if (!is_mask_bool) {
        TORCH_CHECK(mask_value <= static_cast<mask_t>(1), "Mask tensor can take 0 and 1 values only");
      }
`

There are in fact several valid use cases where the attn_output_weights should have floating numbers that are not 1 or 0, I have already encountered 2 such cases during my work.

Thank you.
Repository: next.js
Issue: Redirects: `destination` has segments not in `source`
Labels: bug,Navigation,linear: next

### What version of Next.js are you using?

10.2.0

### What version of Node.js are you using?

14.15.4

### What browser are you using?

not related

### What operating system are you using?

Windows

### How are you deploying your application?

next dev

### Describe the Bug

I am building some redirects for my website and idk why but it seems not to support when I use  `(` or `)` in the destination url
It doesn't change if I add `\\(` or if it's only `(`
ex
```json
`destination` has segments not in `source` or `has` (0) for route {"source":"/database/:serie/tk-sm-r/:path*","destination":"/database/:serie/SM-Kit-du-dresseur-\\(Raichu-d'Alola\\)/:path*","permanent":true}
```

### Expected Behavior

it should not be exit with an error

### To Reproduce

in a next.config.js add redirects with this value 
```json
{"source":"/database/:serie/tk-sm-r/:path*","destination":"/database/:serie/SM-Kit-du-dresseur-\\(Raichu-d'Alola\\)/:path*","permanent":true}
```

or this 
```json
{"source":"/database/:serie/tk-sm-r/:path*","destination":"/database/:serie/SM-Kit-du-dresseur-(Raichu-d'Alola)/:path*","permanent":true}
```
Repository: pytorch
Issue: [structured] Fail if CompositeExplicitAutograd is in dispatch table of structured_delegate function
Labels: module: autograd,triaged

self explanatory

cc @ezyang @albanD @zou3519 @gqchen @pearu @nikitaved @soulitzer @Lezcano
Repository: pytorch
Issue: Cleanup usage of IS_PYTHON_3_9_PLUS in autograd engine
Labels: module: autograd,triaged,module: pybind

Follow up to https://github.com/pytorch/pytorch/pull/57488#pullrequestreview-650763452

cc @ezyang @albanD @zou3519 @gqchen @pearu @nikitaved @soulitzer @Lezcano
Repository: TypeScript
Issue: Don't show symbol suggestions for `class Foo |`
Labels: Bug,Help Wanted,Effort: Moderate,Domain: Completion Lists

*TS Template added by @mjbvz*

**TypeScript Version**: 4.2.4

**Search Terms**
- suggest / suggestions
- intellisense 


---

<!-- ⚠️⚠️ 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. -->

Create `.js` file, type `class Test ex` and you will see a lot of useless in current context hits such as `export` (first 3 entries), variables, other classes, etc.

Logically there are only `extends` and `implements` (for typescript) should be available.
In my opinion 4th entry is too far for productive programming and there are should be contextual priority for keywords.
Repository: rust
Issue: Native CPU is not reported on Raspbian
Labels: T-compiler,C-bug,A-targets

Executing `rustc --print target-cpus` or `rustc -Ctarget-cpu=help` on Raspberry Pi 4 prints the following:

```
Available CPUs for this target:
    arm1020e
    arm1020t
    arm1022e
    ...
```

In contrast, executing the same command on Windows or Ubuntu on x86-64 also prints native CPU:

```
Available CPUs for this target:
    native         - Select the CPU of the current host (currently skylake).
    alderlake
    amdfam10
    athlon
    ...
```

In [source code](https://github.com/rust-lang/rust/blob/fed59d669c5ca3c0e9c39dcb1f6510b5876ede64/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp#L397) there is check for cross compilation. Native CPU is only printed when not cross compiling:

```C++
  printf("Available CPUs for this target:\n");
  if (HostArch == TargetArch) {
    const StringRef HostCPU = sys::getHostCPUName();
    printf("    %-*s - Select the CPU of the current host (currently %.*s).\n",
      MaxCPULen, "native", (int)HostCPU.size(), HostCPU.data());
  }
```

However I'm not cross compiling. I'm using rust installed from rustup and don't have any additional targets installed.

`rustup show`:
```
Default host: armv7-unknown-linux-gnueabihf
rustup home:  /home/pi/.rustup

nightly-armv7-unknown-linux-gnueabihf (default)
rustc 1.54.0-nightly (716394d65 2021-05-03)
```

`lsb_release -a`:
```
No LSB modules are available.
Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 10 (buster)
Release:        10
Codename:       buster
```

`rustc --version --verbose`:
```
rustc 1.54.0-nightly (716394d65 2021-05-03)
binary: rustc
commit-hash: 716394d6581b60c75cfdd88b8e5b876f2db88b62
commit-date: 2021-05-03
host: armv7-unknown-linux-gnueabihf
release: 1.54.0-nightly
LLVM version: 12.0.0
```

Relevant #44393 #44407
Repository: rust
Issue: -Zinstrument-coverage and matches!()
Labels: T-compiler,C-bug,A-code-coverage

<!--
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.
-->

When using `-Zinstrument-coverage` on a recent (first-week-of-May-2021) nightly, the `matches!` macro is no longer marked covered. (This is likely related to macro coverage rules recently adjusted.) The macro was marked covered earlier in April.

```rust
  | res::scanner::tests::template_test_09:
  | 2957|      1|    fn template_test_09() {
  | 2958|      1|        let r = scan_token(&Scanner::new(), "`\\", ScanGoal::InputElementRegExp);
  | 2959|      1|        let (token, scanner) = r;
  | 2960|      1|        assert_eq!(scanner, Scanner { line: 1, column: 1, start_idx: 0 });
  | 2961|      1|        assert!(matches!(token, Token::Error(_)));
  |                              ^0
  | 2962|      1|    }
```

### 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-nightly (716394d65 2021-05-03)
binary: rustc
commit-hash: 716394d6581b60c75cfdd88b8e5b876f2db88b62
commit-date: 2021-05-03
host: x86_64-unknown-linux-gnu
release: 1.54.0-nightly
LLVM version: 12.0.0
```
Repository: flutter
Issue: PlatformException VideoError, Video Player had error
Labels: c: crash,e: device-specific,platform-android,p: video_player,package,P2,team-android,triaged-android

Hello
I am using Flutter Channel Stable and Flutter Version is 2.0.5
I am using video player package and chewie for playing video from asset the video is playing on some devices and on some devices we are getting exception from video player.  Can you please give as any solution about this problem.
Thank you.

![videoplayer_exception](https://user-images.githubusercontent.com/45616602/116957412-706a3a00-acb5-11eb-97e9-4d1b8bd00261.jpeg)
Repository: opencv
Issue: undistort distCoeffs: difference between doc & code
Labels: question (invalid tracker)

It has come to my attention that the [following term](https://github.com/opencv/opencv/blob/7de627c504a3b8aa16cdc3de56efdc358df4b061/modules/calib3d/src/undistort.dispatch.cpp#L378):

`double icdist = (1 + ((k[7]*r2 + k[6])*r2 + k[5])*r2)/(1 + ((k[4]*r2 + k[1])*r2 + k[0])*r2);`

that can be found inside some distortion functions' internal algorithm on multiple occasions might diverge from [the documentation](https://docs.opencv.org/4.2.0/d9/d0c/group__calib3d.html#ga55c716492470bfe86b0ee9bf3a1f0f7e) where one can read:

![image](https://user-images.githubusercontent.com/68554285/116961646-e51b8500-ac71-11eb-9a4d-6a63794a2c61.png)

`icdist` is later on multiplied (not divided) with `x`. That is, given `k`, this term seems inverted according to the doc. I was porting some manual code to open-cv and only when I followed the logic of open-cv code order on `k` (rather than the doc order) was open-cv's own function able to correct a test image with the same coefficients I had previously collected and used on the "manual" code.

I could not find this issue elsewhere in this repository and I hope I'm not wasting anyone's time here.