sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: godot
Issue: Emulate touch from mouse not working in HTML (Scroll).
Labels: platform:web,topic:input

**Godot version:**
3.2.4

**OS/device including version:**
Windows 7 - Vivaldi(Chromium).

**Issue description:**
If emulate touch from mouse and you have scroll container you can drag and scroll as internet pages on smartphones.
This working if build native app, but not working if export HTML.

**Steps to reproduce:**
Turn on "Emulate touch from mouse".
Create scroll container, add big panel as child - make panel pass mouse or ignore.
Export HTML.

**Minimal reproduction project:**
[TEST_HTML.zip](https://github.com/godotengine/godot/files/5793677/TEST_HTML.zip)
Repository: rust
Issue: rustdoc: tracking issue for `pointer` and `reference` in intra-doc links
Labels: T-rustdoc,C-tracking-issue,A-intra-doc-links

We may want to put other targets behind the feature gate too, but we at least
want to get `pointer` behind one before #80181 hits beta.

See [the discussion on Zulip][z] for more.

[z]: https://rust-lang.zulipchat.com/#narrow/stream/266220-rustdoc/topic/intra-doc.20.60pointer.60.20primitive

cc @jyn514
Repository: pytorch
Issue: error: conversion from ‘std::vector<at::Tensor>’ to non-scalar type ‘at::Tensor’ requested
Labels: triaged,module: numpy

## ❓ Questions and Help

While trying to tackle diag_indices #38349 I had the issue as shown below:

![image](https://user-images.githubusercontent.com/43226067/104145699-053ae600-53ee-11eb-8cda-9fa6527836c6.png)

This was what I was trying:

![image](https://user-images.githubusercontent.com/43226067/104146024-3d8ef400-53ef-11eb-8905-dba6f01a6d87.png)
![image](https://user-images.githubusercontent.com/43226067/104145871-afb30900-53ee-11eb-9fd7-58cb8bf28c0f.png)

I guess the problem comes up in the generated code at variable_factories.h wherein the generated code does not consider the return dtype properly.
 I was not able to pinpoint another function which has no input tensor parameter and returns a vector<Tensor>. Could I get some guidance on where to look for such functions or how I could mitigate this error?

## Additional comments

When I replaced the `int n` with a Tensor input, the code worked fine, however this function would ideally not make use of a Tensor input. 
@mruberry  @ngimel 

cc @mruberry @rgommers @heitorschueroff
Repository: thefuck
Issue: Feature Request: Correct me when I type `figlet moo | cowsay`
Labels: help wanted

I would love for `fuck` to fix when I forget the `-n` piping `figlet` into `cowsay`:

```
⋊> ~ figlet moo | cowsay -n                                             15:38:05
 _________________________
/                         \
|  _ __ ___   ___   ___   |
| | '_ ` _ \ / _ \ / _ \  |
| | | | | | | (_) | (_) | |
| |_| |_| |_|\___/ \___/  |
\                         /
 -------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
⋊> ~ figlet moo | cowsay                                                15:38:09
 _________________________________________
/                                         \
|                                         |
| _ __ ___ ___ ___ | '_ ` _ \ / _ \ / _ \ |
| | | | | | | (_) | (_) | |_| |_|         |
\ |_|\___/ \___/                          /
 -----------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
⋊> ~ fuck                                                               15:38:10
No fucks given
```

I'll write a custom rule for this after work today for my own system, I'm more just checking if anyone else wants a copy when I'm done.
Repository: godot
Issue: Objects at the edges of the GIProbe becomes partially black
Labels: bug,topic:rendering,topic:3d

**Godot version:**
3.2.4.beta5

**OS/device including version:**
Win10, GTX 970, GLES3

**Issue description:**
If object is completely inside or outside the GIProbe, everything is fine. (№ 1 and 3)
If the object is on the edge of the GIProbe, it turns black outside the probe. (№ 2 and 4)
ReflectionProbe could save the situation for metallic materials. (№ 2)
![2021-01-11 140625](https://user-images.githubusercontent.com/77234360/104147393-ccb10180-5419-11eb-9a75-35c1591631cc.png)

Sphere 4 becomes normal as it moves away from the probe.
<video src="https://user-images.githubusercontent.com/77234360/104148350-a68d6080-541d-11eb-9c58-527eb8f1fea9.mp4" controls="controls" muted="muted" class="d-block rounded-bottom-2 width-fit" style="max-height:640px;"></video>
Looks like sphere 4 does not affected by default environment

Is it normal to surround GIProbe by reflection probes? Or entire scene must be inside GIProbe? The scene can be complex and will require multiple GIProbes. Is there something like probes blending or non-rectangular probes? Any info, plans?

**Steps to reproduce:**
1. Add GIProbe
2. Bake GI
3. Add MeshInstance
4. Move mesh to the border of the GIProbe

**Minimal reproduction project:**
[GI test.zip](https://github.com/godotengine/godot/files/5794062/GI.test.zip)
Repository: rust
Issue: Point to usage in associated type that causes a lifetype parameter to need to be constrained
Labels: C-enhancement,A-diagnostics,T-compiler,D-terse

Errornous code:

```
trait HasAssocType {
    type Ty;
}

struct Struct;

impl<'a> HasAssocType for Struct {
    type Ty = &'a Self;
}
```

Current error message:

```
error[E0207]: the lifetime parameter `'a` is not constrained by the impl trait, self type, or predicates
 --> src/lib.rs:7:6
  |
7 | impl<'a> HasAssocType for Struct {
  |      ^^ unconstrained lifetime parameter

error: aborting due to previous error

For more information about this error, try `rustc --explain E0207`.
```

Proposed change to:

```
error[E0207]: the lifetime parameter `'a` is not constrained by the impl trait, self type, or predicates
 --> src/lib.rs:7:6
  |
7 | impl<'a> HasAssocType for Struct {
  |      ^^ unconstrained lifetime parameter
  |
8 |     type Ty = &'a Self;
  |                ^^ help: usage on this associated type requires lifetime to need to constrain this impl

error: aborting due to previous error

For more information about this error, try `rustc --explain E0207`.
```
Repository: PowerToys
Issue: [FancyZones] Zones activation using Surface Pen's button
Labels: Product-FancyZones,Area-Accessibility,Planning-Consideration

_What is the expected behaviour of the proposed feature?  What is the scenario this would be used?_
You are able to enable applications using right click, which at the same times enables fancy zones, so you are able to snap it into place. For example I mainly use my device as a tablet to handwrite, so I would use the right click on my stylus to move the tabs. This would allow the use of it with out a keyboard.
---
It works with a mouse's right click, but does not work on the surface pen's side button.
If you'd like to see this feature implemented, add a 👍 reaction to this post.
Repository: TypeScript
Issue: JSDoc `@template` generic with promise not resolved with CommonJS Export
Labels: Bug,Help Wanted,Domain: JSDoc

# Bug Report

<!--
  Please fill in each section completely. Thank you!
-->

### 🔎 Search Terms

<!--
  What search terms did you use when trying to find an existing bug report?
  List them here so people in the future can find this one more easily.
-->

JSDoc, CommonJS, ESM, ES Modules, `@template`, generics, module.exports, promises

### 🕗 Version & Regression Information

<!-- When did you start seeing this bug occur?

"Bugs" that have existed in TS for a long time are very likely to be FAQs; refer to
  https://github.com/Microsoft/TypeScript/wiki/FAQ#common-bugs-that-arent-bugs

If possible, please try testing the nightly version of TS to see if it's already been fixed.
For npm: `typescript@next`
This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly

Note: The TypeScript Playground can be used to try older versions of TypeScript.

Please keep and fill in the line that best applies:
-->
- This is the behavior in every version I tried (and I also tried `typescript@next`, and I reviewed the FAQ for entries about this

### ⏯ Playground Link

<!--
  A link to a TypeScript Playground "Share" link which shows this behavior

  The TypeScript Workbench can be used for more complex setups, try
  https://www.typescriptlang.org/dev/bug-workbench/

  As a last resort, you can link to a repo, but these will be slower for us to investigate.
-->

I guess the Playground doesn't support multiple files, which this bug is based on.

A minimal repro can be found in the **Code** section below (based on [this repo](https://github.com/karlhorky/ts-jsdoc-template-promise-commonjs-bug)).

### 💻 Code

<!-- Please post the relevant code sample here as well-->

This is based on this repo: https://github.com/karlhorky/ts-jsdoc-template-promise-commonjs-bug

```js
// main.js
const promiseWrapperCjs = require('./promise-wrapper-cjs');
const { default: promiseWrapperEsm } = require('./promise-wrapper-esm');

const resultCjs = promiseWrapperCjs(Promise.resolve(1)); // ❌ Promise<{data: T}>
const resultEsm = promiseWrapperEsm(Promise.resolve(1)); // ✅ Promise<{data: number}>
```

```js
// promise-wrapper-cjs.js
/**
 * @function
 * @template T
 * @param {Promise<T>} promise
 * @returns {Promise<{data: T}>}
 */
module.exports = function promiseWrapper(promise) {
  return promise.then((data) => ({
    data,
  }));
};
```

```js
// promise-wrapper-esm.js
/**
 * @function
 * @template T
 * @param {Promise<T>} promise
 * @returns {Promise<{data: T}>}
 */
export default function promiseWrapper(promise) {
  return promise.then((data) => ({
    data,
  }));
}
```
### 🙁 Actual behavior

Generic type not resolved in CommonJS version, but ES Module version works

### 🙂 Expected behavior

Generic type resolved in both CommonJS and ES Module versions

### Related issues

- https://github.com/microsoft/TypeScript/issues/51819
Repository: excalidraw
Issue: Arrow bounding box/size incorrect during export
Labels: bug

Note that there's effectively no padding around the arrows, and the arrowheads tend to be cropped. Probably because the arrow reports height as `1`.

![image](https://user-images.githubusercontent.com/5153846/104180776-ffed9380-540d-11eb-9147-84434c4b8f11.png)

![image](https://user-images.githubusercontent.com/5153846/104180805-08de6500-540e-11eb-965a-9fac766015b7.png)
Repository: flutter
Issue: Make theme easier
Labels: framework,f: material design,a: quality,c: proposal,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
-->

## Use case

<!--
     Please tell us the problem you are running into that led to you wanting
     a new feature.

     Is your feature request related to a problem? Please give a clear and
     concise description of what the problem is.

     Describe the alternative solutions you've considered. Is there a package
     on pub.dev/flutter that already solves this?
-->

I need to read color of input border form theme to create a custom UI, and found nothing in documentation, When I read source code of `InputDecorator` , I found [final Color enabledColor = themeData.colorScheme.onSurface.withOpacity(0.38);](https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/material/input_decorator.dart#L2031) there is no way to read this color from outside of the `InputDecorator` and it's very hard to read source code and find `onSurface.withOpacity(0.38)`

I have many similar problems, for instance it is very hard to change primary color of input or scroll glow color without wrapping them with `Theme`

## Proposal

<!--
     Briefly but precisely describe what you would like Flutter to be able to do.

     Consider attaching images showing what you are imagining.

     Does this have to be provided by Flutter directly, or can it be provided
     by a package on pub.dev/flutter? If so, maybe consider implementing and
     publishing such a package rather than filing a bug.
-->

I don't know how, but please make theme more easier
Repository: PowerToys
Issue: FancyZones does no work correctly with Remote Desktop Connection Windows
Labels: Issue-Bug,Product-FancyZones,Needs-Team-Response

<!--
**Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**.
Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue.
-->

## ℹ Computer information

- PowerToys version: 0.29.3-x64 
- PowerToy Utility: Fancy Zones
- Running PowerToys as Admin: Yes
- Windows build number: [run "winver"] 10.0.19041 Build 19041

## 📝 Provide detailed reproduction steps (if any)

If you have a virtual desktop opened via Remote Desktop Connection (old preinstalled version not the app from the Microsoft Store) and put it in a fancyzone it stays there. But if you then go on fullscreen in this window and then you minimize it again, it is not minimized correctly into the assigned fancy zone but is larger and outside the zone. If you then go back to fullscreen in this windows and minimize again the window changes its shape completely (almost fullscreen). In previous versions of Fancy Zones you could do this without any problems. This was very useful to have local and remote desktop side by side on one screen.

This error only happens with Remote Desktop Connection-windows, with all other windows / programs it works perfectly fine.

I installed older versions of Powertoys but problem stayed with me. Happened first around November and I always hoped the next update of PowerToys would fix it.

Could not find anybody else having this problem, so i am sorry if you already know about this. 

Thanks!

### ✔️ Expected result

_Window of Remote Desktop Connection  that is assigned to a fancyzone stays in the zone after being maximized and then minimized again.

### ❌ Actual result

_Window jumps out of assigned FancyZone

## 📷 Screenshots

_Are there any useful screenshots? WinKey+Shift+S and then just paste them directly into the form_
Repository: storybook
Issue: Imported MD in MDX renders unstyled
Labels: question / support,addon: docs,mdx

**Describe the bug**
When I import a bare markdown file into an MDX story, and render it, it displays unstyled (e.g. Times New Roman and default browser styles).

**To Reproduce**
Steps to reproduce the behavior:

1. Import a markdown file into an MDX, something like this:
  ```jsx
import Readme from '../../README.md';

<Readme />
  ```
2. Have that trick in `main.js` to make storybook load markdown files (otherwise it'll render absolutely nothing):
  ```js
  module.exports = {
    stories: ['../src/**/*.stories.@(tsx|mdx)'],
    addons: ['@storybook/addon-docs'],
  
    webpackFinal: async config => {
      config.module.rules = [
        {
          test: /\.md$/,
          use: [
            {
              loader: require.resolve('babel-loader')
            },
            {
              loader: require.resolve('@mdx-js/loader')
            },
          ],
        },
        ...config.module.rules.filter(rule => rule.test.source !== '\\.md$'),
      ];
      return config;
    },
  };
  ```
3. Navigate to that story

**Expected behavior**
Markdown renders the same as regular markdown typed straight into an MDX.

**Screenshots**
This is how docs-only with imported markdown renders:
![image](https://user-images.githubusercontent.com/152227/104193070-f66d2700-541f-11eb-829f-67c6e0b8feba.png)

This is how markdown typed straight into MDX renders:
![image](https://user-images.githubusercontent.com/152227/104193306-41873a00-5420-11eb-8a7b-8a2124ad6a5d.png)

Still not great, but much better. It probably looks like that because I'm inserting global styled via styled-components into each story, which kind of leaks out into MDX. But strangely it doesn't leak out into docs-ony MDX and/or imported markdown.

So my question is:
1. Is this normal? That a docs-only imported markdown file renders unstyled?
2. Regardles of whether it's normal, where should I inject SC global styles to make them apply?

**System**
```
  System:
    OS: Windows 10 10.0.19042
    CPU: (12) x64 Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz
  Binaries:
    Node: 12.20.0 - C:\Program Files\nodejs\node.EXE
    npm: 6.14.9 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 87.0.4280.141
    Edge: Spartan (44.19041.423.0), Chromium (87.0.664.75)
  npmPackages:
    @storybook/addon-docs: 6.1.11 => 6.1.11
    @storybook/addon-links: 6.1.11 => 6.1.11
    @storybook/addons: 6.1.11 => 6.1.11
    @storybook/react: 6.1.11 => 6.1.11
```
(Still fails to find Firefox)

**Additional context**
I'm coming from the problem mentioned in #10209 (or rather #7644) and its solution worked great in SB 6.0, with styling and everything.
Repository: opencv
Issue: [Feature Request] - Drawing Shapes; Filled, with Texture
Labels: priority: low

 Currently it is possible to draw shapes either as filled, or as an outline. E.g. Rectangle.  

Would like to request that all the drawing functions allow Filled together with an texture/pattern, i.e image data or image file.

Should support options such as:

- Offset
- Offset anchor location; e.g. corner, center, top-left, top-right etc...
- Scale, Rotation, Mirror
- Transparency
- Blend Modes
- Repeat pattern, non-repeat pattern, mirror along an axis.
- Seamless; Overlaps the edges of the repeating pattern by a specified amount, and blends the overlap pixels by a specified amount.
- Other translations; e.g. Sheer, distort, perspective

Should support animated files (e.g. Video files, Animated GIF, etc..
Repository: storybook
Issue: Overriding docs components stopped working in 6.1
Labels: bug,addon: docs

**Describe the bug**
I'm overriding a couple of docs components to make things look better for us, but that now stopped working completely. The overridden component isn't even being called.

**To Reproduce**
Steps to reproduce the behavior:

1. Make a `preview.jsx`
2. Make it contain overridden docs components:
  ```jsx
  export const parameters = {
    docs: {
      components: {
        Preview,
        Story
      }
    }
  };
  ```
3. Make an MDX story where these will obviously have to be used.

**Expected behavior**
It doesn't matter what `Preview` and `Story` are exactly, they're not getting called anyway, and they should be.

**System**
```
  System:
    OS: Windows 10 10.0.19042
    CPU: (12) x64 Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz
  Binaries:
    Node: 12.20.0 - C:\Program Files\nodejs\node.EXE
    npm: 6.14.9 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 87.0.4280.141
    Edge: Spartan (44.19041.423.0), Chromium (87.0.664.75)
  npmPackages:
    @storybook/addon-docs: 6.1.11 => 6.1.11
    @storybook/addon-links: 6.1.11 => 6.1.11
    @storybook/addons: 6.1.11 => 6.1.11
    @storybook/react: 6.1.11 => 6.1.11
```
(and Firefox)

**Additional context**
This works absolutely perfect in 6.0.
Also, the documentation doesn't say which components can be (or could be, in 6.0) overridden, and what SB expects their names to be.
Repository: flutter
Issue: [google_maps_flutter] Can not add a symbol to a polyline on google map
Labels: c: new feature,p: maps,package,c: proposal,team-ecosystem,P3,triaged-ecosystem

We can not a symbol to a polyline on google map in flutter like we did on below link 
https://developers.google.com/maps/documentation/javascript/symbols#add_to_polyline
Repository: pytorch
Issue: Provide a set of C++ foreach APIs that will take tensor pointers as an input
Labels: module: cpp,triaged

**Motivation**
Performance analysis and Nested Tensor showed that there are use cases when we dont want to manually create a list of tensors as that might be expensive. We should be able to accept a list of tensor pointers instead.

cc @yf225 @glaringlee
Repository: flutter
Issue: API for tweaking autorotation behaviour with locked device orientation
Labels: c: new feature,platform-android,platform-ios,framework,engine,c: proposal,a: layout,P3,team-engine,triaged-engine

when i do
```dart
SystemChrome.setPreferredOrientations(const [
    DeviceOrientation.landscapeLeft,
    DeviceOrientation.landscapeRight,
]);
```
it obviously has to allow rotate in both directions, and autorotate when user changes devices rotation from left to right. this will normally work, but if you lock device rotation, it stops working

emulator android 11
https://youtu.be/eI6ynuI1ydc

redmi note 5 andoid 9
https://youtu.be/yoKT2iOGC9U

i suggest to set youtube behaviour as default and add api that would allow to choose how it should handle this case
i don't know how relatable this issue with `portraitUp` and `portraitDown` though

on android 10 and above it will also show the autorotate suggestion in the native navbar panel, which you cannot see on redmi note 5 android 9 video, so it's not possible to change orientation at all without unlocking the rotation
https://youtu.be/kNTere9bE7I

reproducible https://github.com/nt4f04unds-archive/issues/tree/flutter_73711

<details>
<summary>flutter doctor -v</summary>

```
[✓] Flutter (Channel master, 1.24.0-8.0.pre.374, on Microsoft Windows [Version 10.0.19041.685], locale ru-RU)
    • Flutter version 1.24.0-8.0.pre.374 at c:\dev\src\flutter
    • Framework revision 183f0e797a (7 weeks ago), 2020-11-26 19:12:28 +0100
    • Engine revision 20caf54969
    • Dart version 2.12.0 (build 2.12.0-76.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at C:\Users\danya\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[✓] Android Studio (version 4.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 50.0.1
    • Dart plugin version 193.7547
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[✓] VS Code (version 1.52.1)
    • VS Code at C:\Users\danya\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.18.1

[✓] Connected device (2 available)
    • Redmi Note 5 (mobile)   • 40c9f14       • android-arm64 • Android 9 (API 28)
    • sdk gphone x86 (mobile) • emulator-5554 • android-x86   • Android 11 (API 30) (emulator)

• No issues found!
```
</details>
Repository: PowerToys
Issue: Change File Explorer default opening directory
Labels: Idea-New PowerToy,Product-File Explorer

## 📝 Provide a description of the new feature

_What is the expected behavior of the proposed feature?  What is the scenario this would be used?_

From Omkar on Twitter: https://twitter.com/Omkar_K45/status/1348694539788115968

When opening via taskbar or Win+E, the default dir is Quick access, make this a quick and easy adjustable.

---

If you'd like to see this feature implemented, add a 👍 reaction to this post.