sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: godot
Issue: Light2D affects alpha-channel unexpectedly
Labels: bug,topic:rendering,confirmed,topic:2d

**Godot version:**
3.3.2 stable

**OS/device including version:**
Windows 10, Nvidia GTX-960

**Issue description:**
Light2D affects alpha-channel and produces visible aliasing when lighting is strong enough. All affected non-zero alpha values are seemingly increased, until the resulting image looks as if it had 1-bit alpha.

This is especially apparent when textures have soft alpha-gradients or large areas that are partially transparent.

Proposal behavior for Light2D additive blend mode:
source.RGB = source.RGB + (light.RGB * light.A)

This issue is present in both GLES2 and GLES3

**Steps to reproduce:**
Add a Sprite with partially transparent areas.
Add a strong Light2D or multiple lights that affect the sprite.

**Minimal reproduction project:**
[light2d_alpha_channel.zip](https://github.com/godotengine/godot/files/6583322/light2d_alpha_channel.zip)

![image](https://user-images.githubusercontent.com/8040820/120454446-90684880-c39c-11eb-9a55-b0b26a87c980.png)
![image](https://user-images.githubusercontent.com/8040820/120454076-3b2c3700-c39c-11eb-8d1f-2e92c160da61.png)
Repository: flutter
Issue: [accessibility] iOS Voiceover cuts off Snackbar semantics on navigating to a page with Snackbar
Labels: platform-ios,framework,f: material design,a: accessibility,has reproducible steps,found in release: 2.2,found in release: 2.3,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. Run `flutter create bug`.
2. Update `main.dart` file with `main.txt` 
[main.txt](https://github.com/flutter/flutter/files/6583528/main.txt)
3. Run app on Android
4. Activate talkback
5. Navigate to second page, notice talkback focuses snackbar
6. Run app on iOS
7. Activate Voiceover
8. Navigate to second page, notice voiceover focuses backbutton

**Expected results:** <!-- what did you want to see? -->
When opening a new page and displaying a snackbar, talkback and voiceover should focus it first.

**Actual results:** <!-- what did you see? -->
When opening a new page and displaying a snackbar, Talkback focuses the snackbar first. Voiceover focuses backbutton instead of snackbar.  

Both accessibility tools should focus same widget.

<details> 
<summary>flutter doctor -v</summary> 
	
```console
[✓] Flutter (Channel unknown, 1.22.6, on Linux, locale es_ES.utf8)
    • Flutter version 1.22.6 at /home/usuario/fvm/versions/1.22.6
    • Framework revision 9b2d32b605 (hace 4 meses), 2021-01-22 14:36:39 -0800
    • Engine revision 2f0af37152
    • Dart version 2.10.5

 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /home/usuario/Android/Sdk
    • Platform android-30, build-tools 29.0.2
    • ANDROID_HOME = /home/usuario/Android/Sdk
    • Java binary at: /usr/local/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
    • All Android licenses accepted.

[✓] Android Studio (version 3.3)
    • Android Studio at /usr/local/android-studio
    • Flutter plugin version 34.0.1
    • Dart plugin version 182.5215
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

[✓] Connected device (1 available)
    • SM A520F (mobile) • 5210ef4843b93469 • android-arm64 • Android 8.0.0 (API 26)

• No issues found!
```

</details>
Repository: opencv
Issue: find_package(OpenCV) 2 times
Labels: category: build/install,RFC

We are finding OpenCV multiple times with different components:
```
find_package(OpenCV QUIET) # just probe that OpenCV is here

..
find_package(OpenCV QUIET COMPONENTS opencv_core)
```

The issue that second call returns all OpenCV libraries in `OpenCV_LIBRARIES`, while I want to have only `opencv_core` to be in `OpenCV_LIBRARIES` list. 

You can say that I have to find OpenCV only once per project, but what if these projects are independent? And depending on which project is included first, the second project will reuse libraries from first one
Repository: vscode
Issue: Leading whitespace before bracket/brace should not be automatically removed
Labels: bug,editor-autoindent,on-unit-test


Issue Type: <b>Bug</b>

# How to reproduce

Using a fresh `code-insiders`, no extensions enabled, and the following two settings changed:

```json
{
    "editor.autoIndent": "keep",
    "editor.autoClosingBrackets": "never"
}
```

open a new file (a text file is fine), and type

```
foo {
  }
```

the moment you type that closing curly brace the leading whitespace before the bracket is removed, so that you end up with

```
foo {
}
```

instead. The same happens with `()`.

# Expected result

Expected result: just leave the whitespace alone.

Apologies if I'm just missing a setting somewhere, but I could not find it. The only thing I managed to find was the [`decreaseIndentPattern`](https://code.visualstudio.com/api/language-extensions/language-configuration-guide), which seems related, but this is happening even for a plain text file..? I also tried modifying a `language-configuration.json` in `code` with some extensions enabled, with an empty `decreaseIndentPattern`, but it was still happening (although admittedly I can't be totally sure if it was picking up my change to the config at all).

VS Code version: Code - Insiders 1.57.0-insider (1e446dfadf588ec28b3fdba7ac083bfa1d45df3c, 2021-06-01T05:13:45.931Z)
OS version: Linux x64 5.11.0-18-generic

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|AMD Ryzen 9 5950X 16-Core Processor (32 x 2200)|
|GPU Status|2d_canvas: enabled<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>oop_rasterization: disabled_off<br>opengl: enabled_on<br>rasterization: disabled_software<br>skia_renderer: enabled_on<br>video_decode: disabled_software<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled|
|Load (avg)|1, 1, 1|
|Memory (System)|62.78GB (47.86GB free)|
|Process Argv|. --crash-reporter-id 19226b64-074e-440b-910b-3dca8ef58bad|
|Screen Reader|no|
|VM|0%|
|DESKTOP_SESSION|ubuntu|
|XDG_CURRENT_DESKTOP|Unity|
|XDG_SESSION_DESKTOP|ubuntu|
|XDG_SESSION_TYPE|x11|
</details>Extensions: none<details>
<summary>A/B Experiments</summary>

```
vsliv695:30137379
vsins829:30139715
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
pythonvspyt602:30291494
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt639:30291487
pythontb:30258533
vspre833cf:30267465
pythonptprofiler:30281269
vshan820:30294714
pythondataviewer:30285072
vscus158cf:30286554
pythonvsuse255:30303025
vscgsv2:30305091
vscorehov:30301224
vscod805:30301674
vscextlangct:30310089

```

</details>

<!-- generated by issue reporter -->
Repository: TypeScript
Issue: Consecutive function declaration problems in JS files
Labels: Bug,Domain: JSDoc

# Bug Report

### 🔎 Search Terms
function declaration, method declaration, consecutive, comma

### 🕗 Version & Regression Information
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about jsdoc problems
Tested with typescript@4.4.0-dev.20210602

### ⏯ Playground Link
**[Playground](https://www.typescriptlang.org/play?target=99&jsx=0&filetype=js#code/PQKhCgAIUgBAHAhgJ0QW0gbwHYFc0BGApsgL6R5pQyzJEAuuy2AzlpcWdcOAMYD2rehXwFIAXkgAKSgEoJAPhFoANFEgaNoCJt00kqDJhb1kAS2wBzcieTrd0OHUbM2x0xev29PB5FsS0rby4kq24HyCLPwANkQAdDH8ljKiUgBMsir+plIALLKyQA)**

### 💻 Code
```
/**
 * @param {number} num
 * @returns {number}
 */
const numb = (num) => num,
      /**
       * @param {string} str
       * @returns {string}
       */
      str = (str) => str

console.log(numb(2), str(4))
```

### 🙁 Actual behavior
Because of the consecutive declaration the real error is not catched. This only happens in js files

### 🙂 Expected behavior
Method declaration style shouldn't matter in js files either, so the error should be: ""Argument of type 'number' is not assignable to parameter of type 'string'."
Repository: go
Issue: encoding/json: unmarshaler doesn't find UnmarshalJSON on embedded anonymous struct
Labels: NeedsInvestigation

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.15.9 linux/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="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/root/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/root/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/lib/go-1.15"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go-1.15/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
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-build393930481=/tmp/go-build -gno-record-gcc-switches"
</pre></details>

### What did you do?

https://play.golang.org/p/Xlxih58rSdC

Outer1 unmarshalled and Outer2 failed.

```
type Outer1 struct {
	Inner inner
}
type inner struct{ Mixin }

type Outer2 struct {
	Inner struct{ Mixin }
}

type Mixin string

func (r * Mixin) UnmarshalJSON(data []byte) error {
	return json.Unmarshal(data, (*string)(r))
}
```

### What did you expect to see?

Outer2 unmarshalled as Outer1

### What did you see instead?

```
panic: json: cannot unmarshal string into Go struct field Outer2.Inner of type struct { main.Mixin }
```
Repository: vscode
Issue: Toggling wrap during comparison moves the view on the open files.
Labels: bug,diff-editor,editor-wrapping


Issue Type: <b>Bug</b>

Steps to reproduce:

1.  select two files for comparison OR open a modified or staged file in the source control;
2.  toggle line wrap in either file.

Effect:

The view is moved far from the original place: (usually) way up when unwrapping, way down when wrapping. Sometimes toggling again will bring you back, sometimes you move further away in the file.

Expected behaviour:

The view remains similar, e.g. the first line on top remains the same or if the cursor is visible it remains so.


Looks like an overcorrection for the new length of the file but I can't be sure.

VS Code version: Code 1.56.2 (054a9295330880ed74ceaedda236253b4f39a335, 2021-05-12T16:45:26.313Z)
OS version: Linux x64 4.15.0-143-generic

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz (8 x 2400)|
|GPU Status|2d_canvas: enabled<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>oop_rasterization: disabled_off<br>opengl: enabled_on<br>rasterization: disabled_software<br>skia_renderer: enabled_on<br>video_decode: disabled_software<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled|
|Load (avg)|2, 3, 3|
|Memory (System)|15.56GB (3.19GB free)|
|Process Argv|--disable-extensions --no-sandbox --crash-reporter-id e91b2ab7-7ddb-409a-942e-b91481bff334|
|Screen Reader|no|
|VM|0%|
|DESKTOP_SESSION|ubuntu|
|XDG_CURRENT_DESKTOP|Unity|
|XDG_SESSION_DESKTOP|ubuntu|
|XDG_SESSION_TYPE|x11|
</details>Extensions disabled
<!-- generated by issue reporter -->
Repository: flutter
Issue: [Widget Tests] `variant` and `debugDefaultTargetPlatformOverride` do not work as expected leading to failed tests
Labels: a: tests,framework,has reproducible steps,P2,found in release: 2.2,team-framework,triaged-framework

I am trying to write a test case for a widget which depends on TargetPlatform. To do so I'm using the "variant" property in widget tests to force the test to run for either iOS or Android.

However when running the tests, one fails while the other passes. Running the tests one at a time passes for both. Which most likely means the `variant` arguments are not being reset after the test.

I tried running the same using `debugDefaultTargetPlatformOverride` as described in the answer [here](https://stackoverflow.com/a/57628196), however that also fails for me with the same error.

# Sample App

```dart
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(MaterialApp(home: MyApp()));
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    if (Theme.of(context).platform == TargetPlatform.iOS) {
      return Container();
    } else {
      return SizedBox();
    }
  }
}
```

# WidgetTest

```dart
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';

void main() {
  testWidgets(
    "when platform is iOS",
    (tester) async {
      await tester.pumpWidget(MyApp());
      expect(find.byType(Container), findsOneWidget);
    },
    variant: TargetPlatformVariant.only(TargetPlatform.iOS),
  );

  testWidgets(
    "when platform is Android",
    (tester) async {
      await tester.pumpWidget(MyApp());
      expect(find.byType(SizedBox), findsOneWidget);
    },
    variant: TargetPlatformVariant.only(TargetPlatform.android),
  );
}
```

# Result
```
══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
The following TestFailure object was thrown running a test:
  Expected: exactly one matching node in the widget tree
  Actual: _WidgetTypeFinder:<zero widgets with type "SizedBox" (ignoring offstage widgets)>
   Which: means none were found but one was expected

When the exception was thrown, this was the stack:
#4      main.<anonymous closure> (.../test/widget_test.dart:20:7)
<asynchronous suspension>
<asynchronous suspension>
(elided one frame from package:stack_trace)
...

This was caught by the test expectation on the following line:
  .../test/widget_test.dart line 20
The test description was:
  when platform is Android uses MaterialApp (TargetPlatform.android)
════════════════════════════════════════════════════════════════════════════════════════════════════

Test failed. See exception logs above.
The test description was: when platform is Android uses MaterialApp (TargetPlatform.android)
```
Repository: PowerToys
Issue: Resize presets for applications
Labels: Idea-New PowerToy

### Provide a description of the new feature / enhancement

As a user of FancyZones on an ultra wide 49 inch monitor, there is always a few applications that I want of a precise size but that won't fit in any one particular zone because the application either overlaps two zones or fit within a zone.

I would like a feature where an application can be resized to preset dimensions using keyboard shortcuts. This feature would be complementary to FancyZones. PowerToys would use the activated keyboard shortcut to identify what preset dimensions to apply to the application rather than the Zone that the application is over to get the dimensions and position. This feature would not alter the application's position.

In terms of feature interaction with FancyZones. The user could move the application to one of the Zone then select a preset so the application covers more or less of the zone. In other words, I don't foresee an adverse effect but rather a synergy.

Using multiple FancyZones layouts may work but it is less flexible than the proposed feature. Hopefully the use cases below will be convincing enough.

**Use case 1**
- User defined three presets: 1920x1440, 1250x520 and 400x1100.
- User bound a keyboard shortcut for each preset.
- User selects Notepad then presses the shortcut to 2nd preset.
- PowerToys resizes Notepad to 1250x520, the position of the application is unchanged.
- The viewing requirements for Notepad changes because a list is loaded.
- User presses the shortcut to 3rd preset.
- PowerToys resizes Notepad to 400x1100 to better fit the vertically oriented content of the text file thus leaving more space for other windows.

**Use case 2**
- User defined three presets: 1920x1440, 1250x520 and 400x1100.
- User bound a keyboard shortcut for each preset.
- User defined three Zones where the central Zone is 16:9.
- User selects Visual Studio and moves it to the central Zone.
- PowerToys resizes Visual Studio to 16:9, which is 2560x1440 on ultra-wide 5120x1440 monitor.
- User is satisfied because the wider, the better for Visual Studio.
- User selects Word and moves it to the central Zone.
- PowerToys resizes Word to 16:9, which is 2560x1440 on ultra-wide 5120x1440 monitor.
- User wants Word to take less space because the document has 4:3 content.
- User presses the shortcut to 1st preset.
- PowerToys resizes Word to 4:3, which is 1920x1440 thus leaving more space for other windows.

**Use case 3**
- User wants certain applications to overlap one another partly because one application may have a vertical region that is not essential in terms of actionable information. One could then stack more applications side by side quickly for monitoring live systems.
Repository: vscode
Issue: Hex editor does not show fully after reload with untitled
Labels: bug,custom-editors

1. open a new untitled text editor and type some text
2. reopen with hex editor
3. reload window

=> 🐛 the hex editor only appears when opening another editor and going back

![recording (1)](https://user-images.githubusercontent.com/900690/120500508-3168fa80-c3c1-11eb-9f52-c9beed4f9edc.gif)
Repository: vscode
Issue: Custom editor reopened from untitled does not properly wire in dirty state?
Labels: bug,help wanted,custom-editors

Steps to Reproduce:

1. open an untitled text editor and type some content
2. reopen with hex editor

=> the editor indicates dirty, but e.g. the explorer does not

From my testing it seems like in this case the working copy that is created does not emit a `onDidChangeDirty` event?

![recording (2)](https://user-images.githubusercontent.com/900690/120501850-3b3f2d80-c3c2-11eb-8f30-ce778d762da0.gif)
Repository: go
Issue: x/pkgsite: Example codes don't have horizontal scroller on mobile devices
Labels: NeedsDecision,pkgsite,website

### What did you expect to see?
Example codes to have horizontal scroller.


### What did you see instead?
Long lines are wrapped around.
Repository: youtube-dl
Issue: get chapters title when downloading from learning.oreilly.com
Labels: question

Hello,

i'm trying to download courses from learning.oreilly.com, but i can't get the files separated into chapters, i have no idea how to get chapters names. this is what i have tried so far 

`youtube-dl -u user -p password -o '%(playlist)s/%(playlist_index)s/%(title)s.%(ext)s'  --verbose https://learning.oreilly.com/videos/hands-on-auto-devops/9781838554644/`
Repository: pytorch
Issue: CUDA memory error when using torch.device('cpu') 
Labels: module: cuda,module: memory usage,triaged

When my GPU is training a model and is at close to 100% capacity, I sometimes get the typical OOM error when performing other tasks where I'm not actually moving anything to CUDA, but rather staying on CPU. So my code might look like:

```python
device = torch.device('cpu')

model = ....

tensor = torch.zeros(1, 3, 224, 224)

with torch.no_grad():
    model(tensor)
```

And this still somehow raises an OOM error, but only if I'm already really close to the limit.

When I make a new virtual environment and install the CPU version of PyTorch only, I don't get the issues.

[This](https://github.com/pytorch/pytorch/issues/49401) may be related, and while I understand that there the solution seems to be "ignore it because it's not real", I can't ignore mine as it raises an error.

cc @ngimel
Repository: vscode
Issue: iPad: improve browsing experience when no real keyboard is available
Labels: feature-request,quick-pick,ios-ipados

When no "real" keyboard is attached to the iPad (and therefore keyboard shortcuts aren't available), it is a pain to activate some frequently used actions like the "Command palette". Drilling into the (tiny) "View" submenu in the "Hamburger" menubar and then finding and hitting the "Command Palette" action is a hit-and-miss operation...

It would be great if the menubar could use an iPad (or in general: "touch") specific UI:
e.g. a 3-finger swipe would open a large overlay where all frequently used menu actions are available with a single tap.

just dreaming...
Repository: vscode
Issue: iPad: context menu appears when releasing a long tap
Labels: bug,ios-ipados

- in a text editor do a "very long" tap

Observe: the context menu does not show up while the "long tap" is underway but only when it is released

This is a bad UI because there is no feedback that the tap was "long enough" to open the context menu.
This results in taps that are just too long which slows down interaction.

The context menu should show as soon as the tap was long enough.
Repository: flutter
Issue: Extend ImageCache to handle SVG/IconVG/other Picture-based image systems
Labels: c: new feature,framework,a: images,P3,team-framework,triaged-framework

Right now ImageCache is built around Image objects and the infrastructure around fetching and decoding Images.

A package with its own decoding logic that creates Picture objects cannot benefit from the ImageCache logic.

cc @dnfield
Repository: godot
Issue: Float field on Visual Shader editor bug
Labels: bug,topic:editor

**Godot version:** 3.3.2 | From Steam release

**OS/device including version:**
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->
Test on : 
- Windows 10, GeForce 1080 i7-3770k@ 3.5Ghz
- Windows 10, Intel(R) Iris(R) Plus Graphics, Intel Core i7-1065G7@ 1.3Ghz
- Linux Manjaro -- Intel® Core™ i7-4790K CPU @ 4.00GHz × 8 -- GeForce GTX 1070/PCIe/SSE2


**Issue description:**
Hello,
with the *visualshader* editor, if you try to slide a value with your cursor, godot move your cursor on your screen center. Try with an empty scene and a new shader.

**Gif Explain:**
![Scalar-Bug](https://user-images.githubusercontent.com/3066684/120538945-5ff9cc00-c3e7-11eb-8d3c-53c039d3cc1b.gif)
![Scalar-Expose](https://user-images.githubusercontent.com/3066684/120538952-61c38f80-c3e7-11eb-834b-c8e4a70a12c8.gif)


**Steps to reproduce:**
Add a scalar constant with the VisualShader editor, and try to slide the value.


**Minimal reproduction project:**
A simple project with a basic material.
[Test.zip](https://github.com/godotengine/godot/files/6586943/Test.zip)
Repository: flutter
Issue: Tabbar tab scrolling not working on Web on the desktop
Labels: framework,f: material design,f: scrolling,platform-web,a: desktop,has reproducible steps,P2,found in release: 2.2,found in release: 2.3,team-design,triaged-design

Tabbar scrolling not working on Web
Repository: flutter
Issue: Update flutter tool to use `dart CLI` for tools with specified deprecation dates
Labels: tool,P3,c: tech-debt,team-tool,triaged-tool

For now this is only `dart format`, but others may be necessary to migrate in the future.

https://github.com/dart-lang/sdk/issues/46100
Repository: flutter
Issue: Identify device disconnects in analytics broken down by intentional versus unintentional
Labels: tool,P3,team-tool,triaged-tool

This should also include info on device type as well.